@supersoniks/concorde 4.9.98-visual-stack.0 → 4.9.98-visual-stack.2
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/.gitlab-ci.yml +0 -13
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +201 -152
- package/concorde-3d.es.js +14688 -13906
- package/concorde-core.bundle.js +557 -622
- package/concorde-core.es.js +6025 -5575
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-interactive.bundle.js +1162 -0
- package/concorde-interactive.es.js +10723 -0
- package/concorde-shader.bundle.js +31 -20
- package/concorde-shader.es.js +2773 -2547
- package/concorde-webgpu.bundle.js +43 -32
- package/concorde-webgpu.es.js +1819 -1553
- package/dist/concorde-3d.bundle.js +201 -152
- package/dist/concorde-3d.es.js +14688 -13906
- package/dist/concorde-core.bundle.js +557 -622
- package/dist/concorde-core.es.js +6025 -5575
- package/dist/concorde-hugging-face-infer.bundle.js +1 -1
- package/dist/concorde-hugging-face-infer.es.js +1 -1
- package/dist/concorde-interactive.bundle.js +1162 -0
- package/dist/concorde-interactive.es.js +10723 -0
- package/dist/concorde-shader.bundle.js +31 -20
- package/dist/concorde-shader.es.js +2773 -2547
- package/dist/concorde-webgpu.bundle.js +43 -32
- package/dist/concorde-webgpu.es.js +1819 -1553
- package/dist/docs-mock-api-sw.js +5 -1
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/dist/js/addons/interactive.js +6 -0
- package/dist/js/addons/interactive.js.map +1 -0
- package/dist/js/core/components/functional/3d/3d.js +90 -2
- package/dist/js/core/components/functional/3d/3d.js.map +1 -1
- package/dist/js/core/components/functional/3d/constants.js +1 -0
- package/dist/js/core/components/functional/3d/constants.js.map +1 -1
- package/dist/js/core/components/functional/3d/ensure.js +6 -3
- package/dist/js/core/components/functional/3d/ensure.js.map +1 -1
- package/dist/js/core/components/functional/3d/form-params.js +2 -0
- package/dist/js/core/components/functional/3d/form-params.js.map +1 -1
- package/dist/js/core/components/functional/3d/life.js +2 -1
- package/dist/js/core/components/functional/3d/life.js.map +1 -1
- package/dist/js/core/components/functional/3d/out-publish.js +3 -2
- package/dist/js/core/components/functional/3d/out-publish.js.map +1 -1
- package/dist/js/core/components/functional/3d/playback.js +6 -1
- package/dist/js/core/components/functional/3d/playback.js.map +1 -1
- package/dist/js/core/components/functional/3d/post-bind.js +207 -0
- package/dist/js/core/components/functional/3d/post-bind.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-channels.js +39 -0
- package/dist/js/core/components/functional/3d/post-channels.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-fx.js +495 -0
- package/dist/js/core/components/functional/3d/post-fx.js.map +1 -0
- package/dist/js/core/components/functional/3d/props.js +142 -0
- package/dist/js/core/components/functional/3d/props.js.map +1 -1
- package/dist/js/core/components/functional/3d/reload.js +2 -0
- package/dist/js/core/components/functional/3d/reload.js.map +1 -1
- package/dist/js/core/components/functional/3d/runtime.js +80 -3
- package/dist/js/core/components/functional/3d/runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/tune.js +21 -0
- package/dist/js/core/components/functional/3d/tune.js.map +1 -1
- package/dist/js/core/components/functional/3d/updated.js +13 -1
- package/dist/js/core/components/functional/3d/updated.js.map +1 -1
- package/dist/js/core/components/functional/if/if.js +65 -7
- package/dist/js/core/components/functional/if/if.js.map +1 -1
- package/dist/js/core/components/functional/interactive/action.js +96 -0
- package/dist/js/core/components/functional/interactive/action.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
- package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gesture.js +148 -0
- package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
- package/dist/js/core/components/functional/interactive/helpers.js +82 -0
- package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
- package/dist/js/core/components/functional/interactive/index.js +20 -0
- package/dist/js/core/components/functional/interactive/index.js.map +1 -0
- package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
- package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
- package/dist/js/core/components/functional/interactive/matrix.js +201 -0
- package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
- package/dist/js/core/components/functional/interactive/registry.js +28 -0
- package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
- package/dist/js/core/components/functional/interactive/store.js +264 -0
- package/dist/js/core/components/functional/interactive/store.js.map +1 -0
- package/dist/js/core/components/functional/interactive/ticker.js +182 -0
- package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
- package/dist/js/core/components/functional/shader/gl-runtime.js +128 -14
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -1
- package/dist/js/core/components/functional/shader/shader.js +154 -57
- package/dist/js/core/components/functional/shader/shader.js.map +1 -1
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +39 -5
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -1
- package/dist/js/core/components/functional/shader/types.js +58 -7
- package/dist/js/core/components/functional/shader/types.js.map +1 -1
- package/dist/js/core/components/functional/value/value.js +49 -4
- package/dist/js/core/components/functional/value/value.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/gl-fallback.js +27 -6
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +115 -13
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/helpers.js +8 -2
- package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js +34 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js.map +1 -1
- package/dist/js/core/components/ui/_css/rounded.js +34 -0
- package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +44 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -1
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +72 -87
- package/dist/js/core/components/ui/alert/alert.js.map +1 -1
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
- package/dist/js/core/components/ui/badge/badge.js +29 -80
- package/dist/js/core/components/ui/badge/badge.js.map +1 -1
- package/dist/js/core/components/ui/button/button.js +8 -7
- package/dist/js/core/components/ui/button/button.js.map +1 -1
- package/dist/js/core/components/ui/card/card-header.js +7 -2
- package/dist/js/core/components/ui/card/card-header.js.map +1 -1
- package/dist/js/core/components/ui/divider/divider.js +1 -1
- package/dist/js/core/components/ui/divider/divider.js.map +1 -1
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
- package/dist/js/core/components/ui/form/input/input.js +12 -15
- package/dist/js/core/components/ui/form/input/input.js.map +1 -1
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
- package/dist/js/core/components/ui/form/radio/radio.js +1 -1
- package/dist/js/core/components/ui/form/select/select.js +3 -6
- package/dist/js/core/components/ui/form/select/select.js.map +1 -1
- package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
- package/dist/js/core/components/ui/image/image.js +9 -37
- package/dist/js/core/components/ui/image/image.js.map +1 -1
- package/dist/js/core/components/ui/link/link.js +25 -26
- package/dist/js/core/components/ui/link/link.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal-close.js +3 -12
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal.js +18 -18
- package/dist/js/core/components/ui/modal/modal.js.map +1 -1
- package/dist/js/core/components/ui/pop/pop.js +131 -112
- package/dist/js/core/components/ui/pop/pop.js.map +1 -1
- package/dist/js/core/components/ui/table/table.js.map +1 -1
- package/dist/js/core/components/ui/theme/theme.js +1 -1
- package/dist/js/core/components/ui/toast/dismissed.js +9 -0
- package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
- package/dist/js/core/components/ui/toast/render-content.js +14 -0
- package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +150 -96
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
- package/dist/js/core/components/ui/toast/toast.js +41 -13
- package/dist/js/core/components/ui/toast/toast.js.map +1 -1
- package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
- package/dist/js/core/decorators/subscriber/derive.js +3 -1
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
- package/dist/js/core/mixins/Fetcher.js.map +1 -1
- package/dist/js/core/mixins/FormCheckable.js +1 -8
- package/dist/js/core/mixins/FormCheckable.js.map +1 -1
- package/dist/js/core/mixins/FormElement.js +26 -53
- package/dist/js/core/mixins/FormElement.js.map +1 -1
- package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
- package/dist/js/core/utils/LocationHandler.js +1 -1
- package/dist/js/core/utils/LocationHandler.js.map +1 -1
- package/dist/js/core/utils/dismissed.js +23 -0
- package/dist/js/core/utils/dismissed.js.map +1 -0
- package/dist/js/core/utils/mediaRef.js +37 -0
- package/dist/js/core/utils/mediaRef.js.map +1 -1
- package/dist/js/core/utils/positioning.js +110 -0
- package/dist/js/core/utils/positioning.js.map +1 -0
- package/dist/js/directives.js +1 -2
- package/dist/js/directives.js.map +1 -1
- package/dist/types/addons/interactive.d.ts +6 -0
- package/dist/types/addons/interactive.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/3d.d.ts +26 -3
- package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/ensure.d.ts +3 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/life.d.ts +2 -0
- package/dist/types/core/components/functional/3d/life.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/out-publish.d.ts +1 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/playback.d.ts +9 -0
- package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/post-bind.d.ts +52 -0
- package/dist/types/core/components/functional/3d/post-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts +40 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts +73 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/props.d.ts +42 -0
- package/dist/types/core/components/functional/3d/props.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts +16 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/tune.d.ts +5 -0
- package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/types.d.ts +9 -0
- package/dist/types/core/components/functional/3d/types.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -1
- package/dist/types/core/components/functional/if/if.d.ts +14 -5
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
- package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
- package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
- package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
- package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts +33 -1
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shader.d.ts +28 -7
- package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +16 -2
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/types.d.ts +29 -5
- package/dist/types/core/components/functional/shader/types.d.ts.map +1 -1
- package/dist/types/core/components/functional/value/value.d.ts +6 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts +4 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +14 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +1 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +7 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts.map +1 -1
- package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
- package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +13 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/types/core/components/ui/button/button.d.ts +13 -29
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
- package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
- package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
- package/dist/types/core/components/ui/image/image.d.ts +2 -1
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
- package/dist/types/core/components/ui/link/link.d.ts +10 -9
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
- package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
- package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
- package/dist/types/core/components/ui/table/table.d.ts +2 -1
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
- package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/types.d.ts +12 -2
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
- package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
- package/dist/types/core/mixins/FormElement.d.ts +21 -10
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
- package/dist/types/core/mixins/FormInput.d.ts +11 -27
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
- package/dist/types/core/utils/LocationHandler.d.ts +3 -2
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
- package/dist/types/core/utils/dismissed.d.ts +3 -0
- package/dist/types/core/utils/dismissed.d.ts.map +1 -0
- package/dist/types/core/utils/mediaRef.d.ts +15 -0
- package/dist/types/core/utils/mediaRef.d.ts.map +1 -1
- package/dist/types/core/utils/positioning.d.ts +44 -0
- package/dist/types/core/utils/positioning.d.ts.map +1 -0
- package/dist/types/directives.d.ts +1 -3
- package/dist/types/directives.d.ts.map +1 -1
- package/dist/types/mixins.d.ts +22 -55
- package/dist/types/mixins.d.ts.map +1 -1
- package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
- package/docs/crawl/hubs/form-components.html +13 -11
- package/docs/docs-mock-api-sw.js +5 -1
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +2 -2
- package/docs/llms-full.txt +12 -38
- package/docs/llms.txt +1 -1
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/docs/src/docs/_getting-started/create-a-component.md +0 -0
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
- package/docs/src/docs/search/docs-search.json +195 -200
- package/docs/src/tsconfig.json +324 -0
- package/gitlab/job_tests.sh +25 -12
- package/index.html +3 -3
- package/package.json +217 -9
- package/public/docs-mock-api-sw.js +5 -1
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/build-addons.mjs +2 -2
- package/scripts/post-build.mjs +9 -0
- package/src/addons/interactive.ts +5 -0
- package/src/core/components/functional/3d/3d.md +34 -1
- package/src/core/components/functional/3d/3d.spec.ts +42 -0
- package/src/core/components/functional/3d/3d.ts +101 -3
- package/src/core/components/functional/3d/constants.ts +1 -0
- package/src/core/components/functional/3d/ensure.ts +11 -3
- package/src/core/components/functional/3d/form-params.ts +2 -0
- package/src/core/components/functional/3d/life.ts +4 -1
- package/src/core/components/functional/3d/out-publish.ts +4 -3
- package/src/core/components/functional/3d/playback.ts +13 -1
- package/src/core/components/functional/3d/post-bind.ts +262 -0
- package/src/core/components/functional/3d/post-channels.spec.ts +36 -0
- package/src/core/components/functional/3d/post-channels.ts +69 -0
- package/src/core/components/functional/3d/post-fx.ts +594 -0
- package/src/core/components/functional/3d/props.ts +45 -0
- package/src/core/components/functional/3d/reload.ts +2 -0
- package/src/core/components/functional/3d/runtime.ts +93 -4
- package/src/core/components/functional/3d/scene-runtime.ts +3 -0
- package/src/core/components/functional/3d/tune.ts +21 -0
- package/src/core/components/functional/3d/types.ts +9 -0
- package/src/core/components/functional/3d/updated.ts +17 -1
- package/src/core/components/functional/if/if.ts +54 -7
- package/src/core/components/functional/interactive/action.ts +84 -0
- package/src/core/components/functional/interactive/gamepad.ts +197 -0
- package/src/core/components/functional/interactive/gesture.ts +136 -0
- package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
- package/src/core/components/functional/interactive/helpers.ts +97 -0
- package/src/core/components/functional/interactive/index.ts +25 -0
- package/src/core/components/functional/interactive/interactive.md +33 -0
- package/src/core/components/functional/interactive/keyboard.ts +171 -0
- package/src/core/components/functional/interactive/matrix.ts +185 -0
- package/src/core/components/functional/interactive/registry.ts +46 -0
- package/src/core/components/functional/interactive/store.ts +264 -0
- package/src/core/components/functional/interactive/ticker.ts +171 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/shader/gl-runtime.ts +169 -12
- package/src/core/components/functional/shader/shader.md +27 -4
- package/src/core/components/functional/shader/shader.spec.ts +267 -0
- package/src/core/components/functional/shader/shader.ts +177 -55
- package/src/core/components/functional/shader/shadertoy-prelude.ts +49 -5
- package/src/core/components/functional/shader/types.ts +89 -12
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +44 -4
- package/src/core/components/functional/webgpu/gl-fallback.ts +28 -4
- package/src/core/components/functional/webgpu/gpu-runtime.ts +154 -18
- package/src/core/components/functional/webgpu/helpers.ts +8 -2
- package/src/core/components/functional/webgpu/webgpu.md +13 -2
- package/src/core/components/functional/webgpu/webgpu.spec.ts +37 -0
- package/src/core/components/functional/webgpu/webgpu.ts +39 -1
- package/src/core/components/ui/_css/rounded.ts +36 -0
- package/src/core/components/ui/_css/type.ts +49 -0
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
- package/src/core/components/ui/alert/alert.md +128 -72
- package/src/core/components/ui/alert/alert.spec.ts +145 -0
- package/src/core/components/ui/alert/alert.ts +86 -91
- package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
- package/src/core/components/ui/badge/badge.md +126 -78
- package/src/core/components/ui/badge/badge.ts +29 -81
- package/src/core/components/ui/button/button.md +1 -0
- package/src/core/components/ui/button/button.ts +12 -10
- package/src/core/components/ui/card/card-header.ts +7 -2
- package/src/core/components/ui/card/card.md +120 -65
- package/src/core/components/ui/divider/divider.ts +4 -9
- package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
- package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
- package/src/core/components/ui/form/fieldset/legend.ts +1 -1
- package/src/core/components/ui/form/input/input.md +1 -1
- package/src/core/components/ui/form/input/input.ts +25 -27
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
- package/src/core/components/ui/form/radio/radio.ts +1 -1
- package/src/core/components/ui/form/select/select.ts +3 -6
- package/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/src/core/components/ui/form/textarea/textarea.ts +1 -2
- package/src/core/components/ui/image/image.md +147 -53
- package/src/core/components/ui/image/image.ts +10 -44
- package/src/core/components/ui/link/link.md +2 -2
- package/src/core/components/ui/link/link.ts +42 -37
- package/src/core/components/ui/modal/modal-close.ts +8 -12
- package/src/core/components/ui/modal/modal.ts +18 -18
- package/src/core/components/ui/pop/pop.md +105 -1
- package/src/core/components/ui/pop/pop.ts +145 -141
- package/src/core/components/ui/table/table.ts +2 -8
- package/src/core/components/ui/theme/theme.ts +1 -1
- package/src/core/components/ui/toast/dismissed.ts +14 -0
- package/src/core/components/ui/toast/render-content.ts +13 -0
- package/src/core/components/ui/toast/toast-item.ts +179 -103
- package/src/core/components/ui/toast/toast.ts +58 -21
- package/src/core/components/ui/toast/types.ts +14 -2
- package/src/core/components/ui/tooltip/tooltip.ts +176 -154
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/decorators/subscriber/derive.ts +3 -3
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/mixins/FormCheckable.ts +1 -8
- package/src/core/mixins/FormElement.ts +74 -76
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/LocationHandler.ts +12 -5
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/dismissed.ts +22 -0
- package/src/core/utils/mediaRef.spec.ts +25 -0
- package/src/core/utils/mediaRef.ts +45 -0
- package/src/core/utils/positioning.spec.ts +208 -0
- package/src/core/utils/positioning.ts +183 -0
- package/src/directives.ts +1 -3
- package/src/docs/_core-concept/dataFlow.md +1 -1
- package/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/concorde-outside.md +3 -3
- package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/src/docs/_misc/html-integration.md +2 -0
- package/src/docs/_misc/visual-stack.md +19 -1
- package/src/docs/code.ts +3 -1
- package/src/docs/components/docs-demo-sources.ts +88 -0
- package/src/docs/docs.ts +3 -0
- package/src/docs/example/docs-3d-post-depth-demo.ts +68 -0
- package/src/docs/example/docs-3d-webgpu-live-demo.ts +83 -0
- package/src/docs/example/docs-harris-webgpu-demo.ts +53 -55
- package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
- package/src/docs/mock-api/router.ts +17 -1
- package/src/docs/navigation/navigation.ts +4 -0
- package/src/docs/search/docs-search.json +922 -1762
- package/src/docs/tailwind/css/tailwind.css +13 -6
- package/src/tsconfig.json +162 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +50 -3
- package/vite/config.js +23 -35
- package/vite.config.mts +5 -0
- package/vitest.setup.ts +49 -13
- package/docs/assets/index-BZiZXMU-.css +0 -1
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import HTML from "./HTML";
|
|
2
|
+
const SIDES = ["top", "right", "bottom", "left"];
|
|
3
|
+
const ALIGNS = ["start", "center", "end"];
|
|
4
|
+
/** Découpe `"côté-alignement"` ; une valeur inconnue retombe sur le défaut. */
|
|
5
|
+
export function parsePlacement(placement, defaultSide, defaultAlign) {
|
|
6
|
+
const [side, align] = (placement ?? "").split("-");
|
|
7
|
+
return {
|
|
8
|
+
side: SIDES.includes(side) ? side : defaultSide,
|
|
9
|
+
align: ALIGNS.includes(align) ? align : defaultAlign,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export const supportsPopover = "popover" in HTMLElement.prototype;
|
|
13
|
+
const OPPOSITE_SIDE = {
|
|
14
|
+
top: "bottom",
|
|
15
|
+
bottom: "top",
|
|
16
|
+
left: "right",
|
|
17
|
+
right: "left",
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* Zone dans laquelle un élément flottant doit rester visible :
|
|
21
|
+
* le viewport, restreint par le premier ancêtre qui scrolle ou clippe `node`.
|
|
22
|
+
*/
|
|
23
|
+
export function getFloatingBounds(node, padding = 0) {
|
|
24
|
+
const clipRect = HTML.getScrollableAncestor(node)?.getBoundingClientRect();
|
|
25
|
+
// `||` et non `??` : un bord à 0 (ancêtre non rendu) retombe sur le viewport, comme historiquement dans sonic-pop.
|
|
26
|
+
return {
|
|
27
|
+
minX: Math.max(0, clipRect?.left || 0) + padding,
|
|
28
|
+
minY: Math.max(0, clipRect?.top || 0) + padding,
|
|
29
|
+
maxX: Math.min(window.innerWidth, clipRect?.right || window.innerWidth) -
|
|
30
|
+
padding,
|
|
31
|
+
maxY: Math.min(window.innerHeight, clipRect?.bottom || window.innerHeight) -
|
|
32
|
+
padding,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function alignOnAxis(start, length, floatingLength, align) {
|
|
36
|
+
if (align === "start")
|
|
37
|
+
return start;
|
|
38
|
+
if (align === "end")
|
|
39
|
+
return start + length - floatingLength;
|
|
40
|
+
return start + (length - floatingLength) / 2;
|
|
41
|
+
}
|
|
42
|
+
function placeOnSide(anchor, floating, side, align, gap) {
|
|
43
|
+
switch (side) {
|
|
44
|
+
case "top":
|
|
45
|
+
return {
|
|
46
|
+
x: alignOnAxis(anchor.left, anchor.width, floating.width, align),
|
|
47
|
+
y: anchor.top - floating.height - gap,
|
|
48
|
+
};
|
|
49
|
+
case "bottom":
|
|
50
|
+
return {
|
|
51
|
+
x: alignOnAxis(anchor.left, anchor.width, floating.width, align),
|
|
52
|
+
y: anchor.bottom + gap,
|
|
53
|
+
};
|
|
54
|
+
case "left":
|
|
55
|
+
return {
|
|
56
|
+
x: anchor.left - floating.width - gap,
|
|
57
|
+
y: alignOnAxis(anchor.top, anchor.height, floating.height, align),
|
|
58
|
+
};
|
|
59
|
+
case "right":
|
|
60
|
+
return {
|
|
61
|
+
x: anchor.right + gap,
|
|
62
|
+
y: alignOnAxis(anchor.top, anchor.height, floating.height, align),
|
|
63
|
+
};
|
|
64
|
+
default:
|
|
65
|
+
return { x: anchor.left, y: anchor.top };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function overflowsSide(position, floating, side, bounds) {
|
|
69
|
+
switch (side) {
|
|
70
|
+
case "top":
|
|
71
|
+
return position.y < bounds.minY;
|
|
72
|
+
case "bottom":
|
|
73
|
+
return position.y + floating.height > bounds.maxY;
|
|
74
|
+
case "left":
|
|
75
|
+
return position.x < bounds.minX;
|
|
76
|
+
case "right":
|
|
77
|
+
return position.x + floating.width > bounds.maxX;
|
|
78
|
+
default:
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Position (coordonnées viewport) d'un élément flottant accolé à `anchor` :
|
|
84
|
+
* bascule sur le côté opposé s'il déborde, puis le contraint dans `bounds`.
|
|
85
|
+
* S'il est plus grand que `bounds`, c'est le bord bas / droit qui l'emporte.
|
|
86
|
+
*/
|
|
87
|
+
export function computeFloatingPosition({ anchor, floating, side, align = "center", gap = 0, bounds, }) {
|
|
88
|
+
let placedSide = side;
|
|
89
|
+
let position = placeOnSide(anchor, floating, placedSide, align, gap);
|
|
90
|
+
if (overflowsSide(position, floating, placedSide, bounds)) {
|
|
91
|
+
placedSide = OPPOSITE_SIDE[placedSide];
|
|
92
|
+
position = placeOnSide(anchor, floating, placedSide, align, gap);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
side: placedSide,
|
|
96
|
+
x: Math.min(Math.max(position.x, bounds.minX), bounds.maxX - floating.width),
|
|
97
|
+
y: Math.min(Math.max(position.y, bounds.minY), bounds.maxY - floating.height),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/** Appelle `callback` à chaque frame ; renvoie la fonction d'arrêt. */
|
|
101
|
+
export function startFrameLoop(callback) {
|
|
102
|
+
let frame = 0;
|
|
103
|
+
const tick = () => {
|
|
104
|
+
callback();
|
|
105
|
+
frame = requestAnimationFrame(tick);
|
|
106
|
+
};
|
|
107
|
+
tick();
|
|
108
|
+
return () => cancelAnimationFrame(frame);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=positioning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positioning.js","sourceRoot":"","sources":["../../../../src/core/utils/positioning.ts"],"names":[],"mappings":"AAAA,OAAO,IAA8B,MAAM,QAAQ,CAAC;AAQpD,MAAM,KAAK,GAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE7D,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAC5B,SAA6B,EAC7B,WAAyB,EACzB,YAA2B;IAE3B,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,IAAqB,CAAC,CAAC,CAAC,WAAW;QACjE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAuB,CAAC,CAAC,CAAC,YAAY;KACxE,CAAC;AACJ,CAAC;AAYD,MAAM,CAAC,MAAM,eAA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uEAAuE;AACvE,MAAM,UAAU,cAAc,CAAC,QAAoB;IACjD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,IAAI,GAAG,GAAG,EAAE;QAChB,QAAQ,EAAE,CAAC;QACX,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC;IACF,IAAI,EAAE,CAAC;IACP,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC"}
|
package/dist/js/directives.js
CHANGED
|
@@ -8,8 +8,7 @@ export const dp = pubDp;
|
|
|
8
8
|
* @deprecated @see pubDataProvider
|
|
9
9
|
*/
|
|
10
10
|
export const dataProvider = pubDataProvider;
|
|
11
|
-
export
|
|
12
|
-
export const sub = directives.sub;
|
|
11
|
+
export { subscribe, sub } from "@supersoniks/concorde/core/directives/DataProvider";
|
|
13
12
|
/**
|
|
14
13
|
* @deprecated @see pubGet
|
|
15
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.js","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"directives.js","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;AAG3I;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC;AACxB;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEpF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC;AAI1B,MAAM,CAAC,mCAAmC,CAAC,GAAG,MAAM,CAAC,mCAAmC,CAAC,IAAI,EAAE,CAAC;AAChG,MAAM,CAAC,mCAAmC,CAAC,GAAG;IAC5C,EAAE,EAAE,KAAK;IACT,YAAY,EAAE,eAAe;IAC7B,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,SAAS,EAAE,UAAU,CAAC,SAAS;IAC/B,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;CACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../../../src/addons/interactive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,iDAAiD,CAAC"}
|
|
@@ -9,7 +9,7 @@ import type { SceneRuntime } from "./scene-runtime";
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class Sonic3d extends Sonic3dProps {
|
|
11
11
|
static styles: import("lit").CSSResult;
|
|
12
|
-
|
|
12
|
+
errorMessage: string;
|
|
13
13
|
/** État runtime partagé avec les helpers (lu ici pour noUnusedLocals). */
|
|
14
14
|
runtime: SceneRuntime | null;
|
|
15
15
|
raf: number;
|
|
@@ -35,7 +35,17 @@ export declare class Sonic3d extends Sonic3dProps {
|
|
|
35
35
|
snapshotSeq: number;
|
|
36
36
|
/** Contrat SonicFrameSource — incrémenté après chaque render. */
|
|
37
37
|
frameSeq: number;
|
|
38
|
+
lastDrawAt: number;
|
|
38
39
|
lastFormOrbit: FormOrbit | null;
|
|
40
|
+
/** Consommateurs live (`registerFrameConsumer`). */
|
|
41
|
+
private frameConsumers;
|
|
42
|
+
/** 1 si caméra en mouvement, 0 sinon (publié en out). */
|
|
43
|
+
moving: number;
|
|
44
|
+
private stillFrames;
|
|
45
|
+
private lastMotionYaw;
|
|
46
|
+
private lastMotionPitch;
|
|
47
|
+
private lastMotionDist;
|
|
48
|
+
get frameConsumerCount(): number;
|
|
39
49
|
onFormMutation: () => void;
|
|
40
50
|
connectedCallback(): void;
|
|
41
51
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject | null, options?: boolean | AddEventListenerOptions): void;
|
|
@@ -48,6 +58,18 @@ export declare class Sonic3d extends Sonic3dProps {
|
|
|
48
58
|
bindOutPublisher: () => void;
|
|
49
59
|
private loop;
|
|
50
60
|
private drawFrame;
|
|
61
|
+
/**
|
|
62
|
+
* Enregistre un consommateur live (`sonic-shader` / `sonic-webgpu` via `#id`).
|
|
63
|
+
* Garde le RAF hors viewport tant qu’il reste au moins un token.
|
|
64
|
+
*/
|
|
65
|
+
registerFrameConsumer(token?: object): void;
|
|
66
|
+
unregisterFrameConsumer(token?: object): void;
|
|
67
|
+
/**
|
|
68
|
+
* Coupe `autoRotate` + inertie OrbitControls.
|
|
69
|
+
* Émet `rest` si la caméra était en mouvement.
|
|
70
|
+
*/
|
|
71
|
+
stopMotion(): void;
|
|
72
|
+
private trackMotion;
|
|
51
73
|
/** Contrat SonicFrameSource — canvas Three (preserveDrawingBuffer). */
|
|
52
74
|
getFrameCanvas(): HTMLCanvasElement | null;
|
|
53
75
|
onPointerMove: (e: PointerEvent) => void;
|
|
@@ -59,8 +81,9 @@ export declare class Sonic3d extends Sonic3dProps {
|
|
|
59
81
|
}
|
|
60
82
|
export { Sonic3dCameraMode } from "./constants";
|
|
61
83
|
export type { Sonic3dAsset, Sonic3dConfig, Sonic3dOutput, } from "./types";
|
|
62
|
-
export type { SonicMediaRef, SonicFrameSource } from "@supersoniks/concorde/core/utils/mediaRef";
|
|
63
|
-
export { toMediaUrl, cloneMediaRef, isFrameSource, } from "@supersoniks/concorde/core/utils/mediaRef";
|
|
84
|
+
export type { SonicMediaRef, SonicFrameSource, SonicFrameConsumerHost } from "@supersoniks/concorde/core/utils/mediaRef";
|
|
85
|
+
export { toMediaUrl, cloneMediaRef, isFrameSource, isFrameConsumerHost, FrameConsumerRegistry, } from "@supersoniks/concorde/core/utils/mediaRef";
|
|
86
|
+
export { wantsOffscreenPlay } from "./playback";
|
|
64
87
|
export { frameCapture } from "./frame-capture";
|
|
65
88
|
export { frameSource } from "./frame-source";
|
|
66
89
|
declare global {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"3d.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/3d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"3d.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/3d.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAY,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAIvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAGvC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAOpD;;;GAGG;AACH,qBACa,OAAQ,SAAQ,YAAY;IACvC,MAAM,CAAC,MAAM,0BAAiB;IAErB,YAAY,SAAM;IAE3B,0EAA0E;IAC1E,OAAO,EAAE,YAAY,GAAG,IAAI,CAAQ;IACpC,GAAG,SAAK;IACR,SAAS,SAAK;IACd,KAAK,SAAK;IACV,QAAQ,UAAS;IACjB,QAAQ,SAAO;IACf,QAAQ,SAAO;IACf,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAQ;IAChC,iBAAiB,SAAK;IACtB,MAAM,UAAQ;IACd,KAAK,UAAS;IACd,SAAS,UAAS;IAClB,SAAS,SAAK;IACd,cAAc,EA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AS;IAajB;;;OAGG;IACH,qBAAqB,CAAC,KAAK,GAAE,MAAW;IAKxC,uBAAuB,CAAC,KAAK,GAAE,MAAW;IAK1C;;;OAGG;IACH,UAAU;IAiBV,OAAO,CAAC,WAAW;IAsCnB,uEAAuE;IACvE,cAAc,IAAI,iBAAiB,GAAG,IAAI;IAK1C,aAAa,GAAI,GAAG,YAAY,UAAsC;IACtE,aAAa,GAAI,GAAG,YAAY,UAAsC;IACtE,UAAU,aAA2C;IACrD,cAAc,aAAwC;IACtD,cAAc,aAAwC;IAEtD,MAAM;CAQP;AAED,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,YAAY,EACV,YAAY,EACZ,aAAa,EACb,aAAa,GACd,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,aAAa,EAAE,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACzH,OAAO,EACL,UAAU,EACV,aAAa,EACb,aAAa,EACb,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,OAAO,CAAC;KACrB;CACF"}
|
|
@@ -38,6 +38,6 @@ export declare const FORM_INPUT_ONLY_KEYS: readonly ["src", "asset", "camera", "
|
|
|
38
38
|
* yaw / pitch / distance exclus : un `sonic-input name="yaw"` ne doit pas
|
|
39
39
|
* activer la pub télémétrie (sinon boucle form ↔ out).
|
|
40
40
|
*/
|
|
41
|
-
export declare const OUT_CONSUMER_KEYS: readonly ["time", "frame", "ready", "loading", "hovering", "pointerX", "pointerY", "camX", "camY", "camZ", "targetX", "targetY", "targetZ", "zoom", "hitX", "hitY", "hitZ", "hitObjectId", "frameUrl", "snapshot", "frameSource"];
|
|
41
|
+
export declare const OUT_CONSUMER_KEYS: readonly ["time", "frame", "ready", "loading", "hovering", "pointerX", "pointerY", "camX", "camY", "camZ", "targetX", "targetY", "targetZ", "zoom", "hitX", "hitY", "hitZ", "hitObjectId", "frameUrl", "snapshot", "frameSource", "moving"];
|
|
42
42
|
export type Sonic3dFormControlKey = (typeof FORM_CONTROL_KEYS)[number];
|
|
43
43
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/constants.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,SAAO,CAAC;AAEzC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,wFAAwF;AACxF,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,gCAAgC;AAChC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,QACO,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,iBAAiB,wJAcpB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB,4HAWvB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/constants.ts"],"names":[],"mappings":"AAAA,wCAAwC;AACxC,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAC3B,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAE7D,sEAAsE;AACtE,eAAO,MAAM,oBAAoB,SAAO,CAAC;AAEzC,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,mBAAmB,KAAK,CAAC;AACtC,wFAAwF;AACxF,eAAO,MAAM,4BAA4B,MAAM,CAAC;AAChD,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAC3C,sEAAsE;AACtE,eAAO,MAAM,kBAAkB,eAAe,CAAC;AAC/C,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAClC,eAAO,MAAM,oBAAoB,MAAM,CAAC;AACxC,eAAO,MAAM,oBAAoB,KAAK,CAAC;AACvC,gCAAgC;AAChC,eAAO,MAAM,qBAAqB,IAAI,CAAC;AACvC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,qEAAqE;AACrE,eAAO,MAAM,qBAAqB,QACO,CAAC;AAE1C;;GAEG;AACH,eAAO,MAAM,iBAAiB,wJAcpB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,oBAAoB,4HAWvB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,6OAyBpB,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -12,10 +12,13 @@ export type EnsureHost = {
|
|
|
12
12
|
maxDistance: number;
|
|
13
13
|
minPolar: number;
|
|
14
14
|
maxPolar: number;
|
|
15
|
+
damping: number;
|
|
15
16
|
loadToken: number;
|
|
16
17
|
ready: boolean;
|
|
17
18
|
inView: boolean;
|
|
18
19
|
releaseOffscreen: boolean;
|
|
20
|
+
playOffscreen: boolean;
|
|
21
|
+
frameConsumerCount: number;
|
|
19
22
|
getBoundingClientRect: () => DOMRect;
|
|
20
23
|
clientWidth: number;
|
|
21
24
|
clientHeight: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/ensure.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIrD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,MAAM,UAAU,GAAG;IACvB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,iBAAiB,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,OAAO,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;IAChB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,MAAM,OAAO,CAAC;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C,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,QAcvC;AAED,iBAAS,QAAQ,CAAC,IAAI,EAAE,UAAU,QAOjC;AAED,eAAO,MAAM,MAAM;;;;;CAKT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-params.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/form-params.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-params.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/form-params.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzE,4DAA4D;AAC5D,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,KAAK,EAAE,YAAY,GAAG,IAAI,CAAC;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,SAAS,GAAG,IAAI,CAAC;CACjC,CAAC;AAoCF,iBAAS,cAAc,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAaxE;AAED;;GAEG;AACH,iBAAS,eAAe,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QAazE;AAED,eAAO,MAAM,UAAU;;;CAA+C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/life.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"life.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/life.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAI/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAE9C,wDAAwD;AACxD,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,OAAO,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,mBAAmB,CAAC;IAC3B,aAAa,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,GAAG,CAAC,GA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I,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,CA8BtE;AAkBD,iBAAS,YAAY,CAAC,IAAI,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAmBpE;AAED,eAAO,MAAM,UAAU;;;;;CAKb,CAAC"}
|
|
@@ -7,9 +7,17 @@ export type PlaybackHost = {
|
|
|
7
7
|
playOnHover: boolean;
|
|
8
8
|
hovering: boolean;
|
|
9
9
|
autoRotate: boolean;
|
|
10
|
+
playOffscreen: boolean;
|
|
11
|
+
/** Nombre de consommateurs live (`registerFrameConsumer`). */
|
|
12
|
+
frameConsumerCount: number;
|
|
10
13
|
raf: number;
|
|
11
14
|
drawFrame: (now: number) => void;
|
|
12
15
|
};
|
|
16
|
+
/** Hors écran : jouer si `play-offscreen` ou au moins un consommateur live. */
|
|
17
|
+
export declare function wantsOffscreenPlay(host: {
|
|
18
|
+
playOffscreen: boolean;
|
|
19
|
+
frameConsumerCount: number;
|
|
20
|
+
}): boolean;
|
|
13
21
|
declare function prefersReducedMotion(): boolean;
|
|
14
22
|
declare function shouldAnimate(host: PlaybackHost): boolean;
|
|
15
23
|
declare function syncAutoRotate(host: PlaybackHost): void;
|
|
@@ -18,6 +26,7 @@ declare function syncPlayback(host: PlaybackHost, loop: () => void): void;
|
|
|
18
26
|
export declare const playback: {
|
|
19
27
|
readonly prefersReducedMotion: typeof prefersReducedMotion;
|
|
20
28
|
readonly shouldAnimate: typeof shouldAnimate;
|
|
29
|
+
readonly wantsOffscreenPlay: typeof wantsOffscreenPlay;
|
|
21
30
|
readonly syncAutoRotate: typeof syncAutoRotate;
|
|
22
31
|
readonly syncPlayback: typeof syncPlayback;
|
|
23
32
|
readonly stopLoop: typeof stopLoop;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playback.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/playback.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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G,EAAE,MAAM,KAAK,IAAI,CAAC;CAClC,CAAC;AAEF,+EAA+E;AAC/E,wBAAgB,kBAAkB,CAAC,IAAI,EAAE;IACvC,aAAa,EAAE,OAAO,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,GAAG,OAAO,CAEV;AAED,iBAAS,oBAAoB,IAAI,OAAO,CAKvC;AAED,iBAAS,aAAa,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAQlD;AAED,iBAAS,cAAc,CAAC,IAAI,EAAE,YAAY,QAOzC;AAED,iBAAS,QAAQ,CAAC,IAAI,EAAE,YAAY,QAKnC;AAQD,iBAAS,YAAY,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,IAAI,QAQzD;AAED,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { SceneRuntime } from "./runtime";
|
|
2
|
+
export type PostBindHost = {
|
|
3
|
+
postImage: string;
|
|
4
|
+
postBufferA: string;
|
|
5
|
+
postBufferB: string;
|
|
6
|
+
postBufferC: string;
|
|
7
|
+
postBufferD: string;
|
|
8
|
+
postCommon: string;
|
|
9
|
+
postImageCh0: string;
|
|
10
|
+
postImageCh1: string;
|
|
11
|
+
postImageCh2: string;
|
|
12
|
+
postImageCh3: string;
|
|
13
|
+
postBufferACh0: string;
|
|
14
|
+
postBufferACh1: string;
|
|
15
|
+
postBufferACh2: string;
|
|
16
|
+
postBufferACh3: string;
|
|
17
|
+
postBufferBCh0: string;
|
|
18
|
+
postBufferBCh1: string;
|
|
19
|
+
postBufferBCh2: string;
|
|
20
|
+
postBufferBCh3: string;
|
|
21
|
+
postBufferCCh0: string;
|
|
22
|
+
postBufferCCh1: string;
|
|
23
|
+
postBufferCCh2: string;
|
|
24
|
+
postBufferCCh3: string;
|
|
25
|
+
postBufferDCh0: string;
|
|
26
|
+
postBufferDCh1: string;
|
|
27
|
+
postBufferDCh2: string;
|
|
28
|
+
postBufferDCh3: string;
|
|
29
|
+
postScale: number;
|
|
30
|
+
param0: number;
|
|
31
|
+
param1: number;
|
|
32
|
+
param2: number;
|
|
33
|
+
param3: number;
|
|
34
|
+
runtime: SceneRuntime | null;
|
|
35
|
+
errorMessage: string;
|
|
36
|
+
getRootNode: () => Node;
|
|
37
|
+
dispatchEvent: (event: Event) => boolean;
|
|
38
|
+
};
|
|
39
|
+
declare function applyConfig(host: PostBindHost): void;
|
|
40
|
+
declare function syncFrame(host: PostBindHost, time: number, timeDelta: number, frame: number, mouse?: [number, number, number, number]): void;
|
|
41
|
+
declare function propsChanged(changed: Map<string | number | symbol, unknown>): boolean;
|
|
42
|
+
/** Applique param0…3 + post* depuis un DP form. */
|
|
43
|
+
declare function applyFormPost(host: PostBindHost, data: Record<string, unknown>): void;
|
|
44
|
+
export declare const postBind: {
|
|
45
|
+
readonly applyConfig: typeof applyConfig;
|
|
46
|
+
readonly syncFrame: typeof syncFrame;
|
|
47
|
+
readonly propsChanged: typeof propsChanged;
|
|
48
|
+
readonly applyFormPost: typeof applyFormPost;
|
|
49
|
+
readonly POST_PROP_KEYS: readonly ["postImage", "postBufferA", "postBufferB", "postBufferC", "postBufferD", "postCommon", "postImageCh0", "postImageCh1", "postImageCh2", "postImageCh3", "postBufferACh0", "postBufferACh1", "postBufferACh2", "postBufferACh3", "postBufferBCh0", "postBufferBCh1", "postBufferBCh2", "postBufferBCh3", "postBufferCCh0", "postBufferCCh1", "postBufferCCh2", "postBufferCCh3", "postBufferDCh0", "postBufferDCh1", "postBufferDCh2", "postBufferDCh3", "postScale"];
|
|
50
|
+
};
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=post-bind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-bind.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/post-bind.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC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YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,KAAK,GAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAgB,QASvD;AAED,iBAAS,YAAY,CACnB,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAC9C,OAAO,CAET;AAED,mDAAmD;AACnD,iBAAS,aAAa,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,QA0BvE;AAED,eAAO,MAAM,QAAQ;;;;;;CAMX,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Routage des canaux post-* (sonic-3d) : scene | depth | buffers | url | #id.
|
|
3
|
+
*/
|
|
4
|
+
export type PostPassId = "image" | "bufferA" | "bufferB" | "bufferC" | "bufferD";
|
|
5
|
+
export type PostChannelSource = {
|
|
6
|
+
kind: "scene";
|
|
7
|
+
} | {
|
|
8
|
+
kind: "depth";
|
|
9
|
+
} | {
|
|
10
|
+
kind: "buffer";
|
|
11
|
+
buffer: Exclude<PostPassId, "image">;
|
|
12
|
+
} | {
|
|
13
|
+
kind: "self";
|
|
14
|
+
} | {
|
|
15
|
+
kind: "none";
|
|
16
|
+
} | {
|
|
17
|
+
kind: "url";
|
|
18
|
+
url: string;
|
|
19
|
+
} | {
|
|
20
|
+
kind: "element";
|
|
21
|
+
key: string;
|
|
22
|
+
};
|
|
23
|
+
export type PostChannels = [
|
|
24
|
+
PostChannelSource,
|
|
25
|
+
PostChannelSource,
|
|
26
|
+
PostChannelSource,
|
|
27
|
+
PostChannelSource
|
|
28
|
+
];
|
|
29
|
+
export type PostSources = {
|
|
30
|
+
common: string;
|
|
31
|
+
image: string;
|
|
32
|
+
bufferA: string;
|
|
33
|
+
bufferB: string;
|
|
34
|
+
bufferC: string;
|
|
35
|
+
bufferD: string;
|
|
36
|
+
};
|
|
37
|
+
/** Parse un slot canal post (défaut `scene` pour ch0 si vide). */
|
|
38
|
+
export declare function parsePostChannelSource(value: string | undefined | null, fallback: string, slot: 0 | 1 | 2 | 3): PostChannelSource;
|
|
39
|
+
export declare function clampPostScale(v: number): number;
|
|
40
|
+
//# sourceMappingURL=post-channels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-channels.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/post-channels.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,UAAU,GAClB,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAC;AAEd,MAAM,MAAM,iBAAiB,GACzB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,GACjB;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;CAAE,GACxD;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,GAChB;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAC5B;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAErC,MAAM,MAAM,YAAY,GAAG;IACzB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;IACjB,iBAAiB;CAClB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,kEAAkE;AAClE,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,EAChC,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAClB,iBAAiB,CAsBnB;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAGhD"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Post-traitement ShaderToy dans le contexte Three de sonic-3d
|
|
3
|
+
* (RenderTarget scène + DepthTexture → passes A–D → image).
|
|
4
|
+
*/
|
|
5
|
+
import * as THREE from "three";
|
|
6
|
+
import { type PostChannels, type PostPassId, type PostSources } from "./post-channels";
|
|
7
|
+
export type PostFxUniforms = {
|
|
8
|
+
time: number;
|
|
9
|
+
timeDelta: number;
|
|
10
|
+
frame: number;
|
|
11
|
+
mouse: [number, number, number, number];
|
|
12
|
+
params: [number, number, number, number];
|
|
13
|
+
near: number;
|
|
14
|
+
far: number;
|
|
15
|
+
};
|
|
16
|
+
export type PostFxConfig = {
|
|
17
|
+
sources: PostSources;
|
|
18
|
+
channels: Map<PostPassId, PostChannels>;
|
|
19
|
+
scale: number;
|
|
20
|
+
};
|
|
21
|
+
export declare class PostFxCompileError extends Error {
|
|
22
|
+
pass: string;
|
|
23
|
+
infoLog: string;
|
|
24
|
+
constructor(message: string, pass: string, infoLog?: string);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Pipeline post FX attaché à un WebGLRenderer Three.
|
|
28
|
+
*/
|
|
29
|
+
export declare class PostFxPipeline {
|
|
30
|
+
private renderer;
|
|
31
|
+
private sceneRT;
|
|
32
|
+
private buffers;
|
|
33
|
+
private passes;
|
|
34
|
+
private channels;
|
|
35
|
+
private activePasses;
|
|
36
|
+
private quadScene;
|
|
37
|
+
private quadCam;
|
|
38
|
+
private quadMesh;
|
|
39
|
+
private width;
|
|
40
|
+
private height;
|
|
41
|
+
private scale;
|
|
42
|
+
private urlTextures;
|
|
43
|
+
private loader;
|
|
44
|
+
private elementResolver;
|
|
45
|
+
private elementTextures;
|
|
46
|
+
private elementLastSeq;
|
|
47
|
+
private enabled;
|
|
48
|
+
constructor(renderer: THREE.WebGLRenderer);
|
|
49
|
+
get isEnabled(): boolean;
|
|
50
|
+
setElementResolver(fn: ((key: string) => Element | null) | null): void;
|
|
51
|
+
/**
|
|
52
|
+
* Compile / (re)configure. `image` vide → désactive (rendu direct).
|
|
53
|
+
* Lève `PostFxCompileError` si une passe échoue.
|
|
54
|
+
*/
|
|
55
|
+
setConfig(config: PostFxConfig | null): void;
|
|
56
|
+
resize(pixelW: number, pixelH: number): void;
|
|
57
|
+
/**
|
|
58
|
+
* Rend la scène 3D dans le RT, puis les passes post vers le canvas.
|
|
59
|
+
*/
|
|
60
|
+
render(scene: THREE.Scene, camera: THREE.Camera, frame: PostFxUniforms): void;
|
|
61
|
+
dispose(): void;
|
|
62
|
+
private compilePass;
|
|
63
|
+
private validateGlsl;
|
|
64
|
+
private ensureTargets;
|
|
65
|
+
private disposeTargets;
|
|
66
|
+
private clearPasses;
|
|
67
|
+
private drawPass;
|
|
68
|
+
private resolveChannel;
|
|
69
|
+
private getUrlTexture;
|
|
70
|
+
private getElementTexture;
|
|
71
|
+
private updateElementTextures;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=post-fx.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post-fx.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/post-fx.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,UAAU,EACf,KAAK,WAAW,EACjB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MA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IAUzC,IAAI,SAAS,YAEZ;IAED,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC,GAAG,IAAI;IAI/D;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI;IA6CrC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAWrC;;OAEG;IACH,MAAM,CACJ,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,KAAK,EAAE,cAAc;IAyBvB,OAAO;IAWP,OAAO,CAAC,WAAW;IA8CnB,OAAO,CAAC,YAAY;IAwBpB,OAAO,CAAC,aAAa;IAcrB,OAAO,CAAC,cAAc;IAYtB,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,QAAQ;IA2GhB,OAAO,CAAC,cAAc;IA6BtB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,iBAAiB;IAmDzB,OAAO,CAAC,qBAAqB;CAS9B"}
|
|
@@ -17,7 +17,17 @@ export declare class Sonic3dProps extends LitElement {
|
|
|
17
17
|
pick: boolean;
|
|
18
18
|
play: boolean;
|
|
19
19
|
playOnHover: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Garde le RAF / runtime hors viewport (pont live `#id`).
|
|
22
|
+
* Aussi auto si un consommateur a appelé `registerFrameConsumer`.
|
|
23
|
+
*/
|
|
24
|
+
playOffscreen: boolean;
|
|
20
25
|
releaseOffscreen: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Inertie OrbitControls (`dampingFactor`). `0` = pas d’inertie.
|
|
28
|
+
* Défaut `0.08`.
|
|
29
|
+
*/
|
|
30
|
+
damping: number;
|
|
21
31
|
dprMax: number;
|
|
22
32
|
aspectRatio: string;
|
|
23
33
|
dataProvider: string;
|
|
@@ -26,5 +36,37 @@ export declare class Sonic3dProps extends LitElement {
|
|
|
26
36
|
snapshotInterval: number;
|
|
27
37
|
/** Publie `frameUrl` / `snapshot` (canvas) pour chaînage shader / jsonata. */
|
|
28
38
|
frameOut: boolean;
|
|
39
|
+
postImage: string;
|
|
40
|
+
postBufferA: string;
|
|
41
|
+
postBufferB: string;
|
|
42
|
+
postBufferC: string;
|
|
43
|
+
postBufferD: string;
|
|
44
|
+
postCommon: string;
|
|
45
|
+
postImageCh0: string;
|
|
46
|
+
postImageCh1: string;
|
|
47
|
+
postImageCh2: string;
|
|
48
|
+
postImageCh3: string;
|
|
49
|
+
postBufferACh0: string;
|
|
50
|
+
postBufferACh1: string;
|
|
51
|
+
postBufferACh2: string;
|
|
52
|
+
postBufferACh3: string;
|
|
53
|
+
postBufferBCh0: string;
|
|
54
|
+
postBufferBCh1: string;
|
|
55
|
+
postBufferBCh2: string;
|
|
56
|
+
postBufferBCh3: string;
|
|
57
|
+
postBufferCCh0: string;
|
|
58
|
+
postBufferCCh1: string;
|
|
59
|
+
postBufferCCh2: string;
|
|
60
|
+
postBufferCCh3: string;
|
|
61
|
+
postBufferDCh0: string;
|
|
62
|
+
postBufferDCh1: string;
|
|
63
|
+
postBufferDCh2: string;
|
|
64
|
+
postBufferDCh3: string;
|
|
65
|
+
param0: number;
|
|
66
|
+
param1: number;
|
|
67
|
+
param2: number;
|
|
68
|
+
param3: number;
|
|
69
|
+
/** Échelle des cibles post (0.25–1, défaut 1). */
|
|
70
|
+
postScale: number;
|
|
29
71
|
}
|
|
30
72
|
//# sourceMappingURL=props.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/props.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAEjC,OAAO,EASL,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,gDAAgD;AAChD,qBAAa,YAAa,SAAQ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WAAW,SAAM;IACnB,UAAU,SAAM;IACb,YAAY,SAAM;IAClB,YAAY,SAAM;IAClB,YAAY,SAAM;IAClB,YAAY,SAAM;IACf,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACpB,cAAc,SAAM;IACtC,MAAM,SAAK;IACX,MAAM,SAAK;IACX,MAAM,SAAK;IACX,MAAM,SAAK;IACvC,kDAAkD;IACG,SAAS,SAAK;CACpE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reload.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/reload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"reload.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/3d/reload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAI/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,iBAAS,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAErC;AAED,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACr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