-
-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Docs: format the matrices #26815
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
Docs: format the matrices #26815
Conversation
|
The new formatting looks great but this isn't MathML, right? If so, it would be nice to see the same doc page updated with MathML so we can easier compare both approaches. |
|
yup... no MathML, no JS, no precompiled step :D |
|
This how a 4x4 matrix definition with MathML would look like. Just markup, no CSS: https://jsfiddle.net/71w6yovn/ I personally would prefer MathML over a custom solution via HTML/CSS. Simply because MathML is intended for exact this purpose and I see no reason to build something custom next to it. Also search engines can easier understand this is actually math and not something else. |
|
agree.. as long as the |
|
How does this version of the fiddle look on your Android device? https://jsfiddle.net/6bvydfnL/5/show It seems what we see on Android is a font issue, see https://stackoverflow.com/questions/75621629/issue-with-mathml-rendering-of-matrix-like-formulas-in-chrome-for-both-on-mac-an. A solution for this is to include |
|
Looking at the HTML source code though, |
|
It seems the font stretching issues have been reported to the Chromium bug tracker. So there is hope this gets eventually fixed. |
|
After some more testing of MathML it seems the formatting is not as consistent as originally expected. Even Firefox on macOS does not render the brackets in the correct size. If we agree on using MathML, we have to be aware that style issues are inevitable. BTW: I've realized now that most of the discussion in this PR should have happened in #26812. Anyway, the conclusion for me is that MathML is great but it's support across various browser is a bit inconsistent. IMO, nothing crucial that prevents a usage but one has to be aware of the limitations. |
After upgrading to macOS 14.0 and Firefox 118, this isn't true anymore. Brackets have the correct size now. |
|
closed; reason: use |


fix: #26812
This PR attempts to format the matrices in docs by using simple html/css
preview: http://raw.githack.com/ycw/three.js/mat-html/docs/index.html#api/en/math/Matrix4.extractBasis
usage
example