-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API reference docs #563
API reference docs #563
Conversation
@impress/mergers Please review. |
I don't know if this comment has its place here or in another issue but... What's the difference between |
That's actually a very good question! Looking at the code, the The The So, from all I can tell, the In the blame, I can see that the original commit that added the The API was added in the version 0.3.0 in this commit, which represents the first version of impress.js. Conclusion It doesn't seems to be any documented reason of why this both classes exist, all evidence points out to be a coincidence. Note: That is the reason why it is important to have clear, consistent and legible commits |
In the docs, I think there should be a small explanation of the list of all events/things that happen when slides change (when clicking on a step element, or using |
@Pierstoval Totally agree.
|
|
@impress/mergers @Pierstoval Ready for the next round of review. I think we should be conservative on what to document. If we document something, then we need to take care not to break it in a new release, and since the tests are too weak there is no ensurance that it will not break. The best thing to do here is document only what is being used in the wild. The best thing to do is to look for some forks and see how they are using impress.js. If there is a considerable amount of usage and the code comments mention that, then we should document it in the public API. Does it makes sense? Ping @bartaz |
|
||
#### 3D Coordinates Positioning (data-z) | ||
|
||
Define the pixel based position in which the **center** of the [Step Element](#step-element) will be positioned inside the infinite canvas on the third dimension (Z) axis. For example, if we use `data-z="-3000"`, it means that the [Step Element](#step-element) will be positioned far away from the camera (by 3000px). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am using the concept "positioned inside the infinite canvas" when we talk about the actual element that is positioned despite the presentation having been started or not. When we talk about perception of positioning inside the presentation flow, I use "positioned from the camera".
Sorry for keeping you that long without any answer. I added couple of inline comments. But these are not big things. |
Sorry to take this longer to respond, I have been in a crazy marathon of events, meetups and trips this past few weeks. I will handle those issues probably this weekend and merge it. In the meantime, a follow-up with some suggestion I have made there (to see if they make sense) would be much appreciated. |
@FagnerMartinsBrack it's nothing compared to my response time, so no worries ;) |
Landing on master then... |
This starts the reference docs for impress.js as stated in the plan.
.past
,.future
,.present
classes.impress-not-supported
API.impress-on-step-x
andimpress-on-step-id
: Add custom class names of steps to body element #564 (comment)@bartaz, this is important because it represents the public contract for consumers of the framework. We should be safe to change anything that is not publicly documented. See here for a detailed information of why it is very important to have a public API that doesn't rely solely in code comments.