motionary 10.4.0 → 10.5.0

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.
Files changed (94) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +37 -0
  3. package/dist/chunks/{anim-image-DDdb9q3X.js → anim-image-BlNPv4JG.js} +2 -2
  4. package/dist/chunks/{anim-image-DDdb9q3X.js.map → anim-image-BlNPv4JG.js.map} +1 -1
  5. package/dist/chunks/{anim-image-blQgPFFS.cjs → anim-image-DuxvYhq6.cjs} +2 -2
  6. package/dist/chunks/{anim-image-blQgPFFS.cjs.map → anim-image-DuxvYhq6.cjs.map} +1 -1
  7. package/dist/chunks/{keyframes-B5PWe5bU.js → keyframes-B8ITIAVa.js} +2 -2
  8. package/dist/chunks/{keyframes-B5PWe5bU.js.map → keyframes-B8ITIAVa.js.map} +1 -1
  9. package/dist/chunks/{keyframes-tC3I7anQ.cjs → keyframes-Ce1s05n3.cjs} +2 -2
  10. package/dist/chunks/{keyframes-tC3I7anQ.cjs.map → keyframes-Ce1s05n3.cjs.map} +1 -1
  11. package/dist/chunks/{registry-CT-TT_bx.js → registry-DXdFb2fJ.js} +2 -2
  12. package/dist/chunks/{registry-CT-TT_bx.js.map → registry-DXdFb2fJ.js.map} +1 -1
  13. package/dist/chunks/{registry-tzwKkldE.cjs → registry-VhfPSI0v.cjs} +2 -2
  14. package/dist/chunks/{registry-tzwKkldE.cjs.map → registry-VhfPSI0v.cjs.map} +1 -1
  15. package/dist/chunks/{ticker-C8lSGml9.js → ticker-C5RMHMW7.js} +2 -2
  16. package/dist/chunks/{ticker-C8lSGml9.js.map → ticker-C5RMHMW7.js.map} +1 -1
  17. package/dist/chunks/{ticker-Un0bvTWR.cjs → ticker-DvmC6WLS.cjs} +2 -2
  18. package/dist/chunks/{ticker-Un0bvTWR.cjs.map → ticker-DvmC6WLS.cjs.map} +1 -1
  19. package/dist/chunks/{tween-BcejKpsx.js → tween-CPtm-EdT.js} +2 -2
  20. package/dist/chunks/{tween-BcejKpsx.js.map → tween-CPtm-EdT.js.map} +1 -1
  21. package/dist/chunks/{tween-CwLLC3Ko.cjs → tween-_BGIl6hK.cjs} +2 -2
  22. package/dist/chunks/{tween-CwLLC3Ko.cjs.map → tween-_BGIl6hK.cjs.map} +1 -1
  23. package/dist/components/widgets.cjs +745 -212
  24. package/dist/components/widgets.cjs.map +1 -1
  25. package/dist/components/widgets.d.cts +202 -2
  26. package/dist/components/widgets.d.ts +202 -2
  27. package/dist/components/widgets.js +738 -213
  28. package/dist/components/widgets.js.map +1 -1
  29. package/dist/llms-full.txt +150 -1
  30. package/dist/llms.txt +9 -2
  31. package/dist/manifest.json +394 -1
  32. package/dist/runtime/format-apng.cjs +4 -4
  33. package/dist/runtime/format-apng.js +4 -4
  34. package/dist/runtime/format-css.cjs +4 -4
  35. package/dist/runtime/format-css.js +4 -4
  36. package/dist/runtime/format-gif.cjs +4 -4
  37. package/dist/runtime/format-gif.js +4 -4
  38. package/dist/runtime/format-gltf.cjs +207 -0
  39. package/dist/runtime/format-gltf.cjs.map +1 -0
  40. package/dist/runtime/format-gltf.d.cts +251 -0
  41. package/dist/runtime/format-gltf.d.ts +251 -0
  42. package/dist/runtime/format-gltf.iife.js +2 -0
  43. package/dist/runtime/format-gltf.iife.js.map +1 -0
  44. package/dist/runtime/format-gltf.js +200 -0
  45. package/dist/runtime/format-gltf.js.map +1 -0
  46. package/dist/runtime/format-motion.cjs +4 -4
  47. package/dist/runtime/format-motion.js +4 -4
  48. package/dist/runtime/format-obj.cjs +181 -0
  49. package/dist/runtime/format-obj.cjs.map +1 -0
  50. package/dist/runtime/format-obj.d.cts +176 -0
  51. package/dist/runtime/format-obj.d.ts +176 -0
  52. package/dist/runtime/format-obj.iife.js +2 -0
  53. package/dist/runtime/format-obj.iife.js.map +1 -0
  54. package/dist/runtime/format-obj.js +174 -0
  55. package/dist/runtime/format-obj.js.map +1 -0
  56. package/dist/runtime/format-sprite.cjs +3 -3
  57. package/dist/runtime/format-sprite.js +3 -3
  58. package/dist/runtime/format-svg.cjs +3 -3
  59. package/dist/runtime/format-svg.js +3 -3
  60. package/dist/runtime/format-webp.cjs +4 -4
  61. package/dist/runtime/format-webp.js +4 -4
  62. package/dist/runtime/gl.cjs +763 -0
  63. package/dist/runtime/gl.cjs.map +1 -0
  64. package/dist/runtime/gl.d.cts +260 -0
  65. package/dist/runtime/gl.d.ts +260 -0
  66. package/dist/runtime/gl.iife.js +2 -0
  67. package/dist/runtime/gl.iife.js.map +1 -0
  68. package/dist/runtime/gl.js +739 -0
  69. package/dist/runtime/gl.js.map +1 -0
  70. package/dist/runtime/scroll.cjs +2 -2
  71. package/dist/runtime/scroll.js +2 -2
  72. package/dist/runtime/smooth.cjs +1 -1
  73. package/dist/runtime/smooth.js +1 -1
  74. package/dist/runtime/text.cjs +1 -1
  75. package/dist/runtime/text.js +1 -1
  76. package/dist/runtime.cjs +3 -3
  77. package/dist/runtime.d.cts +1 -1
  78. package/dist/runtime.d.ts +1 -1
  79. package/dist/runtime.iife.js +1 -1
  80. package/dist/runtime.iife.js.map +1 -1
  81. package/dist/runtime.js +5 -5
  82. package/dist/widgets.umd.js +1 -1
  83. package/dist/widgets.umd.js.map +1 -1
  84. package/docs/ROADMAP.md +1 -1
  85. package/docs/components/README.md +8 -1
  86. package/docs/components/usa-gl-scene.md +66 -0
  87. package/docs/components/usa-gpu-particles.md +32 -0
  88. package/docs/components/usa-shader-backdrop.md +36 -0
  89. package/docs/components/usa-three-scene.md +20 -0
  90. package/docs/components.md +48 -0
  91. package/docs/runtime/format-gltf.md +63 -0
  92. package/docs/runtime/format-obj.md +59 -0
  93. package/docs/runtime/gl.md +62 -0
  94. package/package.json +32 -2
@@ -3,7 +3,7 @@
3
3
  "format": "motionary/components",
4
4
  "schemaVersion": 1,
5
5
  "package": "motionary",
6
- "version": "10.4.0",
6
+ "version": "10.5.0",
7
7
  "homepage": "https://harrisoncn.github.io/Motionary/",
8
8
  "llms": "https://harrisoncn.github.io/Motionary/llms.txt",
9
9
  "cdn": {
@@ -757,6 +757,226 @@
757
757
  ]
758
758
  ],
759
759
  "example": "import { use } from 'motionary/runtime';\nimport { formatWebp, loadWebp, animatedImagePlayer } from 'motionary/runtime/format-webp';\nuse(formatWebp);\nconst anim = await loadWebp('/hero.webp');\nconst p = animatedImagePlayer(document.querySelector('canvas'), anim, { speed: 0.5 });"
760
+ },
761
+ {
762
+ "kind": "runtime",
763
+ "id": "gl",
764
+ "label": "motionary/runtime/gl",
765
+ "title": "WebGL2 scene renderer",
766
+ "summary": "A small WebGL2 renderer with its own API: scene graph, camera, lights, box / plane / sphere / torus, PBR-style materials, shader materials, image and video textures, orbit controls — not a Three.js clone.",
767
+ "install": "npm i motionary",
768
+ "importPath": "motionary/runtime/gl",
769
+ "import": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';",
770
+ "register": "use(gl);",
771
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js\"></script>",
772
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.js",
773
+ "order": "Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself).",
774
+ "docs": "docs/runtime/gl.md",
775
+ "budget": 9216,
776
+ "exports": [
777
+ "gl",
778
+ "createRenderer",
779
+ "Scene",
780
+ "Camera",
781
+ "GlNode",
782
+ "box",
783
+ "plane",
784
+ "sphere",
785
+ "torus",
786
+ "standardMaterial",
787
+ "unlitMaterial",
788
+ "shaderMaterial",
789
+ "texture",
790
+ "orbitControls",
791
+ "frameNode",
792
+ "bounds",
793
+ "scrubVideo",
794
+ "mat4",
795
+ "quatFromEuler",
796
+ "quatSlerp"
797
+ ],
798
+ "compat": [
799
+ [
800
+ "scene graph: nodes, TRS / matrix, hierarchy, bounds, frameNode()",
801
+ "yes",
802
+ ""
803
+ ],
804
+ [
805
+ "perspective camera, orbit controls (drag / wheel / pinch / arrow keys)",
806
+ "yes",
807
+ "auto-rotate off under reduced motion"
808
+ ],
809
+ [
810
+ "ambient + up to 4 directional / point lights",
811
+ "yes",
812
+ ""
813
+ ],
814
+ [
815
+ "standard material (metallic-roughness approximation), unlit, shader",
816
+ "yes",
817
+ "sRGB in/out, Reinhard tone mapping"
818
+ ],
819
+ [
820
+ "image / canvas / ImageBitmap / raw RGBA textures, mipmaps (power of two)",
821
+ "yes",
822
+ ""
823
+ ],
824
+ [
825
+ "video textures (MP4 / WebM), scroll-scrubbed video (scrubVideo)",
826
+ "yes",
827
+ "requestVideoFrameCallback; codecs depend on the browser"
828
+ ],
829
+ [
830
+ "shadows, normal / occlusion / metallic-roughness maps, IBL",
831
+ "no",
832
+ "planned work beyond 11.0"
833
+ ],
834
+ [
835
+ "WebGL1 / no WebGL2",
836
+ "no",
837
+ "createRenderer() throws a clear error"
838
+ ],
839
+ [
840
+ "SSR / workers",
841
+ "partial",
842
+ "math / geometry / scene graph are pure; rendering needs WebGL2 (OffscreenCanvas works)"
843
+ ]
844
+ ],
845
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, createRenderer, Scene, Camera, GlNode, torus, standardMaterial } from 'motionary/runtime/gl';\nuse(gl);\nconst r = createRenderer(canvas);\nconst scene = new Scene();\nscene.add(new GlNode('donut', { geometry: torus(), material: standardMaterial({ color: [0.5, 0.55, 1, 1] }) }));\nr.resize(); r.render(scene, new Camera({ position: [0, 0.5, 3] }));"
846
+ },
847
+ {
848
+ "kind": "runtime",
849
+ "id": "format-gltf",
850
+ "label": "motionary/runtime/format-gltf",
851
+ "title": "glTF 2.0 / GLB loader",
852
+ "summary": "Load glTF 2.0 (.gltf with external or data: buffers, .glb) into motionary/runtime/gl nodes: node hierarchy, meshes, PBR metallic-roughness materials, embedded / external images.",
853
+ "install": "npm i motionary",
854
+ "importPath": "motionary/runtime/format-gltf",
855
+ "import": "import { use } from 'motionary/runtime';\nimport { formatGltf } from 'motionary/runtime/format-gltf';",
856
+ "register": "use(formatGltf);",
857
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js\"></script>",
858
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.js",
859
+ "order": "Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself).",
860
+ "docs": "docs/runtime/format-gltf.md",
861
+ "budget": 6144,
862
+ "exports": [
863
+ "formatGltf",
864
+ "loadGltf",
865
+ "parseGlb",
866
+ "gltfToNode",
867
+ "readAccessor",
868
+ "SUPPORTED_EXTENSIONS"
869
+ ],
870
+ "compat": [
871
+ [
872
+ ".gltf (external + data: URI buffers / images) and .glb",
873
+ "yes",
874
+ ""
875
+ ],
876
+ [
877
+ "scenes, node hierarchy, TRS and matrix transforms",
878
+ "yes",
879
+ ""
880
+ ],
881
+ [
882
+ "POSITION / NORMAL / TEXCOORD_0, indices, all component types, normalised ints, byteStride",
883
+ "yes",
884
+ "missing normals computed (flat)"
885
+ ],
886
+ [
887
+ "primitive modes points / lines / triangles / strips / fans",
888
+ "yes",
889
+ "strips and fans converted to triangles"
890
+ ],
891
+ [
892
+ "PBR metallic-roughness factors, base colour texture, emissive, alpha blend, double-sided",
893
+ "yes",
894
+ "KHR_materials_emissive_strength, KHR_materials_unlit"
895
+ ],
896
+ [
897
+ "skins, morph targets, animations",
898
+ "no",
899
+ "arrive in 10.8"
900
+ ],
901
+ [
902
+ "Draco / meshopt / KTX2 (Basis) compression",
903
+ "no",
904
+ "files that require them fail with a clear error; decoder hooks planned for 10.9"
905
+ ],
906
+ [
907
+ "sparse accessors, cameras, KHR_lights_punctual, texture transforms",
908
+ "no",
909
+ "ignored"
910
+ ],
911
+ [
912
+ "SSR / workers",
913
+ "partial",
914
+ "parseGlb / gltfToNode are pure; loadGltf decodes images with createImageBitmap"
915
+ ]
916
+ ],
917
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, createRenderer, Scene, Camera, frameNode } from 'motionary/runtime/gl';\nimport { formatGltf, loadGltf } from 'motionary/runtime/format-gltf';\nuse(gl, formatGltf);\nconst model = await loadGltf('/models/chair.glb');\nconst scene = new Scene().add(model), cam = new Camera();\nframeNode(cam, model);\nconst r = createRenderer(canvas); r.resize(); r.render(scene, cam);"
918
+ },
919
+ {
920
+ "kind": "runtime",
921
+ "id": "format-obj",
922
+ "label": "motionary/runtime/format-obj",
923
+ "title": "OBJ / MTL loader",
924
+ "summary": "Load Wavefront OBJ (+ MTL materials and diffuse textures) into motionary/runtime/gl nodes: polygons triangulated, groups, per-material meshes.",
925
+ "install": "npm i motionary",
926
+ "importPath": "motionary/runtime/format-obj",
927
+ "import": "import { use } from 'motionary/runtime';\nimport { formatObj } from 'motionary/runtime/format-obj';",
928
+ "register": "use(formatObj);",
929
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js\"></script>",
930
+ "cdnEsm": "https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.js",
931
+ "order": "Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).",
932
+ "docs": "docs/runtime/format-obj.md",
933
+ "budget": 3072,
934
+ "exports": [
935
+ "formatObj",
936
+ "loadObj",
937
+ "parseObj",
938
+ "parseMtl",
939
+ "objToNode",
940
+ "objMaterial"
941
+ ],
942
+ "compat": [
943
+ [
944
+ "v / vt / vn, faces with any vertex count (fan-triangulated), negative indices",
945
+ "yes",
946
+ ""
947
+ ],
948
+ [
949
+ "o / g groups, usemtl (one mesh per material), mtllib",
950
+ "yes",
951
+ ""
952
+ ],
953
+ [
954
+ "MTL Kd, Ks + Ns (→ roughness), Ke, d / Tr, map_Kd (options stripped)",
955
+ "yes",
956
+ ""
957
+ ],
958
+ [
959
+ "missing normals",
960
+ "yes",
961
+ "computed (flat)"
962
+ ],
963
+ [
964
+ "smoothing groups (s), lines (l), free-form curves / surfaces",
965
+ "no",
966
+ "ignored"
967
+ ],
968
+ [
969
+ "bump / normal / specular maps, PBR MTL extensions",
970
+ "no",
971
+ "ignored"
972
+ ],
973
+ [
974
+ "SSR / workers",
975
+ "partial",
976
+ "parsing is pure; loadObj fetches files and decodes textures with createImageBitmap"
977
+ ]
978
+ ],
979
+ "example": "import { use } from 'motionary/runtime';\nimport { gl, Scene } from 'motionary/runtime/gl';\nimport { formatObj, loadObj } from 'motionary/runtime/format-obj';\nuse(gl, formatObj);\nconst cube = await loadObj('/models/cube.obj'); // + cube.mtl + textures next to it\nnew Scene().add(cube);"
760
980
  }
761
981
  ],
762
982
  "components": [
@@ -3422,6 +3642,78 @@
3422
3642
  "prerequisites": null,
3423
3643
  "source": "src/components/widgets/gesture-sticker.ts"
3424
3644
  },
3645
+ {
3646
+ "id": "gl-scene",
3647
+ "tag": "usa-gl-scene",
3648
+ "title": "3D scene (glTF / OBJ)",
3649
+ "description": "10.5: a WebGL2 3D viewer on Motionary’s own renderer — glTF 2.0 / GLB and OBJ / MTL models or built-in shapes, PBR-style materials, orbit controls (drag, wheel, pinch, arrow keys), auto-rotate and video textures. Requires motionary/runtime/gl (+ format-gltf for .gltf / .glb, format-obj for .obj) — npm i motionary, then use(gl, formatGltf, formatObj) before it mounts. Alias: <usa-three-scene>.",
3650
+ "category": "ui",
3651
+ "since": "10.5",
3652
+ "keywords": [
3653
+ "3d",
3654
+ "webgl",
3655
+ "gltf",
3656
+ "glb",
3657
+ "obj",
3658
+ "model viewer",
3659
+ "runtime"
3660
+ ],
3661
+ "import": {
3662
+ "path": "motionary/components/widgets",
3663
+ "define": "defineGlScene",
3664
+ "register": "defineGlScene();"
3665
+ },
3666
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
3667
+ "attributes": [
3668
+ "src",
3669
+ "shape",
3670
+ "color",
3671
+ "metallic",
3672
+ "roughness",
3673
+ "background",
3674
+ "exposure",
3675
+ "controls",
3676
+ "auto-rotate",
3677
+ "video",
3678
+ "video-scrub",
3679
+ "label"
3680
+ ],
3681
+ "events": [
3682
+ "usa:error",
3683
+ "usa:load",
3684
+ "usa:runtime-missing"
3685
+ ],
3686
+ "slots": [],
3687
+ "methods": [
3688
+ "reload"
3689
+ ],
3690
+ "example": "<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>",
3691
+ "esm": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';\nimport { formatGltf } from 'motionary/runtime/format-gltf';\nimport { formatObj } from 'motionary/runtime/format-obj';\n\nuse(gl, formatGltf, formatObj);\nimport { defineGlScene } from 'motionary/components/widgets';\n\ndefineGlScene(); // registers <usa-gl-scene>\n\n/* then use it in your HTML:\n<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>\n*/",
3692
+ "requires": [
3693
+ "gl",
3694
+ "format-gltf",
3695
+ "format-obj"
3696
+ ],
3697
+ "prerequisites": {
3698
+ "badge": "Requires: motionary/runtime/gl + motionary/runtime/format-gltf + motionary/runtime/format-obj",
3699
+ "modules": [
3700
+ "motionary/runtime/gl",
3701
+ "motionary/runtime/format-gltf",
3702
+ "motionary/runtime/format-obj"
3703
+ ],
3704
+ "install": "npm i motionary",
3705
+ "importAndRegister": "import { use } from 'motionary/runtime';\nimport { gl } from 'motionary/runtime/gl';\nimport { formatGltf } from 'motionary/runtime/format-gltf';\nimport { formatObj } from 'motionary/runtime/format-obj';\nimport { defineGlScene } from 'motionary/components/widgets';\n\nuse(gl, formatGltf, formatObj);\ndefineGlScene(); // registers <usa-gl-scene> — after the prerequisites",
3706
+ "order": "Register the core first, then the module: use(gl) also registers the core. CDN: load runtime.iife.js, then runtime/gl.iife.js (it registers itself). Register the core first, then the module: use(formatGltf) also registers the core. CDN: load runtime.iife.js, then runtime/format-gltf.iife.js (it registers itself). Register the core first, then the module: use(formatObj) also registers the core. CDN: load runtime.iife.js, then runtime/format-obj.iife.js (it registers itself).",
3707
+ "cdn": "<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/gl.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-gltf.iife.js\"></script>\n<script src=\"https://cdn.jsdelivr.net/npm/motionary@10/dist/runtime/format-obj.iife.js\"></script>\n<!-- then the component bundles -->\n<script src=\"https://unpkg.com/motionary@10/dist/components.umd.js\"></script>\n<script src=\"https://unpkg.com/motionary@10/dist/widgets.umd.js\"></script>",
3708
+ "example": "<usa-gl-scene src=\"/models/chair.glb\" controls auto-rotate=\"20\" label=\"Chair\"></usa-gl-scene>",
3709
+ "docs": [
3710
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/gl.md",
3711
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-gltf.md",
3712
+ "https://github.com/HarrisonCN/Motionary/blob/main/docs/runtime/format-obj.md"
3713
+ ]
3714
+ },
3715
+ "source": "src/components/widgets/gl-scene.ts"
3716
+ },
3425
3717
  {
3426
3718
  "id": "glitch",
3427
3719
  "tag": "usa-glitch",
@@ -3492,6 +3784,47 @@
3492
3784
  "prerequisites": null,
3493
3785
  "source": "src/components/widgets/globe.ts"
3494
3786
  },
3787
+ {
3788
+ "id": "gpu-particles",
3789
+ "tag": "usa-gpu-particles",
3790
+ "title": "GPU particle canvas",
3791
+ "description": "10.5 (WebGPU effects 2.0): tens of thousands of particles simulated by a WebGPU compute shader and drawn as instanced quads — swirl, galaxy or fountain, pointer repulsion, trails; Canvas 2D fallback where WebGPU is missing.",
3792
+ "category": "ui",
3793
+ "since": "10.5",
3794
+ "keywords": [
3795
+ "webgpu",
3796
+ "compute shader",
3797
+ "particles",
3798
+ "gpu",
3799
+ "canvas"
3800
+ ],
3801
+ "import": {
3802
+ "path": "motionary/components/widgets",
3803
+ "define": "defineGpuParticles",
3804
+ "register": "defineGpuParticles();"
3805
+ },
3806
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
3807
+ "attributes": [
3808
+ "count",
3809
+ "mode",
3810
+ "colors",
3811
+ "size",
3812
+ "speed",
3813
+ "trail",
3814
+ "pointer",
3815
+ "label"
3816
+ ],
3817
+ "events": [
3818
+ "usa:backend"
3819
+ ],
3820
+ "slots": [],
3821
+ "methods": [],
3822
+ "example": "<usa-gpu-particles count=\"30000\" mode=\"galaxy\" colors=\"#818cf8,#f472b6\" pointer></usa-gpu-particles>",
3823
+ "esm": "import { defineGpuParticles } from 'motionary/components/widgets';\n\ndefineGpuParticles(); // registers <usa-gpu-particles>\n\n/* then use it in your HTML:\n<usa-gpu-particles count=\"30000\" mode=\"galaxy\" colors=\"#818cf8,#f472b6\" pointer></usa-gpu-particles>\n*/",
3824
+ "requires": [],
3825
+ "prerequisites": null,
3826
+ "source": "src/components/widgets/gpu-particles.ts"
3827
+ },
3495
3828
  {
3496
3829
  "id": "gradient-text",
3497
3830
  "tag": "usa-gradient-text",
@@ -6656,6 +6989,45 @@
6656
6989
  }
6657
6990
  ]
6658
6991
  },
6992
+ {
6993
+ "id": "shader-backdrop",
6994
+ "tag": "usa-shader-backdrop",
6995
+ "title": "Shader backdrop + post chain",
6996
+ "description": "10.5 (WebGPU effects 2.0): an animated shader background (aurora, plasma, waves, nebula or your own GLSL) run through a post-processing chain — bloom, vignette, grain, chromatic aberration, pixelate, scanlines — in any order; CSS gradient fallback.",
6997
+ "category": "ui",
6998
+ "since": "10.5",
6999
+ "keywords": [
7000
+ "shader",
7001
+ "background",
7002
+ "post-processing",
7003
+ "bloom",
7004
+ "glsl"
7005
+ ],
7006
+ "import": {
7007
+ "path": "motionary/components/widgets",
7008
+ "define": "defineShaderBackdrop",
7009
+ "register": "defineShaderBackdrop();"
7010
+ },
7011
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
7012
+ "attributes": [
7013
+ "preset",
7014
+ "post",
7015
+ "colors",
7016
+ "speed",
7017
+ "intensity",
7018
+ "label"
7019
+ ],
7020
+ "events": [
7021
+ "usa:backend"
7022
+ ],
7023
+ "slots": [],
7024
+ "methods": [],
7025
+ "example": "<usa-shader-backdrop preset=\"aurora\" post=\"bloom,vignette,grain\">\n <h1>Hello</h1>\n</usa-shader-backdrop>",
7026
+ "esm": "import { defineShaderBackdrop } from 'motionary/components/widgets';\n\ndefineShaderBackdrop(); // registers <usa-shader-backdrop>\n\n/* then use it in your HTML:\n<usa-shader-backdrop preset=\"aurora\" post=\"bloom,vignette,grain\">\n <h1>Hello</h1>\n</usa-shader-backdrop>\n*/",
7027
+ "requires": [],
7028
+ "prerequisites": null,
7029
+ "source": "src/components/widgets/shader-backdrop.ts"
7030
+ },
6659
7031
  {
6660
7032
  "id": "sheet",
6661
7033
  "tag": "usa-sheet",
@@ -7892,6 +8264,27 @@
7892
8264
  "prerequisites": null,
7893
8265
  "source": "src/components/widgets/theme-switcher.ts"
7894
8266
  },
8267
+ {
8268
+ "id": "three-scene",
8269
+ "tag": "usa-three-scene",
8270
+ "title": "<usa-three-scene>",
8271
+ "description": "`<usa-three-scene>` — alias of `<usa-gl-scene>` (same attributes, events and methods; no Three.js involved).",
8272
+ "category": "widgets",
8273
+ "import": {
8274
+ "path": "motionary/components/widgets",
8275
+ "define": "defineThreeScene",
8276
+ "register": "defineThreeScene();"
8277
+ },
8278
+ "cdn": "https://unpkg.com/motionary@10/dist/widgets.umd.js",
8279
+ "attributes": [],
8280
+ "events": [],
8281
+ "slots": [],
8282
+ "methods": [],
8283
+ "example": "<usa-three-scene></usa-three-scene>",
8284
+ "requires": [],
8285
+ "prerequisites": null,
8286
+ "source": "src/components/widgets/gl-scene.ts"
8287
+ },
7895
8288
  {
7896
8289
  "id": "tilt",
7897
8290
  "tag": "usa-tilt",
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-tzwKkldE.cjs');
4
- var animImage = require('../chunks/anim-image-blQgPFFS.cjs');
5
- require('../chunks/tween-CwLLC3Ko.cjs');
6
- require('../chunks/ticker-Un0bvTWR.cjs');
3
+ var registry = require('../chunks/registry-VhfPSI0v.cjs');
4
+ var animImage = require('../chunks/anim-image-DuxvYhq6.cjs');
5
+ require('../chunks/tween-_BGIl6hK.cjs');
6
+ require('../chunks/ticker-DvmC6WLS.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-CT-TT_bx.js';
2
- import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-DDdb9q3X.js';
3
- import '../chunks/tween-BcejKpsx.js';
4
- import '../chunks/ticker-C8lSGml9.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DXdFb2fJ.js';
2
+ import { a as animatedImagePlayer, b as browserDecode, c as composeFrames, d as bytesOf, u as u8, f as fixDelay, e as crc32 } from '../chunks/anim-image-BlNPv4JG.js';
3
+ import '../chunks/tween-CPtm-EdT.js';
4
+ import '../chunks/ticker-C5RMHMW7.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-tzwKkldE.cjs');
4
- var keyframes = require('../chunks/keyframes-tC3I7anQ.cjs');
5
- require('../chunks/tween-CwLLC3Ko.cjs');
6
- require('../chunks/ticker-Un0bvTWR.cjs');
3
+ var registry = require('../chunks/registry-VhfPSI0v.cjs');
4
+ var keyframes = require('../chunks/keyframes-Ce1s05n3.cjs');
5
+ require('../chunks/tween-_BGIl6hK.cjs');
6
+ require('../chunks/ticker-DvmC6WLS.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-CT-TT_bx.js';
2
- import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-B5PWe5bU.js';
3
- import '../chunks/tween-BcejKpsx.js';
4
- import '../chunks/ticker-C8lSGml9.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DXdFb2fJ.js';
2
+ import { f as framesToTimeline, d as distributeOffsets, c as camelProp } from '../chunks/keyframes-B8ITIAVa.js';
3
+ import '../chunks/tween-CPtm-EdT.js';
4
+ import '../chunks/ticker-C5RMHMW7.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- var registry = require('../chunks/registry-tzwKkldE.cjs');
4
- var animImage = require('../chunks/anim-image-blQgPFFS.cjs');
5
- require('../chunks/tween-CwLLC3Ko.cjs');
6
- require('../chunks/ticker-Un0bvTWR.cjs');
3
+ var registry = require('../chunks/registry-VhfPSI0v.cjs');
4
+ var animImage = require('../chunks/anim-image-DuxvYhq6.cjs');
5
+ require('../chunks/tween-_BGIl6hK.cjs');
6
+ require('../chunks/ticker-DvmC6WLS.cjs');
7
7
  require('../chunks/ease-HwYZnZat.cjs');
8
8
 
9
9
  /**
@@ -1,7 +1,7 @@
1
- import { R as RUNTIME_VERSION } from '../chunks/registry-CT-TT_bx.js';
2
- import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-DDdb9q3X.js';
3
- import '../chunks/tween-BcejKpsx.js';
4
- import '../chunks/ticker-C8lSGml9.js';
1
+ import { R as RUNTIME_VERSION } from '../chunks/registry-DXdFb2fJ.js';
2
+ import { a as animatedImagePlayer, u as u8, c as composeFrames, d as bytesOf, f as fixDelay } from '../chunks/anim-image-BlNPv4JG.js';
3
+ import '../chunks/tween-CPtm-EdT.js';
4
+ import '../chunks/ticker-C5RMHMW7.js';
5
5
  import '../chunks/ease-XN8_0sXu.js';
6
6
 
7
7
  /**