@ripple-ui/svelte 0.0.0-stage → 0.9.0-next.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.
- package/LICENSE +21 -0
- package/NOTICE +94 -0
- package/README.md +316 -2
- package/dist/Ripple.svelte +483 -0
- package/dist/Ripple.svelte.d.ts +71 -0
- package/dist/actions/index.d.ts +7 -0
- package/dist/actions/index.js +7 -0
- package/dist/actions/reorderable.d.ts +27 -0
- package/dist/actions/reorderable.js +240 -0
- package/dist/actions/with-motion.d.ts +21 -0
- package/dist/actions/with-motion.js +522 -0
- package/dist/assets/favicon.svg +1 -0
- package/dist/assets/glass.css +46 -0
- package/dist/build/page-audit.d.ts +29 -0
- package/dist/build/page-audit.entry.d.ts +1 -0
- package/dist/build/page-audit.entry.js +7 -0
- package/dist/build/page-audit.js +178 -0
- package/dist/components/NodeRenderer.svelte +669 -0
- package/dist/components/NodeRenderer.svelte.d.ts +10 -0
- package/dist/components/ui/accordion/accordion-content.svelte +32 -0
- package/dist/components/ui/accordion/accordion-content.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/accordion-item.svelte +17 -0
- package/dist/components/ui/accordion/accordion-item.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte +32 -0
- package/dist/components/ui/accordion/accordion-trigger.svelte.d.ts +8 -0
- package/dist/components/ui/accordion/accordion.svelte +19 -0
- package/dist/components/ui/accordion/accordion.svelte.d.ts +4 -0
- package/dist/components/ui/accordion/index.d.ts +5 -0
- package/dist/components/ui/accordion/index.js +7 -0
- package/dist/components/ui/alert/alert-action.svelte +20 -0
- package/dist/components/ui/alert/alert-action.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-description.svelte +23 -0
- package/dist/components/ui/alert/alert-description.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert-title.svelte +23 -0
- package/dist/components/ui/alert/alert-title.svelte.d.ts +5 -0
- package/dist/components/ui/alert/alert.svelte +49 -0
- package/dist/components/ui/alert/alert.svelte.d.ts +26 -0
- package/dist/components/ui/alert/index.d.ts +6 -0
- package/dist/components/ui/alert/index.js +8 -0
- package/dist/components/ui/avatar/avatar-badge.svelte +26 -0
- package/dist/components/ui/avatar/avatar-badge.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte +20 -0
- package/dist/components/ui/avatar/avatar-fallback.svelte.d.ts +4 -0
- package/dist/components/ui/avatar/avatar-group-count.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group-count.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-group.svelte +23 -0
- package/dist/components/ui/avatar/avatar-group.svelte.d.ts +5 -0
- package/dist/components/ui/avatar/avatar-image.svelte +17 -0
- package/dist/components/ui/avatar/avatar-image.svelte.d.ts +4 -0
- package/dist/components/ui/avatar/avatar.svelte +26 -0
- package/dist/components/ui/avatar/avatar.svelte.d.ts +7 -0
- package/dist/components/ui/avatar/index.d.ts +7 -0
- package/dist/components/ui/avatar/index.js +9 -0
- package/dist/components/ui/badge/badge.svelte +61 -0
- package/dist/components/ui/badge/badge.svelte.d.ts +44 -0
- package/dist/components/ui/badge/index.d.ts +2 -0
- package/dist/components/ui/badge/index.js +2 -0
- package/dist/components/ui/button/button.svelte +92 -0
- package/dist/components/ui/button/button.svelte.d.ts +73 -0
- package/dist/components/ui/button/index.d.ts +2 -0
- package/dist/components/ui/button/index.js +4 -0
- package/dist/components/ui/card/card-action.svelte +23 -0
- package/dist/components/ui/card/card-action.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-content.svelte +20 -0
- package/dist/components/ui/card/card-content.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-description.svelte +20 -0
- package/dist/components/ui/card/card-description.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-footer.svelte +20 -0
- package/dist/components/ui/card/card-footer.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-header.svelte +23 -0
- package/dist/components/ui/card/card-header.svelte.d.ts +5 -0
- package/dist/components/ui/card/card-title.svelte +15 -0
- package/dist/components/ui/card/card-title.svelte.d.ts +5 -0
- package/dist/components/ui/card/card.svelte +22 -0
- package/dist/components/ui/card/card.svelte.d.ts +8 -0
- package/dist/components/ui/card/index.d.ts +8 -0
- package/dist/components/ui/card/index.js +10 -0
- package/dist/components/ui/chart/chart-container.svelte +83 -0
- package/dist/components/ui/chart/chart-container.svelte.d.ts +9 -0
- package/dist/components/ui/chart/chart-style.svelte +37 -0
- package/dist/components/ui/chart/chart-style.svelte.d.ts +8 -0
- package/dist/components/ui/chart/chart-tooltip.svelte +166 -0
- package/dist/components/ui/chart/chart-tooltip.svelte.d.ts +27 -0
- package/dist/components/ui/chart/chart-utils.d.ts +36 -0
- package/dist/components/ui/chart/chart-utils.js +33 -0
- package/dist/components/ui/chart/index.d.ts +4 -0
- package/dist/components/ui/chart/index.js +4 -0
- package/dist/components/ui/checkbox/checkbox.svelte +44 -0
- package/dist/components/ui/checkbox/checkbox.svelte.d.ts +4 -0
- package/dist/components/ui/checkbox/index.d.ts +2 -0
- package/dist/components/ui/checkbox/index.js +4 -0
- package/dist/components/ui/chip.d.ts +5 -0
- package/dist/components/ui/chip.js +12 -0
- package/dist/components/ui/command/command-dialog.svelte +45 -0
- package/dist/components/ui/command/command-dialog.svelte.d.ts +12 -0
- package/dist/components/ui/command/command-empty.svelte +17 -0
- package/dist/components/ui/command/command-empty.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-group.svelte +32 -0
- package/dist/components/ui/command/command-group.svelte.d.ts +7 -0
- package/dist/components/ui/command/command-input.svelte +26 -0
- package/dist/components/ui/command/command-input.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-item.svelte +20 -0
- package/dist/components/ui/command/command-item.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-link-item.svelte +20 -0
- package/dist/components/ui/command/command-link-item.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-list.svelte +17 -0
- package/dist/components/ui/command/command-list.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-loading.svelte +7 -0
- package/dist/components/ui/command/command-loading.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-separator.svelte +17 -0
- package/dist/components/ui/command/command-separator.svelte.d.ts +4 -0
- package/dist/components/ui/command/command-shortcut.svelte +20 -0
- package/dist/components/ui/command/command-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/command/command.svelte +36 -0
- package/dist/components/ui/command/command.svelte.d.ts +8 -0
- package/dist/components/ui/command/index.d.ts +12 -0
- package/dist/components/ui/command/index.js +17 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte +44 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte.d.ts +18 -0
- package/dist/components/ui/confirm-dialog/confirm-dialog.svelte.js +75 -0
- package/dist/components/ui/confirm-dialog/index.d.ts +2 -0
- package/dist/components/ui/confirm-dialog/index.js +6 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte +49 -0
- package/dist/components/ui/context-menu/context-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte +38 -0
- package/dist/components/ui/context-menu/context-menu-content.svelte.d.ts +10 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte +27 -0
- package/dist/components/ui/context-menu/context-menu-group-heading.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte +42 -0
- package/dist/components/ui/context-menu/context-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte +29 -0
- package/dist/components/ui/context-menu/context-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/context-menu/context-menu-portal.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-portal.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte +21 -0
- package/dist/components/ui/context-menu/context-menu-radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte +38 -0
- package/dist/components/ui/context-menu/context-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte +22 -0
- package/dist/components/ui/context-menu/context-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte +25 -0
- package/dist/components/ui/context-menu/context-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte +28 -0
- package/dist/components/ui/context-menu/context-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte +35 -0
- package/dist/components/ui/context-menu/context-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/context-menu/context-menu-sub.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-sub.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte +12 -0
- package/dist/components/ui/context-menu/context-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/context-menu/context-menu.svelte +13 -0
- package/dist/components/ui/context-menu/context-menu.svelte.d.ts +3 -0
- package/dist/components/ui/context-menu/index.d.ts +17 -0
- package/dist/components/ui/context-menu/index.js +24 -0
- package/dist/components/ui/control.d.ts +4 -0
- package/dist/components/ui/control.js +11 -0
- package/dist/components/ui/dialog/dialog-close.svelte +11 -0
- package/dist/components/ui/dialog/dialog-close.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-content.svelte +68 -0
- package/dist/components/ui/dialog/dialog-content.svelte.d.ts +15 -0
- package/dist/components/ui/dialog/dialog-description.svelte +19 -0
- package/dist/components/ui/dialog/dialog-description.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-footer.svelte +32 -0
- package/dist/components/ui/dialog/dialog-footer.svelte.d.ts +8 -0
- package/dist/components/ui/dialog/dialog-header.svelte +20 -0
- package/dist/components/ui/dialog/dialog-header.svelte.d.ts +5 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte +22 -0
- package/dist/components/ui/dialog/dialog-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-portal.svelte +7 -0
- package/dist/components/ui/dialog/dialog-portal.svelte.d.ts +3 -0
- package/dist/components/ui/dialog/dialog-title.svelte +17 -0
- package/dist/components/ui/dialog/dialog-title.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte +11 -0
- package/dist/components/ui/dialog/dialog-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dialog/dialog.svelte +7 -0
- package/dist/components/ui/dialog/dialog.svelte.d.ts +3 -0
- package/dist/components/ui/dialog/index.d.ts +11 -0
- package/dist/components/ui/dialog/index.js +13 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte +43 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-checkbox-item.svelte.d.ts +9 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte +37 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-content.svelte.d.ts +10 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte +22 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group-heading.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte +33 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-item.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte +24 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-label.svelte.d.ts +8 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-portal.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-portal.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte +16 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte +33 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-radio-item.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte +17 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-separator.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte +20 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-shortcut.svelte.d.ts +5 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte +28 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-content.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte +29 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub-trigger.svelte.d.ts +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-sub.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.svelte +7 -0
- package/dist/components/ui/dropdown-menu/dropdown-menu.svelte.d.ts +3 -0
- package/dist/components/ui/dropdown-menu/index.d.ts +18 -0
- package/dist/components/ui/dropdown-menu/index.js +21 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte +43 -0
- package/dist/components/ui/hover-card/hover-card-content.svelte.d.ts +10 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-portal.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/hover-card/hover-card.svelte +7 -0
- package/dist/components/ui/hover-card/hover-card.svelte.d.ts +3 -0
- package/dist/components/ui/hover-card/index.d.ts +5 -0
- package/dist/components/ui/hover-card/index.js +5 -0
- package/dist/components/ui/input/index.d.ts +2 -0
- package/dist/components/ui/input/index.js +4 -0
- package/dist/components/ui/input/input.svelte +48 -0
- package/dist/components/ui/input/input.svelte.d.ts +13 -0
- package/dist/components/ui/label/index.d.ts +2 -0
- package/dist/components/ui/label/index.js +5 -0
- package/dist/components/ui/label/label.svelte +25 -0
- package/dist/components/ui/label/label.svelte.d.ts +4 -0
- package/dist/components/ui/popover/index.d.ts +9 -0
- package/dist/components/ui/popover/index.js +11 -0
- package/dist/components/ui/popover/popover-close.svelte +7 -0
- package/dist/components/ui/popover/popover-close.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover-content.svelte +43 -0
- package/dist/components/ui/popover/popover-content.svelte.d.ts +10 -0
- package/dist/components/ui/popover/popover-description.svelte +20 -0
- package/dist/components/ui/popover/popover-description.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-header.svelte +20 -0
- package/dist/components/ui/popover/popover-header.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-portal.svelte +7 -0
- package/dist/components/ui/popover/popover-portal.svelte.d.ts +3 -0
- package/dist/components/ui/popover/popover-title.svelte +20 -0
- package/dist/components/ui/popover/popover-title.svelte.d.ts +5 -0
- package/dist/components/ui/popover/popover-trigger.svelte +17 -0
- package/dist/components/ui/popover/popover-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/popover/popover.svelte +7 -0
- package/dist/components/ui/popover/popover.svelte.d.ts +3 -0
- package/dist/components/ui/progress/index.d.ts +2 -0
- package/dist/components/ui/progress/index.js +4 -0
- package/dist/components/ui/progress/progress.svelte +34 -0
- package/dist/components/ui/progress/progress.svelte.d.ts +9 -0
- package/dist/components/ui/radio-group/index.d.ts +3 -0
- package/dist/components/ui/radio-group/index.js +5 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte +34 -0
- package/dist/components/ui/radio-group/radio-group-item.svelte.d.ts +4 -0
- package/dist/components/ui/radio-group/radio-group.svelte +19 -0
- package/dist/components/ui/radio-group/radio-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/index.d.ts +12 -0
- package/dist/components/ui/select/index.js +14 -0
- package/dist/components/ui/select/select-content.svelte +50 -0
- package/dist/components/ui/select/select-content.svelte.d.ts +11 -0
- package/dist/components/ui/select/select-group-heading.svelte +21 -0
- package/dist/components/ui/select/select-group-heading.svelte.d.ts +10 -0
- package/dist/components/ui/select/select-group.svelte +17 -0
- package/dist/components/ui/select/select-group.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-item.svelte +38 -0
- package/dist/components/ui/select/select-item.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-label.svelte +20 -0
- package/dist/components/ui/select/select-label.svelte.d.ts +6 -0
- package/dist/components/ui/select/select-portal.svelte +7 -0
- package/dist/components/ui/select/select-portal.svelte.d.ts +3 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-down-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte +20 -0
- package/dist/components/ui/select/select-scroll-up-button.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-separator.svelte +18 -0
- package/dist/components/ui/select/select-separator.svelte.d.ts +4 -0
- package/dist/components/ui/select/select-trigger.svelte +29 -0
- package/dist/components/ui/select/select-trigger.svelte.d.ts +8 -0
- package/dist/components/ui/select/select.svelte +11 -0
- package/dist/components/ui/select/select.svelte.d.ts +3 -0
- package/dist/components/ui/separator/index.d.ts +2 -0
- package/dist/components/ui/separator/index.js +4 -0
- package/dist/components/ui/separator/separator.svelte +23 -0
- package/dist/components/ui/separator/separator.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/index.d.ts +11 -0
- package/dist/components/ui/sheet/index.js +13 -0
- package/dist/components/ui/sheet/sheet-close.svelte +7 -0
- package/dist/components/ui/sheet/sheet-close.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-content.svelte +104 -0
- package/dist/components/ui/sheet/sheet-content.svelte.d.ts +18 -0
- package/dist/components/ui/sheet/sheet-description.svelte +17 -0
- package/dist/components/ui/sheet/sheet-description.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-footer.svelte +20 -0
- package/dist/components/ui/sheet/sheet-footer.svelte.d.ts +5 -0
- package/dist/components/ui/sheet/sheet-header.svelte +20 -0
- package/dist/components/ui/sheet/sheet-header.svelte.d.ts +5 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte +17 -0
- package/dist/components/ui/sheet/sheet-overlay.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-portal.svelte +7 -0
- package/dist/components/ui/sheet/sheet-portal.svelte.d.ts +3 -0
- package/dist/components/ui/sheet/sheet-title.svelte +17 -0
- package/dist/components/ui/sheet/sheet-title.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet-trigger.svelte +7 -0
- package/dist/components/ui/sheet/sheet-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/sheet/sheet.svelte +7 -0
- package/dist/components/ui/sheet/sheet.svelte.d.ts +3 -0
- package/dist/components/ui/slider/index.d.ts +2 -0
- package/dist/components/ui/slider/index.js +4 -0
- package/dist/components/ui/slider/slider.svelte +65 -0
- package/dist/components/ui/slider/slider.svelte.d.ts +9 -0
- package/dist/components/ui/switch/index.d.ts +2 -0
- package/dist/components/ui/switch/index.js +4 -0
- package/dist/components/ui/switch/switch.svelte +36 -0
- package/dist/components/ui/switch/switch.svelte.d.ts +8 -0
- package/dist/components/ui/table/index.d.ts +9 -0
- package/dist/components/ui/table/index.js +11 -0
- package/dist/components/ui/table/table-body.svelte +15 -0
- package/dist/components/ui/table/table-body.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-caption.svelte +20 -0
- package/dist/components/ui/table/table-caption.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-cell.svelte +15 -0
- package/dist/components/ui/table/table-cell.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-footer.svelte +20 -0
- package/dist/components/ui/table/table-footer.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-head.svelte +15 -0
- package/dist/components/ui/table/table-head.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-header.svelte +20 -0
- package/dist/components/ui/table/table-header.svelte.d.ts +5 -0
- package/dist/components/ui/table/table-row.svelte +15 -0
- package/dist/components/ui/table/table-row.svelte.d.ts +5 -0
- package/dist/components/ui/table/table.svelte +17 -0
- package/dist/components/ui/table/table.svelte.d.ts +5 -0
- package/dist/components/ui/tabs/index.d.ts +5 -0
- package/dist/components/ui/tabs/index.js +7 -0
- package/dist/components/ui/tabs/tabs-content.svelte +17 -0
- package/dist/components/ui/tabs/tabs-content.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs-list.svelte +51 -0
- package/dist/components/ui/tabs/tabs-list.svelte.d.ts +25 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte +32 -0
- package/dist/components/ui/tabs/tabs-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/tabs/tabs.svelte +19 -0
- package/dist/components/ui/tabs/tabs.svelte.d.ts +4 -0
- package/dist/components/ui/textarea/index.d.ts +2 -0
- package/dist/components/ui/textarea/index.js +4 -0
- package/dist/components/ui/textarea/textarea.svelte +23 -0
- package/dist/components/ui/textarea/textarea.svelte.d.ts +5 -0
- package/dist/components/ui/tooltip/index.d.ts +6 -0
- package/dist/components/ui/tooltip/index.js +8 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +57 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +11 -0
- package/dist/components/ui/tooltip/tooltip-portal.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-portal.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip-provider.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-provider.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte +7 -0
- package/dist/components/ui/tooltip/tooltip-trigger.svelte.d.ts +4 -0
- package/dist/components/ui/tooltip/tooltip.svelte +10 -0
- package/dist/components/ui/tooltip/tooltip.svelte.d.ts +4 -0
- package/dist/components/ui/trigger.d.ts +2 -0
- package/dist/components/ui/trigger.js +9 -0
- package/dist/core/state-manager.svelte.d.ts +26 -0
- package/dist/core/state-manager.svelte.js +104 -0
- package/dist/core/toast-bus.svelte.d.ts +25 -0
- package/dist/core/toast-bus.svelte.js +29 -0
- package/dist/discover/CreatorAvatar.svelte +37 -0
- package/dist/discover/CreatorAvatar.svelte.d.ts +10 -0
- package/dist/discover/CreatorLine.svelte +18 -0
- package/dist/discover/CreatorLine.svelte.d.ts +8 -0
- package/dist/discover/DetailMedia.svelte +37 -0
- package/dist/discover/DetailMedia.svelte.d.ts +8 -0
- package/dist/discover/DiscoverChips.svelte +51 -0
- package/dist/discover/DiscoverChips.svelte.d.ts +11 -0
- package/dist/discover/DiscoverEmpty.svelte +41 -0
- package/dist/discover/DiscoverEmpty.svelte.d.ts +11 -0
- package/dist/discover/DiscoverFilters.svelte +122 -0
- package/dist/discover/DiscoverFilters.svelte.d.ts +15 -0
- package/dist/discover/DiscoverGrid.svelte +31 -0
- package/dist/discover/DiscoverGrid.svelte.d.ts +12 -0
- package/dist/discover/DiscoverHeader.svelte +63 -0
- package/dist/discover/DiscoverHeader.svelte.d.ts +18 -0
- package/dist/discover/DiscoverPublish.svelte +42 -0
- package/dist/discover/DiscoverPublish.svelte.d.ts +12 -0
- package/dist/discover/DiscoverRow.svelte +96 -0
- package/dist/discover/DiscoverRow.svelte.d.ts +24 -0
- package/dist/discover/DiscoverSearch.svelte +54 -0
- package/dist/discover/DiscoverSearch.svelte.d.ts +14 -0
- package/dist/discover/DiscoverSection.svelte +61 -0
- package/dist/discover/DiscoverSection.svelte.d.ts +18 -0
- package/dist/discover/DiscoverSkeleton.svelte +52 -0
- package/dist/discover/DiscoverSkeleton.svelte.d.ts +10 -0
- package/dist/discover/DiscoverTile.svelte +110 -0
- package/dist/discover/DiscoverTile.svelte.d.ts +24 -0
- package/dist/discover/ItemActions.svelte +88 -0
- package/dist/discover/ItemActions.svelte.d.ts +17 -0
- package/dist/discover/ItemArt.svelte +83 -0
- package/dist/discover/ItemArt.svelte.d.ts +15 -0
- package/dist/discover/ItemDetail.svelte +280 -0
- package/dist/discover/ItemDetail.svelte.d.ts +32 -0
- package/dist/discover/ItemMenu.svelte +61 -0
- package/dist/discover/ItemMenu.svelte.d.ts +13 -0
- package/dist/discover/LiveFrame.svelte +162 -0
- package/dist/discover/LiveFrame.svelte.d.ts +21 -0
- package/dist/discover/WhatsAppQrCard.svelte +302 -0
- package/dist/discover/WhatsAppQrCard.svelte.d.ts +18 -0
- package/dist/discover/art.d.ts +3 -0
- package/dist/discover/art.js +22 -0
- package/dist/discover/frame.d.ts +7 -0
- package/dist/discover/frame.js +27 -0
- package/dist/discover/href.d.ts +8 -0
- package/dist/discover/href.js +20 -0
- package/dist/discover/index.d.ts +23 -0
- package/dist/discover/index.js +31 -0
- package/dist/discover/item.d.ts +32 -0
- package/dist/discover/item.js +84 -0
- package/dist/discover/layout.d.ts +13 -0
- package/dist/discover/layout.js +9 -0
- package/dist/discover/sections.d.ts +39 -0
- package/dist/discover/sections.js +84 -0
- package/dist/discover/types.d.ts +40 -0
- package/dist/discover/types.js +9 -0
- package/dist/discover/whatsapp-card-export.d.ts +9 -0
- package/dist/discover/whatsapp-card-export.js +72 -0
- package/dist/discover/whatsapp-card.d.ts +106 -0
- package/dist/discover/whatsapp-card.js +226 -0
- package/dist/discover/whatsapp-qr.d.ts +7 -0
- package/dist/discover/whatsapp-qr.js +20 -0
- package/dist/editor/RippleDragLayer.svelte +267 -0
- package/dist/editor/RippleDragLayer.svelte.d.ts +30 -0
- package/dist/editor/RippleEditorOverlay.svelte +204 -0
- package/dist/editor/RippleEditorOverlay.svelte.d.ts +28 -0
- package/dist/editor/RippleInlineEditor.svelte +201 -0
- package/dist/editor/RippleInlineEditor.svelte.d.ts +21 -0
- package/dist/editor/RippleInspector.svelte +201 -0
- package/dist/editor/RippleInspector.svelte.d.ts +14 -0
- package/dist/editor/core/bounds-index.d.ts +60 -0
- package/dist/editor/core/bounds-index.js +138 -0
- package/dist/editor/core/drag-reorder.d.ts +52 -0
- package/dist/editor/core/drag-reorder.js +89 -0
- package/dist/editor/core/editable.d.ts +88 -0
- package/dist/editor/core/editable.js +167 -0
- package/dist/editor/core/editor-ops.d.ts +58 -0
- package/dist/editor/core/editor-ops.js +60 -0
- package/dist/editor/core/geometry.d.ts +35 -0
- package/dist/editor/core/geometry.js +38 -0
- package/dist/editor/core/index.d.ts +37 -0
- package/dist/editor/core/index.js +37 -0
- package/dist/editor/core/inline-editor-contenteditable.d.ts +3 -0
- package/dist/editor/core/inline-editor-contenteditable.js +94 -0
- package/dist/editor/core/inline-editor-source.d.ts +6 -0
- package/dist/editor/core/inline-editor-source.js +178 -0
- package/dist/editor/core/inline-editor-tiptap.d.ts +3 -0
- package/dist/editor/core/inline-editor-tiptap.js +192 -0
- package/dist/editor/core/inline-editor.d.ts +72 -0
- package/dist/editor/core/inline-editor.js +53 -0
- package/dist/editor/core/inspector-fields.d.ts +49 -0
- package/dist/editor/core/inspector-fields.js +110 -0
- package/dist/editor/core/lane-adapter.d.ts +109 -0
- package/dist/editor/core/lane-adapter.js +1 -0
- package/dist/editor/core/memory-persistence-adapter.d.ts +33 -0
- package/dist/editor/core/memory-persistence-adapter.js +90 -0
- package/dist/editor/core/ports.d.ts +77 -0
- package/dist/editor/core/ports.js +1 -0
- package/dist/editor/core/ripple-lane-adapter.d.ts +80 -0
- package/dist/editor/core/ripple-lane-adapter.js +197 -0
- package/dist/editor/core/selection-model.d.ts +36 -0
- package/dist/editor/core/selection-model.js +79 -0
- package/dist/editor/editor-selection.svelte.d.ts +28 -0
- package/dist/editor/editor-selection.svelte.js +61 -0
- package/dist/editor/index.d.ts +37 -0
- package/dist/editor/index.js +37 -0
- package/dist/figures/bike-gears/figure.d.ts +66 -0
- package/dist/figures/bike-gears/figure.js +708 -0
- package/dist/figures/bike-gears/index.d.ts +4 -0
- package/dist/figures/bike-gears/index.js +17 -0
- package/dist/figures/bike-gears/model.d.ts +46 -0
- package/dist/figures/bike-gears/model.js +67 -0
- package/dist/figures/fission-reactor/figure.d.ts +44 -0
- package/dist/figures/fission-reactor/figure.js +816 -0
- package/dist/figures/fission-reactor/index.d.ts +4 -0
- package/dist/figures/fission-reactor/index.js +16 -0
- package/dist/figures/fission-reactor/model.d.ts +48 -0
- package/dist/figures/fission-reactor/model.js +86 -0
- package/dist/figures/frame.d.ts +16 -0
- package/dist/figures/frame.js +39 -0
- package/dist/figures/heart/figure.d.ts +38 -0
- package/dist/figures/heart/figure.js +576 -0
- package/dist/figures/heart/index.d.ts +4 -0
- package/dist/figures/heart/index.js +18 -0
- package/dist/figures/heart/model.d.ts +76 -0
- package/dist/figures/heart/model.js +167 -0
- package/dist/figures/index.d.ts +7 -0
- package/dist/figures/index.js +9 -0
- package/dist/figures/ion-thruster/figure.d.ts +41 -0
- package/dist/figures/ion-thruster/figure.js +641 -0
- package/dist/figures/ion-thruster/index.d.ts +4 -0
- package/dist/figures/ion-thruster/index.js +16 -0
- package/dist/figures/ion-thruster/model.d.ts +52 -0
- package/dist/figures/ion-thruster/model.js +79 -0
- package/dist/figures/particle-collider/figure.d.ts +28 -0
- package/dist/figures/particle-collider/figure.js +778 -0
- package/dist/figures/particle-collider/index.d.ts +4 -0
- package/dist/figures/particle-collider/index.js +17 -0
- package/dist/figures/particle-collider/model.d.ts +81 -0
- package/dist/figures/particle-collider/model.js +147 -0
- package/dist/figures/rocket-engine/figure.d.ts +37 -0
- package/dist/figures/rocket-engine/figure.js +877 -0
- package/dist/figures/rocket-engine/index.d.ts +4 -0
- package/dist/figures/rocket-engine/index.js +16 -0
- package/dist/figures/rocket-engine/model.d.ts +73 -0
- package/dist/figures/rocket-engine/model.js +104 -0
- package/dist/figures/style.d.ts +2 -0
- package/dist/figures/style.js +18 -0
- package/dist/figures/tokamak/figure.d.ts +40 -0
- package/dist/figures/tokamak/figure.js +766 -0
- package/dist/figures/tokamak/index.d.ts +4 -0
- package/dist/figures/tokamak/index.js +16 -0
- package/dist/figures/tokamak/model.d.ts +65 -0
- package/dist/figures/tokamak/model.js +132 -0
- package/dist/figures/types.d.ts +43 -0
- package/dist/figures/types.js +4 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +53 -0
- package/dist/intent/ChainProgress.svelte +224 -0
- package/dist/intent/ChainProgress.svelte.d.ts +19 -0
- package/dist/intent/DashboardRenderer.svelte +727 -0
- package/dist/intent/DashboardRenderer.svelte.d.ts +9 -0
- package/dist/intent/FlowRunner.svelte +550 -0
- package/dist/intent/FlowRunner.svelte.d.ts +28 -0
- package/dist/intent/IntentRenderer.svelte +325 -0
- package/dist/intent/IntentRenderer.svelte.d.ts +20 -0
- package/dist/intent/chain-executor.svelte.d.ts +266 -0
- package/dist/intent/chain-executor.svelte.js +461 -0
- package/dist/intent/dashboard-manager.svelte.d.ts +54 -0
- package/dist/intent/dashboard-manager.svelte.js +96 -0
- package/dist/intent/defaults-resolver.d.ts +115 -0
- package/dist/intent/defaults-resolver.js +288 -0
- package/dist/intent/fixtures/onboarding-wizard.d.ts +45 -0
- package/dist/intent/fixtures/onboarding-wizard.js +182 -0
- package/dist/intent/flow-options.d.ts +50 -0
- package/dist/intent/flow-options.js +111 -0
- package/dist/intent/index.d.ts +19 -0
- package/dist/intent/index.js +19 -0
- package/dist/intent/layout-adapter.d.ts +77 -0
- package/dist/intent/layout-adapter.js +135 -0
- package/dist/intent/layout-engine.d.ts +66 -0
- package/dist/intent/layout-engine.js +247 -0
- package/dist/intent/layouts/ArticleLayout.svelte +454 -0
- package/dist/intent/layouts/ArticleLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/CardGridLayout.svelte +101 -0
- package/dist/intent/layouts/CardGridLayout.svelte.d.ts +13 -0
- package/dist/intent/layouts/ChecklistIntentLayout.svelte +45 -0
- package/dist/intent/layouts/ChecklistIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/ComparisonIntentLayout.svelte +55 -0
- package/dist/intent/layouts/ComparisonIntentLayout.svelte.d.ts +8 -0
- package/dist/intent/layouts/DetailLayout.svelte +126 -0
- package/dist/intent/layouts/DetailLayout.svelte.d.ts +11 -0
- package/dist/intent/layouts/FormLayout.svelte +140 -0
- package/dist/intent/layouts/FormLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/InfoHeroLayout.svelte +103 -0
- package/dist/intent/layouts/InfoHeroLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/InvoiceIntentLayout.svelte +76 -0
- package/dist/intent/layouts/InvoiceIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/ListLayout.svelte +24 -0
- package/dist/intent/layouts/ListLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/ReportIntentLayout.svelte +104 -0
- package/dist/intent/layouts/ReportIntentLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/SearchLayout.svelte +65 -0
- package/dist/intent/layouts/SearchLayout.svelte.d.ts +14 -0
- package/dist/intent/layouts/SelectLayout.svelte +131 -0
- package/dist/intent/layouts/SelectLayout.svelte.d.ts +11 -0
- package/dist/intent/layouts/SlidesLayout.svelte +252 -0
- package/dist/intent/layouts/SlidesLayout.svelte.d.ts +8 -0
- package/dist/intent/layouts/SummaryLayout.svelte +84 -0
- package/dist/intent/layouts/SummaryLayout.svelte.d.ts +7 -0
- package/dist/intent/layouts/TableLayout.svelte +100 -0
- package/dist/intent/layouts/TableLayout.svelte.d.ts +9 -0
- package/dist/intent/layouts/TimelineLayout.svelte +81 -0
- package/dist/intent/layouts/TimelineLayout.svelte.d.ts +7 -0
- package/dist/intent/pattern-detector.d.ts +72 -0
- package/dist/intent/pattern-detector.js +102 -0
- package/dist/intent/slides-partition.d.ts +40 -0
- package/dist/intent/slides-partition.js +67 -0
- package/dist/manifest/actions.d.ts +7 -0
- package/dist/manifest/actions.js +7 -0
- package/dist/manifest/entries/accordion.d.ts +2 -0
- package/dist/manifest/entries/accordion.js +20 -0
- package/dist/manifest/entries/agenda.d.ts +2 -0
- package/dist/manifest/entries/agenda.js +30 -0
- package/dist/manifest/entries/alert.d.ts +2 -0
- package/dist/manifest/entries/alert.js +12 -0
- package/dist/manifest/entries/analyst-bar.d.ts +2 -0
- package/dist/manifest/entries/analyst-bar.js +13 -0
- package/dist/manifest/entries/analytics-dashboard.d.ts +2 -0
- package/dist/manifest/entries/analytics-dashboard.js +87 -0
- package/dist/manifest/entries/animated-beam.d.ts +2 -0
- package/dist/manifest/entries/animated-beam.js +16 -0
- package/dist/manifest/entries/api-key.d.ts +2 -0
- package/dist/manifest/entries/api-key.js +14 -0
- package/dist/manifest/entries/app-shell.d.ts +2 -0
- package/dist/manifest/entries/app-shell.js +68 -0
- package/dist/manifest/entries/approval-gate.d.ts +2 -0
- package/dist/manifest/entries/approval-gate.js +32 -0
- package/dist/manifest/entries/article-meta.d.ts +2 -0
- package/dist/manifest/entries/article-meta.js +13 -0
- package/dist/manifest/entries/ask-user-questions.d.ts +2 -0
- package/dist/manifest/entries/ask-user-questions.js +81 -0
- package/dist/manifest/entries/audio.d.ts +2 -0
- package/dist/manifest/entries/audio.js +17 -0
- package/dist/manifest/entries/audit-log.d.ts +2 -0
- package/dist/manifest/entries/audit-log.js +25 -0
- package/dist/manifest/entries/aurora.d.ts +2 -0
- package/dist/manifest/entries/aurora.js +14 -0
- package/dist/manifest/entries/avatar-group.d.ts +2 -0
- package/dist/manifest/entries/avatar-group.js +23 -0
- package/dist/manifest/entries/avatar.d.ts +2 -0
- package/dist/manifest/entries/avatar.js +11 -0
- package/dist/manifest/entries/badge.d.ts +2 -0
- package/dist/manifest/entries/badge.js +13 -0
- package/dist/manifest/entries/bento-grid.d.ts +2 -0
- package/dist/manifest/entries/bento-grid.js +20 -0
- package/dist/manifest/entries/bill-split.d.ts +2 -0
- package/dist/manifest/entries/bill-split.js +37 -0
- package/dist/manifest/entries/board-game.d.ts +2 -0
- package/dist/manifest/entries/board-game.js +43 -0
- package/dist/manifest/entries/booking.d.ts +2 -0
- package/dist/manifest/entries/booking.js +61 -0
- package/dist/manifest/entries/border-beam.d.ts +2 -0
- package/dist/manifest/entries/border-beam.js +16 -0
- package/dist/manifest/entries/breadcrumb.d.ts +2 -0
- package/dist/manifest/entries/breadcrumb.js +20 -0
- package/dist/manifest/entries/bulk-action-bar.d.ts +2 -0
- package/dist/manifest/entries/bulk-action-bar.js +24 -0
- package/dist/manifest/entries/button.d.ts +2 -0
- package/dist/manifest/entries/button.js +47 -0
- package/dist/manifest/entries/c4.d.ts +2 -0
- package/dist/manifest/entries/c4.js +73 -0
- package/dist/manifest/entries/calendar.d.ts +2 -0
- package/dist/manifest/entries/calendar.js +44 -0
- package/dist/manifest/entries/callout.d.ts +2 -0
- package/dist/manifest/entries/callout.js +11 -0
- package/dist/manifest/entries/card.d.ts +2 -0
- package/dist/manifest/entries/card.js +19 -0
- package/dist/manifest/entries/chart.d.ts +2 -0
- package/dist/manifest/entries/chart.js +27 -0
- package/dist/manifest/entries/checkbox-group.d.ts +2 -0
- package/dist/manifest/entries/checkbox-group.js +49 -0
- package/dist/manifest/entries/checkbox.d.ts +2 -0
- package/dist/manifest/entries/checkbox.js +30 -0
- package/dist/manifest/entries/checklist-layout.d.ts +2 -0
- package/dist/manifest/entries/checklist-layout.js +33 -0
- package/dist/manifest/entries/chip.d.ts +2 -0
- package/dist/manifest/entries/chip.js +15 -0
- package/dist/manifest/entries/citation.d.ts +2 -0
- package/dist/manifest/entries/citation.js +13 -0
- package/dist/manifest/entries/coachmark.d.ts +2 -0
- package/dist/manifest/entries/coachmark.js +47 -0
- package/dist/manifest/entries/code-block.d.ts +2 -0
- package/dist/manifest/entries/code-block.js +27 -0
- package/dist/manifest/entries/code-editor.d.ts +2 -0
- package/dist/manifest/entries/code-editor.js +39 -0
- package/dist/manifest/entries/code.d.ts +2 -0
- package/dist/manifest/entries/code.js +9 -0
- package/dist/manifest/entries/collapsible.d.ts +2 -0
- package/dist/manifest/entries/collapsible.js +18 -0
- package/dist/manifest/entries/color-picker.d.ts +2 -0
- package/dist/manifest/entries/color-picker.js +35 -0
- package/dist/manifest/entries/combobox.d.ts +2 -0
- package/dist/manifest/entries/combobox.js +48 -0
- package/dist/manifest/entries/command-palette.d.ts +2 -0
- package/dist/manifest/entries/command-palette.js +55 -0
- package/dist/manifest/entries/comment-thread.d.ts +2 -0
- package/dist/manifest/entries/comment-thread.js +27 -0
- package/dist/manifest/entries/company-header.d.ts +2 -0
- package/dist/manifest/entries/company-header.js +33 -0
- package/dist/manifest/entries/comparison-layout.d.ts +2 -0
- package/dist/manifest/entries/comparison-layout.js +81 -0
- package/dist/manifest/entries/comparison-table.d.ts +2 -0
- package/dist/manifest/entries/comparison-table.js +25 -0
- package/dist/manifest/entries/confirm-dialog.d.ts +2 -0
- package/dist/manifest/entries/confirm-dialog.js +50 -0
- package/dist/manifest/entries/container.d.ts +2 -0
- package/dist/manifest/entries/container.js +13 -0
- package/dist/manifest/entries/context-menu.d.ts +2 -0
- package/dist/manifest/entries/context-menu.js +22 -0
- package/dist/manifest/entries/copy.d.ts +2 -0
- package/dist/manifest/entries/copy.js +11 -0
- package/dist/manifest/entries/cta.d.ts +2 -0
- package/dist/manifest/entries/cta.js +17 -0
- package/dist/manifest/entries/dashboard-slot.d.ts +2 -0
- package/dist/manifest/entries/dashboard-slot.js +17 -0
- package/dist/manifest/entries/dashboard.d.ts +2 -0
- package/dist/manifest/entries/dashboard.js +48 -0
- package/dist/manifest/entries/data-grid.d.ts +2 -0
- package/dist/manifest/entries/data-grid.js +77 -0
- package/dist/manifest/entries/date-picker.d.ts +2 -0
- package/dist/manifest/entries/date-picker.js +31 -0
- package/dist/manifest/entries/definition-list.d.ts +2 -0
- package/dist/manifest/entries/definition-list.js +19 -0
- package/dist/manifest/entries/diff.d.ts +2 -0
- package/dist/manifest/entries/diff.js +16 -0
- package/dist/manifest/entries/discover-card.d.ts +2 -0
- package/dist/manifest/entries/discover-card.js +13 -0
- package/dist/manifest/entries/drawing-canvas.d.ts +2 -0
- package/dist/manifest/entries/drawing-canvas.js +18 -0
- package/dist/manifest/entries/dropdown-menu.d.ts +2 -0
- package/dist/manifest/entries/dropdown-menu.js +25 -0
- package/dist/manifest/entries/each.d.ts +2 -0
- package/dist/manifest/entries/each.js +34 -0
- package/dist/manifest/entries/embed.d.ts +2 -0
- package/dist/manifest/entries/embed.js +52 -0
- package/dist/manifest/entries/empty-state.d.ts +2 -0
- package/dist/manifest/entries/empty-state.js +11 -0
- package/dist/manifest/entries/entity-detail.d.ts +2 -0
- package/dist/manifest/entries/entity-detail.js +55 -0
- package/dist/manifest/entries/error-state.d.ts +2 -0
- package/dist/manifest/entries/error-state.js +24 -0
- package/dist/manifest/entries/exec-dashboard.d.ts +2 -0
- package/dist/manifest/entries/exec-dashboard.js +107 -0
- package/dist/manifest/entries/faq.d.ts +2 -0
- package/dist/manifest/entries/faq.js +21 -0
- package/dist/manifest/entries/feature-grid.d.ts +2 -0
- package/dist/manifest/entries/feature-grid.js +21 -0
- package/dist/manifest/entries/figure.d.ts +2 -0
- package/dist/manifest/entries/figure.js +34 -0
- package/dist/manifest/entries/file-upload.d.ts +2 -0
- package/dist/manifest/entries/file-upload.js +32 -0
- package/dist/manifest/entries/fill-grid.d.ts +2 -0
- package/dist/manifest/entries/fill-grid.js +19 -0
- package/dist/manifest/entries/filter-bar.d.ts +2 -0
- package/dist/manifest/entries/filter-bar.js +48 -0
- package/dist/manifest/entries/flashcard-deck.d.ts +2 -0
- package/dist/manifest/entries/flashcard-deck.js +36 -0
- package/dist/manifest/entries/flashcard.d.ts +2 -0
- package/dist/manifest/entries/flashcard.js +20 -0
- package/dist/manifest/entries/flex.d.ts +2 -0
- package/dist/manifest/entries/flex.js +20 -0
- package/dist/manifest/entries/focus-timer.d.ts +2 -0
- package/dist/manifest/entries/focus-timer.js +34 -0
- package/dist/manifest/entries/follow-up.d.ts +2 -0
- package/dist/manifest/entries/follow-up.js +11 -0
- package/dist/manifest/entries/footer.d.ts +2 -0
- package/dist/manifest/entries/footer.js +20 -0
- package/dist/manifest/entries/form-layout.d.ts +2 -0
- package/dist/manifest/entries/form-layout.js +43 -0
- package/dist/manifest/entries/form.d.ts +2 -0
- package/dist/manifest/entries/form.js +111 -0
- package/dist/manifest/entries/funnel.d.ts +2 -0
- package/dist/manifest/entries/funnel.js +24 -0
- package/dist/manifest/entries/gantt.d.ts +2 -0
- package/dist/manifest/entries/gantt.js +21 -0
- package/dist/manifest/entries/gauge.d.ts +2 -0
- package/dist/manifest/entries/gauge.js +16 -0
- package/dist/manifest/entries/glass-card.d.ts +2 -0
- package/dist/manifest/entries/glass-card.js +20 -0
- package/dist/manifest/entries/glyph-grid.d.ts +2 -0
- package/dist/manifest/entries/glyph-grid.js +19 -0
- package/dist/manifest/entries/grid.d.ts +2 -0
- package/dist/manifest/entries/grid.js +19 -0
- package/dist/manifest/entries/growth-projection.d.ts +2 -0
- package/dist/manifest/entries/growth-projection.js +36 -0
- package/dist/manifest/entries/habit-tracker.d.ts +2 -0
- package/dist/manifest/entries/habit-tracker.js +38 -0
- package/dist/manifest/entries/heading.d.ts +2 -0
- package/dist/manifest/entries/heading.js +10 -0
- package/dist/manifest/entries/heatmap.d.ts +2 -0
- package/dist/manifest/entries/heatmap.js +26 -0
- package/dist/manifest/entries/hero.d.ts +2 -0
- package/dist/manifest/entries/hero.js +15 -0
- package/dist/manifest/entries/highlight.d.ts +2 -0
- package/dist/manifest/entries/highlight.js +13 -0
- package/dist/manifest/entries/hover-card.d.ts +2 -0
- package/dist/manifest/entries/hover-card.js +14 -0
- package/dist/manifest/entries/icon.d.ts +2 -0
- package/dist/manifest/entries/icon.js +12 -0
- package/dist/manifest/entries/if.d.ts +2 -0
- package/dist/manifest/entries/if.js +20 -0
- package/dist/manifest/entries/illustration.d.ts +2 -0
- package/dist/manifest/entries/illustration.js +37 -0
- package/dist/manifest/entries/image.d.ts +2 -0
- package/dist/manifest/entries/image.js +14 -0
- package/dist/manifest/entries/input.d.ts +2 -0
- package/dist/manifest/entries/input.js +42 -0
- package/dist/manifest/entries/interval-workout.d.ts +2 -0
- package/dist/manifest/entries/interval-workout.js +44 -0
- package/dist/manifest/entries/invoice-layout.d.ts +2 -0
- package/dist/manifest/entries/invoice-layout.js +55 -0
- package/dist/manifest/entries/invoice-lines.d.ts +2 -0
- package/dist/manifest/entries/invoice-lines.js +30 -0
- package/dist/manifest/entries/iso-scene.d.ts +2 -0
- package/dist/manifest/entries/iso-scene.js +145 -0
- package/dist/manifest/entries/itinerary.d.ts +2 -0
- package/dist/manifest/entries/itinerary.js +61 -0
- package/dist/manifest/entries/kanban.d.ts +2 -0
- package/dist/manifest/entries/kanban.js +64 -0
- package/dist/manifest/entries/kbd.d.ts +2 -0
- package/dist/manifest/entries/kbd.js +10 -0
- package/dist/manifest/entries/kv-table.d.ts +2 -0
- package/dist/manifest/entries/kv-table.js +25 -0
- package/dist/manifest/entries/led-clock.d.ts +2 -0
- package/dist/manifest/entries/led-clock.js +20 -0
- package/dist/manifest/entries/link-preview.d.ts +2 -0
- package/dist/manifest/entries/link-preview.js +16 -0
- package/dist/manifest/entries/loading.d.ts +2 -0
- package/dist/manifest/entries/loading.js +12 -0
- package/dist/manifest/entries/location-picker.d.ts +2 -0
- package/dist/manifest/entries/location-picker.js +28 -0
- package/dist/manifest/entries/logo-cloud.d.ts +2 -0
- package/dist/manifest/entries/logo-cloud.js +21 -0
- package/dist/manifest/entries/map.d.ts +2 -0
- package/dist/manifest/entries/map.js +63 -0
- package/dist/manifest/entries/markdown.d.ts +2 -0
- package/dist/manifest/entries/markdown.js +11 -0
- package/dist/manifest/entries/marketing-hero.d.ts +2 -0
- package/dist/manifest/entries/marketing-hero.js +30 -0
- package/dist/manifest/entries/marquee.d.ts +2 -0
- package/dist/manifest/entries/marquee.js +20 -0
- package/dist/manifest/entries/master-detail.d.ts +2 -0
- package/dist/manifest/entries/master-detail.js +57 -0
- package/dist/manifest/entries/meal-plan.d.ts +2 -0
- package/dist/manifest/entries/meal-plan.js +44 -0
- package/dist/manifest/entries/media-grid.d.ts +2 -0
- package/dist/manifest/entries/media-grid.js +34 -0
- package/dist/manifest/entries/memory-match.d.ts +2 -0
- package/dist/manifest/entries/memory-match.js +39 -0
- package/dist/manifest/entries/mention.d.ts +2 -0
- package/dist/manifest/entries/mention.js +15 -0
- package/dist/manifest/entries/menu-order.d.ts +2 -0
- package/dist/manifest/entries/menu-order.js +48 -0
- package/dist/manifest/entries/metric.d.ts +2 -0
- package/dist/manifest/entries/metric.js +16 -0
- package/dist/manifest/entries/modal.d.ts +2 -0
- package/dist/manifest/entries/modal.js +56 -0
- package/dist/manifest/entries/model-viewer.d.ts +2 -0
- package/dist/manifest/entries/model-viewer.js +86 -0
- package/dist/manifest/entries/multi-select.d.ts +2 -0
- package/dist/manifest/entries/multi-select.js +57 -0
- package/dist/manifest/entries/music-player.d.ts +2 -0
- package/dist/manifest/entries/music-player.js +33 -0
- package/dist/manifest/entries/navbar.d.ts +2 -0
- package/dist/manifest/entries/navbar.js +17 -0
- package/dist/manifest/entries/news-card.d.ts +2 -0
- package/dist/manifest/entries/news-card.js +14 -0
- package/dist/manifest/entries/newsletter.d.ts +2 -0
- package/dist/manifest/entries/newsletter.js +20 -0
- package/dist/manifest/entries/notes.d.ts +2 -0
- package/dist/manifest/entries/notes.js +28 -0
- package/dist/manifest/entries/notification-center.d.ts +2 -0
- package/dist/manifest/entries/notification-center.js +21 -0
- package/dist/manifest/entries/number-input.d.ts +2 -0
- package/dist/manifest/entries/number-input.js +30 -0
- package/dist/manifest/entries/ops-dashboard.d.ts +2 -0
- package/dist/manifest/entries/ops-dashboard.js +134 -0
- package/dist/manifest/entries/order-status.d.ts +2 -0
- package/dist/manifest/entries/order-status.js +46 -0
- package/dist/manifest/entries/org-chart.d.ts +2 -0
- package/dist/manifest/entries/org-chart.js +31 -0
- package/dist/manifest/entries/otp-input.d.ts +2 -0
- package/dist/manifest/entries/otp-input.js +41 -0
- package/dist/manifest/entries/page-header.d.ts +2 -0
- package/dist/manifest/entries/page-header.js +14 -0
- package/dist/manifest/entries/parallax.d.ts +2 -0
- package/dist/manifest/entries/parallax.js +13 -0
- package/dist/manifest/entries/people-picker.d.ts +2 -0
- package/dist/manifest/entries/people-picker.js +28 -0
- package/dist/manifest/entries/permission-matrix.d.ts +2 -0
- package/dist/manifest/entries/permission-matrix.js +41 -0
- package/dist/manifest/entries/pipeline-dashboard.d.ts +2 -0
- package/dist/manifest/entries/pipeline-dashboard.js +91 -0
- package/dist/manifest/entries/place-results.d.ts +2 -0
- package/dist/manifest/entries/place-results.js +33 -0
- package/dist/manifest/entries/popover.d.ts +2 -0
- package/dist/manifest/entries/popover.js +13 -0
- package/dist/manifest/entries/pricing-table.d.ts +2 -0
- package/dist/manifest/entries/pricing-table.js +27 -0
- package/dist/manifest/entries/product-grid.d.ts +2 -0
- package/dist/manifest/entries/product-grid.js +33 -0
- package/dist/manifest/entries/progress-ring.d.ts +2 -0
- package/dist/manifest/entries/progress-ring.js +16 -0
- package/dist/manifest/entries/progress.d.ts +2 -0
- package/dist/manifest/entries/progress.js +13 -0
- package/dist/manifest/entries/project-dashboard.d.ts +2 -0
- package/dist/manifest/entries/project-dashboard.js +90 -0
- package/dist/manifest/entries/pros-cons.d.ts +2 -0
- package/dist/manifest/entries/pros-cons.js +18 -0
- package/dist/manifest/entries/qr.d.ts +2 -0
- package/dist/manifest/entries/qr.js +15 -0
- package/dist/manifest/entries/quiz.d.ts +2 -0
- package/dist/manifest/entries/quiz.js +38 -0
- package/dist/manifest/entries/quote.d.ts +2 -0
- package/dist/manifest/entries/quote.js +14 -0
- package/dist/manifest/entries/radio-group.d.ts +2 -0
- package/dist/manifest/entries/radio-group.js +31 -0
- package/dist/manifest/entries/range-bar.d.ts +2 -0
- package/dist/manifest/entries/range-bar.js +16 -0
- package/dist/manifest/entries/rating.d.ts +2 -0
- package/dist/manifest/entries/rating.js +37 -0
- package/dist/manifest/entries/reasoning-trace.d.ts +2 -0
- package/dist/manifest/entries/reasoning-trace.js +20 -0
- package/dist/manifest/entries/recipe.d.ts +2 -0
- package/dist/manifest/entries/recipe.js +55 -0
- package/dist/manifest/entries/report-layout.d.ts +2 -0
- package/dist/manifest/entries/report-layout.js +37 -0
- package/dist/manifest/entries/reveal.d.ts +2 -0
- package/dist/manifest/entries/reveal.js +14 -0
- package/dist/manifest/entries/rich-text.d.ts +2 -0
- package/dist/manifest/entries/rich-text.js +29 -0
- package/dist/manifest/entries/richtext.d.ts +2 -0
- package/dist/manifest/entries/richtext.js +14 -0
- package/dist/manifest/entries/ripple-frame.d.ts +2 -0
- package/dist/manifest/entries/ripple-frame.js +22 -0
- package/dist/manifest/entries/sankey.d.ts +2 -0
- package/dist/manifest/entries/sankey.js +25 -0
- package/dist/manifest/entries/saved-views.d.ts +2 -0
- package/dist/manifest/entries/saved-views.js +23 -0
- package/dist/manifest/entries/search.d.ts +2 -0
- package/dist/manifest/entries/search.js +54 -0
- package/dist/manifest/entries/section.d.ts +2 -0
- package/dist/manifest/entries/section.js +25 -0
- package/dist/manifest/entries/segmented.d.ts +2 -0
- package/dist/manifest/entries/segmented.js +50 -0
- package/dist/manifest/entries/seismograph.d.ts +2 -0
- package/dist/manifest/entries/seismograph.js +22 -0
- package/dist/manifest/entries/select.d.ts +2 -0
- package/dist/manifest/entries/select.js +50 -0
- package/dist/manifest/entries/separator.d.ts +2 -0
- package/dist/manifest/entries/separator.js +12 -0
- package/dist/manifest/entries/settings-list.d.ts +2 -0
- package/dist/manifest/entries/settings-list.js +18 -0
- package/dist/manifest/entries/sheet.d.ts +2 -0
- package/dist/manifest/entries/sheet.js +46 -0
- package/dist/manifest/entries/shimmer.d.ts +2 -0
- package/dist/manifest/entries/shimmer.js +20 -0
- package/dist/manifest/entries/sidebar.d.ts +2 -0
- package/dist/manifest/entries/sidebar.js +22 -0
- package/dist/manifest/entries/skeleton.d.ts +2 -0
- package/dist/manifest/entries/skeleton.js +9 -0
- package/dist/manifest/entries/slider.d.ts +2 -0
- package/dist/manifest/entries/slider.js +30 -0
- package/dist/manifest/entries/soul-status.d.ts +2 -0
- package/dist/manifest/entries/soul-status.js +18 -0
- package/dist/manifest/entries/source-card.d.ts +2 -0
- package/dist/manifest/entries/source-card.js +13 -0
- package/dist/manifest/entries/sources-bar.d.ts +2 -0
- package/dist/manifest/entries/sources-bar.js +24 -0
- package/dist/manifest/entries/sparkline.d.ts +2 -0
- package/dist/manifest/entries/sparkline.js +13 -0
- package/dist/manifest/entries/split.d.ts +2 -0
- package/dist/manifest/entries/split.js +19 -0
- package/dist/manifest/entries/spotlight.d.ts +2 -0
- package/dist/manifest/entries/spotlight.js +14 -0
- package/dist/manifest/entries/standup-board.d.ts +2 -0
- package/dist/manifest/entries/standup-board.js +40 -0
- package/dist/manifest/entries/stat.d.ts +2 -0
- package/dist/manifest/entries/stat.js +18 -0
- package/dist/manifest/entries/status-dot.d.ts +2 -0
- package/dist/manifest/entries/status-dot.js +13 -0
- package/dist/manifest/entries/steps.d.ts +2 -0
- package/dist/manifest/entries/steps.js +24 -0
- package/dist/manifest/entries/streak-bars.d.ts +2 -0
- package/dist/manifest/entries/streak-bars.js +18 -0
- package/dist/manifest/entries/stream-text.d.ts +2 -0
- package/dist/manifest/entries/stream-text.js +17 -0
- package/dist/manifest/entries/switch.d.ts +2 -0
- package/dist/manifest/entries/switch.js +30 -0
- package/dist/manifest/entries/table.d.ts +2 -0
- package/dist/manifest/entries/table.js +31 -0
- package/dist/manifest/entries/tabs.d.ts +2 -0
- package/dist/manifest/entries/tabs.js +54 -0
- package/dist/manifest/entries/terminal.d.ts +2 -0
- package/dist/manifest/entries/terminal.js +23 -0
- package/dist/manifest/entries/testimonial.d.ts +2 -0
- package/dist/manifest/entries/testimonial.js +16 -0
- package/dist/manifest/entries/text-effect.d.ts +2 -0
- package/dist/manifest/entries/text-effect.js +16 -0
- package/dist/manifest/entries/text.d.ts +2 -0
- package/dist/manifest/entries/text.js +13 -0
- package/dist/manifest/entries/textarea.d.ts +2 -0
- package/dist/manifest/entries/textarea.js +29 -0
- package/dist/manifest/entries/ticker.d.ts +2 -0
- package/dist/manifest/entries/ticker.js +18 -0
- package/dist/manifest/entries/time-picker.d.ts +2 -0
- package/dist/manifest/entries/time-picker.js +29 -0
- package/dist/manifest/entries/timeline.d.ts +2 -0
- package/dist/manifest/entries/timeline.js +28 -0
- package/dist/manifest/entries/timer.d.ts +2 -0
- package/dist/manifest/entries/timer.js +17 -0
- package/dist/manifest/entries/toast.d.ts +2 -0
- package/dist/manifest/entries/toast.js +10 -0
- package/dist/manifest/entries/todo-list.d.ts +2 -0
- package/dist/manifest/entries/todo-list.js +35 -0
- package/dist/manifest/entries/tool-call.d.ts +2 -0
- package/dist/manifest/entries/tool-call.js +26 -0
- package/dist/manifest/entries/tooltip.d.ts +2 -0
- package/dist/manifest/entries/tooltip.js +13 -0
- package/dist/manifest/entries/tree-table.d.ts +2 -0
- package/dist/manifest/entries/tree-table.js +36 -0
- package/dist/manifest/entries/tree.d.ts +2 -0
- package/dist/manifest/entries/tree.js +60 -0
- package/dist/manifest/entries/treemap.d.ts +2 -0
- package/dist/manifest/entries/treemap.js +23 -0
- package/dist/manifest/entries/trend.d.ts +2 -0
- package/dist/manifest/entries/trend.js +13 -0
- package/dist/manifest/entries/video.d.ts +2 -0
- package/dist/manifest/entries/video.js +18 -0
- package/dist/manifest/entries/virtual-list.d.ts +2 -0
- package/dist/manifest/entries/virtual-list.js +22 -0
- package/dist/manifest/entries/weather-forecast.d.ts +2 -0
- package/dist/manifest/entries/weather-forecast.js +51 -0
- package/dist/manifest/entries/week-schedule.d.ts +2 -0
- package/dist/manifest/entries/week-schedule.js +34 -0
- package/dist/manifest/entries/wizard-layout.d.ts +2 -0
- package/dist/manifest/entries/wizard-layout.js +90 -0
- package/dist/manifest/entries/word-guess.d.ts +2 -0
- package/dist/manifest/entries/word-guess.js +30 -0
- package/dist/manifest/entries/workflow.d.ts +2 -0
- package/dist/manifest/entries/workflow.js +30 -0
- package/dist/manifest/index.d.ts +110 -0
- package/dist/manifest/index.js +486 -0
- package/dist/manifest/motion-doc.d.ts +20 -0
- package/dist/manifest/motion-doc.js +60 -0
- package/dist/manifest.json +19649 -0
- package/dist/manifest.slim.json +329 -0
- package/dist/molecules/ItemCard.svelte +213 -0
- package/dist/molecules/ItemCard.svelte.d.ts +26 -0
- package/dist/molecules/PriceTag.svelte +89 -0
- package/dist/molecules/PriceTag.svelte.d.ts +14 -0
- package/dist/molecules/SelectionIndicator.svelte +58 -0
- package/dist/molecules/SelectionIndicator.svelte.d.ts +10 -0
- package/dist/molecules/index.d.ts +25 -0
- package/dist/molecules/index.js +26 -0
- package/dist/motion/moving-indicator.d.ts +44 -0
- package/dist/motion/moving-indicator.js +221 -0
- package/dist/organisms/FormSection.svelte +176 -0
- package/dist/organisms/FormSection.svelte.d.ts +28 -0
- package/dist/organisms/OptionList.svelte +269 -0
- package/dist/organisms/OptionList.svelte.d.ts +24 -0
- package/dist/organisms/OrganismRenderer.svelte +86 -0
- package/dist/organisms/OrganismRenderer.svelte.d.ts +10 -0
- package/dist/organisms/QuizQuestion.svelte +147 -0
- package/dist/organisms/QuizQuestion.svelte.d.ts +19 -0
- package/dist/organisms/ResultsSummary.svelte +97 -0
- package/dist/organisms/ResultsSummary.svelte.d.ts +22 -0
- package/dist/organisms/SourcesRow.svelte +68 -0
- package/dist/organisms/SourcesRow.svelte.d.ts +16 -0
- package/dist/organisms/index.d.ts +24 -0
- package/dist/organisms/index.js +24 -0
- package/dist/organisms/schema.d.ts +25 -0
- package/dist/organisms/schema.js +28 -0
- package/dist/primitives/index.d.ts +49 -0
- package/dist/primitives/index.js +51 -0
- package/dist/schema/index.d.ts +16 -0
- package/dist/schema/index.js +16 -0
- package/dist/security/illustration-svg.d.ts +29 -0
- package/dist/security/illustration-svg.js +473 -0
- package/dist/sound/index.d.ts +13 -0
- package/dist/sound/index.js +120 -0
- package/dist/sound/zzfx.d.ts +9 -0
- package/dist/sound/zzfx.js +118 -0
- package/dist/streaming/fixtures/chat-widget-stream.json +55 -0
- package/dist/streaming/fixtures/deep-children.json +75 -0
- package/dist/streaming/fixtures/nested-dashboard.json +74 -0
- package/dist/streaming/fixtures/simple-form.json +31 -0
- package/dist/streaming/fixtures/truncated-corpus.json +53 -0
- package/dist/streaming/index.d.ts +3 -0
- package/dist/streaming/index.js +9 -0
- package/dist/streaming/json-parse.d.ts +16 -0
- package/dist/streaming/json-parse.js +96 -0
- package/dist/streaming/stream-spec.svelte.d.ts +2 -0
- package/dist/streaming/stream-spec.svelte.js +162 -0
- package/dist/streaming/types.d.ts +57 -0
- package/dist/streaming/types.js +12 -0
- package/dist/styles.css +157 -0
- package/dist/systems/elevation.css +17 -0
- package/dist/systems/elevation.d.ts +8 -0
- package/dist/systems/elevation.js +29 -0
- package/dist/systems/index.d.ts +3 -0
- package/dist/systems/index.js +5 -0
- package/dist/systems/proximity-hover.d.ts +9 -0
- package/dist/systems/proximity-hover.js +47 -0
- package/dist/systems/variable-font-weight.d.ts +12 -0
- package/dist/systems/variable-font-weight.js +33 -0
- package/dist/theme.css +169 -0
- package/dist/ui/index.d.ts +113 -0
- package/dist/ui/index.js +126 -0
- package/dist/utils/markdown-ext.d.ts +6 -0
- package/dist/utils/markdown-ext.js +68 -0
- package/dist/utils/mermaid.d.ts +94 -0
- package/dist/utils/mermaid.js +144 -0
- package/dist/utils/safe-color.d.ts +4 -0
- package/dist/utils/safe-color.js +18 -0
- package/dist/utils/safe-props.d.ts +97 -0
- package/dist/utils/safe-props.js +170 -0
- package/dist/utils/sanitize-html.d.ts +14 -0
- package/dist/utils/sanitize-html.js +62 -0
- package/dist/utils/url-sanitizer.d.ts +2 -0
- package/dist/utils/url-sanitizer.js +9 -0
- package/dist/utils.d.ts +12 -0
- package/dist/utils.js +13 -0
- package/dist/vendor-modules.d.ts +42 -0
- package/dist/version.d.ts +17 -0
- package/dist/version.js +17 -0
- package/dist/widgets/Workflow.svelte +379 -0
- package/dist/widgets/Workflow.svelte.d.ts +14 -0
- package/dist/widgets/ai/AnswerBlock.svelte +417 -0
- package/dist/widgets/ai/AnswerBlock.svelte.d.ts +42 -0
- package/dist/widgets/ai/ApprovalGate.svelte +506 -0
- package/dist/widgets/ai/ApprovalGate.svelte.d.ts +95 -0
- package/dist/widgets/ai/ContextCards.svelte +179 -0
- package/dist/widgets/ai/ContextCards.svelte.d.ts +29 -0
- package/dist/widgets/ai/FineTuneCard.svelte +316 -0
- package/dist/widgets/ai/FineTuneCard.svelte.d.ts +45 -0
- package/dist/widgets/ai/PixelLoader.svelte +199 -0
- package/dist/widgets/ai/PixelLoader.svelte.d.ts +17 -0
- package/dist/widgets/ai/PromptBar.svelte +701 -0
- package/dist/widgets/ai/PromptBar.svelte.d.ts +61 -0
- package/dist/widgets/ai/ReasoningTrace.svelte +286 -0
- package/dist/widgets/ai/ReasoningTrace.svelte.d.ts +22 -0
- package/dist/widgets/ai/RecommendationCard.svelte +330 -0
- package/dist/widgets/ai/RecommendationCard.svelte.d.ts +58 -0
- package/dist/widgets/ai/SelectionActions.svelte +401 -0
- package/dist/widgets/ai/SelectionActions.svelte.d.ts +32 -0
- package/dist/widgets/ai/SourceChip.svelte +139 -0
- package/dist/widgets/ai/SourceChip.svelte.d.ts +18 -0
- package/dist/widgets/ai/StreamText.svelte +257 -0
- package/dist/widgets/ai/StreamText.svelte.d.ts +19 -0
- package/dist/widgets/ai/TaskRows.svelte +437 -0
- package/dist/widgets/ai/TaskRows.svelte.d.ts +37 -0
- package/dist/widgets/ai/ToolCall.svelte +363 -0
- package/dist/widgets/ai/ToolCall.svelte.d.ts +25 -0
- package/dist/widgets/ai/index.d.ts +4 -0
- package/dist/widgets/ai/index.js +11 -0
- package/dist/widgets/c4/C4Diagram.svelte +1511 -0
- package/dist/widgets/c4/C4Diagram.svelte.d.ts +36 -0
- package/dist/widgets/c4/C4Edge.svelte +145 -0
- package/dist/widgets/c4/C4Edge.svelte.d.ts +4 -0
- package/dist/widgets/c4/C4LiveLayer.svelte +194 -0
- package/dist/widgets/c4/C4LiveLayer.svelte.d.ts +23 -0
- package/dist/widgets/c4/C4PortBadge.svelte +85 -0
- package/dist/widgets/c4/C4PortBadge.svelte.d.ts +8 -0
- package/dist/widgets/c4/activate.d.ts +2 -0
- package/dist/widgets/c4/activate.js +26 -0
- package/dist/widgets/c4/elk-layout.d.ts +103 -0
- package/dist/widgets/c4/elk-layout.js +455 -0
- package/dist/widgets/c4/elk-worker.d.ts +1 -0
- package/dist/widgets/c4/elk-worker.js +21 -0
- package/dist/widgets/c4/index.d.ts +5 -0
- package/dist/widgets/c4/index.js +6 -0
- package/dist/widgets/c4/live.d.ts +209 -0
- package/dist/widgets/c4/live.js +454 -0
- package/dist/widgets/c4/nodes/C4CodeNode.svelte +143 -0
- package/dist/widgets/c4/nodes/C4CodeNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ComponentNode.svelte +78 -0
- package/dist/widgets/c4/nodes/C4ComponentNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ContainerNode.svelte +70 -0
- package/dist/widgets/c4/nodes/C4ContainerNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4DatabaseNode.svelte +116 -0
- package/dist/widgets/c4/nodes/C4DatabaseNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4GroupNode.svelte +133 -0
- package/dist/widgets/c4/nodes/C4GroupNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4PersonNode.svelte +75 -0
- package/dist/widgets/c4/nodes/C4PersonNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4QueueNode.svelte +79 -0
- package/dist/widgets/c4/nodes/C4QueueNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4SystemNode.svelte +53 -0
- package/dist/widgets/c4/nodes/C4SystemNode.svelte.d.ts +7 -0
- package/dist/widgets/c4/nodes/C4ViewNode.svelte +21 -0
- package/dist/widgets/c4/nodes/C4ViewNode.svelte.d.ts +8 -0
- package/dist/widgets/c4/nodes/index.d.ts +35 -0
- package/dist/widgets/c4/nodes/index.js +22 -0
- package/dist/widgets/c4/semantic-flow.d.ts +19 -0
- package/dist/widgets/c4/semantic-flow.js +116 -0
- package/dist/widgets/c4/semantic.d.ts +92 -0
- package/dist/widgets/c4/semantic.js +241 -0
- package/dist/widgets/c4/types.d.ts +192 -0
- package/dist/widgets/c4/types.js +8 -0
- package/dist/widgets/c4/url-sanitizer.d.ts +1 -0
- package/dist/widgets/c4/url-sanitizer.js +6 -0
- package/dist/widgets/call/BottomSheet.svelte +184 -0
- package/dist/widgets/call/BottomSheet.svelte.d.ts +15 -0
- package/dist/widgets/call/ControlBar.svelte +81 -0
- package/dist/widgets/call/ControlBar.svelte.d.ts +11 -0
- package/dist/widgets/call/ControlButton.svelte +226 -0
- package/dist/widgets/call/ControlButton.svelte.d.ts +20 -0
- package/dist/widgets/call/CountBadge.svelte +57 -0
- package/dist/widgets/call/CountBadge.svelte.d.ts +9 -0
- package/dist/widgets/call/FloatingDock.svelte +176 -0
- package/dist/widgets/call/FloatingDock.svelte.d.ts +20 -0
- package/dist/widgets/call/IncomingCallCard.svelte +125 -0
- package/dist/widgets/call/IncomingCallCard.svelte.d.ts +16 -0
- package/dist/widgets/call/ParticipantTile.svelte +241 -0
- package/dist/widgets/call/ParticipantTile.svelte.d.ts +18 -0
- package/dist/widgets/composite/Agenda.svelte +340 -0
- package/dist/widgets/composite/Agenda.svelte.d.ts +25 -0
- package/dist/widgets/composite/AnalyticsDashboard.svelte +371 -0
- package/dist/widgets/composite/AnalyticsDashboard.svelte.d.ts +58 -0
- package/dist/widgets/composite/AskUserQuestions.svelte +568 -0
- package/dist/widgets/composite/AskUserQuestions.svelte.d.ts +41 -0
- package/dist/widgets/composite/AvatarGroup.svelte +79 -0
- package/dist/widgets/composite/AvatarGroup.svelte.d.ts +17 -0
- package/dist/widgets/composite/BillSplit.svelte +425 -0
- package/dist/widgets/composite/BillSplit.svelte.d.ts +29 -0
- package/dist/widgets/composite/BoardGame.svelte +596 -0
- package/dist/widgets/composite/BoardGame.svelte.d.ts +45 -0
- package/dist/widgets/composite/Booking.svelte +643 -0
- package/dist/widgets/composite/Booking.svelte.d.ts +30 -0
- package/dist/widgets/composite/ChecklistLayout.svelte +595 -0
- package/dist/widgets/composite/ChecklistLayout.svelte.d.ts +49 -0
- package/dist/widgets/composite/ComparisonLayout.svelte +809 -0
- package/dist/widgets/composite/ComparisonLayout.svelte.d.ts +78 -0
- package/dist/widgets/composite/EntityDetail.svelte +529 -0
- package/dist/widgets/composite/EntityDetail.svelte.d.ts +55 -0
- package/dist/widgets/composite/ExecDashboard.svelte +1543 -0
- package/dist/widgets/composite/ExecDashboard.svelte.d.ts +214 -0
- package/dist/widgets/composite/ExecDashboardRows.svelte +456 -0
- package/dist/widgets/composite/ExecDashboardRows.svelte.d.ts +21 -0
- package/dist/widgets/composite/Figure.svelte +230 -0
- package/dist/widgets/composite/Figure.svelte.d.ts +20 -0
- package/dist/widgets/composite/FlashcardDeck.svelte +589 -0
- package/dist/widgets/composite/FlashcardDeck.svelte.d.ts +33 -0
- package/dist/widgets/composite/FocusTimer.svelte +566 -0
- package/dist/widgets/composite/FocusTimer.svelte.d.ts +66 -0
- package/dist/widgets/composite/FormLayout.svelte +430 -0
- package/dist/widgets/composite/FormLayout.svelte.d.ts +35 -0
- package/dist/widgets/composite/GrowthProjection.svelte +628 -0
- package/dist/widgets/composite/GrowthProjection.svelte.d.ts +69 -0
- package/dist/widgets/composite/HabitTracker.svelte +489 -0
- package/dist/widgets/composite/HabitTracker.svelte.d.ts +28 -0
- package/dist/widgets/composite/IntervalWorkout.svelte +621 -0
- package/dist/widgets/composite/IntervalWorkout.svelte.d.ts +59 -0
- package/dist/widgets/composite/InvoiceLayout.svelte +615 -0
- package/dist/widgets/composite/InvoiceLayout.svelte.d.ts +48 -0
- package/dist/widgets/composite/IsoScene.svelte +614 -0
- package/dist/widgets/composite/IsoScene.svelte.d.ts +31 -0
- package/dist/widgets/composite/Itinerary.svelte +758 -0
- package/dist/widgets/composite/Itinerary.svelte.d.ts +70 -0
- package/dist/widgets/composite/MealPlan.svelte +518 -0
- package/dist/widgets/composite/MealPlan.svelte.d.ts +26 -0
- package/dist/widgets/composite/MediaGrid.svelte +277 -0
- package/dist/widgets/composite/MediaGrid.svelte.d.ts +41 -0
- package/dist/widgets/composite/MemoryMatch.svelte +613 -0
- package/dist/widgets/composite/MemoryMatch.svelte.d.ts +53 -0
- package/dist/widgets/composite/MenuOrder.svelte +876 -0
- package/dist/widgets/composite/MenuOrder.svelte.d.ts +30 -0
- package/dist/widgets/composite/MusicPlayer.svelte +581 -0
- package/dist/widgets/composite/MusicPlayer.svelte.d.ts +42 -0
- package/dist/widgets/composite/Notes.svelte +469 -0
- package/dist/widgets/composite/Notes.svelte.d.ts +28 -0
- package/dist/widgets/composite/OpsDashboard.svelte +626 -0
- package/dist/widgets/composite/OpsDashboard.svelte.d.ts +57 -0
- package/dist/widgets/composite/OrderStatus.svelte +1037 -0
- package/dist/widgets/composite/OrderStatus.svelte.d.ts +71 -0
- package/dist/widgets/composite/PipelineDashboard.svelte +258 -0
- package/dist/widgets/composite/PipelineDashboard.svelte.d.ts +50 -0
- package/dist/widgets/composite/PlaceResults.svelte +293 -0
- package/dist/widgets/composite/PlaceResults.svelte.d.ts +45 -0
- package/dist/widgets/composite/ProductGrid.svelte +249 -0
- package/dist/widgets/composite/ProductGrid.svelte.d.ts +44 -0
- package/dist/widgets/composite/ProjectDashboard.svelte +724 -0
- package/dist/widgets/composite/ProjectDashboard.svelte.d.ts +67 -0
- package/dist/widgets/composite/Quiz.svelte +540 -0
- package/dist/widgets/composite/Quiz.svelte.d.ts +25 -0
- package/dist/widgets/composite/Recipe.svelte +381 -0
- package/dist/widgets/composite/Recipe.svelte.d.ts +42 -0
- package/dist/widgets/composite/ReportLayout.svelte +379 -0
- package/dist/widgets/composite/ReportLayout.svelte.d.ts +39 -0
- package/dist/widgets/composite/RippleFrame.svelte +48 -0
- package/dist/widgets/composite/RippleFrame.svelte.d.ts +16 -0
- package/dist/widgets/composite/StandupBoard.svelte +400 -0
- package/dist/widgets/composite/StandupBoard.svelte.d.ts +21 -0
- package/dist/widgets/composite/Terminal.svelte +161 -0
- package/dist/widgets/composite/Terminal.svelte.d.ts +20 -0
- package/dist/widgets/composite/WeatherForecast.svelte +406 -0
- package/dist/widgets/composite/WeatherForecast.svelte.d.ts +35 -0
- package/dist/widgets/composite/WeatherIcon.svelte +226 -0
- package/dist/widgets/composite/WeatherIcon.svelte.d.ts +10 -0
- package/dist/widgets/composite/WeekSchedule.svelte +316 -0
- package/dist/widgets/composite/WeekSchedule.svelte.d.ts +27 -0
- package/dist/widgets/composite/WizardLayout.svelte +526 -0
- package/dist/widgets/composite/WizardLayout.svelte.d.ts +44 -0
- package/dist/widgets/composite/WordGuess.svelte +499 -0
- package/dist/widgets/composite/WordGuess.svelte.d.ts +52 -0
- package/dist/widgets/composite/agenda.d.ts +20 -0
- package/dist/widgets/composite/agenda.js +64 -0
- package/dist/widgets/composite/bill-split.d.ts +56 -0
- package/dist/widgets/composite/bill-split.js +117 -0
- package/dist/widgets/composite/board-game.d.ts +45 -0
- package/dist/widgets/composite/board-game.js +277 -0
- package/dist/widgets/composite/booking.d.ts +107 -0
- package/dist/widgets/composite/booking.js +210 -0
- package/dist/widgets/composite/cover-art.d.ts +17 -0
- package/dist/widgets/composite/cover-art.js +63 -0
- package/dist/widgets/composite/exec-dashboard.d.ts +117 -0
- package/dist/widgets/composite/exec-dashboard.js +314 -0
- package/dist/widgets/composite/exercise-figures.d.ts +19 -0
- package/dist/widgets/composite/exercise-figures.js +467 -0
- package/dist/widgets/composite/habit-tracker.d.ts +53 -0
- package/dist/widgets/composite/habit-tracker.js +149 -0
- package/dist/widgets/composite/index.d.ts +43 -0
- package/dist/widgets/composite/index.js +43 -0
- package/dist/widgets/composite/iso-scenes.d.ts +786 -0
- package/dist/widgets/composite/iso-scenes.js +122 -0
- package/dist/widgets/composite/menu-order.d.ts +146 -0
- package/dist/widgets/composite/menu-order.js +217 -0
- package/dist/widgets/composite/music-engine.d.ts +16 -0
- package/dist/widgets/composite/music-engine.js +376 -0
- package/dist/widgets/composite/notes.d.ts +49 -0
- package/dist/widgets/composite/notes.js +130 -0
- package/dist/widgets/composite/order-status-data.d.ts +74 -0
- package/dist/widgets/composite/order-status-data.js +202 -0
- package/dist/widgets/composite/pipeline-dashboard.d.ts +92 -0
- package/dist/widgets/composite/pipeline-dashboard.js +208 -0
- package/dist/widgets/composite/quiz.d.ts +63 -0
- package/dist/widgets/composite/quiz.js +107 -0
- package/dist/widgets/composite/recipe.d.ts +148 -0
- package/dist/widgets/composite/recipe.js +247 -0
- package/dist/widgets/composite/standup-board.d.ts +48 -0
- package/dist/widgets/composite/standup-board.js +171 -0
- package/dist/widgets/composite/weather-forecast.d.ts +75 -0
- package/dist/widgets/composite/weather-forecast.js +241 -0
- package/dist/widgets/composite/week-schedule.d.ts +28 -0
- package/dist/widgets/composite/week-schedule.js +134 -0
- package/dist/widgets/control/Each.svelte +6 -0
- package/dist/widgets/control/Each.svelte.d.ts +8 -0
- package/dist/widgets/control/If.svelte +6 -0
- package/dist/widgets/control/If.svelte.d.ts +8 -0
- package/dist/widgets/control/index.d.ts +2 -0
- package/dist/widgets/control/index.js +2 -0
- package/dist/widgets/craft/AssetPanel.svelte +300 -0
- package/dist/widgets/craft/AssetPanel.svelte.d.ts +28 -0
- package/dist/widgets/craft/CanvasViewport.svelte +528 -0
- package/dist/widgets/craft/CanvasViewport.svelte.d.ts +59 -0
- package/dist/widgets/craft/ContextToolbar.svelte +162 -0
- package/dist/widgets/craft/ContextToolbar.svelte.d.ts +26 -0
- package/dist/widgets/craft/EditorShell.svelte +196 -0
- package/dist/widgets/craft/EditorShell.svelte.d.ts +35 -0
- package/dist/widgets/craft/InspectorSection.svelte +64 -0
- package/dist/widgets/craft/InspectorSection.svelte.d.ts +14 -0
- package/dist/widgets/craft/PageStrip.svelte +280 -0
- package/dist/widgets/craft/PageStrip.svelte.d.ts +22 -0
- package/dist/widgets/craft/PropertyRow.svelte +59 -0
- package/dist/widgets/craft/PropertyRow.svelte.d.ts +14 -0
- package/dist/widgets/craft/ResizeHandle.svelte +67 -0
- package/dist/widgets/craft/ResizeHandle.svelte.d.ts +10 -0
- package/dist/widgets/craft/ToolRail.svelte +163 -0
- package/dist/widgets/craft/ToolRail.svelte.d.ts +19 -0
- package/dist/widgets/craft/TransformBox.svelte +254 -0
- package/dist/widgets/craft/TransformBox.svelte.d.ts +29 -0
- package/dist/widgets/craft/asset-panel.d.ts +53 -0
- package/dist/widgets/craft/asset-panel.js +53 -0
- package/dist/widgets/craft/page-strip.d.ts +12 -0
- package/dist/widgets/craft/page-strip.js +12 -0
- package/dist/widgets/craft/ruler-math.d.ts +12 -0
- package/dist/widgets/craft/ruler-math.js +43 -0
- package/dist/widgets/craft/toolbar-math.d.ts +19 -0
- package/dist/widgets/craft/toolbar-math.js +17 -0
- package/dist/widgets/craft/transform-math.d.ts +16 -0
- package/dist/widgets/craft/transform-math.js +37 -0
- package/dist/widgets/craft/types.d.ts +84 -0
- package/dist/widgets/craft/types.js +24 -0
- package/dist/widgets/craft/viewport-math.d.ts +14 -0
- package/dist/widgets/craft/viewport-math.js +20 -0
- package/dist/widgets/data/Calendar.svelte +771 -0
- package/dist/widgets/data/Calendar.svelte.d.ts +22 -0
- package/dist/widgets/data/Chart.svelte +599 -0
- package/dist/widgets/data/Chart.svelte.d.ts +33 -0
- package/dist/widgets/data/DataGrid.svelte +266 -0
- package/dist/widgets/data/DataGrid.svelte.d.ts +39 -0
- package/dist/widgets/data/DiffTable.svelte +406 -0
- package/dist/widgets/data/DiffTable.svelte.d.ts +33 -0
- package/dist/widgets/data/Funnel.svelte +425 -0
- package/dist/widgets/data/Funnel.svelte.d.ts +21 -0
- package/dist/widgets/data/GanttChart.svelte +717 -0
- package/dist/widgets/data/GanttChart.svelte.d.ts +25 -0
- package/dist/widgets/data/Gauge.svelte +238 -0
- package/dist/widgets/data/Gauge.svelte.d.ts +20 -0
- package/dist/widgets/data/Heatmap.svelte +600 -0
- package/dist/widgets/data/Heatmap.svelte.d.ts +27 -0
- package/dist/widgets/data/Kanban.svelte +585 -0
- package/dist/widgets/data/Kanban.svelte.d.ts +34 -0
- package/dist/widgets/data/Map.svelte +777 -0
- package/dist/widgets/data/Map.svelte.d.ts +82 -0
- package/dist/widgets/data/Sankey.svelte +519 -0
- package/dist/widgets/data/Sankey.svelte.d.ts +25 -0
- package/dist/widgets/data/Seismograph.svelte +269 -0
- package/dist/widgets/data/Seismograph.svelte.d.ts +28 -0
- package/dist/widgets/data/Sparkline.svelte +62 -0
- package/dist/widgets/data/Sparkline.svelte.d.ts +19 -0
- package/dist/widgets/data/Table.svelte +646 -0
- package/dist/widgets/data/Table.svelte.d.ts +59 -0
- package/dist/widgets/data/Tree.svelte +355 -0
- package/dist/widgets/data/Tree.svelte.d.ts +48 -0
- package/dist/widgets/data/TreeTable.svelte +221 -0
- package/dist/widgets/data/TreeTable.svelte.d.ts +26 -0
- package/dist/widgets/data/Treemap.svelte +650 -0
- package/dist/widgets/data/Treemap.svelte.d.ts +24 -0
- package/dist/widgets/data/VirtualList.svelte +137 -0
- package/dist/widgets/data/VirtualList.svelte.d.ts +20 -0
- package/dist/widgets/data/calendar-layout.d.ts +105 -0
- package/dist/widgets/data/calendar-layout.js +269 -0
- package/dist/widgets/data/chart-layout.d.ts +57 -0
- package/dist/widgets/data/chart-layout.js +131 -0
- package/dist/widgets/data/funnel-math.d.ts +57 -0
- package/dist/widgets/data/funnel-math.js +173 -0
- package/dist/widgets/data/gantt-scale.d.ts +86 -0
- package/dist/widgets/data/gantt-scale.js +344 -0
- package/dist/widgets/data/gauge-value.d.ts +43 -0
- package/dist/widgets/data/gauge-value.js +118 -0
- package/dist/widgets/data/heatmap-scale.d.ts +97 -0
- package/dist/widgets/data/heatmap-scale.js +260 -0
- package/dist/widgets/data/index.d.ts +17 -0
- package/dist/widgets/data/index.js +18 -0
- package/dist/widgets/data/kanban-board.d.ts +39 -0
- package/dist/widgets/data/kanban-board.js +118 -0
- package/dist/widgets/data/map-labels.d.ts +18 -0
- package/dist/widgets/data/map-labels.js +74 -0
- package/dist/widgets/data/sankey-layout.d.ts +120 -0
- package/dist/widgets/data/sankey-layout.js +744 -0
- package/dist/widgets/data/treemap.d.ts +72 -0
- package/dist/widgets/data/treemap.js +178 -0
- package/dist/widgets/data-kit/Delta.svelte +49 -0
- package/dist/widgets/data-kit/Delta.svelte.d.ts +15 -0
- package/dist/widgets/data-kit/PhotoTile.svelte +82 -0
- package/dist/widgets/data-kit/PhotoTile.svelte.d.ts +24 -0
- package/dist/widgets/data-kit/SectionCard.svelte +52 -0
- package/dist/widgets/data-kit/SectionCard.svelte.d.ts +14 -0
- package/dist/widgets/data-kit/SectionGrid.svelte +35 -0
- package/dist/widgets/data-kit/SectionGrid.svelte.d.ts +30 -0
- package/dist/widgets/data-kit/StageRail.svelte +166 -0
- package/dist/widgets/data-kit/StageRail.svelte.d.ts +10 -0
- package/dist/widgets/data-kit/StatChip.svelte +67 -0
- package/dist/widgets/data-kit/StatChip.svelte.d.ts +16 -0
- package/dist/widgets/data-kit/StatusPill.svelte +37 -0
- package/dist/widgets/data-kit/StatusPill.svelte.d.ts +9 -0
- package/dist/widgets/data-kit/VerdictLine.svelte +29 -0
- package/dist/widgets/data-kit/VerdictLine.svelte.d.ts +8 -0
- package/dist/widgets/data-kit/edit.d.ts +14 -0
- package/dist/widgets/data-kit/edit.js +27 -0
- package/dist/widgets/data-kit/format.d.ts +53 -0
- package/dist/widgets/data-kit/format.js +132 -0
- package/dist/widgets/data-kit/icons.d.ts +284 -0
- package/dist/widgets/data-kit/icons.js +511 -0
- package/dist/widgets/data-kit/index.d.ts +13 -0
- package/dist/widgets/data-kit/index.js +17 -0
- package/dist/widgets/data-kit/motion.d.ts +18 -0
- package/dist/widgets/data-kit/motion.js +29 -0
- package/dist/widgets/data-kit/pair.d.ts +3 -0
- package/dist/widgets/data-kit/pair.js +19 -0
- package/dist/widgets/data-kit/status.d.ts +18 -0
- package/dist/widgets/data-kit/status.js +49 -0
- package/dist/widgets/data-kit/tint.d.ts +3 -0
- package/dist/widgets/data-kit/tint.js +19 -0
- package/dist/widgets/data-kit/types.d.ts +23 -0
- package/dist/widgets/data-kit/types.js +5 -0
- package/dist/widgets/design-system/DesignSystemEditor.svelte +157 -0
- package/dist/widgets/design-system/DesignSystemEditor.svelte.d.ts +13 -0
- package/dist/widgets/design-system/brand-defaults.d.ts +20 -0
- package/dist/widgets/design-system/brand-defaults.js +96 -0
- package/dist/widgets/design-system/index.d.ts +10 -0
- package/dist/widgets/design-system/index.js +10 -0
- package/dist/widgets/display/ArticleMeta.svelte +84 -0
- package/dist/widgets/display/ArticleMeta.svelte.d.ts +13 -0
- package/dist/widgets/display/Avatar.svelte +87 -0
- package/dist/widgets/display/Avatar.svelte.d.ts +12 -0
- package/dist/widgets/display/Badge.svelte +72 -0
- package/dist/widgets/display/Badge.svelte.d.ts +10 -0
- package/dist/widgets/display/Chip.svelte +142 -0
- package/dist/widgets/display/Chip.svelte.d.ts +20 -0
- package/dist/widgets/display/Code.svelte +39 -0
- package/dist/widgets/display/Code.svelte.d.ts +12 -0
- package/dist/widgets/display/CodeBlock.svelte +234 -0
- package/dist/widgets/display/CodeBlock.svelte.d.ts +25 -0
- package/dist/widgets/display/ComparisonTable.svelte +74 -0
- package/dist/widgets/display/ComparisonTable.svelte.d.ts +23 -0
- package/dist/widgets/display/Copy.svelte +88 -0
- package/dist/widgets/display/Copy.svelte.d.ts +12 -0
- package/dist/widgets/display/DefinitionList.svelte +59 -0
- package/dist/widgets/display/DefinitionList.svelte.d.ts +15 -0
- package/dist/widgets/display/Diff.svelte +236 -0
- package/dist/widgets/display/Diff.svelte.d.ts +24 -0
- package/dist/widgets/display/EmptyState.svelte +119 -0
- package/dist/widgets/display/EmptyState.svelte.d.ts +23 -0
- package/dist/widgets/display/FillGrid.svelte +82 -0
- package/dist/widgets/display/FillGrid.svelte.d.ts +22 -0
- package/dist/widgets/display/GlyphGrid.svelte +149 -0
- package/dist/widgets/display/GlyphGrid.svelte.d.ts +23 -0
- package/dist/widgets/display/Heading.svelte +35 -0
- package/dist/widgets/display/Heading.svelte.d.ts +9 -0
- package/dist/widgets/display/Highlight.svelte +68 -0
- package/dist/widgets/display/Highlight.svelte.d.ts +18 -0
- package/dist/widgets/display/Icon.svelte +68 -0
- package/dist/widgets/display/Icon.svelte.d.ts +17 -0
- package/dist/widgets/display/Illustration.svelte +457 -0
- package/dist/widgets/display/Illustration.svelte.d.ts +29 -0
- package/dist/widgets/display/Image.svelte +37 -0
- package/dist/widgets/display/Image.svelte.d.ts +14 -0
- package/dist/widgets/display/InlineAlert.svelte +118 -0
- package/dist/widgets/display/InlineAlert.svelte.d.ts +22 -0
- package/dist/widgets/display/Kbd.svelte +33 -0
- package/dist/widgets/display/Kbd.svelte.d.ts +10 -0
- package/dist/widgets/display/LedClock.svelte +236 -0
- package/dist/widgets/display/LedClock.svelte.d.ts +24 -0
- package/dist/widgets/display/LinkPreview.svelte +112 -0
- package/dist/widgets/display/LinkPreview.svelte.d.ts +20 -0
- package/dist/widgets/display/Loading.svelte +45 -0
- package/dist/widgets/display/Loading.svelte.d.ts +12 -0
- package/dist/widgets/display/Markdown.svelte +208 -0
- package/dist/widgets/display/Markdown.svelte.d.ts +14 -0
- package/dist/widgets/display/Mention.svelte +139 -0
- package/dist/widgets/display/Mention.svelte.d.ts +21 -0
- package/dist/widgets/display/Metric.svelte +106 -0
- package/dist/widgets/display/Metric.svelte.d.ts +13 -0
- package/dist/widgets/display/Progress.svelte +72 -0
- package/dist/widgets/display/Progress.svelte.d.ts +17 -0
- package/dist/widgets/display/ProgressRing.svelte +116 -0
- package/dist/widgets/display/ProgressRing.svelte.d.ts +22 -0
- package/dist/widgets/display/ProsCons.svelte +60 -0
- package/dist/widgets/display/ProsCons.svelte.d.ts +12 -0
- package/dist/widgets/display/Qr.svelte +136 -0
- package/dist/widgets/display/Qr.svelte.d.ts +22 -0
- package/dist/widgets/display/Quote.svelte +54 -0
- package/dist/widgets/display/Quote.svelte.d.ts +16 -0
- package/dist/widgets/display/RichTextDisplay.svelte +73 -0
- package/dist/widgets/display/RichTextDisplay.svelte.d.ts +11 -0
- package/dist/widgets/display/Skeleton.svelte +36 -0
- package/dist/widgets/display/Skeleton.svelte.d.ts +7 -0
- package/dist/widgets/display/SoulStatus.svelte +148 -0
- package/dist/widgets/display/SoulStatus.svelte.d.ts +17 -0
- package/dist/widgets/display/Stat.svelte +232 -0
- package/dist/widgets/display/Stat.svelte.d.ts +22 -0
- package/dist/widgets/display/StatusDot.svelte +53 -0
- package/dist/widgets/display/StatusDot.svelte.d.ts +14 -0
- package/dist/widgets/display/Steps.svelte +117 -0
- package/dist/widgets/display/Steps.svelte.d.ts +20 -0
- package/dist/widgets/display/StreakBars.svelte +92 -0
- package/dist/widgets/display/StreakBars.svelte.d.ts +28 -0
- package/dist/widgets/display/Text.svelte +98 -0
- package/dist/widgets/display/Text.svelte.d.ts +13 -0
- package/dist/widgets/display/Trend.svelte +42 -0
- package/dist/widgets/display/Trend.svelte.d.ts +14 -0
- package/dist/widgets/display/diff-rows.d.ts +51 -0
- package/dist/widgets/display/diff-rows.js +107 -0
- package/dist/widgets/display/gutter.d.ts +5 -0
- package/dist/widgets/display/gutter.js +18 -0
- package/dist/widgets/display/illustration-contrast.d.ts +16 -0
- package/dist/widgets/display/illustration-contrast.js +162 -0
- package/dist/widgets/display/index.d.ts +39 -0
- package/dist/widgets/display/index.js +40 -0
- package/dist/widgets/display/linkify.d.ts +16 -0
- package/dist/widgets/display/linkify.js +47 -0
- package/dist/widgets/index.d.ts +30 -0
- package/dist/widgets/index.js +481 -0
- package/dist/widgets/input/Button.svelte +336 -0
- package/dist/widgets/input/Button.svelte.d.ts +27 -0
- package/dist/widgets/input/Checkbox.svelte +70 -0
- package/dist/widgets/input/Checkbox.svelte.d.ts +15 -0
- package/dist/widgets/input/CheckboxGroup.svelte +250 -0
- package/dist/widgets/input/CheckboxGroup.svelte.d.ts +20 -0
- package/dist/widgets/input/ChoiceGrid.svelte +150 -0
- package/dist/widgets/input/ChoiceGrid.svelte.d.ts +16 -0
- package/dist/widgets/input/CodeEditor.svelte +146 -0
- package/dist/widgets/input/CodeEditor.svelte.d.ts +17 -0
- package/dist/widgets/input/ColorPicker.svelte +511 -0
- package/dist/widgets/input/ColorPicker.svelte.d.ts +55 -0
- package/dist/widgets/input/Combobox.svelte +174 -0
- package/dist/widgets/input/Combobox.svelte.d.ts +22 -0
- package/dist/widgets/input/DatePicker.svelte +226 -0
- package/dist/widgets/input/DatePicker.svelte.d.ts +18 -0
- package/dist/widgets/input/FileUpload.svelte +197 -0
- package/dist/widgets/input/FileUpload.svelte.d.ts +32 -0
- package/dist/widgets/input/FilterBar.svelte +161 -0
- package/dist/widgets/input/FilterBar.svelte.d.ts +32 -0
- package/dist/widgets/input/Form.svelte +185 -0
- package/dist/widgets/input/Form.svelte.d.ts +55 -0
- package/dist/widgets/input/Input.svelte +190 -0
- package/dist/widgets/input/Input.svelte.d.ts +27 -0
- package/dist/widgets/input/LocationPicker.svelte +247 -0
- package/dist/widgets/input/LocationPicker.svelte.d.ts +28 -0
- package/dist/widgets/input/MultiSelect.svelte +233 -0
- package/dist/widgets/input/MultiSelect.svelte.d.ts +27 -0
- package/dist/widgets/input/NumberInput.svelte +193 -0
- package/dist/widgets/input/NumberInput.svelte.d.ts +30 -0
- package/dist/widgets/input/OtpInput.svelte +148 -0
- package/dist/widgets/input/OtpInput.svelte.d.ts +21 -0
- package/dist/widgets/input/RadioGroup.svelte +66 -0
- package/dist/widgets/input/RadioGroup.svelte.d.ts +20 -0
- package/dist/widgets/input/Rating.svelte +82 -0
- package/dist/widgets/input/Rating.svelte.d.ts +16 -0
- package/dist/widgets/input/RichText.svelte +179 -0
- package/dist/widgets/input/RichText.svelte.d.ts +17 -0
- package/dist/widgets/input/Search.svelte +255 -0
- package/dist/widgets/input/Search.svelte.d.ts +42 -0
- package/dist/widgets/input/Segmented.svelte +205 -0
- package/dist/widgets/input/Segmented.svelte.d.ts +34 -0
- package/dist/widgets/input/Select.svelte +90 -0
- package/dist/widgets/input/Select.svelte.d.ts +20 -0
- package/dist/widgets/input/Slider.svelte +92 -0
- package/dist/widgets/input/Slider.svelte.d.ts +17 -0
- package/dist/widgets/input/Switch.svelte +138 -0
- package/dist/widgets/input/Switch.svelte.d.ts +15 -0
- package/dist/widgets/input/Textarea.svelte +84 -0
- package/dist/widgets/input/Textarea.svelte.d.ts +20 -0
- package/dist/widgets/input/TimePicker.svelte +224 -0
- package/dist/widgets/input/TimePicker.svelte.d.ts +18 -0
- package/dist/widgets/input/choice-grid.d.ts +12 -0
- package/dist/widgets/input/choice-grid.js +1 -0
- package/dist/widgets/input/color-math.d.ts +25 -0
- package/dist/widgets/input/color-math.js +59 -0
- package/dist/widgets/input/field-name.d.ts +4 -0
- package/dist/widgets/input/field-name.js +14 -0
- package/dist/widgets/input/index.d.ts +25 -0
- package/dist/widgets/input/index.js +25 -0
- package/dist/widgets/interactive/DrawingCanvas.svelte +279 -0
- package/dist/widgets/interactive/DrawingCanvas.svelte.d.ts +14 -0
- package/dist/widgets/interactive/Flashcard.svelte +140 -0
- package/dist/widgets/interactive/Flashcard.svelte.d.ts +21 -0
- package/dist/widgets/interactive/Timer.svelte +157 -0
- package/dist/widgets/interactive/Timer.svelte.d.ts +15 -0
- package/dist/widgets/interactive/TodoList.svelte +181 -0
- package/dist/widgets/interactive/TodoList.svelte.d.ts +25 -0
- package/dist/widgets/interactive/index.d.ts +4 -0
- package/dist/widgets/interactive/index.js +10 -0
- package/dist/widgets/layout/Accordion.svelte +76 -0
- package/dist/widgets/layout/Accordion.svelte.d.ts +20 -0
- package/dist/widgets/layout/AppShell.svelte +56 -0
- package/dist/widgets/layout/AppShell.svelte.d.ts +15 -0
- package/dist/widgets/layout/Breadcrumb.svelte +92 -0
- package/dist/widgets/layout/Breadcrumb.svelte.d.ts +21 -0
- package/dist/widgets/layout/Card.svelte +143 -0
- package/dist/widgets/layout/Card.svelte.d.ts +19 -0
- package/dist/widgets/layout/Collapsible.svelte +76 -0
- package/dist/widgets/layout/Collapsible.svelte.d.ts +18 -0
- package/dist/widgets/layout/Container.svelte +44 -0
- package/dist/widgets/layout/Container.svelte.d.ts +11 -0
- package/dist/widgets/layout/Dashboard.svelte +97 -0
- package/dist/widgets/layout/Dashboard.svelte.d.ts +17 -0
- package/dist/widgets/layout/DashboardSlot.svelte +33 -0
- package/dist/widgets/layout/DashboardSlot.svelte.d.ts +12 -0
- package/dist/widgets/layout/Flex.svelte +101 -0
- package/dist/widgets/layout/Flex.svelte.d.ts +18 -0
- package/dist/widgets/layout/GlassCard.svelte +112 -0
- package/dist/widgets/layout/GlassCard.svelte.d.ts +17 -0
- package/dist/widgets/layout/Grid.svelte +105 -0
- package/dist/widgets/layout/Grid.svelte.d.ts +14 -0
- package/dist/widgets/layout/Hero.svelte +63 -0
- package/dist/widgets/layout/Hero.svelte.d.ts +16 -0
- package/dist/widgets/layout/ListRow.svelte +162 -0
- package/dist/widgets/layout/ListRow.svelte.d.ts +28 -0
- package/dist/widgets/layout/MasterDetail.svelte +136 -0
- package/dist/widgets/layout/MasterDetail.svelte.d.ts +35 -0
- package/dist/widgets/layout/Modal.svelte +104 -0
- package/dist/widgets/layout/Modal.svelte.d.ts +16 -0
- package/dist/widgets/layout/PageHeader.svelte +107 -0
- package/dist/widgets/layout/PageHeader.svelte.d.ts +26 -0
- package/dist/widgets/layout/PanelHeader.svelte +76 -0
- package/dist/widgets/layout/PanelHeader.svelte.d.ts +19 -0
- package/dist/widgets/layout/Section.svelte +41 -0
- package/dist/widgets/layout/Section.svelte.d.ts +13 -0
- package/dist/widgets/layout/SectionHeader.svelte +95 -0
- package/dist/widgets/layout/SectionHeader.svelte.d.ts +18 -0
- package/dist/widgets/layout/Separator.svelte +69 -0
- package/dist/widgets/layout/Separator.svelte.d.ts +10 -0
- package/dist/widgets/layout/Sheet.svelte +64 -0
- package/dist/widgets/layout/Sheet.svelte.d.ts +23 -0
- package/dist/widgets/layout/Sidebar.svelte +146 -0
- package/dist/widgets/layout/Sidebar.svelte.d.ts +31 -0
- package/dist/widgets/layout/Split.svelte +183 -0
- package/dist/widgets/layout/Split.svelte.d.ts +25 -0
- package/dist/widgets/layout/Tabs.svelte +90 -0
- package/dist/widgets/layout/Tabs.svelte.d.ts +23 -0
- package/dist/widgets/layout/index.d.ts +21 -0
- package/dist/widgets/layout/index.js +22 -0
- package/dist/widgets/marketing/Cta.svelte +22 -0
- package/dist/widgets/marketing/Cta.svelte.d.ts +13 -0
- package/dist/widgets/marketing/Faq.svelte +71 -0
- package/dist/widgets/marketing/Faq.svelte.d.ts +16 -0
- package/dist/widgets/marketing/FeatureGrid.svelte +52 -0
- package/dist/widgets/marketing/FeatureGrid.svelte.d.ts +16 -0
- package/dist/widgets/marketing/Footer.svelte +33 -0
- package/dist/widgets/marketing/Footer.svelte.d.ts +18 -0
- package/dist/widgets/marketing/Hero.svelte +206 -0
- package/dist/widgets/marketing/Hero.svelte.d.ts +31 -0
- package/dist/widgets/marketing/LogoCloud.svelte +30 -0
- package/dist/widgets/marketing/LogoCloud.svelte.d.ts +15 -0
- package/dist/widgets/marketing/Navbar.svelte +46 -0
- package/dist/widgets/marketing/Navbar.svelte.d.ts +23 -0
- package/dist/widgets/marketing/Newsletter.svelte +32 -0
- package/dist/widgets/marketing/Newsletter.svelte.d.ts +13 -0
- package/dist/widgets/marketing/Testimonial.svelte +26 -0
- package/dist/widgets/marketing/Testimonial.svelte.d.ts +12 -0
- package/dist/widgets/marketing/index.d.ts +9 -0
- package/dist/widgets/marketing/index.js +14 -0
- package/dist/widgets/media/AudioPlayer.svelte +236 -0
- package/dist/widgets/media/AudioPlayer.svelte.d.ts +19 -0
- package/dist/widgets/media/Embed.svelte +205 -0
- package/dist/widgets/media/Embed.svelte.d.ts +41 -0
- package/dist/widgets/media/ModelViewer.svelte +409 -0
- package/dist/widgets/media/ModelViewer.svelte.d.ts +36 -0
- package/dist/widgets/media/VideoPlayer.svelte +255 -0
- package/dist/widgets/media/VideoPlayer.svelte.d.ts +21 -0
- package/dist/widgets/media/index.d.ts +4 -0
- package/dist/widgets/media/index.js +12 -0
- package/dist/widgets/media/model-asset-types.d.ts +41 -0
- package/dist/widgets/media/model-asset-types.js +23 -0
- package/dist/widgets/media/model-assets.d.ts +2 -0
- package/dist/widgets/media/model-assets.js +501 -0
- package/dist/widgets/motion/Parallax.svelte +39 -0
- package/dist/widgets/motion/Parallax.svelte.d.ts +13 -0
- package/dist/widgets/motion/Reveal.svelte +44 -0
- package/dist/widgets/motion/Reveal.svelte.d.ts +15 -0
- package/dist/widgets/motion/index.d.ts +2 -0
- package/dist/widgets/motion/index.js +4 -0
- package/dist/widgets/overlay/Alert.svelte +77 -0
- package/dist/widgets/overlay/Alert.svelte.d.ts +18 -0
- package/dist/widgets/overlay/Coachmark.svelte +146 -0
- package/dist/widgets/overlay/Coachmark.svelte.d.ts +26 -0
- package/dist/widgets/overlay/CommandPalette.svelte +369 -0
- package/dist/widgets/overlay/CommandPalette.svelte.d.ts +35 -0
- package/dist/widgets/overlay/ConfirmDialog.svelte +77 -0
- package/dist/widgets/overlay/ConfirmDialog.svelte.d.ts +3 -0
- package/dist/widgets/overlay/ContextMenu.svelte +153 -0
- package/dist/widgets/overlay/ContextMenu.svelte.d.ts +24 -0
- package/dist/widgets/overlay/DropdownMenu.svelte +128 -0
- package/dist/widgets/overlay/DropdownMenu.svelte.d.ts +33 -0
- package/dist/widgets/overlay/ErrorState.svelte +121 -0
- package/dist/widgets/overlay/ErrorState.svelte.d.ts +19 -0
- package/dist/widgets/overlay/HoverCard.svelte +71 -0
- package/dist/widgets/overlay/HoverCard.svelte.d.ts +20 -0
- package/dist/widgets/overlay/NotificationCenter.svelte +178 -0
- package/dist/widgets/overlay/NotificationCenter.svelte.d.ts +28 -0
- package/dist/widgets/overlay/Popover.svelte +69 -0
- package/dist/widgets/overlay/Popover.svelte.d.ts +20 -0
- package/dist/widgets/overlay/Toast.svelte +91 -0
- package/dist/widgets/overlay/Toast.svelte.d.ts +11 -0
- package/dist/widgets/overlay/Tooltip.svelte +70 -0
- package/dist/widgets/overlay/Tooltip.svelte.d.ts +23 -0
- package/dist/widgets/overlay/index.d.ts +18 -0
- package/dist/widgets/overlay/index.js +18 -0
- package/dist/widgets/overlay/palette-search.d.ts +33 -0
- package/dist/widgets/overlay/palette-search.js +94 -0
- package/dist/widgets/premium/AnimatedBeam.svelte +63 -0
- package/dist/widgets/premium/AnimatedBeam.svelte.d.ts +16 -0
- package/dist/widgets/premium/Aurora.svelte +66 -0
- package/dist/widgets/premium/Aurora.svelte.d.ts +15 -0
- package/dist/widgets/premium/BentoGrid.svelte +46 -0
- package/dist/widgets/premium/BentoGrid.svelte.d.ts +20 -0
- package/dist/widgets/premium/BorderBeam.svelte +61 -0
- package/dist/widgets/premium/BorderBeam.svelte.d.ts +19 -0
- package/dist/widgets/premium/Marquee.svelte +52 -0
- package/dist/widgets/premium/Marquee.svelte.d.ts +19 -0
- package/dist/widgets/premium/Shimmer.svelte +106 -0
- package/dist/widgets/premium/Shimmer.svelte.d.ts +15 -0
- package/dist/widgets/premium/Spotlight.svelte +82 -0
- package/dist/widgets/premium/Spotlight.svelte.d.ts +15 -0
- package/dist/widgets/premium/TextEffect.svelte +63 -0
- package/dist/widgets/premium/TextEffect.svelte.d.ts +18 -0
- package/dist/widgets/premium/index.d.ts +8 -0
- package/dist/widgets/premium/index.js +11 -0
- package/dist/widgets/research/AnalystBar.svelte +141 -0
- package/dist/widgets/research/AnalystBar.svelte.d.ts +18 -0
- package/dist/widgets/research/Callout.svelte +84 -0
- package/dist/widgets/research/Callout.svelte.d.ts +14 -0
- package/dist/widgets/research/Citation.svelte +114 -0
- package/dist/widgets/research/Citation.svelte.d.ts +19 -0
- package/dist/widgets/research/CompanyHeader.svelte +236 -0
- package/dist/widgets/research/CompanyHeader.svelte.d.ts +30 -0
- package/dist/widgets/research/DiscoverCard.svelte +129 -0
- package/dist/widgets/research/DiscoverCard.svelte.d.ts +19 -0
- package/dist/widgets/research/FollowUp.svelte +123 -0
- package/dist/widgets/research/FollowUp.svelte.d.ts +15 -0
- package/dist/widgets/research/KvTable.svelte +95 -0
- package/dist/widgets/research/KvTable.svelte.d.ts +18 -0
- package/dist/widgets/research/NewsCard.svelte +144 -0
- package/dist/widgets/research/NewsCard.svelte.d.ts +21 -0
- package/dist/widgets/research/RangeBar.svelte +128 -0
- package/dist/widgets/research/RangeBar.svelte.d.ts +24 -0
- package/dist/widgets/research/SourceCard.svelte +129 -0
- package/dist/widgets/research/SourceCard.svelte.d.ts +19 -0
- package/dist/widgets/research/SourcesBar.svelte +477 -0
- package/dist/widgets/research/SourcesBar.svelte.d.ts +25 -0
- package/dist/widgets/research/Ticker.svelte +90 -0
- package/dist/widgets/research/Ticker.svelte.d.ts +16 -0
- package/dist/widgets/research/Timeline.svelte +154 -0
- package/dist/widgets/research/Timeline.svelte.d.ts +25 -0
- package/dist/widgets/research/index.d.ts +13 -0
- package/dist/widgets/research/index.js +13 -0
- package/dist/widgets/research/sources.d.ts +37 -0
- package/dist/widgets/research/sources.js +141 -0
- package/dist/widgets/text-coerce.d.ts +1 -0
- package/dist/widgets/text-coerce.js +7 -0
- package/dist/widgets/validate-catalog-bound.d.ts +26 -0
- package/dist/widgets/validate-catalog-bound.js +36 -0
- package/dist/widgets/vertical/ApiKey.svelte +131 -0
- package/dist/widgets/vertical/ApiKey.svelte.d.ts +21 -0
- package/dist/widgets/vertical/AuditLog.svelte +750 -0
- package/dist/widgets/vertical/AuditLog.svelte.d.ts +30 -0
- package/dist/widgets/vertical/BulkActionBar.svelte +406 -0
- package/dist/widgets/vertical/BulkActionBar.svelte.d.ts +24 -0
- package/dist/widgets/vertical/CommentThread.svelte +109 -0
- package/dist/widgets/vertical/CommentThread.svelte.d.ts +22 -0
- package/dist/widgets/vertical/InvoiceLines.svelte +220 -0
- package/dist/widgets/vertical/InvoiceLines.svelte.d.ts +20 -0
- package/dist/widgets/vertical/OrgChart.svelte +537 -0
- package/dist/widgets/vertical/OrgChart.svelte.d.ts +20 -0
- package/dist/widgets/vertical/PeoplePicker.svelte +233 -0
- package/dist/widgets/vertical/PeoplePicker.svelte.d.ts +26 -0
- package/dist/widgets/vertical/PermissionMatrix.svelte +119 -0
- package/dist/widgets/vertical/PermissionMatrix.svelte.d.ts +29 -0
- package/dist/widgets/vertical/PricingTable.svelte +174 -0
- package/dist/widgets/vertical/PricingTable.svelte.d.ts +32 -0
- package/dist/widgets/vertical/SavedViews.svelte +319 -0
- package/dist/widgets/vertical/SavedViews.svelte.d.ts +25 -0
- package/dist/widgets/vertical/SettingsList.svelte +84 -0
- package/dist/widgets/vertical/SettingsList.svelte.d.ts +20 -0
- package/dist/widgets/vertical/audit-log-data.d.ts +91 -0
- package/dist/widgets/vertical/audit-log-data.js +290 -0
- package/dist/widgets/vertical/bulk-action-bar.d.ts +37 -0
- package/dist/widgets/vertical/bulk-action-bar.js +105 -0
- package/dist/widgets/vertical/index.d.ts +11 -0
- package/dist/widgets/vertical/index.js +11 -0
- package/dist/widgets/vertical/invoice-math.d.ts +39 -0
- package/dist/widgets/vertical/invoice-math.js +67 -0
- package/dist/widgets/vertical/org-chart-layout.d.ts +52 -0
- package/dist/widgets/vertical/org-chart-layout.js +192 -0
- package/dist/widgets/vertical/saved-views.d.ts +22 -0
- package/dist/widgets/vertical/saved-views.js +77 -0
- package/dist/widgets/workflow/WorkflowEdge.svelte +77 -0
- package/dist/widgets/workflow/WorkflowEdge.svelte.d.ts +4 -0
- package/dist/widgets/workflow/WorkflowNode.svelte +173 -0
- package/dist/widgets/workflow/WorkflowNode.svelte.d.ts +9 -0
- package/dist/widgets/workflow/index.d.ts +4 -0
- package/dist/widgets/workflow/index.js +4 -0
- package/dist/widgets/workflow/layout.d.ts +192 -0
- package/dist/widgets/workflow/layout.js +845 -0
- package/dist/widgets/workflow/types.d.ts +40 -0
- package/dist/widgets/workflow/types.js +4 -0
- package/package.json +178 -4
|
@@ -0,0 +1,877 @@
|
|
|
1
|
+
// figures/rocket-engine/figure.ts: a liquid-fuel rocket engine firing on a
|
|
2
|
+
// horizontal test stand, drawn with the @ripple-ui/core/iso
|
|
3
|
+
// kit. World: x along the engine toward the nozzle exit, y toward the viewer,
|
|
4
|
+
// z up; 1 unit is about 1 cm. The engine hangs from a load cell on a pylon
|
|
5
|
+
// through its gimbal and fires off the end of the bed; the tanks stand at the
|
|
6
|
+
// far end; the turbopump rides on top of the chamber, cut open lengthwise on
|
|
7
|
+
// the side facing the viewer so its shaft, inducers, impellers and turbine show.
|
|
8
|
+
//
|
|
9
|
+
// Round parts come from `turned()` (a profile of [s, r] spun round an axis,
|
|
10
|
+
// faceted and shaded by facing) and must be convex, so the waisted chamber and
|
|
11
|
+
// nozzle are cut into convex bands drawn back to front along x (band, ring,
|
|
12
|
+
// band, as the Anatomy craft says). Pipes are prism legs with ball elbows, each
|
|
13
|
+
// ending on a flange or collar, and carry a dashed flow line tinted by what
|
|
14
|
+
// they carry (oxygen blue, kerosene amber, hot gas red).
|
|
15
|
+
//
|
|
16
|
+
// `engineSvg()` is pure (strings only). Static parts are built once in
|
|
17
|
+
// `ready()`; per frame `mount()` rebuilds only the rotor (it spins at SLOW of
|
|
18
|
+
// real speed), the plume (it flickers and follows the throttle) and the gauge
|
|
19
|
+
// needle, and moves the flow dashes. No DOM or work at module top level.
|
|
20
|
+
import * as k from '@ripple-ui/core/iso';
|
|
21
|
+
import { frameOf, framed, percentIn } from '../frame.js';
|
|
22
|
+
import { addFigureStyle } from '../style.js';
|
|
23
|
+
import { clampParams, describe, plumeOf, readoutsOf, shaftSpeedOf, stateOf } from './model.js';
|
|
24
|
+
export const WIDTH = 640;
|
|
25
|
+
export const HEIGHT = 420;
|
|
26
|
+
const TAU = Math.PI * 2;
|
|
27
|
+
const ZE = 72; // engine axis height
|
|
28
|
+
const ZT = 150; // turbopump axis height
|
|
29
|
+
const PLATE = { x: -262, y: -74, w: 372, d: 154, r: 10 };
|
|
30
|
+
const PLATE_H = 10;
|
|
31
|
+
const FOOT_H = 5;
|
|
32
|
+
const EXIT_X = 95;
|
|
33
|
+
const EXIT_R = 44;
|
|
34
|
+
const THROAT_X = 10;
|
|
35
|
+
const THROAT_R = 11;
|
|
36
|
+
const TANK = { x: -222, r: 24, top: 150 };
|
|
37
|
+
const OX_Y = 36; // oxygen tank in front
|
|
38
|
+
const FUEL_Y = -36; // kerosene tank behind
|
|
39
|
+
const PB = { x: -67, y: -56, r: 11, z0: 128, z1: 172 }; // preburner
|
|
40
|
+
const GAUGE = { x: -40, y: 62, z: 40, r: 11 };
|
|
41
|
+
let P = null;
|
|
42
|
+
let V = [0, 0, 1];
|
|
43
|
+
let LIGHT = [0, 0, 1];
|
|
44
|
+
let STATIC = { back: '', front: '' };
|
|
45
|
+
const at = (p) => k.iso(p, P);
|
|
46
|
+
const S = (paths, style = {}) => k.solidSvg(paths, style);
|
|
47
|
+
const L = (d, style = {}) => k.lineSvg(d, style);
|
|
48
|
+
const D = (points, style = {}) => k.dotsSvg(points, style);
|
|
49
|
+
const depth = (p) => k.depthOf(p, P);
|
|
50
|
+
const radial = (F, phi) => k.add3(k.mul3(F.u, Math.cos(phi)), k.mul3(F.v, Math.sin(phi)));
|
|
51
|
+
const onRing = (F, s, r, phi) => k.pointOf(F, s, r * Math.cos(phi), r * Math.sin(phi));
|
|
52
|
+
const fx = (o) => k.axisFrame(o, 'x');
|
|
53
|
+
const fz = (o) => k.axisFrame(o, 'z');
|
|
54
|
+
const ENGINE = () => fx([0, 0, ZE]);
|
|
55
|
+
const PUMP = () => fx([0, 0, ZT]);
|
|
56
|
+
// ---- turned parts ------------------------------------------------------------
|
|
57
|
+
/** A convex solid of revolution: `prof` is [s, r] pairs along F.a (s ascending), closed by end caps. */
|
|
58
|
+
function turned(F, prof, steps = 64, openEnd = false) {
|
|
59
|
+
const n = prof.length;
|
|
60
|
+
const rings = prof.map(([s, r]) => Array.from({ length: steps }, (_, j) => onRing(F, s, r, (j / steps) * TAU)));
|
|
61
|
+
const flat = rings.map((ring) => ring.map(at));
|
|
62
|
+
const buckets = [[], [], [], [], []];
|
|
63
|
+
const seen = [];
|
|
64
|
+
for (let i = 0; i < n - 1; i++) {
|
|
65
|
+
const [s0, r0] = prof[i];
|
|
66
|
+
const [s1, r1] = prof[i + 1];
|
|
67
|
+
const row = [];
|
|
68
|
+
for (let j = 0; j < steps; j++) {
|
|
69
|
+
const mid = ((j + 0.5) / steps) * TAU;
|
|
70
|
+
const nrm = Math.abs(s1 - s0) < 1e-9 ? k.mul3(F.a, -Math.sign(r1 - r0)) : k.unit3(k.sub3(k.mul3(radial(F, mid), s1 - s0), k.mul3(F.a, r1 - r0)));
|
|
71
|
+
const vis = k.dot3(nrm, V) > 1e-6 && Math.abs(r1 - r0) + Math.abs(s1 - s0) > 1e-9;
|
|
72
|
+
row.push(vis);
|
|
73
|
+
if (!vis)
|
|
74
|
+
continue;
|
|
75
|
+
const j1 = (j + 1) % steps;
|
|
76
|
+
buckets[k.bandOf(k.dot3(nrm, LIGHT))].push(k.pathOf([flat[i][j], flat[i][j1], flat[i + 1][j1], flat[i + 1][j]], true));
|
|
77
|
+
}
|
|
78
|
+
seen.push(row);
|
|
79
|
+
}
|
|
80
|
+
const creases = [];
|
|
81
|
+
const cap = (i, normal, row) => {
|
|
82
|
+
if (prof[i][1] < 0.05 || k.dot3(normal, V) <= 1e-6)
|
|
83
|
+
return;
|
|
84
|
+
buckets[k.bandOf(k.dot3(normal, LIGHT))].push(k.pathOf(flat[i], true));
|
|
85
|
+
if (row)
|
|
86
|
+
creaseRun(flat[i], row, creases);
|
|
87
|
+
};
|
|
88
|
+
cap(0, k.mul3(F.a, -1), seen[0]);
|
|
89
|
+
if (!openEnd)
|
|
90
|
+
cap(n - 1, F.a, seen[n - 2]);
|
|
91
|
+
// Shoulders: a ring where the profile turns sharply reads as a machined crease.
|
|
92
|
+
for (let i = 1; i < n - 1; i++) {
|
|
93
|
+
const [sa, ra] = prof[i - 1];
|
|
94
|
+
const [sb, rb] = prof[i];
|
|
95
|
+
const [sc, rc] = prof[i + 1];
|
|
96
|
+
const a1 = Math.atan2(rb - ra, sb - sa);
|
|
97
|
+
const a2 = Math.atan2(rc - rb, sc - sb);
|
|
98
|
+
if (Math.abs(a2 - a1) < 0.35)
|
|
99
|
+
continue;
|
|
100
|
+
creaseRun(flat[i], seen[i - 1].map((v, j) => v && seen[i][j]), creases);
|
|
101
|
+
}
|
|
102
|
+
const hull = k.pathOf(k.hullOf(flat.flat()), true);
|
|
103
|
+
return { fill: hull, outline: hull, crease: creases.join(''), top: buckets[4].join(''), shades: buckets.slice(0, 4).map((b) => b.join('')), seamless: true };
|
|
104
|
+
}
|
|
105
|
+
/** The runs of a ring's segments flagged true, as open paths. */
|
|
106
|
+
function creaseRun(ring, on, out) {
|
|
107
|
+
const n = ring.length;
|
|
108
|
+
const start = on.findIndex((v, j) => v && !on[(j - 1 + n) % n]);
|
|
109
|
+
if (start < 0) {
|
|
110
|
+
if (on.every(Boolean))
|
|
111
|
+
out.push(k.pathOf(ring, true));
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
let run = [];
|
|
115
|
+
for (let c = 0; c <= n; c++) {
|
|
116
|
+
const j = (start + c) % n;
|
|
117
|
+
if (on[j] && c < n) {
|
|
118
|
+
if (!run.length)
|
|
119
|
+
run.push(ring[j]);
|
|
120
|
+
run.push(ring[(j + 1) % n]);
|
|
121
|
+
}
|
|
122
|
+
else if (run.length) {
|
|
123
|
+
out.push(k.pathOf(run));
|
|
124
|
+
run = [];
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
/** The visible arc of the ring at s (radius r, profile slope dr/ds) from limb to limb, as a path. */
|
|
129
|
+
function arcOf(F, s, r, slope = 0, steps = 48) {
|
|
130
|
+
const A = k.dot3(F.u, V);
|
|
131
|
+
const B = k.dot3(F.v, V);
|
|
132
|
+
const C = slope * k.dot3(F.a, V);
|
|
133
|
+
const R = Math.hypot(A, B);
|
|
134
|
+
if (C / R >= 1)
|
|
135
|
+
return '';
|
|
136
|
+
const mid = Math.atan2(B, A);
|
|
137
|
+
const half = C / R <= -1 ? Math.PI : Math.acos(C / R);
|
|
138
|
+
return k.pathOf(Array.from({ length: steps + 1 }, (_, i) => at(onRing(F, s, r, mid - half + (2 * half * i) / steps))));
|
|
139
|
+
}
|
|
140
|
+
/** How squarely a surface point faces the viewer, 0..1 (for fading textures toward the limbs). */
|
|
141
|
+
const facing = (n) => Math.max(0, k.dot3(k.unit3(n), V));
|
|
142
|
+
// ---- the cut-open turbopump housing ---------------------------------------------
|
|
143
|
+
/** The direction across the axis that points at the viewer: the cut removes the half on this side. */
|
|
144
|
+
const cutNormal = (F) => k.unit3(k.sub3(V, k.mul3(F.a, k.dot3(V, F.a))));
|
|
145
|
+
const backOf = (F) => {
|
|
146
|
+
const w = cutNormal(F);
|
|
147
|
+
return Math.atan2(k.dot3(F.v, w), k.dot3(F.u, w)) + Math.PI; // centre of the half that stays
|
|
148
|
+
};
|
|
149
|
+
/** A housing section from s0 to s1 (outer radius R, wall t) with its viewer-side half cut away. */
|
|
150
|
+
function cutShell(F, s0, s1, R, t, wall = {}, hole = 4) {
|
|
151
|
+
const N = 40;
|
|
152
|
+
const c = backOf(F);
|
|
153
|
+
const phis = Array.from({ length: N + 1 }, (_, i) => c - Math.PI / 2 + (Math.PI * i) / N);
|
|
154
|
+
const ri = R - t;
|
|
155
|
+
const buckets = [[], [], [], [], []];
|
|
156
|
+
const put = (n, pts) => {
|
|
157
|
+
if (k.dot3(n, V) <= 1e-6)
|
|
158
|
+
return;
|
|
159
|
+
buckets[k.bandOf(k.dot3(n, LIGHT))].push(k.pathOf(pts.map(at), true));
|
|
160
|
+
};
|
|
161
|
+
// Inner surface of the half that stays.
|
|
162
|
+
for (let i = 0; i < N; i++)
|
|
163
|
+
put(k.mul3(radial(F, (phis[i] + phis[i + 1]) / 2), -1), [onRing(F, s0, ri, phis[i]), onRing(F, s0, ri, phis[i + 1]), onRing(F, s1, ri, phis[i + 1]), onRing(F, s1, ri, phis[i])]);
|
|
164
|
+
// The far end wall (inside face, toward +s) and the near end (the cut wall's outer face).
|
|
165
|
+
const halfDisc = (s, r0) => [...phis.map((p) => onRing(F, s, R, p)), ...phis.toReversed().map((p) => onRing(F, s, r0, p))];
|
|
166
|
+
if (wall.s0)
|
|
167
|
+
put(F.a, halfDisc(s0, hole));
|
|
168
|
+
// Cut faces: two strips along the cut, facing the viewer, bare machined metal.
|
|
169
|
+
const cut = [phis[0], phis[N]].map((p) => k.pathOf([onRing(F, s0, ri, p), onRing(F, s0, R, p), onRing(F, s1, R, p), onRing(F, s1, ri, p)].map(at), true)).join('');
|
|
170
|
+
const endWall = wall.s1 ? halfDisc(s1, hole) : halfDisc(s1, ri);
|
|
171
|
+
put(F.a, endWall);
|
|
172
|
+
const outer = [...phis.map((p) => at(onRing(F, s0, R, p))), ...phis.map((p) => at(onRing(F, s1, R, p)))];
|
|
173
|
+
const hull = k.pathOf(k.hullOf(outer), true);
|
|
174
|
+
const crease = [
|
|
175
|
+
...[phis[0], phis[N]].map((p) => k.pathOf([at(onRing(F, s0, ri, p)), at(onRing(F, s1, ri, p))])),
|
|
176
|
+
k.pathOf(phis.map((p) => at(onRing(F, s1, wall.s1 ? hole : ri, p)))),
|
|
177
|
+
k.pathOf(phis.map((p) => at(onRing(F, s0, ri, p))))
|
|
178
|
+
].join('');
|
|
179
|
+
const inner = `<path class="rk-cutface" d="${cut}"/>` + L(crease, { tone: 'lo', className: 'iso-crease' });
|
|
180
|
+
return S({ fill: hull, outline: hull, crease: '', top: buckets[4].join(''), shades: buckets.slice(0, 4).map((b) => b.join('')) }, { tone: 'mid', crease: 'none', className: 'rk-cut', inner });
|
|
181
|
+
}
|
|
182
|
+
/** A pipe through `route` (straight legs), ball elbows at the bends, flanges at both ends; pieces sorted by depth. */
|
|
183
|
+
function pipe(route, r, fluid, flowId, ends = [true, true]) {
|
|
184
|
+
const pieces = [];
|
|
185
|
+
const cls = fluid ? `rk-${fluid}` : '';
|
|
186
|
+
for (let i = 0; i < route.length - 1; i++) {
|
|
187
|
+
const a = route[i];
|
|
188
|
+
const b = route[i + 1];
|
|
189
|
+
const dir = k.sub3(b, a);
|
|
190
|
+
const len = k.len3(dir);
|
|
191
|
+
const F = k.frameAlong(a, dir);
|
|
192
|
+
const startPad = i === 0 ? 0 : r * 0.6;
|
|
193
|
+
const endPad = i === route.length - 2 ? 0 : r * 0.6;
|
|
194
|
+
pieces.push({ key: depth(k.add3(a, k.mul3(dir, 0.5))), svg: S(k.prismOf(F, k.circlePolygon(r, 28), startPad, len - endPad, P), { tone: 'mid', crease: 'none', className: cls }) });
|
|
195
|
+
const flange = (o, along, key) => pieces.push({ key, svg: S(k.prismOf(k.frameAlong(o, along), k.circlePolygon(r + 2, 32), 0, 2.4, P), { tone: 'mid', className: cls }) });
|
|
196
|
+
if (i === 0 && ends[0])
|
|
197
|
+
flange(a, dir, depth(a) + 0.02);
|
|
198
|
+
if (i === route.length - 2 && ends[1])
|
|
199
|
+
flange(b, k.mul3(dir, -1), depth(b) + 0.02);
|
|
200
|
+
}
|
|
201
|
+
for (let i = 1; i < route.length - 1; i++)
|
|
202
|
+
pieces.push({ key: depth(route[i]) + 0.01, svg: S(k.sphereOf(route[i], r * 1.22, P, 40), { tone: 'mid', crease: 'none', className: cls }) });
|
|
203
|
+
pieces.sort((a, b) => a.key - b.key);
|
|
204
|
+
let flow = '';
|
|
205
|
+
if (flowId && fluid) {
|
|
206
|
+
// The dashes ride the side of the pipe nearest the viewer, from flange face to flange face.
|
|
207
|
+
const pts = [];
|
|
208
|
+
route.forEach((p, i) => {
|
|
209
|
+
const prev = route[Math.max(0, i - 1)];
|
|
210
|
+
const next = route[Math.min(route.length - 1, i + 1)];
|
|
211
|
+
const axis = k.unit3(k.sub3(next, prev));
|
|
212
|
+
const off = k.sub3(V, k.mul3(axis, k.dot3(V, axis)));
|
|
213
|
+
const n = k.len3(off) > 1e-6 ? k.unit3(off) : [0, 0, 1];
|
|
214
|
+
let q = p;
|
|
215
|
+
if (i === 0 && ends[0])
|
|
216
|
+
q = k.add3(p, k.mul3(axis, 2.4));
|
|
217
|
+
if (i === route.length - 1 && ends[1])
|
|
218
|
+
q = k.add3(p, k.mul3(axis, -2.4));
|
|
219
|
+
pts.push(at(k.add3(q, k.mul3(n, r * 0.62))));
|
|
220
|
+
});
|
|
221
|
+
flow = `<path class="iso-line rk-flow rk-flow-${fluid}" data-flow-id="${flowId}" d="${k.pathOf(pts)}"/>` + D([pts[0], pts[pts.length - 1]], { size: 0.5, tone: 'mid' });
|
|
222
|
+
}
|
|
223
|
+
return pieces.map((p) => p.svg).join('') + flow;
|
|
224
|
+
}
|
|
225
|
+
/** A valve body on a straight leg (centre `o`, along `axis`), with an actuator can standing out along `side`. */
|
|
226
|
+
function valve(o, axis, r, side, fluid) {
|
|
227
|
+
const F = k.frameAlong(o, axis);
|
|
228
|
+
const body = turned(F, [[-9, r + 1.6], [-7, r + 3.4], [-3, r + 5], [3, r + 5], [7, r + 3.4], [9, r + 1.6]], 48);
|
|
229
|
+
const out = [S(body, { tone: 'mid', className: `rk-${fluid}`, inner: L(arcOf(F, 0, r + 5), { tone: 'faint' }) })];
|
|
230
|
+
const neck = k.add3(o, k.mul3(side, r + 4.6));
|
|
231
|
+
const G = k.frameAlong(neck, side);
|
|
232
|
+
out.push(S(turned(G, [[0, 2.2], [5, 2.2]], 24), { tone: 'mid', crease: 'none' }));
|
|
233
|
+
out.push(S(turned(G, [[5, 5.4], [6, 6], [13, 6], [14, 5.2]], 40), { tone: 'mid', inner: L(arcOf(G, 9.5, 6), { tone: 'faint' }) }));
|
|
234
|
+
out.push(D([at(k.add3(neck, k.mul3(side, 14)))], { size: 0.55, tone: 'hi' }));
|
|
235
|
+
return out.join('');
|
|
236
|
+
}
|
|
237
|
+
// ---- base and stand -----------------------------------------------------------
|
|
238
|
+
function bench() {
|
|
239
|
+
const out = [`<path class="iso-halo" d="${k.haloOf(PLATE, -PLATE_H - FOOT_H, PLATE_H, P)}"/>`];
|
|
240
|
+
const feet = [...k.corners(PLATE, 24), [PLATE.x + PLATE.w / 2, PLATE.y + 24], [PLATE.x + PLATE.w / 2, PLATE.y + PLATE.d - 24]].sort((a, b) => depth([a[0], a[1], 0]) - depth([b[0], b[1], 0]));
|
|
241
|
+
for (const [x, y] of feet) {
|
|
242
|
+
out.push(S(k.cylinder(x, y, 8, -PLATE_H - FOOT_H, 1.6, P, 28), { tone: 'lo' }));
|
|
243
|
+
out.push(S(k.cylinder(x, y, 6.2, -PLATE_H - FOOT_H + 1.6, FOOT_H - 1.6, P, 28), { tone: 'lo' }));
|
|
244
|
+
}
|
|
245
|
+
out.push(S(k.slabOf(PLATE, -PLATE_H, PLATE_H, P, 8, 1.6), { tone: 'lo', inner: L(k.sideSeam(PLATE, -PLATE_H + 3, P), { tone: 'faint' }) }));
|
|
246
|
+
out.push(L(k.planOutline(k.insetPlan(PLATE, 6), 0, P), { tone: 'faint' }));
|
|
247
|
+
const screws = k.corners(PLATE, 12);
|
|
248
|
+
out.push(L(screws.map(([x, y]) => k.ring(x, y, 2.6, 0, P, 16)).join(''), { tone: 'lo' }));
|
|
249
|
+
out.push(D(screws.map(([x, y]) => at([x, y, 0])), { size: 0.5 }));
|
|
250
|
+
// Ruler strip along the front edge, under the engine, ticks rooted on its back edge.
|
|
251
|
+
const strip = { x: -120, y: PLATE.y + PLATE.d - 16, w: 210, d: 8, r: 1 };
|
|
252
|
+
out.push(S(k.slabOf(strip, 0, 0.6, P, 3), { tone: 'lo', crease: 'none' }));
|
|
253
|
+
const ticks = k.topTicks(strip.x + 4, strip.x + strip.w - 4, 5, 5, strip.y + 0.8, 0.6, [2.2, 4], P);
|
|
254
|
+
out.push(L(ticks.minor, { tone: 'lo' }), L(ticks.major, { tone: 'mid' }));
|
|
255
|
+
// Label plate, front left, three rule lines standing for print.
|
|
256
|
+
const label = { x: -250, y: PLATE.y + PLATE.d - 22, w: 40, d: 13, r: 1.2 };
|
|
257
|
+
out.push(S(k.slabOf(label, 0, 1, P, 3, 0.3), { tone: 'mid' }));
|
|
258
|
+
for (const [i, yy] of [3.4, 6.6, 9.8].entries())
|
|
259
|
+
out.push(L(k.lineOnTop([label.x + 3, label.y + yy], [label.x + label.w - (i ? 12 : 3), label.y + yy], 1, P), { tone: i === 0 ? 'lo' : 'faint', free: true }));
|
|
260
|
+
out.push(D([at([label.x + 1.6, label.y + 6.6, 1]), at([label.x + label.w - 1.6, label.y + 6.6, 1])], { size: 0.45 }));
|
|
261
|
+
return out.join('');
|
|
262
|
+
}
|
|
263
|
+
function shadow(plan, z = 0) {
|
|
264
|
+
return `<path class="iso-halo rk-shadow" d="${k.haloOf(plan, z, 0.1, P)}"/>`;
|
|
265
|
+
}
|
|
266
|
+
/** A propellant tank on a pad: shell with weld seams, a domed lid with a bolt ring, a level port and an outlet boss. */
|
|
267
|
+
function tank(y, fluid) {
|
|
268
|
+
const { x, r, top } = TANK;
|
|
269
|
+
const out = [];
|
|
270
|
+
out.push(S(k.cylinder(x, y, r + 5, 0, 4, P, 48, 0.6), { tone: 'mid' }));
|
|
271
|
+
out.push(shadow({ x: x - r, y: y - r, w: 2 * r, d: 2 * r, r }, 4));
|
|
272
|
+
const seams = L(k.sideArc(x, y, r, 30, P, 32) + k.sideArc(x, y, r, 90, P, 32) + k.sideArc(x, y, r, top - 12, P, 32), { tone: 'lo' });
|
|
273
|
+
out.push(S(k.cylinder(x, y, r, 4, top - 4, P, 64), { tone: 'hi', crease: 'lo', className: `rk-${fluid}`, inner: seams }));
|
|
274
|
+
const F = fz([x, y, top]);
|
|
275
|
+
out.push(S(turned(F, Array.from({ length: 13 }, (_, i) => [16 * Math.sin((i / 12) * 1.32), Math.max(4, r * Math.cos((i / 12) * 1.32))]), 64), { tone: 'mid', className: `rk-${fluid}` }));
|
|
276
|
+
out.push(D(Array.from({ length: 14 }, (_, i) => (i / 14) * TAU).filter((a) => Math.cos(a) * k.towardViewer(P)[0] + Math.sin(a) * k.towardViewer(P)[1] > 0.1).map((a) => at([x + Math.cos(a) * (r - 2.5), y + Math.sin(a) * (r - 2.5), top + 4])), { size: 0.45, tone: 'mid' }));
|
|
277
|
+
out.push(S(k.cylinder(x, y, 4.6, top + 16, 4, P, 28), { tone: 'mid' }));
|
|
278
|
+
out.push(D([at([x, y, top + 20])], { size: 0.55, tone: 'hi' }));
|
|
279
|
+
// Level sight port on the front: a short boss with a ring.
|
|
280
|
+
for (const z of [58, 112])
|
|
281
|
+
out.push(S(turned(fx([x + r - 0.5, y, z]), [[0, 3.2], [4.5, 3.2]], 28), { tone: 'mid' }));
|
|
282
|
+
out.push(S(k.cylinder(x + r + 2.6, y, 1.5, 58, 54, P, 20), { tone: 'mid', crease: 'none', className: `rk-${fluid}` }));
|
|
283
|
+
return out.join('');
|
|
284
|
+
}
|
|
285
|
+
function pylon() {
|
|
286
|
+
const out = [];
|
|
287
|
+
const base = { x: -158, y: -38, w: 32, d: 76, r: 2 };
|
|
288
|
+
out.push(shadow(base));
|
|
289
|
+
out.push(S(k.slabOf(base, 0, 5, P, 4, 0.6), { tone: 'mid' }));
|
|
290
|
+
out.push(D(k.corners(base, 4).map(([x, y]) => at([x, y, 5])), { size: 0.5, tone: 'mid' }));
|
|
291
|
+
// Gussets either side of the post.
|
|
292
|
+
for (const y of [-30, 27]) {
|
|
293
|
+
const F = k.axisFrame([0, y, 0], 'y');
|
|
294
|
+
out.push(S(k.prismOf(F, [[5, -132], [5, -128], [70, -132]], 0, 3, P), { tone: 'mid' }));
|
|
295
|
+
}
|
|
296
|
+
const post = { x: -152, y: -32, w: 20, d: 64, r: 2 };
|
|
297
|
+
const seam = L(k.sideSeam(post, 40, P, 4) + k.sideSeam(post, 100, P, 4), { tone: 'faint' });
|
|
298
|
+
out.push(S(k.slabOf(post, 5, 105, P, 4, 1), { tone: 'mid', inner: seam }));
|
|
299
|
+
out.push(D([-24, -8, 8, 24].flatMap((y) => [at([-132, y, 92]), at([-132, y, 52])]), { size: 0.5, tone: 'mid' }));
|
|
300
|
+
// Access panel on the front face: a raised plate with four screws.
|
|
301
|
+
const panel = k.prismOf(k.axisFrame([0, 32, 0], 'y'), [[22, -148], [22, -136], [78, -136], [78, -148]], 0, 0.8, P);
|
|
302
|
+
out.push(S(panel, { tone: 'mid' }));
|
|
303
|
+
out.push(D([[26, -146], [26, -138], [74, -146], [74, -138]].map(([z, x]) => at([x, 32.8, z])), { size: 0.45, tone: 'mid' }));
|
|
304
|
+
return out.join('');
|
|
305
|
+
}
|
|
306
|
+
/** Load cell, mount plate and gimbal: the engine's only tie to the stand, so the load cell feels all the thrust. */
|
|
307
|
+
function thrustMount() {
|
|
308
|
+
const E = ENGINE();
|
|
309
|
+
const out = [];
|
|
310
|
+
out.push(S(turned(E, [[-132, 10.5], [-130, 10.5]], 48), { tone: 'mid' }));
|
|
311
|
+
out.push(S(turned(E, [[-130, 8], [-118, 8]], 48), { tone: 'hi', crease: 'lo', inner: L(arcOf(E, -126, 8) + arcOf(E, -122, 8), { tone: 'faint' }) }));
|
|
312
|
+
out.push(S(turned(E, [[-118, 10.5], [-116, 10.5]], 48), { tone: 'mid' }));
|
|
313
|
+
// Connector on top of the load cell body.
|
|
314
|
+
out.push(S(k.cylinder(-124, 0, 2.4, ZE + 7.6, 5, P, 20), { tone: 'mid' }) + D([at([-124, 0, ZE + 12.6])], { size: 0.5, tone: 'hi' }));
|
|
315
|
+
// Square mount plate with four bolts.
|
|
316
|
+
const plate = k.prismOf(fx([-116, 0, ZE]), [[-15, -15], [15, -15], [15, 15], [-15, 15]], 0, 3.5, P);
|
|
317
|
+
out.push(S(plate, { tone: 'mid' }));
|
|
318
|
+
out.push(D([[-11, -11], [11, -11], [-11, 11], [11, 11]].map(([y, z]) => at([-112.5, y, ZE + z])), { size: 0.5, tone: 'mid' }));
|
|
319
|
+
// Gimbal: a cross of trunnion pins in a ring between two knuckles.
|
|
320
|
+
out.push(S(turned(E, [[-112.5, 6], [-101, 6]], 40), { tone: 'mid', crease: 'none' }));
|
|
321
|
+
out.push(S(k.prismOf(k.frameAlong([-107, -14, ZE], [0, 1, 0]), k.circlePolygon(2.6, 20), 0, 28, P), { tone: 'mid', crease: 'none' }));
|
|
322
|
+
out.push(S(turned(E, [[-110, 11], [-109, 12], [-105, 12], [-104, 11]], 56), { tone: 'mid' }));
|
|
323
|
+
out.push(S(k.prismOf(k.frameAlong([-107, 13.5, ZE], [0, 1, 0]), k.circlePolygon(3.6, 24), 0, 2, P), { tone: 'mid' }) + D([at([-107, 15.5, ZE])], { size: 0.55, tone: 'hi' }));
|
|
324
|
+
out.push(S(k.prismOf(k.frameAlong([-107, 0, ZE + 11.5], [0, 0, 1]), k.circlePolygon(3.6, 24), 0, 2.4, P), { tone: 'mid' }));
|
|
325
|
+
return out.join('');
|
|
326
|
+
}
|
|
327
|
+
// ---- engine body ------------------------------------------------------------------
|
|
328
|
+
/** Bell radius at x (throat to exit): a parabola-like curve from 34 deg at the throat to 10 deg at the lip. */
|
|
329
|
+
export function bellR(x) {
|
|
330
|
+
const L = EXIT_X - THROAT_X;
|
|
331
|
+
const u = Math.min(L, Math.max(0, x - THROAT_X));
|
|
332
|
+
const a = Math.tan((34 * Math.PI) / 180);
|
|
333
|
+
const b = Math.tan((10 * Math.PI) / 180);
|
|
334
|
+
const raw = (v) => a * v + ((b - a) * v * v) / (2 * L);
|
|
335
|
+
return THROAT_R + ((EXIT_R - THROAT_R) * raw(u)) / raw(L);
|
|
336
|
+
}
|
|
337
|
+
const bellSlope = (x) => (bellR(x + 0.5) - bellR(x - 0.5)) / 1;
|
|
338
|
+
const bellProfile = (x0, x1, step = 3) => {
|
|
339
|
+
const n = Math.max(2, Math.ceil((x1 - x0) / step));
|
|
340
|
+
return Array.from({ length: n + 1 }, (_, i) => {
|
|
341
|
+
const x = x0 + ((x1 - x0) * i) / n;
|
|
342
|
+
return [x, bellR(x)];
|
|
343
|
+
});
|
|
344
|
+
};
|
|
345
|
+
const RINGS = { stiffener: [48, 52], manifold: [82, 88] };
|
|
346
|
+
/** Cooling channels on a bell band: faint meridians that fade toward the limbs and end on the band's seams. */
|
|
347
|
+
function channels(x0, x1, count = 72) {
|
|
348
|
+
const E = ENGINE();
|
|
349
|
+
const list = [];
|
|
350
|
+
for (let j = 0; j < count; j++) {
|
|
351
|
+
const phi = (j / count) * TAU;
|
|
352
|
+
const mid = (x0 + x1) / 2;
|
|
353
|
+
const n = k.sub3(radial(E, phi), k.mul3(E.a, bellSlope(mid)));
|
|
354
|
+
const f = facing(n);
|
|
355
|
+
if (f < 0.08)
|
|
356
|
+
continue;
|
|
357
|
+
const pts = [];
|
|
358
|
+
for (let i = 0; i <= 8; i++) {
|
|
359
|
+
const x = x0 + ((x1 - x0) * i) / 8;
|
|
360
|
+
pts.push(at(onRing(E, x, bellR(x) + 0.05, phi)));
|
|
361
|
+
}
|
|
362
|
+
list.push([k.pathOf(pts), Math.min(1, (f - 0.08) / 0.35)]);
|
|
363
|
+
}
|
|
364
|
+
return k.fadedSvg(list, { tone: 'lo', className: 'rk-channel' });
|
|
365
|
+
}
|
|
366
|
+
/** Bolt heads round a flange rim, fading toward the limbs. */
|
|
367
|
+
function rimBolts(F, s, r, count) {
|
|
368
|
+
const out = [];
|
|
369
|
+
for (let j = 0; j < count; j++) {
|
|
370
|
+
const phi = (j / count) * TAU;
|
|
371
|
+
const f = facing(radial(F, phi));
|
|
372
|
+
if (f < 0.15)
|
|
373
|
+
continue;
|
|
374
|
+
const [x, y] = at(onRing(F, s, r, phi));
|
|
375
|
+
out.push(`<circle cx="${x.toFixed(1)}" cy="${y.toFixed(1)}" r="0.5" fill-opacity="${Math.min(1, (f - 0.15) / 0.3).toFixed(2)}"/>`);
|
|
376
|
+
}
|
|
377
|
+
return `<g class="iso-dots" data-tone="mid">${out.join('')}</g>`;
|
|
378
|
+
}
|
|
379
|
+
function engineBody() {
|
|
380
|
+
const E = ENGINE();
|
|
381
|
+
const out = [];
|
|
382
|
+
out.push(S(turned(E, [[-101, 9], [-96, 9]], 48), { tone: 'mid' })); // thrust puck
|
|
383
|
+
out.push(S(turned(E, [[-96, 8], [-93, 11.5], [-89, 14], [-84, 15.8], [-78, 17], [-73, 17.4]], 64), { tone: 'hi', crease: 'lo', className: 'rk-hot' })); // injector dome
|
|
384
|
+
out.push(S(turned(E, [[-73, 23], [-70, 23]], 64), { tone: 'mid' }) + rimBolts(E, -71.5, 23, 24));
|
|
385
|
+
out.push(S(turned(E, [[-70, 24.2], [-68.6, 24.2]], 64), { tone: 'mid', crease: 'lo' })); // injector plate edge
|
|
386
|
+
out.push(S(turned(E, [[-68.6, 23], [-65.6, 23]], 64), { tone: 'mid' }) + rimBolts(E, -67.1, 23, 24));
|
|
387
|
+
// Chamber: three bands between two cooling-jacket rings.
|
|
388
|
+
const band = (x0, x1) => S(turned(E, [[x0, 19], [x1, 19]], 64), { tone: 'hi', crease: 'lo' });
|
|
389
|
+
const ring = (x0, x1) => S(turned(E, [[x0, 20.6], [x0 + 0.8, 21.4], [x1 - 0.8, 21.4], [x1, 20.6]], 64), { tone: 'mid' });
|
|
390
|
+
out.push(band(-65.6, -51.5), ring(-51.5, -48.5), band(-48.5, -31.5), ring(-31.5, -28.5), band(-28.5, -10));
|
|
391
|
+
// Pressure tap boss on the chamber, low on the front, where the gauge's sense line starts.
|
|
392
|
+
out.push(S(k.prismOf(k.frameAlong(onRing(E, -40, 18.4, Math.PI * -0.3), radial(E, Math.PI * -0.3)), k.circlePolygon(3.4, 24), 0, 3, P), { tone: 'mid' }));
|
|
393
|
+
// Converging section, then the bell in bands round its two rings.
|
|
394
|
+
const conv = Array.from({ length: 25 }, (_, i) => [-10 + (20 * i) / 24, 19 - (19 - THROAT_R) * (i / 24) ** 1.6]);
|
|
395
|
+
out.push(S(turned(E, conv, 64), { tone: 'hi', crease: 'lo' }));
|
|
396
|
+
const bell = (x0, x1) => S(turned(E, bellProfile(x0, x1), 72), { tone: 'hi', crease: 'lo', inner: channels(x0 + 0.4, x1) });
|
|
397
|
+
const hoop = (x0, x1, h) => {
|
|
398
|
+
const r0 = bellR(x0) + h;
|
|
399
|
+
const r1 = bellR(x1) + h;
|
|
400
|
+
return S(turned(E, [[x0, bellR(x0) + 0.4], [x0 + 0.6, r0], [x1 - 0.6, r1], [x1, bellR(x1) + 0.4]], 72), { tone: 'mid' });
|
|
401
|
+
};
|
|
402
|
+
out.push(bell(THROAT_X, RINGS.stiffener[0]), hoop(RINGS.stiffener[0], RINGS.stiffener[1], 1.8));
|
|
403
|
+
out.push(bell(RINGS.stiffener[1], RINGS.manifold[0]), hoop(RINGS.manifold[0], RINGS.manifold[1], 4.2) + rimBolts(E, (RINGS.manifold[0] + RINGS.manifold[1]) / 2, bellR(85) + 4.3, 36));
|
|
404
|
+
// Last band to the lip; the lip is open, so its end cap is the hot interior.
|
|
405
|
+
out.push(S(turned(E, bellProfile(RINGS.manifold[1], EXIT_X, 2), 72, true), { tone: 'hi', crease: 'lo', inner: channels(RINGS.manifold[1] + 0.4, EXIT_X - 0.6) }));
|
|
406
|
+
out.push(`<path class="rk-interior" d="${lipPath()}"/>`);
|
|
407
|
+
out.push(`<clipPath id="rk-lip"><path d="${lipPath(0.985)}"/></clipPath><g clip-path="url(#rk-lip)"><path class="rk-glow" d="${lipPath(0.8, THROAT_X + 45)}"/></g>`);
|
|
408
|
+
out.push(L(arcInside(), { tone: 'lo' }));
|
|
409
|
+
return out.join('');
|
|
410
|
+
}
|
|
411
|
+
/** The lip ellipse (or a smaller one, for the glow deep in the throat). */
|
|
412
|
+
function lipPath(scale = 1, x = EXIT_X) {
|
|
413
|
+
const E = ENGINE();
|
|
414
|
+
return k.pathOf(Array.from({ length: 72 }, (_, j) => at(onRing(E, x, EXIT_R * scale, (j / 72) * TAU))), true);
|
|
415
|
+
}
|
|
416
|
+
/** The back of the bell's inside seen through the lip: the throat ring, as an arc. */
|
|
417
|
+
function arcInside() {
|
|
418
|
+
const E = ENGINE();
|
|
419
|
+
const c = backOf(E);
|
|
420
|
+
return k.pathOf(Array.from({ length: 33 }, (_, i) => at(onRing(E, THROAT_X + 2, THROAT_R + 0.6, c - Math.PI / 2 + (Math.PI * i) / 32))));
|
|
421
|
+
}
|
|
422
|
+
// ---- turbopump, preburner and lines -----------------------------------------------
|
|
423
|
+
const SECTIONS = {
|
|
424
|
+
ox: { s0: -116, s1: -88, R: 19 },
|
|
425
|
+
brg1: { s0: -88, s1: -81, R: 11 },
|
|
426
|
+
turbine: { s0: -81, s1: -53, R: 25 },
|
|
427
|
+
brg2: { s0: -53, s1: -46, R: 11 },
|
|
428
|
+
fuel: { s0: -46, s1: -16, R: 18 }
|
|
429
|
+
};
|
|
430
|
+
function preburner() {
|
|
431
|
+
const F = fz([PB.x, PB.y, 0]);
|
|
432
|
+
const out = [];
|
|
433
|
+
out.push(S(turned(F, [[PB.z0 - 3, PB.r + 2], [PB.z0, PB.r + 2]], 48), { tone: 'mid' }));
|
|
434
|
+
out.push(S(turned(F, [[PB.z0, PB.r], [PB.z1, PB.r]], 56), { tone: 'hi', crease: 'lo', className: 'rk-hot', inner: L(k.sideArc(PB.x, PB.y, PB.r, PB.z0 + 14, P, 24) + k.sideArc(PB.x, PB.y, PB.r, PB.z0 + 30, P, 24), { tone: 'faint' }) }));
|
|
435
|
+
out.push(S(turned(F, [[PB.z1, PB.r + 1.6], [PB.z1 + 2.6, PB.r + 1.6]], 48), { tone: 'mid' }));
|
|
436
|
+
out.push(S(turned(F, [[PB.z1 + 2.6, PB.r], [PB.z1 + 6, PB.r * 0.9], [PB.z1 + 9, PB.r * 0.66], [PB.z1 + 11, PB.r * 0.35]], 56), { tone: 'hi', crease: 'lo', className: 'rk-hot' }));
|
|
437
|
+
// Igniter: a plug on a boss at the top of the dome.
|
|
438
|
+
out.push(S(k.cylinder(PB.x, PB.y, 3.4, PB.z1 + 11, 3, P, 24), { tone: 'mid' }));
|
|
439
|
+
out.push(S(k.cylinder(PB.x, PB.y, 2, PB.z1 + 14, 4, P, 20, 0.3), { tone: 'mid' }));
|
|
440
|
+
out.push(L(k.knurl(PB.x, PB.y, 3.4, PB.z1 + 11, PB.z1 + 14, 16, P), { tone: 'lo' }));
|
|
441
|
+
out.push(D([at([PB.x, PB.y, PB.z1 + 18])], { size: 0.55, tone: 'hi' }));
|
|
442
|
+
return out.join('');
|
|
443
|
+
}
|
|
444
|
+
/** The lines behind the turbopump, back to front. */
|
|
445
|
+
function backLines() {
|
|
446
|
+
const R = SECTIONS;
|
|
447
|
+
const out = [];
|
|
448
|
+
// Fuel tank to the fuel pump: out of the tank, up through the main fuel valve, along the back, in behind the pump.
|
|
449
|
+
const fuelRoute = [[TANK.x + TANK.r, FUEL_Y, 22], [-184, FUEL_Y, 22], [-184, FUEL_Y, 138], [-38, FUEL_Y, 138], [-38, -R.fuel.R * 0.8, 138]];
|
|
450
|
+
out.push(pipe(fuelRoute, 4, 'fuel', 'fuel-feed'));
|
|
451
|
+
out.push(valve([-184, FUEL_Y, 80], [0, 0, 1], 4, [1, 0, 0], 'fuel'));
|
|
452
|
+
out.push(preburner());
|
|
453
|
+
// Hot gas from the preburner into the back of the turbine.
|
|
454
|
+
out.push(pipe([[PB.x, PB.y + PB.r - 0.5, 156], [PB.x, -R.turbine.R + 1, 156]], 6, 'hot', 'preburner-gas'));
|
|
455
|
+
// Oxygen and a little kerosene into the preburner, from ports on the back of each pump.
|
|
456
|
+
out.push(pipe([[-100, -R.ox.R + 0.5, 150], [-100, PB.y, 150], [PB.x - PB.r + 0.5, PB.y, 150]], 3, 'ox', 'preburner-ox'));
|
|
457
|
+
out.push(pipe([[-28, -R.fuel.R + 0.5, 150], [-28, PB.y, 150], [PB.x + PB.r - 0.5, PB.y, 150]], 2.4, 'fuel', 'preburner-fuel'));
|
|
458
|
+
// Main fuel: down from the fuel pump, back, along behind the chamber to the nozzle's coolant manifold.
|
|
459
|
+
const mx = (RINGS.manifold[0] + RINGS.manifold[1]) / 2;
|
|
460
|
+
const mr = bellR(mx) + 4.2;
|
|
461
|
+
const my = -28;
|
|
462
|
+
out.push(pipe([[-24, 0, ZT - R.fuel.R + 0.5], [-24, 0, 120], [-24, my, 120], [mx, my, 120], [mx, my, ZE + Math.sqrt(mr * mr - my * my) - 0.5]], 4, 'fuel', 'coolant'));
|
|
463
|
+
return out.join('');
|
|
464
|
+
}
|
|
465
|
+
/** Oxygen tank to the oxygen pump's inlet, over the pylon. */
|
|
466
|
+
function oxFeed() {
|
|
467
|
+
const route = [[TANK.x + TANK.r, OX_Y, 22], [-172, OX_Y, 22], [-172, OX_Y, ZT], [-172, 0, ZT], [SECTIONS.ox.s0 - 2, 0, ZT]];
|
|
468
|
+
return pipe(route, 4.4, 'ox', 'ox-feed') + valve([-172, OX_Y, 80], [0, 0, 1], 4.4, [1, 0, 0], 'ox');
|
|
469
|
+
}
|
|
470
|
+
/** Hot oxygen-rich gas from the turbine down into the injector dome. */
|
|
471
|
+
function hotDuct() {
|
|
472
|
+
return pipe([[-77, 0, ZT - SECTIONS.turbine.R + 0.5], [-77, 0, ZE + 16.6]], 6, 'hot', 'turbine-exhaust');
|
|
473
|
+
}
|
|
474
|
+
/** The sense line from the chamber tap to the pressure gauge on its post. */
|
|
475
|
+
function gauge() {
|
|
476
|
+
const E = ENGINE();
|
|
477
|
+
const out = [];
|
|
478
|
+
const tap = onRing(E, -40, 21.4, Math.PI * -0.3);
|
|
479
|
+
out.push(pipe([tap, [tap[0], tap[1], GAUGE.z], [tap[0], GAUGE.y - 4.6, GAUGE.z]], 1.2, null, undefined, [false, true]));
|
|
480
|
+
const post = { x: GAUGE.x - 3, y: GAUGE.y - 3, w: 6, d: 6, r: 1.5 };
|
|
481
|
+
out.push(S(k.slabOf({ x: GAUGE.x - 7, y: GAUGE.y - 7, w: 14, d: 14, r: 2 }, 0, 2, P, 4, 0.4), { tone: 'mid' }));
|
|
482
|
+
out.push(S(k.slabOf(post, 2, GAUGE.z - GAUGE.r - 2, P, 4), { tone: 'mid', crease: 'none' }));
|
|
483
|
+
const F = k.axisFrame([GAUGE.x, GAUGE.y - 3, GAUGE.z], 'y');
|
|
484
|
+
out.push(S(k.prismOf(F, k.circlePolygon(GAUGE.r, 48), 0, 4.4, P), { tone: 'mid' }));
|
|
485
|
+
out.push(S(k.prismOf(F, k.circlePolygon(GAUGE.r - 1.4, 48), 4.4, 4.8, P), { tone: 'hi', crease: 'none' }));
|
|
486
|
+
const y = GAUGE.y + 1.8;
|
|
487
|
+
const ringR = GAUGE.r - 3;
|
|
488
|
+
const sweep = (135 * Math.PI) / 180;
|
|
489
|
+
const onDial = (r, a) => [GAUGE.x + Math.sin(a) * r, y, GAUGE.z + Math.cos(a) * r];
|
|
490
|
+
out.push(L(k.pathOf(Array.from({ length: 49 }, (_, i) => at(onDial(ringR, -sweep + (i / 48) * sweep * 2)))), { tone: 'lo' }));
|
|
491
|
+
const minor = [];
|
|
492
|
+
const major = [];
|
|
493
|
+
for (let i = 0; i <= 20; i++) {
|
|
494
|
+
const a = -sweep + (i / 20) * sweep * 2;
|
|
495
|
+
(i % 5 === 0 ? major : minor).push(k.segment(onDial(ringR, a), onDial(ringR - (i % 5 === 0 ? 2.2 : 1.2), a), P));
|
|
496
|
+
}
|
|
497
|
+
out.push(L(minor.join(''), { tone: 'lo' }), L(major.join(''), { tone: 'mid' }));
|
|
498
|
+
const [ux, uy] = k.sub3([...at([1, 0, 0]), 0], [...at([0, 0, 0]), 0]);
|
|
499
|
+
const [vx, vy] = k.sub3([...at([0, 0, -1]), 0], [...at([0, 0, 0]), 0]);
|
|
500
|
+
for (const [n, label] of [[0, '0'], [100, '100'], [200, '200']]) {
|
|
501
|
+
const [ox, oy] = at(onDial(ringR - 4.4, gaugeAngle(n)));
|
|
502
|
+
out.push(k.faceTextSvg(`matrix(${ux.toFixed(4)} ${uy.toFixed(4)} ${vx.toFixed(4)} ${vy.toFixed(4)} ${ox.toFixed(2)} ${(oy + vy * 0.7).toFixed(2)})`, label, { size: 1.8, tone: 'lo', anchor: 'middle' }));
|
|
503
|
+
}
|
|
504
|
+
out.push(`<path class="iso-line rk-needle" data-tone="hi" data-free="end" data-needle="" style="stroke-width:1"/>`);
|
|
505
|
+
out.push(D([at([GAUGE.x, y, GAUGE.z])], { size: 0.9, tone: 'hi' }));
|
|
506
|
+
return out.join('');
|
|
507
|
+
}
|
|
508
|
+
const gaugeAngle = (bar) => {
|
|
509
|
+
const sweep = (135 * Math.PI) / 180;
|
|
510
|
+
return -sweep + (Math.min(200, Math.max(0, bar)) / 200) * sweep * 2;
|
|
511
|
+
};
|
|
512
|
+
function needlePath(bar) {
|
|
513
|
+
const y = GAUGE.y + 1.8;
|
|
514
|
+
const a = gaugeAngle(bar);
|
|
515
|
+
const on = (r, b) => [GAUGE.x + Math.sin(b) * r, y, GAUGE.z + Math.cos(b) * r];
|
|
516
|
+
return k.segment(on(1.4, a + Math.PI), on(GAUGE.r - 3.6, a), P);
|
|
517
|
+
}
|
|
518
|
+
const sheet = () => ({ back: [[], [], [], [], []], front: [[], [], [], [], []], edgeBack: [], edgeFront: [] });
|
|
519
|
+
const paint = (b) => b.map((list, i) => (list.length ? (i === 4 ? `<path class="iso-top" d="${list.join('')}"/>` : `<path class="iso-shade" data-shade="${i}" d="${list.join('')}"/>`) : '')).join('');
|
|
520
|
+
/** An inducer: three helical blades on a hub from s0 to s1, turned to `theta`. */
|
|
521
|
+
function inducer(F, s0, s1, hub, tip, turns, theta, out) {
|
|
522
|
+
const w = cutNormal(F);
|
|
523
|
+
const M = 20;
|
|
524
|
+
for (let b = 0; b < 3; b++) {
|
|
525
|
+
const phiAt = (s) => theta + (b * TAU) / 3 + (turns * TAU * (s - s0)) / (s1 - s0);
|
|
526
|
+
// Each blade's outline, closed, one per half it passes through: tip helix out, hub helix back.
|
|
527
|
+
let run = [];
|
|
528
|
+
let side = null;
|
|
529
|
+
const flush = () => {
|
|
530
|
+
if (run.length > 1)
|
|
531
|
+
(side ? out.edgeFront : out.edgeBack).push(k.pathOf([...run.map((r) => r[0]), ...run.toReversed().map((r) => r[1])], true));
|
|
532
|
+
};
|
|
533
|
+
for (let i = 0; i < M; i++) {
|
|
534
|
+
const sa = s0 + ((s1 - s0) * i) / M;
|
|
535
|
+
const sb = s0 + ((s1 - s0) * (i + 1)) / M;
|
|
536
|
+
const pa = phiAt(sa);
|
|
537
|
+
const pb = phiAt(sb);
|
|
538
|
+
const q = [onRing(F, sa, hub, pa), onRing(F, sa, tip, pa), onRing(F, sb, tip, pb), onRing(F, sb, hub, pb)];
|
|
539
|
+
let n = k.unit3(k.cross3(k.sub3(q[2], q[0]), k.sub3(q[1], q[3])));
|
|
540
|
+
if (k.dot3(n, V) < 0)
|
|
541
|
+
n = k.mul3(n, -1);
|
|
542
|
+
const front = k.dot3(radial(F, (pa + pb) / 2), w) > 0;
|
|
543
|
+
(front ? out.front : out.back)[k.bandOf(k.dot3(n, LIGHT))].push(k.pathOf(q.map(at), true));
|
|
544
|
+
if (side !== null && front !== side) {
|
|
545
|
+
flush();
|
|
546
|
+
run = [run[run.length - 1]];
|
|
547
|
+
}
|
|
548
|
+
if (!run.length)
|
|
549
|
+
run.push([at(q[1]), at(q[0])]);
|
|
550
|
+
run.push([at(q[2]), at(q[3])]);
|
|
551
|
+
side = front;
|
|
552
|
+
}
|
|
553
|
+
flush();
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
/** A turbine's blade row: thin radial blades round the rim of a disc, turned to `theta`. */
|
|
557
|
+
function bladeRow(F, s0, s1, r0, r1, count, theta, out) {
|
|
558
|
+
const w = cutNormal(F);
|
|
559
|
+
for (let j = 0; j < count; j++) {
|
|
560
|
+
const phi = theta + (j / count) * TAU;
|
|
561
|
+
const lean = 0.18; // blades are twisted a little across the flow
|
|
562
|
+
const q = [onRing(F, s0, r0, phi - lean), onRing(F, s0, r1, phi - lean), onRing(F, s1, r1, phi + lean), onRing(F, s1, r0, phi + lean)];
|
|
563
|
+
let n = k.unit3(k.cross3(k.sub3(q[2], q[0]), k.sub3(q[1], q[3])));
|
|
564
|
+
if (k.dot3(n, V) < 0)
|
|
565
|
+
n = k.mul3(n, -1);
|
|
566
|
+
const front = k.dot3(radial(F, phi), w) > 0;
|
|
567
|
+
(front ? out.front : out.back)[k.bandOf(k.dot3(n, LIGHT))].push(k.pathOf(q.map(at), true));
|
|
568
|
+
(front ? out.edgeFront : out.edgeBack).push(k.pathOf(q.map(at), true));
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
/** Vane exits round an impeller's rim: short marks across the rim, fading toward the limbs. */
|
|
572
|
+
function vaneMarks(F, s0, s1, r, count, theta) {
|
|
573
|
+
const list = [];
|
|
574
|
+
for (let j = 0; j < count; j++) {
|
|
575
|
+
const phi = theta + (j / count) * TAU;
|
|
576
|
+
const f = facing(radial(F, phi));
|
|
577
|
+
if (f < 0.12)
|
|
578
|
+
continue;
|
|
579
|
+
list.push([k.pathOf([at(onRing(F, s0, r, phi)), at(onRing(F, s1, r, phi - 0.35))]), Math.min(1, (f - 0.12) / 0.3)]);
|
|
580
|
+
}
|
|
581
|
+
return k.fadedSvg(list, { tone: 'mid' });
|
|
582
|
+
}
|
|
583
|
+
const prevOf = (id) => {
|
|
584
|
+
const ids = Object.keys(SECTIONS);
|
|
585
|
+
return ids[Math.max(0, ids.indexOf(id) - 1)];
|
|
586
|
+
};
|
|
587
|
+
function rotorSvg(theta) {
|
|
588
|
+
const F = PUMP();
|
|
589
|
+
const T = SECTIONS;
|
|
590
|
+
const parts = [];
|
|
591
|
+
const section = (id, wall, inside) => {
|
|
592
|
+
const s = T[id];
|
|
593
|
+
const flange = id === 'ox' ? '' : cutShell(F, s.s0 - 1.4, s.s0 + 1.4, Math.max(s.R, T[prevOf(id)].R) + 2.6, 2.6, { s1: true }, Math.min(s.R, T[prevOf(id)].R) - 3);
|
|
594
|
+
parts.push(`<g data-part="${id}">${flange}${cutShell(F, s.s0, s.s1, s.R, 3, wall)}${inside()}</g>`);
|
|
595
|
+
};
|
|
596
|
+
const shaft = (s0, s1) => S(turned(F, [[s0, 3.2], [s1, 3.2]], 32), { tone: 'mid', crease: 'none' });
|
|
597
|
+
const sheetSvg = (sh, middle) => `<g class="rk-sheet">${paint(sh.back)}${L(sh.edgeBack.join(''), { tone: 'lo' })}</g>${middle}<g class="rk-sheet">${paint(sh.front)}${L(sh.edgeFront.join(''), { tone: 'mid' })}</g>`;
|
|
598
|
+
// Oxygen pump: inducer at the inlet, then the impeller.
|
|
599
|
+
section('ox', { s0: true, s1: true }, () => {
|
|
600
|
+
const sh = sheet();
|
|
601
|
+
inducer(F, -114, -102, 3.6, 13, 0.45, theta, sh);
|
|
602
|
+
const hub = S(turned(F, [[-115, 1.5], [-113, 3.6], [-103, 3.6]], 32), { tone: 'mid', crease: 'none' });
|
|
603
|
+
const wheel = S(turned(F, [[-99, 5], [-98, 11], [-96.6, 15], [-92, 15], [-92, 5]], 64), { tone: 'mid' }) + vaneMarks(F, -96.2, -92.4, 15, 14, theta);
|
|
604
|
+
return shaft(-103, -88) + sheetSvg(sh, hub) + wheel;
|
|
605
|
+
});
|
|
606
|
+
section('brg1', { s1: true }, () => shaft(-88, -81) + S(turned(F, [[-86, 6], [-83, 6]], 40), { tone: 'mid' }));
|
|
607
|
+
section('turbine', { s1: true }, () => {
|
|
608
|
+
const sh = sheet();
|
|
609
|
+
bladeRow(F, -70, -64, 15.5, 20, 24, theta, sh);
|
|
610
|
+
const disc = S(turned(F, [[-72, 4], [-70.5, 15.5], [-63.5, 15.5], [-62, 4]], 72), { tone: 'mid', lit: true });
|
|
611
|
+
// Stator: a fixed nozzle ring ahead of the blades.
|
|
612
|
+
const stator = S(turned(F, [[-76, 21.8], [-73, 21.8]], 64), { tone: 'mid' });
|
|
613
|
+
return shaft(-81, -53) + `<g class="rk-sheet">${paint(sh.back)}${L(sh.edgeBack.join(''), { tone: 'lo' })}</g>` + stator + disc + `<g class="rk-sheet">${paint(sh.front)}${L(sh.edgeFront.join(''), { tone: 'mid' })}</g>`;
|
|
614
|
+
});
|
|
615
|
+
section('brg2', { s1: true }, () => shaft(-53, -46) + S(turned(F, [[-51, 6], [-48, 6]], 40), { tone: 'mid' }));
|
|
616
|
+
// Fuel pump: inlet at its left, inducer, then the impeller; a nut on the shaft end.
|
|
617
|
+
section('fuel', { s1: true }, () => {
|
|
618
|
+
const sh = sheet();
|
|
619
|
+
inducer(F, -44, -32, 3.6, 12, -0.45, theta, sh);
|
|
620
|
+
const wheel = S(turned(F, [[-29, 5], [-28, 10], [-26.6, 14], [-22, 14], [-22, 5]], 64), { tone: 'mid' }) + vaneMarks(F, -26.2, -22.4, 14, 12, theta);
|
|
621
|
+
return shaft(-46, -18) + sheetSvg(sh, S(turned(F, [[-44, 3.6], [-33, 3.6]], 32), { tone: 'mid', crease: 'none' })) + wheel;
|
|
622
|
+
});
|
|
623
|
+
return parts.join('');
|
|
624
|
+
}
|
|
625
|
+
// ---- the plume (rebuilt each frame) -------------------------------------------------
|
|
626
|
+
/** The exhaust: a soft envelope, a brighter core and a row of shock diamonds, along +x from the lip. */
|
|
627
|
+
function plumeSvg(params, t) {
|
|
628
|
+
const E = ENGINE();
|
|
629
|
+
const pl = plumeOf(params);
|
|
630
|
+
const D0 = EXIT_R * 2;
|
|
631
|
+
const flick = (f, a) => 1 + a * (Math.sin(t * f) * 0.6 + Math.sin(t * f * 2.31 + 1.3) * 0.4);
|
|
632
|
+
const len = pl.length * D0 * flick(9, 0.025);
|
|
633
|
+
const ringPts = (x, r, n = 40) => Array.from({ length: n }, (_, j) => at(onRing(E, x, r, (j / n) * TAU)));
|
|
634
|
+
const body = (len, r0, r1, bulge) => {
|
|
635
|
+
const pts = [];
|
|
636
|
+
for (let i = 0; i <= 10; i++) {
|
|
637
|
+
const u = i / 10;
|
|
638
|
+
const r = r0 + (r1 - r0) * u + bulge * Math.sin(Math.PI * u);
|
|
639
|
+
pts.push(...ringPts(EXIT_X + len * u, Math.max(1, r)));
|
|
640
|
+
}
|
|
641
|
+
return k.pathOf(k.hullOf(pts), true);
|
|
642
|
+
};
|
|
643
|
+
const [ax, ay] = at([EXIT_X, 0, ZE]);
|
|
644
|
+
const [bx, by] = at([EXIT_X + len, 0, ZE]);
|
|
645
|
+
const grad = (id, stops) => `<linearGradient id="${id}" gradientUnits="userSpaceOnUse" x1="${ax.toFixed(1)}" y1="${ay.toFixed(1)}" x2="${bx.toFixed(1)}" y2="${by.toFixed(1)}">${stops.map(([o, c, a]) => `<stop offset="${o}" style="stop-color:var(${c})" stop-opacity="${a.toFixed(3)}"/>`).join('')}</linearGradient>`;
|
|
646
|
+
const s = pl.strength;
|
|
647
|
+
const defs = `<defs>${grad('rk-plume-outer', [[0, '--rk-flame', 0.18 * s], [0.12, '--rk-flame', 0.42 * s], [0.5, '--rk-flame', 0.26 * s], [1, '--rk-flame', 0]])}${grad('rk-plume-core', [[0, '--rk-core', 0.5 * s], [0.15, '--rk-core', 0.9 * s], [0.6, '--rk-core', 0.45 * s], [1, '--rk-core', 0]])}</defs>`;
|
|
648
|
+
const outer = `<path class="rk-plume" fill="url(#rk-plume-outer)" d="${body(len, EXIT_R * 0.98, EXIT_R * 1.55, EXIT_R * 0.12)}"/>`;
|
|
649
|
+
const core = `<path class="rk-plume-core" fill="url(#rk-plume-core)" d="${body(len * 0.72, EXIT_R * 0.8, EXIT_R * 0.35, EXIT_R * 0.08)}"/>`;
|
|
650
|
+
// Shock diamonds: double cones along the axis, fading with distance.
|
|
651
|
+
const step = pl.spacing * D0;
|
|
652
|
+
const diamonds = [];
|
|
653
|
+
for (let i = 0; i < 6; i++) {
|
|
654
|
+
const x0 = EXIT_X + step * (i + 0.35);
|
|
655
|
+
if (x0 + step * 0.75 > EXIT_X + len * 0.85)
|
|
656
|
+
break;
|
|
657
|
+
// A lozenge on screen: long along the axis, narrow across it.
|
|
658
|
+
const r = EXIT_R * (0.13 - i * 0.014) * flick(13 + i, 0.05);
|
|
659
|
+
const [ax0, ay0] = at([x0, 0, ZE]);
|
|
660
|
+
const [ax1, ay1] = at([x0 + step * 0.8, 0, ZE]);
|
|
661
|
+
const [cx, cy] = [(ax0 + ax1) / 2, (ay0 + ay1) / 2];
|
|
662
|
+
const [ex, ey] = [(ax1 - ax0) / 2, (ay1 - ay0) / 2];
|
|
663
|
+
const el = Math.hypot(ex, ey) || 1;
|
|
664
|
+
const wk = (r * P.scale * Math.SQRT2) / el;
|
|
665
|
+
const pts = [[ax0, ay0], [cx - ey * wk, cy + ex * wk], [ax1, ay1], [cx + ey * wk, cy - ex * wk]];
|
|
666
|
+
const a = (0.9 - i * 0.15) * s;
|
|
667
|
+
diamonds.push(`<path class="rk-diamond" style="opacity:${Math.max(0, a).toFixed(2)}" d="${k.pathOf(pts, true)}"/>`);
|
|
668
|
+
}
|
|
669
|
+
return `<g class="rk-plume-group" style="--rk-soot:${(pl.soot * 100).toFixed(0)}%">${defs}${outer}${core}${diamonds.join('')}</g>`;
|
|
670
|
+
}
|
|
671
|
+
// ---- assembly ---------------------------------------------------------------------
|
|
672
|
+
function ready() {
|
|
673
|
+
if (P)
|
|
674
|
+
return;
|
|
675
|
+
const pts = [...k.boxCorners(PLATE, -PLATE_H - FOOT_H, 0), [TANK.x, OX_Y + TANK.r, TANK.top + 22], [TANK.x, FUEL_Y, TANK.top + 22], [PB.x, PB.y, PB.z1 + 20], [-60, 0, ZT + 30], [EXIT_X + 160, 0, ZE + EXIT_R * 1.7], [EXIT_X + 160, 0, ZE - EXIT_R * 1.7]];
|
|
676
|
+
P = k.fitProjection(pts, WIDTH, HEIGHT, { pad: 14, azimuth: 64 });
|
|
677
|
+
V = k.viewOf(P);
|
|
678
|
+
LIGHT = k.lightOf(P);
|
|
679
|
+
const back = [bench(), tank(FUEL_Y, 'fuel'), backLines(), pylon(), tank(OX_Y, 'ox'), oxFeed(), thrustMount(), engineBody(), hotDuct()].join('');
|
|
680
|
+
STATIC = { back, front: gauge() };
|
|
681
|
+
}
|
|
682
|
+
export const ENGINE_CSS = `
|
|
683
|
+
.iso[data-figure-host="rocket-engine"]{
|
|
684
|
+
--rk-ox:var(--iso-blue);--rk-fuel:#c27c0e;--rk-hot:#e5484d;--rk-tint:8%;--rk-cavity:#000000;--rk-depth:16%;
|
|
685
|
+
--rk-sooty:#e8590c;--rk-clean:#f5a524;--rk-sooty-core:#ffa94d;--rk-clean-core:#ffe08a;--rk-diamond:#fff1c2;--rk-glow:#ff8b3e;--rk-interior:#8a5634
|
|
686
|
+
}
|
|
687
|
+
.iso[data-theme="dark"][data-figure-host="rocket-engine"]{
|
|
688
|
+
--rk-fuel:#f0b54a;--rk-hot:#ff7b72;--rk-tint:16%;--rk-depth:38%;
|
|
689
|
+
--rk-sooty:#ff7a1a;--rk-clean:#ffb347;--rk-sooty-core:#ffc078;--rk-clean-core:#fff0bf;--rk-diamond:#fff6dc;--rk-glow:#ff9a4d;--rk-interior:#1c100a
|
|
690
|
+
}
|
|
691
|
+
.rk-ox{--rk-c:var(--rk-ox)}
|
|
692
|
+
.rk-fuel{--rk-c:var(--rk-fuel)}
|
|
693
|
+
.rk-hot{--rk-c:var(--rk-hot)}
|
|
694
|
+
${[0, 1, 2, 3].map((n) => `:is(.rk-ox,.rk-fuel,.rk-hot)>.iso-shade[data-shade="${n}"]{fill:color-mix(in srgb,var(--rk-c) calc(var(--rk-tint) * ${(0.7 + n * 0.1).toFixed(1)}),var(--iso-shade-${n}));stroke:none}
|
|
695
|
+
:is(.rk-ox,.rk-fuel,.rk-hot)[data-seamless]>.iso-shade[data-shade="${n}"]{stroke:color-mix(in srgb,var(--rk-c) calc(var(--rk-tint) * ${(0.7 + n * 0.1).toFixed(1)}),var(--iso-shade-${n}))}
|
|
696
|
+
.rk-cut>.iso-shade[data-shade="${n}"]{fill:color-mix(in srgb,var(--rk-cavity) var(--rk-depth),var(--iso-shade-${n}))}`).join('\n')}
|
|
697
|
+
:is(.rk-ox,.rk-fuel,.rk-hot)>.iso-top{fill:color-mix(in srgb,var(--rk-c) var(--rk-tint),var(--iso-top))}
|
|
698
|
+
:is(.rk-ox,.rk-fuel,.rk-hot)[data-seamless]>.iso-top{stroke:color-mix(in srgb,var(--rk-c) var(--rk-tint),var(--iso-top))}
|
|
699
|
+
.rk-cut>.iso-top{fill:color-mix(in srgb,var(--rk-cavity) var(--rk-depth),var(--iso-top))}
|
|
700
|
+
.rk-cutface{fill:var(--iso-top);stroke:none}
|
|
701
|
+
.rk-flow{stroke-dasharray:2 5;stroke-width:1;stroke-opacity:.85}
|
|
702
|
+
.rk-flow-ox{stroke:var(--rk-ox)}
|
|
703
|
+
.rk-flow-fuel{stroke:var(--rk-fuel)}
|
|
704
|
+
.rk-flow-hot{stroke:var(--rk-hot)}
|
|
705
|
+
.rk-channel{stroke-opacity:.8}
|
|
706
|
+
.rk-interior{fill:var(--rk-interior);stroke:none}
|
|
707
|
+
.rk-glow{fill:var(--rk-glow);stroke:none;filter:blur(4px);opacity:.9}
|
|
708
|
+
.rk-plume-group{--rk-flame:color-mix(in srgb,var(--rk-sooty) var(--rk-soot),var(--rk-clean));--rk-core:color-mix(in srgb,var(--rk-sooty-core) var(--rk-soot),var(--rk-clean-core))}
|
|
709
|
+
.rk-plume{filter:blur(4px)}
|
|
710
|
+
.rk-plume-core{filter:blur(2.5px)}
|
|
711
|
+
.rk-diamond{fill:var(--rk-diamond);filter:blur(2.2px)}
|
|
712
|
+
.iso-halo.rk-shadow{filter:blur(2.5px);opacity:calc(var(--iso-halo-opacity) * .5);transform:none}
|
|
713
|
+
`;
|
|
714
|
+
export const LABEL = 'A liquid-fuel rocket engine firing on a test stand: two propellant tanks, a cut-open turbopump on top, the preburner, injector, combustion chamber and bell nozzle, hung from a load cell through its gimbal.';
|
|
715
|
+
export const STILL = { theta: 0.5, t: 0.4 };
|
|
716
|
+
/** The whole figure as an SVG string, framed to everything it draws. */
|
|
717
|
+
export function engineSvg(params = clampParams(), drive = {}, standalone = false) {
|
|
718
|
+
return framed(rawSvg(params, drive, standalone), frame());
|
|
719
|
+
}
|
|
720
|
+
function rawSvg(params, drive, standalone) {
|
|
721
|
+
ready();
|
|
722
|
+
const d = { ...STILL, ...drive };
|
|
723
|
+
const body = STATIC.back +
|
|
724
|
+
`<g data-item="rotor">${rotorSvg(d.theta)}</g>` +
|
|
725
|
+
STATIC.front.replace('data-needle=""', `data-needle="" d="${needlePath(stateOf(params).chamberBar)}"`) +
|
|
726
|
+
`<g data-item="plume">${plumeSvg(params, d.t)}</g>`;
|
|
727
|
+
const svg = k.figureSvg({ width: WIDTH, height: HEIGHT, label: LABEL, body, standalone });
|
|
728
|
+
return standalone ? svg.replace('</style>', `${ENGINE_CSS}</style>`).replace('class="iso-svg iso"', 'class="iso-svg iso" data-figure-host="rocket-engine"') : svg;
|
|
729
|
+
}
|
|
730
|
+
let FRAME = null;
|
|
731
|
+
/** The viewBox: full and low throttle, a couple of shaft angles, plus the pins. */
|
|
732
|
+
function frame() {
|
|
733
|
+
if (FRAME)
|
|
734
|
+
return FRAME;
|
|
735
|
+
const svgs = [rawSvg(clampParams({ throttle: 100, mixture: 2.2 }), { theta: 0, t: 0 }, false), rawSvg(clampParams({ throttle: 40 }), { theta: 1, t: 0.3 }, false)];
|
|
736
|
+
// The plume's flicker reaches a few percent past its rest length.
|
|
737
|
+
svgs.push(`<path d="M${at([EXIT_X + 1.06 * plumeOf(clampParams({ throttle: 100 })).length * EXIT_R * 2, 0, ZE]).join(' ')}"/>`);
|
|
738
|
+
FRAME = frameOf(svgs, anchorPoints().map(([, , p]) => at(p)));
|
|
739
|
+
return FRAME;
|
|
740
|
+
}
|
|
741
|
+
export function anchorsOf() {
|
|
742
|
+
return anchorPoints().map(([id, label, p]) => ({ id, label, ...percentIn(frame(), at(p)) }));
|
|
743
|
+
}
|
|
744
|
+
function anchorPoints() {
|
|
745
|
+
ready();
|
|
746
|
+
const E = ENGINE();
|
|
747
|
+
return [
|
|
748
|
+
['oxidiser-tank', 'Oxidiser tank', [TANK.x + TANK.r * 0.7, OX_Y + TANK.r * 0.7, 110]],
|
|
749
|
+
['fuel-tank', 'Fuel tank', [TANK.x, FUEL_Y, TANK.top + 16]],
|
|
750
|
+
['turbopump', 'Turbopump', [-100, 0, ZT + 12]],
|
|
751
|
+
['turbine', 'Turbine', [-67, 6, ZT + 18]],
|
|
752
|
+
['oxidiser-pump', 'Oxidiser pump', [-95, 4, ZT - 14]],
|
|
753
|
+
['fuel-pump', 'Fuel pump', [-25, 4, ZT - 13]],
|
|
754
|
+
['preburner', 'Preburner', [PB.x + PB.r * 0.5, PB.y + PB.r, PB.z1 + 4]],
|
|
755
|
+
['injector', 'Injector plate', onRing(E, -69.3, 24.2, 1.1)],
|
|
756
|
+
['combustion-chamber', 'Combustion chamber', onRing(E, -20, 19, 0.9)],
|
|
757
|
+
['throat', 'Throat', onRing(E, THROAT_X, THROAT_R, 1.2)],
|
|
758
|
+
['nozzle', 'Nozzle', onRing(E, 65, bellR(65), 0.7)],
|
|
759
|
+
['cooling-channels', 'Cooling channels', onRing(E, 42, bellR(42), -0.45)],
|
|
760
|
+
['gimbal', 'Gimbal', [-107, 15.5, ZE]],
|
|
761
|
+
['load-cell', 'Load cell', [-124, 0, ZE + 12.6]],
|
|
762
|
+
['plume', 'Exhaust plume', [EXIT_X + 90, 0, ZE + 20]],
|
|
763
|
+
['pressure-gauge', 'Chamber pressure gauge', [GAUGE.x, GAUGE.y + 2, GAUGE.z + GAUGE.r]]
|
|
764
|
+
];
|
|
765
|
+
}
|
|
766
|
+
const STYLE_ID = 'ripple-iso-rocket-css';
|
|
767
|
+
const FLOW_PX = 0.08; // dash px a second per kg/s
|
|
768
|
+
export function mount(el, { theme = 'dark', params: initial, onReadout } = {}) {
|
|
769
|
+
const doc = el.ownerDocument;
|
|
770
|
+
addFigureStyle(el, STYLE_ID, k.ISO_CSS + ENGINE_CSS);
|
|
771
|
+
let params = clampParams(initial);
|
|
772
|
+
const svg = doc.importNode(new DOMParser().parseFromString(engineSvg(params), 'image/svg+xml').documentElement, true);
|
|
773
|
+
el.classList.add('iso');
|
|
774
|
+
el.dataset.figureHost = 'rocket-engine';
|
|
775
|
+
el.dataset.theme = theme;
|
|
776
|
+
el.replaceChildren(svg);
|
|
777
|
+
const rotor = svg.querySelector('[data-item="rotor"]');
|
|
778
|
+
const plume = svg.querySelector('[data-item="plume"]');
|
|
779
|
+
const needle = svg.querySelector('[data-needle]');
|
|
780
|
+
const flows = [...svg.querySelectorAll('[data-flow-id]')];
|
|
781
|
+
const offsets = new Map();
|
|
782
|
+
const win = doc.defaultView;
|
|
783
|
+
const still = win?.matchMedia?.('(prefers-reduced-motion: reduce)');
|
|
784
|
+
const drive = { ...STILL };
|
|
785
|
+
let parked = false;
|
|
786
|
+
let lastKey = '';
|
|
787
|
+
const rateOf = (id) => {
|
|
788
|
+
const s = stateOf(params);
|
|
789
|
+
if (id === 'ox-feed' || id === 'preburner-ox')
|
|
790
|
+
return s.flow.oxidiser;
|
|
791
|
+
if (id === 'fuel-feed')
|
|
792
|
+
return s.flow.fuel;
|
|
793
|
+
if (id === 'preburner-fuel')
|
|
794
|
+
return s.flow.preburnerFuel * 6;
|
|
795
|
+
if (id === 'coolant')
|
|
796
|
+
return s.flow.fuel - s.flow.preburnerFuel;
|
|
797
|
+
return s.flow.oxidiser + s.flow.preburnerFuel;
|
|
798
|
+
};
|
|
799
|
+
function draw(dt) {
|
|
800
|
+
rotor.innerHTML = rotorSvg(drive.theta);
|
|
801
|
+
plume.innerHTML = plumeSvg(params, drive.t);
|
|
802
|
+
for (const path of flows) {
|
|
803
|
+
const next = ((offsets.get(path) ?? 0) - rateOf(path.dataset.flowId) * FLOW_PX * dt) % 7;
|
|
804
|
+
offsets.set(path, next);
|
|
805
|
+
path.setAttribute('stroke-dashoffset', next.toFixed(2));
|
|
806
|
+
}
|
|
807
|
+
const readouts = readoutsOf(params);
|
|
808
|
+
const key = JSON.stringify(readouts);
|
|
809
|
+
if (key !== lastKey) {
|
|
810
|
+
lastKey = key;
|
|
811
|
+
needle?.setAttribute('d', needlePath(stateOf(params).chamberBar));
|
|
812
|
+
onReadout?.(readouts);
|
|
813
|
+
svg.setAttribute('aria-label', describe(params));
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
function advance(dt) {
|
|
817
|
+
drive.theta += shaftSpeedOf(params) * dt;
|
|
818
|
+
drive.t += dt;
|
|
819
|
+
}
|
|
820
|
+
let frameId = 0;
|
|
821
|
+
let last = 0;
|
|
822
|
+
let visible = true;
|
|
823
|
+
const loop = (now) => {
|
|
824
|
+
const dt = last ? Math.min((now - last) / 1000, 1 / 20) : 1 / 60;
|
|
825
|
+
last = now;
|
|
826
|
+
advance(dt);
|
|
827
|
+
draw(dt);
|
|
828
|
+
frameId = win.requestAnimationFrame(loop);
|
|
829
|
+
};
|
|
830
|
+
const stop = () => {
|
|
831
|
+
if (frameId)
|
|
832
|
+
win?.cancelAnimationFrame(frameId);
|
|
833
|
+
frameId = 0;
|
|
834
|
+
};
|
|
835
|
+
const run = () => {
|
|
836
|
+
if (frameId || parked || !visible || doc.hidden || still?.matches || !win?.requestAnimationFrame)
|
|
837
|
+
return;
|
|
838
|
+
last = 0;
|
|
839
|
+
frameId = win.requestAnimationFrame(loop);
|
|
840
|
+
};
|
|
841
|
+
const sync = () => (visible && !doc.hidden && !still?.matches && !parked ? run() : stop());
|
|
842
|
+
const io = win && 'IntersectionObserver' in win ? new win.IntersectionObserver((entries) => ((visible = entries[entries.length - 1].isIntersecting), sync())) : null;
|
|
843
|
+
io?.observe(el);
|
|
844
|
+
doc.addEventListener('visibilitychange', sync);
|
|
845
|
+
const onStill = () => {
|
|
846
|
+
if (still?.matches)
|
|
847
|
+
Object.assign(drive, STILL);
|
|
848
|
+
draw(0);
|
|
849
|
+
sync();
|
|
850
|
+
};
|
|
851
|
+
still?.addEventListener?.('change', onStill);
|
|
852
|
+
draw(0);
|
|
853
|
+
run();
|
|
854
|
+
return {
|
|
855
|
+
update(next) {
|
|
856
|
+
params = clampParams({ ...params, ...next });
|
|
857
|
+
draw(0);
|
|
858
|
+
},
|
|
859
|
+
setTheme(next) {
|
|
860
|
+
el.dataset.theme = next;
|
|
861
|
+
},
|
|
862
|
+
seek(time) {
|
|
863
|
+
parked = true;
|
|
864
|
+
stop();
|
|
865
|
+
drive.theta = STILL.theta + shaftSpeedOf(params) * time;
|
|
866
|
+
drive.t = STILL.t + time;
|
|
867
|
+
draw(0);
|
|
868
|
+
},
|
|
869
|
+
destroy() {
|
|
870
|
+
stop();
|
|
871
|
+
io?.disconnect();
|
|
872
|
+
doc.removeEventListener('visibilitychange', sync);
|
|
873
|
+
still?.removeEventListener?.('change', onStill);
|
|
874
|
+
el.replaceChildren();
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
}
|