-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Feature Request: Complete 3D Transform Support
Currently, JSAR only supports 3D translation for transforms. To align with standard web APIs and modern graphics needs, JSAR should also support rotation and scale properties in 3D transforms.
Motivation
- Compatibility: Web standards (CSS, DOM) and 3D engines expect support for translation, rotation, and scaling in transforms.
- Functionality: Many applications require rotation and scale for positioning 3D elements correctly in space.
- Developer Experience: Improved API ergonomics and feature parity with existing web and graphics APIs.
Expected Behavior
- Add support for
rotationandscalein 3D transforms alongside existing translation. - Rotation should support axis-angle or quaternion representations, as well as euler angles if possible.
- Scale should support uniform and non-uniform scaling.
- API examples:
element.style.transform = 'translate3d(x, y, z) rotate3d(x, y, z, angle) scale3d(sx, sy, sz)';
- The implementation should be compatible with both DOM and graphics layers in JSAR.
Reference
Additional Context
This will enable advanced 3D positioning and animation features for JSAR content, bringing it closer to mainstream browser engines and 3D toolkits.
Copilot
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request