laymur 0.2.16 → 0.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -6
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -346,6 +346,17 @@ Element visibility and interaction states:
|
|
|
346
346
|
- `UIMode.VISIBLE` - Rendered, no interaction
|
|
347
347
|
- `UIMode.INTERACTIVE` - Rendered with interaction
|
|
348
348
|
|
|
349
|
+
## Addons
|
|
350
|
+
|
|
351
|
+
### laymur-animations
|
|
352
|
+
|
|
353
|
+
A collection of standard UI animations for smooth, performant motion effects built on top of GSAP.
|
|
354
|
+
|
|
355
|
+
- **GitHub**: [https://github.com/jango-git/laymur-animations](https://github.com/jango-git/laymur-animations)
|
|
356
|
+
- **NPM**: [https://www.npmjs.com/package/laymur-animations](https://www.npmjs.com/package/laymur-animations)
|
|
357
|
+
|
|
358
|
+
Includes common animations like appear/disappear effects, pulsing, jumping, spinning, and click feedback for Laymur UI elements.
|
|
359
|
+
|
|
349
360
|
## Contributing
|
|
350
361
|
|
|
351
362
|
Contributions are welcome! Please feel free to submit issues and pull requests.
|
|
@@ -362,11 +373,8 @@ Laymur is licensed under the [MIT License](./LICENSE).
|
|
|
362
373
|
It uses [Kiwi.js](https://github.com/lume/kiwi) as its constraint solving engine — a fast and lightweight Cassowary implementation in TypeScript.
|
|
363
374
|
|
|
364
375
|
Kiwi.js is licensed under the [BSD-3-Clause License](https://github.com/lume/kiwi/blob/main/LICENSE).
|
|
365
|
-
The MIT and BSD-3-Clause licenses are [compatible](https://opensource.org/license/bsd-3-clause/) and permissive.
|
|
366
376
|
|
|
367
|
-
|
|
377
|
+
It is built on top of [Three.js](https://threejs.org/) for 3D rendering support — a cross-browser JavaScript library for creating and displaying 3D graphics.
|
|
368
378
|
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
- Event system powered by [eventail](https://www.npmjs.com/package/eventail)
|
|
372
|
-
- Mathematical foundations based on the Cassowary constraint solving algorithm
|
|
379
|
+
Three.js is licensed under the [MIT License](https://github.com/mrdoob/three.js/blob/dev/LICENSE).
|
|
380
|
+
All licenses used are compatible and permissive.
|
package/dist/index.js
CHANGED
|
@@ -4405,8 +4405,8 @@ class UINineSliceMaterial extends ShaderMaterial {
|
|
|
4405
4405
|
alphaTest: DEFAULT_ALPHA_TEST$1,
|
|
4406
4406
|
lights: false,
|
|
4407
4407
|
fog: false,
|
|
4408
|
-
depthWrite:
|
|
4409
|
-
depthTest:
|
|
4408
|
+
depthWrite: false,
|
|
4409
|
+
depthTest: false,
|
|
4410
4410
|
});
|
|
4411
4411
|
}
|
|
4412
4412
|
getSliceBorderLeft() {
|
|
@@ -4760,7 +4760,8 @@ class UIProgressMaterial extends ShaderMaterial {
|
|
|
4760
4760
|
]),
|
|
4761
4761
|
vertexShader,
|
|
4762
4762
|
fragmentShader,
|
|
4763
|
-
transparent:
|
|
4763
|
+
transparent: false,
|
|
4764
|
+
alphaTest: DEFAULT_ALPHA_TEST,
|
|
4764
4765
|
lights: false,
|
|
4765
4766
|
fog: false,
|
|
4766
4767
|
depthWrite: false,
|
|
@@ -5898,7 +5899,7 @@ class UIFullscreenLayer extends UILayer {
|
|
|
5898
5899
|
if (fixedHeight !== undefined) {
|
|
5899
5900
|
assertValidPositiveNumber(fixedHeight, "UIFullscreenLayer.fixedHeight");
|
|
5900
5901
|
}
|
|
5901
|
-
super(
|
|
5902
|
+
super(window.innerWidth, window.innerHeight);
|
|
5902
5903
|
/**
|
|
5903
5904
|
* Event handler for window resize events.
|
|
5904
5905
|
*
|