@vibecook/ice 0.11.0 → 0.14.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/README.md +79 -50
- package/dist/chunk-BA7XJC27.js +2429 -0
- package/dist/chunk-BA7XJC27.js.map +1 -0
- package/dist/chunk-BKV4ZEU3.js +1 -0
- package/dist/chunk-BKV4ZEU3.js.map +1 -0
- package/dist/{chunk-VGVDJZSP.js → chunk-DYK6KNLG.js} +13206 -7387
- package/dist/chunk-DYK6KNLG.js.map +1 -0
- package/dist/chunk-ENIFIUEP.js +155 -0
- package/dist/chunk-ENIFIUEP.js.map +1 -0
- package/dist/chunk-IBWWLA6D.js +634 -0
- package/dist/chunk-IBWWLA6D.js.map +1 -0
- package/dist/{chunk-OR5FNVUE.js → chunk-JS6PG6YD.js} +398 -167
- package/dist/chunk-JS6PG6YD.js.map +1 -0
- package/dist/chunk-QXOCF56A.js +148 -0
- package/dist/chunk-QXOCF56A.js.map +1 -0
- package/dist/chunk-ZPUPBULB.js +7399 -0
- package/dist/chunk-ZPUPBULB.js.map +1 -0
- package/dist/desk-engine.js +36 -0
- package/dist/desk-engine.js.map +1 -0
- package/dist/desk-kit.js +244 -0
- package/dist/desk-kit.js.map +1 -0
- package/dist/desk-objects.js +12728 -0
- package/dist/desk-objects.js.map +1 -0
- package/dist/desk.js +469 -0
- package/dist/desk.js.map +1 -0
- package/dist/devtools.js +233 -189
- package/dist/devtools.js.map +1 -1
- package/dist/dom.js +7 -19
- package/dist/index.js +232 -20
- package/dist/kernel.js +53 -25
- package/dist/react.js +1045 -38
- package/dist/react.js.map +1 -1
- package/dist/types/packages/core/src/behavior/define-behavior.d.ts +11 -0
- package/dist/types/packages/core/src/behavior/runtime.d.ts +4 -0
- package/dist/types/packages/core/src/canvas/define-canvas-type.d.ts +86 -0
- package/dist/types/packages/core/src/canvas/define-container.d.ts +17 -0
- package/dist/types/packages/core/src/canvas/diagnostics.d.ts +27 -0
- package/dist/types/packages/core/src/canvas/engine-catalog.d.ts +70 -0
- package/dist/types/packages/core/src/canvas/extensions.d.ts +125 -0
- package/dist/types/packages/core/src/canvas/frame-behavior-host.d.ts +16 -0
- package/dist/types/packages/core/src/canvas/frame-preview.d.ts +79 -0
- package/dist/types/packages/core/src/canvas/frame-projection.d.ts +38 -0
- package/dist/types/packages/core/src/canvas/frame-view.d.ts +36 -0
- package/dist/types/packages/core/src/canvas/migrate.d.ts +14 -0
- package/dist/types/packages/core/src/canvas/placement.d.ts +30 -0
- package/dist/types/packages/core/src/canvas/presentation-transition.d.ts +100 -0
- package/dist/types/packages/core/src/canvas/runtime-extension-host.d.ts +16 -0
- package/dist/types/packages/core/src/canvas/session.d.ts +47 -0
- package/dist/types/packages/core/src/catalog/camera-derived.d.ts +16 -27
- package/dist/types/packages/core/src/catalog/desk.d.ts +326 -0
- package/dist/types/packages/core/src/catalog/gesture.d.ts +51 -0
- package/dist/types/packages/core/src/catalog/graph.d.ts +2 -2
- package/dist/types/packages/core/src/catalog/index.d.ts +2 -0
- package/dist/types/packages/core/src/catalog/pointer.d.ts +42 -0
- package/dist/types/packages/core/src/catalog/selection-presence.d.ts +7 -0
- package/dist/types/packages/core/src/catalog/settings-resources.d.ts +28 -2
- package/dist/types/packages/core/src/catalog/surface.d.ts +1 -0
- package/dist/types/packages/core/src/doc/doc-commit-sink.d.ts +18 -2
- package/dist/types/packages/core/src/doc/doc-kit.d.ts +21 -2
- package/dist/types/packages/core/src/doc/envelope.d.ts +5 -2
- package/dist/types/packages/core/src/doc/schema-migrate.d.ts +1 -1
- package/dist/types/packages/core/src/doc/version-gate.d.ts +21 -3
- package/dist/types/packages/core/src/engine/commit-sink.d.ts +10 -1
- package/dist/types/packages/core/src/engine/engine.d.ts +6 -0
- package/dist/types/packages/core/src/engine/frame-control.d.ts +74 -0
- package/dist/types/packages/core/src/engine/guests.d.ts +4 -1
- package/dist/types/packages/core/src/engine/world-doors.d.ts +12 -0
- package/dist/types/packages/core/src/facade/create-canvas-engine.d.ts +146 -13
- package/dist/types/packages/core/src/index.d.ts +33 -12
- package/dist/types/packages/core/src/input/queue.d.ts +3 -1
- package/dist/types/packages/core/src/interaction/install.d.ts +30 -0
- package/dist/types/packages/core/src/interaction/wakes.d.ts +24 -0
- package/dist/types/packages/core/src/nav/nav-geometry.d.ts +100 -0
- package/dist/types/packages/core/src/nav/nested-canvas.d.ts +47 -4
- package/dist/types/packages/core/src/ops/cascade.d.ts +2 -1
- package/dist/types/packages/core/src/ops/claims.d.ts +6 -0
- package/dist/types/packages/core/src/ops/insert.d.ts +4 -0
- package/dist/types/packages/core/src/ops/point-pick.d.ts +4 -1
- package/dist/types/packages/core/src/ops/sibling-order.d.ts +14 -4
- package/dist/types/packages/core/src/ops/tray.d.ts +48 -0
- package/dist/types/packages/core/src/presence/presence-kit.d.ts +5 -0
- package/dist/types/packages/core/src/schema/meta.d.ts +10 -0
- package/dist/types/packages/core/src/schema/prefab.d.ts +8 -0
- package/dist/types/packages/core/src/settings/defaults.d.ts +25 -6
- package/dist/types/packages/core/src/surface/gpu-device.d.ts +55 -0
- package/dist/types/packages/core/src/systems/camera-sim.d.ts +29 -0
- package/dist/types/packages/core/src/systems/chrome.d.ts +15 -23
- package/dist/types/packages/core/src/systems/drag-mods.d.ts +34 -0
- package/dist/types/packages/core/src/systems/held.d.ts +71 -0
- package/dist/types/packages/core/src/systems/insert-ghost.d.ts +2 -0
- package/dist/types/packages/core/src/systems/l0-input.d.ts +14 -0
- package/dist/types/packages/core/src/systems/l1-pick.d.ts +37 -1
- package/dist/types/packages/core/src/systems/l2-arbitrate.d.ts +18 -4
- package/dist/types/packages/core/src/systems/l3-behave.d.ts +4 -1
- package/dist/types/packages/core/src/systems/l3-claim.d.ts +7 -0
- package/dist/types/packages/core/src/systems/l3-connect.d.ts +1 -1
- package/dist/types/packages/core/src/systems/l3-drop.d.ts +30 -1
- package/dist/types/packages/core/src/systems/l3-marquee.d.ts +2 -1
- package/dist/types/packages/core/src/systems/l3-ports.d.ts +1 -1
- package/dist/types/packages/core/src/systems/l4-cursor.d.ts +5 -0
- package/dist/types/packages/core/src/systems/nav-flight.d.ts +85 -3
- package/dist/types/packages/core/src/systems/nav-tap.d.ts +44 -0
- package/dist/types/packages/core/src/systems/press-wheel.d.ts +11 -0
- package/dist/types/packages/core/src/systems/tray.d.ts +108 -0
- package/dist/types/packages/core/src/systems/zoom-through.d.ts +30 -0
- package/dist/types/packages/core/src/tools/define-tool.d.ts +10 -0
- package/dist/types/packages/core/src/widget/define-widget.d.ts +166 -63
- package/dist/types/packages/core/src/widget/equip.d.ts +14 -2
- package/dist/types/packages/core/src/widget/held-tools.d.ts +83 -0
- package/dist/types/packages/core/src/widget/menu-actions.d.ts +44 -0
- package/dist/types/packages/core/src/widget/mount-store.d.ts +21 -46
- package/dist/types/packages/core/src/widget/spawn.d.ts +1 -1
- package/dist/types/packages/desk/src/assets/blue-noise.gen.d.ts +10 -0
- package/dist/types/packages/desk/src/card/card.d.ts +103 -0
- package/dist/types/packages/desk/src/compose/ambient.d.ts +59 -0
- package/dist/types/packages/desk/src/compose/builder.d.ts +285 -0
- package/dist/types/packages/desk/src/compose/children.d.ts +3 -0
- package/dist/types/packages/desk/src/compose/index.d.ts +14 -0
- package/dist/types/packages/desk/src/compose/marks.d.ts +126 -0
- package/dist/types/packages/desk/src/compose/pick.d.ts +5 -0
- package/dist/types/packages/desk/src/compose/reflector.d.ts +111 -0
- package/dist/types/packages/desk/src/compose/tap.d.ts +5 -0
- package/dist/types/packages/desk/src/docs.d.ts +23 -0
- package/dist/types/packages/desk/src/engine/budget.d.ts +38 -0
- package/dist/types/packages/desk/src/engine/device.d.ts +54 -0
- package/dist/types/packages/desk/src/engine/index.d.ts +5 -0
- package/dist/types/packages/desk/src/engine/pipeline.d.ts +36 -0
- package/dist/types/packages/desk/src/engine/rasters.d.ts +66 -0
- package/dist/types/packages/desk/src/engine/records.d.ts +56 -0
- package/dist/types/packages/desk/src/engine/shader.d.ts +22 -0
- package/dist/types/packages/desk/src/engine/struct.d.ts +39 -0
- package/dist/types/packages/desk/src/engine/target.d.ts +26 -0
- package/dist/types/packages/desk/src/gpu-ablation.d.ts +61 -0
- package/dist/types/packages/desk/src/gpu-memory.d.ts +54 -0
- package/dist/types/packages/desk/src/gpu-profiler.d.ts +141 -0
- package/dist/types/packages/desk/src/gpu-wrap.d.ts +8 -0
- package/dist/types/packages/desk/src/ground.d.ts +388 -0
- package/dist/types/packages/desk/src/hold/focus.d.ts +53 -0
- package/dist/types/packages/desk/src/hold/pose.d.ts +132 -0
- package/dist/types/packages/desk/src/hold/shaders.d.ts +9 -0
- package/dist/types/packages/desk/src/host/editor.d.ts +18 -0
- package/dist/types/packages/desk/src/host/index.d.ts +9 -0
- package/dist/types/packages/desk/src/host/ink.d.ts +18 -0
- package/dist/types/packages/desk/src/host/layer.d.ts +430 -0
- package/dist/types/packages/desk/src/host/picture.d.ts +2 -0
- package/dist/types/packages/desk/src/host/surface.d.ts +5 -0
- package/dist/types/packages/desk/src/index.d.ts +13 -0
- package/dist/types/packages/desk/src/kind.d.ts +187 -0
- package/dist/types/packages/desk/src/kinds/world.d.ts +429 -0
- package/dist/types/packages/desk/src/kit/arrays.d.ts +88 -0
- package/dist/types/packages/desk/src/kit/blobs.d.ts +40 -0
- package/dist/types/packages/desk/src/kit/book.d.ts +2 -0
- package/dist/types/packages/desk/src/kit/editor.d.ts +103 -0
- package/dist/types/packages/desk/src/kit/eye.d.ts +37 -0
- package/dist/types/packages/desk/src/kit/hold.d.ts +1 -0
- package/dist/types/packages/desk/src/kit/index.d.ts +26 -0
- package/dist/types/packages/desk/src/kit/inside.d.ts +116 -0
- package/dist/types/packages/desk/src/kit/layer.d.ts +159 -0
- package/dist/types/packages/desk/src/kit/light.d.ts +3 -0
- package/dist/types/packages/desk/src/kit/mesh.d.ts +29 -0
- package/dist/types/packages/desk/src/kit/mips.d.ts +2 -0
- package/dist/types/packages/desk/src/kit/nav.d.ts +2 -0
- package/dist/types/packages/desk/src/kit/paper-tex.d.ts +5 -0
- package/dist/types/packages/desk/src/kit/physics.d.ts +44 -0
- package/dist/types/packages/desk/src/kit/place.d.ts +44 -0
- package/dist/types/packages/desk/src/kit/print.d.ts +30 -0
- package/dist/types/packages/desk/src/kit/raster.d.ts +34 -0
- package/dist/types/packages/desk/src/kit/sdf.d.ts +1 -0
- package/dist/types/packages/desk/src/kit/seeds.d.ts +11 -0
- package/dist/types/packages/desk/src/kit/services.d.ts +34 -0
- package/dist/types/packages/desk/src/kit/springs.d.ts +12 -0
- package/dist/types/packages/desk/src/kit/strokes.d.ts +93 -0
- package/dist/types/packages/desk/src/kit/text.d.ts +142 -0
- package/dist/types/packages/desk/src/kit/uniform.d.ts +8 -0
- package/dist/types/packages/desk/src/kit/view.d.ts +39 -0
- package/dist/types/packages/desk/src/kit/wgsl.d.ts +15 -0
- package/dist/types/packages/desk/src/lattice/line.d.ts +15 -0
- package/dist/types/packages/desk/src/lattice/lod.d.ts +52 -0
- package/dist/types/packages/desk/src/lattice/ruler.d.ts +88 -0
- package/dist/types/packages/desk/src/marks/assemble.d.ts +65 -0
- package/dist/types/packages/desk/src/marks/ease.d.ts +4 -0
- package/dist/types/packages/desk/src/marks/laser.d.ts +41 -0
- package/dist/types/packages/desk/src/marks/layout.d.ts +167 -0
- package/dist/types/packages/desk/src/marks/pass.d.ts +59 -0
- package/dist/types/packages/desk/src/marks/shaders.d.ts +12 -0
- package/dist/types/packages/desk/src/mat/grid.d.ts +50 -0
- package/dist/types/packages/desk/src/mat/lamp.d.ts +14 -0
- package/dist/types/packages/desk/src/mat/layout.d.ts +144 -0
- package/dist/types/packages/desk/src/mat/mat-pass.d.ts +83 -0
- package/dist/types/packages/desk/src/mat/night.d.ts +95 -0
- package/dist/types/packages/desk/src/mat/projector.d.ts +39 -0
- package/dist/types/packages/desk/src/mat/shaders.d.ts +17 -0
- package/dist/types/packages/desk/src/mat/tilt.d.ts +14 -0
- package/dist/types/packages/desk/src/nav/flight.d.ts +186 -0
- package/dist/types/packages/desk/src/nav/portal.d.ts +95 -0
- package/dist/types/packages/desk/src/object.d.ts +46 -0
- package/dist/types/packages/desk/src/pass-instrument.d.ts +89 -0
- package/dist/types/packages/desk/src/shaders.d.ts +12 -0
- package/dist/types/packages/desk/src/shaders.gen.d.ts +16 -0
- package/dist/types/packages/desk/src/submit-instrument.d.ts +36 -0
- package/dist/types/packages/desk/src/theme.d.ts +475 -0
- package/dist/types/packages/desk/src/tray/carry.d.ts +99 -0
- package/dist/types/packages/desk/src/tray/drawer.d.ts +113 -0
- package/dist/types/packages/desk/src/tray/flux.d.ts +46 -0
- package/dist/types/packages/desk/src/tray/index.d.ts +4 -0
- package/dist/types/packages/desk/src/tray/lattice.d.ts +71 -0
- package/dist/types/packages/desk/src/tray/layout.d.ts +7 -0
- package/dist/types/packages/desk/src/tray/look.d.ts +29 -0
- package/dist/types/packages/desk/src/tray/pass.d.ts +96 -0
- package/dist/types/packages/desk/src/tray/shaders.d.ts +10 -0
- package/dist/types/packages/desk/src/tray/specimens.d.ts +199 -0
- package/dist/types/packages/devtools/src/attach.d.ts +22 -8
- package/dist/types/packages/devtools/src/dock.d.ts +18 -14
- package/dist/types/packages/devtools/src/gpu-panel.d.ts +105 -0
- package/dist/types/packages/devtools/src/index.d.ts +5 -4
- package/dist/types/packages/dom/src/desk-host.d.ts +91 -0
- package/dist/types/packages/dom/src/host.d.ts +13 -14
- package/dist/types/packages/dom/src/index.d.ts +12 -10
- package/dist/types/packages/dom/src/loop.d.ts +18 -1
- package/dist/types/packages/dom/src/pointer-adapter.d.ts +5 -29
- package/dist/types/packages/dom/src/widget-focus.d.ts +17 -13
- package/dist/types/packages/ice/src/desk-engine.d.ts +2 -0
- package/dist/types/packages/ice/src/desk-kit.d.ts +6 -0
- package/dist/types/packages/ice/src/desk-objects.d.ts +5 -0
- package/dist/types/packages/ice/src/desk.d.ts +5 -0
- package/dist/types/packages/kernel/src/atlas-pack.d.ts +157 -0
- package/dist/types/packages/kernel/src/bezier.d.ts +0 -15
- package/dist/types/packages/kernel/src/coords.d.ts +0 -39
- package/dist/types/packages/kernel/src/index.d.ts +2 -2
- package/dist/types/packages/kernel/src/nav-flight.d.ts +6 -0
- package/dist/types/packages/kernel/src/tray.d.ts +155 -0
- package/dist/types/packages/objects/src/board/board-pass.d.ts +180 -0
- package/dist/types/packages/objects/src/board/board-pen.d.ts +36 -0
- package/dist/types/packages/objects/src/board/board.d.ts +104 -0
- package/dist/types/packages/objects/src/board/data.d.ts +31 -0
- package/dist/types/packages/objects/src/board/history.d.ts +33 -0
- package/dist/types/packages/objects/src/board/kind.d.ts +208 -0
- package/dist/types/packages/objects/src/board/layout.d.ts +102 -0
- package/dist/types/packages/objects/src/board/object.d.ts +7 -0
- package/dist/types/packages/objects/src/board/pen.d.ts +71 -0
- package/dist/types/packages/objects/src/board/shaders.d.ts +36 -0
- package/dist/types/packages/objects/src/board/stroke.d.ts +99 -0
- package/dist/types/packages/objects/src/board/theme.d.ts +150 -0
- package/dist/types/packages/objects/src/calendar/data.d.ts +97 -0
- package/dist/types/packages/objects/src/calendar/events.d.ts +58 -0
- package/dist/types/packages/objects/src/calendar/hand.d.ts +53 -0
- package/dist/types/packages/objects/src/calendar/host/input.d.ts +67 -0
- package/dist/types/packages/objects/src/calendar/host/print.d.ts +9 -0
- package/dist/types/packages/objects/src/calendar/kind.d.ts +297 -0
- package/dist/types/packages/objects/src/calendar/law.d.ts +151 -0
- package/dist/types/packages/objects/src/calendar/layout.d.ts +47 -0
- package/dist/types/packages/objects/src/calendar/month.d.ts +75 -0
- package/dist/types/packages/objects/src/calendar/object.d.ts +45 -0
- package/dist/types/packages/objects/src/calendar/pad.d.ts +42 -0
- package/dist/types/packages/objects/src/calendar/pass.d.ts +229 -0
- package/dist/types/packages/objects/src/calendar/print.d.ts +87 -0
- package/dist/types/packages/objects/src/calendar/printing.d.ts +80 -0
- package/dist/types/packages/objects/src/calendar/roll.d.ts +45 -0
- package/dist/types/packages/objects/src/calendar/shaders.d.ts +12 -0
- package/dist/types/packages/objects/src/calendar/sheet.d.ts +43 -0
- package/dist/types/packages/objects/src/calendar/tiles.d.ts +67 -0
- package/dist/types/packages/objects/src/calendar/turn.d.ts +73 -0
- package/dist/types/packages/objects/src/calendar/writing.d.ts +42 -0
- package/dist/types/packages/objects/src/index.d.ts +22 -0
- package/dist/types/packages/objects/src/kinds.d.ts +24 -0
- package/dist/types/packages/objects/src/minimat/inside.d.ts +17 -0
- package/dist/types/packages/objects/src/minimat/kind.d.ts +51 -0
- package/dist/types/packages/objects/src/minimat/layout.d.ts +83 -0
- package/dist/types/packages/objects/src/minimat/minimat.d.ts +179 -0
- package/dist/types/packages/objects/src/minimat/object.d.ts +8 -0
- package/dist/types/packages/objects/src/minimat/pass.d.ts +61 -0
- package/dist/types/packages/objects/src/minimat/shaders.d.ts +10 -0
- package/dist/types/packages/objects/src/minimat/theme.d.ts +98 -0
- package/dist/types/packages/objects/src/notebook/ink.d.ts +70 -0
- package/dist/types/packages/objects/src/notebook/kind.d.ts +236 -0
- package/dist/types/packages/objects/src/notebook/law.d.ts +129 -0
- package/dist/types/packages/objects/src/notebook/layout.d.ts +46 -0
- package/dist/types/packages/objects/src/notebook/leaf.d.ts +44 -0
- package/dist/types/packages/objects/src/notebook/mesh.d.ts +20 -0
- package/dist/types/packages/objects/src/notebook/motion.d.ts +107 -0
- package/dist/types/packages/objects/src/notebook/object.d.ts +8 -0
- package/dist/types/packages/objects/src/notebook/pages.d.ts +56 -0
- package/dist/types/packages/objects/src/notebook/pass.d.ts +197 -0
- package/dist/types/packages/objects/src/notebook/pick.d.ts +30 -0
- package/dist/types/packages/objects/src/notebook/raster.d.ts +28 -0
- package/dist/types/packages/objects/src/notebook/shaders.d.ts +11 -0
- package/dist/types/packages/objects/src/notebook/shape.d.ts +155 -0
- package/dist/types/packages/objects/src/notebook/theme.d.ts +76 -0
- package/dist/types/packages/objects/src/palette.d.ts +577 -0
- package/dist/types/packages/objects/src/paper/host/body.d.ts +30 -0
- package/dist/types/packages/objects/src/paper/kind.d.ts +81 -0
- package/dist/types/packages/objects/src/paper/layout.d.ts +73 -0
- package/dist/types/packages/objects/src/paper/object.d.ts +31 -0
- package/dist/types/packages/objects/src/paper/pages.d.ts +43 -0
- package/dist/types/packages/objects/src/paper/paper-pass.d.ts +86 -0
- package/dist/types/packages/objects/src/paper/paper.d.ts +117 -0
- package/dist/types/packages/objects/src/paper/shaders.d.ts +18 -0
- package/dist/types/packages/objects/src/paper/theme.d.ts +58 -0
- package/dist/types/packages/objects/src/paper/typing.d.ts +51 -0
- package/dist/types/packages/objects/src/paper/writing.d.ts +161 -0
- package/dist/types/packages/objects/src/photo/carry.d.ts +33 -0
- package/dist/types/packages/objects/src/photo/kind.d.ts +136 -0
- package/dist/types/packages/objects/src/photo/layout.d.ts +39 -0
- package/dist/types/packages/objects/src/photo/object.d.ts +5 -0
- package/dist/types/packages/objects/src/photo/photo-pass.d.ts +104 -0
- package/dist/types/packages/objects/src/photo/photo.d.ts +262 -0
- package/dist/types/packages/objects/src/photo/pictures.d.ts +152 -0
- package/dist/types/packages/objects/src/photo/sample.d.ts +9 -0
- package/dist/types/packages/objects/src/photo/shaders.d.ts +18 -0
- package/dist/types/packages/objects/src/preset.d.ts +44 -0
- package/dist/types/packages/objects/src/shaders.d.ts +3 -0
- package/dist/types/packages/objects/src/shaders.gen.d.ts +21 -0
- package/dist/types/packages/react/src/canvas-hooks.d.ts +12 -0
- package/dist/types/packages/react/src/desk.d.ts +56 -0
- package/dist/types/packages/react/src/engine-context.d.ts +2 -2
- package/dist/types/packages/react/src/frame-preview-boundary.d.ts +19 -0
- package/dist/types/packages/react/src/hooks.d.ts +9 -14
- package/dist/types/packages/react/src/index.d.ts +16 -9
- package/dist/types/packages/react/src/keymap.d.ts +21 -2
- package/dist/types/packages/react/src/selection-menu.d.ts +171 -0
- package/dist/types/packages/react/src/tray-bar.d.ts +124 -0
- package/package.json +64 -31
- package/dist/chunk-2TNVB2ON.js +0 -1163
- package/dist/chunk-2TNVB2ON.js.map +0 -1
- package/dist/chunk-OR5FNVUE.js.map +0 -1
- package/dist/chunk-Q665T4L7.js +0 -681
- package/dist/chunk-Q665T4L7.js.map +0 -1
- package/dist/chunk-VGVDJZSP.js.map +0 -1
- package/dist/ground.js +0 -1108
- package/dist/ground.js.map +0 -1
- package/dist/r3f.js +0 -1644
- package/dist/r3f.js.map +0 -1
- package/dist/types/packages/core/src/input/measure-queue.d.ts +0 -30
- package/dist/types/packages/core/src/settings/ground-config.d.ts +0 -101
- package/dist/types/packages/core/src/systems/measure-ingest.d.ts +0 -26
- package/dist/types/packages/devtools/src/gl-panel.d.ts +0 -69
- package/dist/types/packages/dom/src/measure-adapter.d.ts +0 -31
- package/dist/types/packages/dom/src/measure-wiring.d.ts +0 -49
- package/dist/types/packages/dom/src/planes.d.ts +0 -33
- package/dist/types/packages/dom/src/reflectors/chrome.d.ts +0 -33
- package/dist/types/packages/dom/src/reflectors/dom-widgets.d.ts +0 -59
- package/dist/types/packages/dom/src/reflectors/graybox.d.ts +0 -31
- package/dist/types/packages/dom/src/reflectors/plane-transform.d.ts +0 -38
- package/dist/types/packages/ground/src/index.d.ts +0 -69
- package/dist/types/packages/ground/src/layer.d.ts +0 -40
- package/dist/types/packages/ground/src/pass.d.ts +0 -41
- package/dist/types/packages/ground/src/passes/grid-contract.d.ts +0 -28
- package/dist/types/packages/ground/src/passes/grid-magnet-pass.d.ts +0 -2
- package/dist/types/packages/ground/src/passes/grid-magnet.d.ts +0 -31
- package/dist/types/packages/ground/src/passes/grid.d.ts +0 -10
- package/dist/types/packages/ground/src/passes/guides-collect.d.ts +0 -14
- package/dist/types/packages/ground/src/passes/guides.d.ts +0 -3
- package/dist/types/packages/ground/src/passes/magnet-collect.d.ts +0 -63
- package/dist/types/packages/ground/src/passes/soup-collect.d.ts +0 -35
- package/dist/types/packages/ground/src/passes/soup-mesh.d.ts +0 -8
- package/dist/types/packages/ground/src/passes/wires-collect.d.ts +0 -35
- package/dist/types/packages/ground/src/passes/wires.d.ts +0 -10
- package/dist/types/packages/ground/src/poles.d.ts +0 -47
- package/dist/types/packages/ground/src/renderer.d.ts +0 -15
- package/dist/types/packages/ice/src/ground.d.ts +0 -1
- package/dist/types/packages/ice/src/r3f.d.ts +0 -1
- package/dist/types/packages/kernel/src/eviction.d.ts +0 -23
- package/dist/types/packages/kernel/src/zoom-bands.d.ts +0 -19
- package/dist/types/packages/r3f/src/bridge.d.ts +0 -129
- package/dist/types/packages/r3f/src/composite-material.d.ts +0 -26
- package/dist/types/packages/r3f/src/compositor-pass.d.ts +0 -105
- package/dist/types/packages/r3f/src/dev-write-trap.d.ts +0 -30
- package/dist/types/packages/r3f/src/gl-root.d.ts +0 -96
- package/dist/types/packages/r3f/src/gl-router.d.ts +0 -70
- package/dist/types/packages/r3f/src/index.d.ts +0 -17
- package/dist/types/packages/r3f/src/island-state.d.ts +0 -112
- package/dist/types/packages/r3f/src/island.d.ts +0 -13
- package/dist/types/packages/r3f/src/pool.d.ts +0 -56
- package/dist/types/packages/r3f/src/preview-capture.d.ts +0 -19
- package/dist/types/packages/r3f/src/resource-registry.d.ts +0 -30
- package/dist/types/packages/r3f/src/self-sustain.d.ts +0 -39
- package/dist/types/packages/r3f/src/use-island-frame.d.ts +0 -39
- package/dist/types/packages/react/src/infinite-canvas.d.ts +0 -140
- package/dist/types/packages/react/src/preview-snapshots.d.ts +0 -17
- package/dist/types/packages/react/src/widget-preview.d.ts +0 -14
- package/dist/types/packages/react/src/widget-root.d.ts +0 -33
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
import { type GroundTheme, type Palette, type RGB, type RGBA, type ThemeName } from "../../desk/src/index";
|
|
2
|
+
import type { BoardPalette } from "./board/kind";
|
|
3
|
+
import type { CalendarPalette } from "./calendar/kind";
|
|
4
|
+
import type { MiniMatPalette } from "./minimat/kind";
|
|
5
|
+
import type { NotebookPalette } from "./notebook/kind";
|
|
6
|
+
import type { PaperPalette } from "./paper/kind";
|
|
7
|
+
export declare const PALETTE: Record<ThemeName, Palette>;
|
|
8
|
+
/**
|
|
9
|
+
* §2.2 committed content surfaces the desk's paper takes — a note's colour, carried across BOTH
|
|
10
|
+
* themes like an iOS widget on any wallpaper (the LIGHT is the desk's).
|
|
11
|
+
*/
|
|
12
|
+
export declare const SURFACES: {
|
|
13
|
+
readonly note: {
|
|
14
|
+
readonly token: "--vf-note-surface";
|
|
15
|
+
readonly css: "#f6e7a9";
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type SurfaceName = keyof typeof SURFACES;
|
|
19
|
+
export declare const surface: (name: SurfaceName) => RGB;
|
|
20
|
+
/**
|
|
21
|
+
* The NOTEBOOK's materials (BOOK.md) — the tree-shadow design system's paper layer
|
|
22
|
+
* (research/tree-shadow/prototype/design/mat.css, the cutting mat's own UI system),
|
|
23
|
+
* transcribed by token: `--cream` is a page ("text on the mat, primary paper"), `--paper` an
|
|
24
|
+
* endpaper ("index card, secondary paper"), the covers wear `--kraft` · `--ink` · `--cork` ·
|
|
25
|
+
* `--paper` and, the product's own black, `--vf-card` (DESIGN.md §2.2). Rules on paper are
|
|
26
|
+
* ink at 28 % (mat.css `--hair-paper`). Like a card's committed surface, a notebook keeps
|
|
27
|
+
* its colours in both themes; the LIGHT is the desk's.
|
|
28
|
+
*/
|
|
29
|
+
export declare const BOOK_PAPER: {
|
|
30
|
+
readonly page: {
|
|
31
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
32
|
+
readonly css: "#ffedd7";
|
|
33
|
+
};
|
|
34
|
+
readonly end: {
|
|
35
|
+
readonly token: "tree-shadow mat.css --paper";
|
|
36
|
+
readonly css: "#f6e0c6";
|
|
37
|
+
};
|
|
38
|
+
readonly rule: {
|
|
39
|
+
readonly token: "tree-shadow mat.css --hair-paper (--ink at 28 %)";
|
|
40
|
+
readonly css: "rgb(16 9 4 / 28%)";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
export declare const COVERS: {
|
|
44
|
+
readonly ink: {
|
|
45
|
+
readonly cover: {
|
|
46
|
+
readonly token: "tree-shadow mat.css --ink";
|
|
47
|
+
readonly css: "#100904";
|
|
48
|
+
};
|
|
49
|
+
readonly spine: {
|
|
50
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
51
|
+
readonly css: "#c4a574";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
readonly kraft: {
|
|
55
|
+
readonly cover: {
|
|
56
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
57
|
+
readonly css: "#d9b57c";
|
|
58
|
+
};
|
|
59
|
+
readonly spine: {
|
|
60
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
61
|
+
readonly css: "#382416";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly cork: {
|
|
65
|
+
readonly cover: {
|
|
66
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
67
|
+
readonly css: "#c48a52";
|
|
68
|
+
};
|
|
69
|
+
readonly spine: {
|
|
70
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
71
|
+
readonly css: "#ffedd7";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
readonly paper: {
|
|
75
|
+
readonly cover: {
|
|
76
|
+
readonly token: "tree-shadow mat.css --paper";
|
|
77
|
+
readonly css: "#f6e0c6";
|
|
78
|
+
};
|
|
79
|
+
readonly spine: {
|
|
80
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
81
|
+
readonly css: "#d9b57c";
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
readonly card: {
|
|
85
|
+
readonly cover: {
|
|
86
|
+
readonly token: "--vf-card";
|
|
87
|
+
readonly css: "#1c1c1e";
|
|
88
|
+
};
|
|
89
|
+
readonly spine: {
|
|
90
|
+
readonly token: "tree-shadow mat.css --brass-mute";
|
|
91
|
+
readonly css: "#9a7f55";
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
export type CoverName = keyof typeof COVERS;
|
|
96
|
+
export declare const COVER_NAMES: CoverName[];
|
|
97
|
+
/** A notebook's look, parsed: its cover and spine, the endpaper and the page every notebook shares, the rule ink. */
|
|
98
|
+
export declare const bookLook: (name: CoverName) => {
|
|
99
|
+
cover: RGB;
|
|
100
|
+
spine: RGB;
|
|
101
|
+
end: RGB;
|
|
102
|
+
paper: RGB;
|
|
103
|
+
rule: RGBA;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* The PENS a sticky note is written with (STICKY.md §3) — the host's colours, like a
|
|
107
|
+
* card's committed surface: a felt tip's near-black, a ballpoint's blue-black, a
|
|
108
|
+
* fountain pen's blue, a red marker. None is a DESIGN.md token yet; adding the pens
|
|
109
|
+
* to the doc's material book is the step before any of this leaves draft/ (STICKY.md §8).
|
|
110
|
+
*/
|
|
111
|
+
export declare const PENS: {
|
|
112
|
+
readonly felt: {
|
|
113
|
+
readonly token: "STICKY.md §3 felt tip";
|
|
114
|
+
readonly css: "#2b2a33";
|
|
115
|
+
};
|
|
116
|
+
readonly ball: {
|
|
117
|
+
readonly token: "STICKY.md §3 ballpoint";
|
|
118
|
+
readonly css: "#1f2f5c";
|
|
119
|
+
};
|
|
120
|
+
readonly fountain: {
|
|
121
|
+
readonly token: "STICKY.md §3 fountain pen";
|
|
122
|
+
readonly css: "#264a9a";
|
|
123
|
+
};
|
|
124
|
+
readonly red: {
|
|
125
|
+
readonly token: "STICKY.md §3 red marker";
|
|
126
|
+
readonly css: "#c0392b";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
export type PenName = keyof typeof PENS;
|
|
130
|
+
export declare const PEN_NAMES: readonly PenName[];
|
|
131
|
+
export declare const pen: (name: PenName) => RGB;
|
|
132
|
+
/**
|
|
133
|
+
* The WHITEBOARD's materials (BOARD.md) — the board's own colours, kept in both themes like a
|
|
134
|
+
* card's committed surface; the LIGHT is the desk's. The melamine is the research board's
|
|
135
|
+
* albedo as it displays (research/whiteboard board.wgsl); the frame is anodised aluminium in
|
|
136
|
+
* the tree-shadow design's warm greys ("no neutral grey — greys are grey-brown"); the eraser
|
|
137
|
+
* wears the design's `--kraft` back and `--ink-2` felt. None is a DESIGN.md token yet; the doc's
|
|
138
|
+
* material book moves first before any of this leaves draft/ (BOARD.md §8).
|
|
139
|
+
*/
|
|
140
|
+
export declare const BOARD_LOOK: {
|
|
141
|
+
readonly surface: {
|
|
142
|
+
readonly token: "research/whiteboard melamine (board.wgsl albedo, displayed)";
|
|
143
|
+
readonly css: "#f3f2ed";
|
|
144
|
+
};
|
|
145
|
+
readonly frame: {
|
|
146
|
+
readonly token: "anodised aluminium, warm (tree-shadow: greys are grey-brown)";
|
|
147
|
+
readonly css: "#cdc7ba";
|
|
148
|
+
};
|
|
149
|
+
readonly barrel: {
|
|
150
|
+
readonly token: "a marker's barrel, warm white plastic";
|
|
151
|
+
readonly css: "#ece8e0";
|
|
152
|
+
};
|
|
153
|
+
readonly felt: {
|
|
154
|
+
readonly token: "tree-shadow mat.css --ink-2 (the eraser's felt)";
|
|
155
|
+
readonly css: "#382416";
|
|
156
|
+
};
|
|
157
|
+
readonly wood: {
|
|
158
|
+
readonly token: "tree-shadow mat.css --kraft (the eraser's back)";
|
|
159
|
+
readonly css: "#d9b57c";
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
/** The board's colours, parsed. */
|
|
163
|
+
export declare const boardLook: () => {
|
|
164
|
+
surface: RGB;
|
|
165
|
+
frame: RGB;
|
|
166
|
+
barrel: RGB;
|
|
167
|
+
felt: RGB;
|
|
168
|
+
wood: RGB;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* The dry-erase MARKERS — the research whiteboard's inks (research/whiteboard tools.ts `MARKERS`)
|
|
172
|
+
* and the coverage one pass of each lays. Its orange is dropped: orange is the desk's `--hot`,
|
|
173
|
+
* reserved for state (the tree-shadow design). Content colours, like the note's pens.
|
|
174
|
+
*/
|
|
175
|
+
export declare const MARKERS: {
|
|
176
|
+
readonly black: {
|
|
177
|
+
readonly token: "research/whiteboard black marker";
|
|
178
|
+
readonly css: "#1b1c20";
|
|
179
|
+
readonly opacity: 0.985;
|
|
180
|
+
};
|
|
181
|
+
readonly blue: {
|
|
182
|
+
readonly token: "research/whiteboard blue marker";
|
|
183
|
+
readonly css: "#2350b5";
|
|
184
|
+
readonly opacity: 0.97;
|
|
185
|
+
};
|
|
186
|
+
readonly red: {
|
|
187
|
+
readonly token: "research/whiteboard red marker";
|
|
188
|
+
readonly css: "#c92a2e";
|
|
189
|
+
readonly opacity: 0.96;
|
|
190
|
+
};
|
|
191
|
+
readonly green: {
|
|
192
|
+
readonly token: "research/whiteboard green marker";
|
|
193
|
+
readonly css: "#1e8f4e";
|
|
194
|
+
readonly opacity: 0.95;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
export type MarkerName = keyof typeof MARKERS;
|
|
198
|
+
export declare const MARKER_NAMES: readonly MarkerName[];
|
|
199
|
+
export declare const marker: (name: MarkerName) => RGB;
|
|
200
|
+
/**
|
|
201
|
+
* The marker TRAY — the board's tools while it is open: the tree-shadow design's INK layer
|
|
202
|
+
* (mat.css: 94 % ink, cream on it, brass for mono labels, `--hot` for the active tool only, the
|
|
203
|
+
* shadows cast lower-left in the world's darkest value). The tray's stylesheet names these as
|
|
204
|
+
* custom properties; the values are set from here, so no colour lives in its CSS.
|
|
205
|
+
*/
|
|
206
|
+
export declare const TRAY: {
|
|
207
|
+
readonly ink: {
|
|
208
|
+
readonly token: "tree-shadow mat.css --ink";
|
|
209
|
+
readonly css: "#100904";
|
|
210
|
+
};
|
|
211
|
+
readonly cream: {
|
|
212
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
213
|
+
readonly css: "#ffedd7";
|
|
214
|
+
};
|
|
215
|
+
readonly brass: {
|
|
216
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
217
|
+
readonly css: "#c4a574";
|
|
218
|
+
};
|
|
219
|
+
readonly brassMute: {
|
|
220
|
+
readonly token: "tree-shadow mat.css --brass-mute";
|
|
221
|
+
readonly css: "#9a7f55";
|
|
222
|
+
};
|
|
223
|
+
readonly hot: {
|
|
224
|
+
readonly token: "tree-shadow mat.css --hot";
|
|
225
|
+
readonly css: "#dc5000";
|
|
226
|
+
};
|
|
227
|
+
readonly cast: {
|
|
228
|
+
readonly token: "tree-shadow mat.css --cast-rgb";
|
|
229
|
+
readonly css: "rgb(14 26 10)";
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* The MINI MATS' vinyls (MINIMAT.md §2) — the colours a self-healing mat is sold in, and the desk a
|
|
234
|
+
* mini mat opens onto: enter a slate mini mat and the whole desk is slate. `sage` is the desk's own
|
|
235
|
+
* (MAT.ground, whatever the panel has made it). Each is the colour the mat's chain STARTS from (the
|
|
236
|
+
* reference's double gamma darkens it, as it darkens the sage to #3d5a30): slate shows as #34505a,
|
|
237
|
+
* charcoal as #1e221e. None is a DESIGN.md token yet; the doc's material book moves first (§8).
|
|
238
|
+
*/
|
|
239
|
+
export declare const VINYLS: {
|
|
240
|
+
readonly slate: {
|
|
241
|
+
readonly token: "a blue self-healing mat (shows #34505a through the mat's chain)";
|
|
242
|
+
readonly css: "#7d98a0";
|
|
243
|
+
};
|
|
244
|
+
readonly charcoal: {
|
|
245
|
+
readonly token: "a black self-healing mat, green-black (shows #1e221e — no pure black on the desk)";
|
|
246
|
+
readonly css: "#616661";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
export type VinylName = "sage" | keyof typeof VINYLS;
|
|
250
|
+
export declare const VINYL_NAMES: readonly VinylName[];
|
|
251
|
+
/** A vinyl's colour: the desk's own sage (`sage`, the host's), or one of the others. */
|
|
252
|
+
export declare const vinyl: (name: VinylName, sage: RGB) => RGB;
|
|
253
|
+
/** VibeField's two themes, as the passes read them. */
|
|
254
|
+
export declare const THEMES: Record<ThemeName, GroundTheme>;
|
|
255
|
+
/**
|
|
256
|
+
* The 3D NOTEBOOK's materials (NOTEBOOK.md §4) — five covers after the Paper app's shelf (a
|
|
257
|
+
* cloth or paper case, a band of cloth down the spine, a printed design) in the tree-shadow
|
|
258
|
+
* design system's paper layer (research/tree-shadow/prototype/design/mat.css), plus the page's
|
|
259
|
+
* own ivory. Every colour by token; the two that are not a mat.css token say what they are.
|
|
260
|
+
* Like a card's committed surface, a notebook keeps its colours in both themes; the LIGHT is
|
|
261
|
+
* the desk's. `--hot` is left out on purpose: the mat's orange is for state, never a cover.
|
|
262
|
+
*/
|
|
263
|
+
export declare const NOTEBOOK_LOOK: {
|
|
264
|
+
/** The page: an ivory a shade cooler than `--cream`, so the ink's dots and the dapple read on it. */
|
|
265
|
+
readonly paper: {
|
|
266
|
+
readonly token: "notebook ivory (a writing paper's white: warmer than --vf-canvas-bg, cooler than --cream)";
|
|
267
|
+
readonly css: "#f3ebdc";
|
|
268
|
+
};
|
|
269
|
+
/** The ruling's dots and the label's rules. */
|
|
270
|
+
readonly ink: {
|
|
271
|
+
readonly token: "tree-shadow mat.css --ink-3";
|
|
272
|
+
readonly css: "#6c5f51";
|
|
273
|
+
};
|
|
274
|
+
readonly covers: {
|
|
275
|
+
readonly ink: {
|
|
276
|
+
readonly cloth: {
|
|
277
|
+
readonly token: "bookcloth black (tree-shadow --ink, lifted to a cloth's black so the weave reads)";
|
|
278
|
+
readonly css: "#221b16";
|
|
279
|
+
};
|
|
280
|
+
readonly band: {
|
|
281
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
282
|
+
readonly css: "#c4a574";
|
|
283
|
+
};
|
|
284
|
+
readonly a: {
|
|
285
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
286
|
+
readonly css: "#c4a574";
|
|
287
|
+
};
|
|
288
|
+
readonly b: {
|
|
289
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
290
|
+
readonly css: "#ffedd7";
|
|
291
|
+
};
|
|
292
|
+
readonly c: {
|
|
293
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
294
|
+
readonly css: "#c48a52";
|
|
295
|
+
};
|
|
296
|
+
readonly endpaper: {
|
|
297
|
+
readonly token: "tree-shadow mat.css --paper";
|
|
298
|
+
readonly css: "#f6e0c6";
|
|
299
|
+
};
|
|
300
|
+
readonly design: "plain";
|
|
301
|
+
readonly paperCover: false;
|
|
302
|
+
};
|
|
303
|
+
readonly orbit: {
|
|
304
|
+
readonly cloth: {
|
|
305
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
306
|
+
readonly css: "#382416";
|
|
307
|
+
};
|
|
308
|
+
readonly band: {
|
|
309
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
310
|
+
readonly css: "#c48a52";
|
|
311
|
+
};
|
|
312
|
+
readonly a: {
|
|
313
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
314
|
+
readonly css: "#c4a574";
|
|
315
|
+
};
|
|
316
|
+
readonly b: {
|
|
317
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
318
|
+
readonly css: "#ffedd7";
|
|
319
|
+
};
|
|
320
|
+
readonly c: {
|
|
321
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
322
|
+
readonly css: "#c48a52";
|
|
323
|
+
};
|
|
324
|
+
readonly endpaper: {
|
|
325
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
326
|
+
readonly css: "#ffedd7";
|
|
327
|
+
};
|
|
328
|
+
readonly design: "orbit";
|
|
329
|
+
readonly paperCover: false;
|
|
330
|
+
};
|
|
331
|
+
readonly tiles: {
|
|
332
|
+
readonly cloth: {
|
|
333
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
334
|
+
readonly css: "#d9b57c";
|
|
335
|
+
};
|
|
336
|
+
readonly band: {
|
|
337
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
338
|
+
readonly css: "#382416";
|
|
339
|
+
};
|
|
340
|
+
readonly a: {
|
|
341
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
342
|
+
readonly css: "#382416";
|
|
343
|
+
};
|
|
344
|
+
readonly b: {
|
|
345
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
346
|
+
readonly css: "#ffedd7";
|
|
347
|
+
};
|
|
348
|
+
readonly c: {
|
|
349
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
350
|
+
readonly css: "#c48a52";
|
|
351
|
+
};
|
|
352
|
+
readonly endpaper: {
|
|
353
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
354
|
+
readonly css: "#382416";
|
|
355
|
+
};
|
|
356
|
+
readonly design: "tiles";
|
|
357
|
+
readonly paperCover: false;
|
|
358
|
+
};
|
|
359
|
+
readonly label: {
|
|
360
|
+
readonly cloth: {
|
|
361
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
362
|
+
readonly css: "#d9b57c";
|
|
363
|
+
};
|
|
364
|
+
readonly band: {
|
|
365
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
366
|
+
readonly css: "#382416";
|
|
367
|
+
};
|
|
368
|
+
readonly a: {
|
|
369
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
370
|
+
readonly css: "#382416";
|
|
371
|
+
};
|
|
372
|
+
readonly b: {
|
|
373
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
374
|
+
readonly css: "#ffedd7";
|
|
375
|
+
};
|
|
376
|
+
readonly c: {
|
|
377
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
378
|
+
readonly css: "#c4a574";
|
|
379
|
+
};
|
|
380
|
+
readonly endpaper: {
|
|
381
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
382
|
+
readonly css: "#d9b57c";
|
|
383
|
+
};
|
|
384
|
+
readonly design: "label";
|
|
385
|
+
readonly paperCover: true;
|
|
386
|
+
};
|
|
387
|
+
readonly linen: {
|
|
388
|
+
readonly cloth: {
|
|
389
|
+
readonly token: "tree-shadow mat.css --paper";
|
|
390
|
+
readonly css: "#f6e0c6";
|
|
391
|
+
};
|
|
392
|
+
readonly band: {
|
|
393
|
+
readonly token: "tree-shadow mat.css --brass-mute";
|
|
394
|
+
readonly css: "#9a7f55";
|
|
395
|
+
};
|
|
396
|
+
readonly a: {
|
|
397
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
398
|
+
readonly css: "#c4a574";
|
|
399
|
+
};
|
|
400
|
+
readonly b: {
|
|
401
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
402
|
+
readonly css: "#ffedd7";
|
|
403
|
+
};
|
|
404
|
+
readonly c: {
|
|
405
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
406
|
+
readonly css: "#c48a52";
|
|
407
|
+
};
|
|
408
|
+
readonly endpaper: {
|
|
409
|
+
readonly token: "tree-shadow mat.css --cream";
|
|
410
|
+
readonly css: "#ffedd7";
|
|
411
|
+
};
|
|
412
|
+
readonly design: "bordered";
|
|
413
|
+
readonly paperCover: false;
|
|
414
|
+
};
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
export type NotebookCover = keyof typeof NOTEBOOK_LOOK.covers;
|
|
418
|
+
export declare const NOTEBOOK_COVERS: NotebookCover[];
|
|
419
|
+
/** A cover's look, parsed: what the notebook pass's record takes. */
|
|
420
|
+
export declare const notebookLook: (name: NotebookCover) => {
|
|
421
|
+
cloth: RGB;
|
|
422
|
+
band: RGB;
|
|
423
|
+
accents: [RGB, RGB, RGB];
|
|
424
|
+
endpaper: RGB;
|
|
425
|
+
paper: RGB;
|
|
426
|
+
ink: RGB;
|
|
427
|
+
design: "plain" | "orbit" | "tiles" | "label" | "bordered";
|
|
428
|
+
paperCover: boolean;
|
|
429
|
+
};
|
|
430
|
+
/** The ruling's ink with its presence on the page. */
|
|
431
|
+
export declare const notebookRuleInk: () => RGBA;
|
|
432
|
+
/**
|
|
433
|
+
* The DESK CALENDAR's materials (CALENDAR.md §4) — a pad of the notebook's own ivory under a cloth
|
|
434
|
+
* tape, printed in the tree-shadow design's inks: the dates and the month in `--ink-2`, the year,
|
|
435
|
+
* the eyebrows and the weekend in `--ink-3`, the weekend's columns washed with `--kraft`; today is
|
|
436
|
+
* `--hot` (a state — "what is happening"), ringed by a marker. The pens are the sticky note's; the
|
|
437
|
+
* highlighters are new: the fluorescents a desk has, muted to sit on the ivory under the mat's
|
|
438
|
+
* light (the shader lays them in by MULTIPLY, as a highlighter's dye does). The chipboard back is
|
|
439
|
+
* kraft gone grey. None is a DESIGN.md token yet — the doc's material book moves first (§12).
|
|
440
|
+
*/
|
|
441
|
+
export declare const CALENDAR_LOOK: {
|
|
442
|
+
readonly paper: {
|
|
443
|
+
readonly token: "notebook ivory (NOTEBOOK_LOOK.paper — the desk's one writing paper)";
|
|
444
|
+
readonly css: "#f3ebdc";
|
|
445
|
+
};
|
|
446
|
+
readonly ink: {
|
|
447
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
448
|
+
readonly css: "#382416";
|
|
449
|
+
};
|
|
450
|
+
readonly muted: {
|
|
451
|
+
readonly token: "tree-shadow mat.css --ink-3";
|
|
452
|
+
readonly css: "#6c5f51";
|
|
453
|
+
};
|
|
454
|
+
readonly weekend: {
|
|
455
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
456
|
+
readonly css: "#d9b57c";
|
|
457
|
+
};
|
|
458
|
+
readonly hot: {
|
|
459
|
+
readonly token: "tree-shadow mat.css --hot (a state: today)";
|
|
460
|
+
readonly css: "#dc5000";
|
|
461
|
+
};
|
|
462
|
+
readonly pencil: {
|
|
463
|
+
readonly token: "graphite — a warm grey-brown (the design has no neutral grey)";
|
|
464
|
+
readonly css: "#5f574f";
|
|
465
|
+
};
|
|
466
|
+
readonly chipboard: {
|
|
467
|
+
readonly token: "chipboard — kraft gone grey (the pad's back)";
|
|
468
|
+
readonly css: "#9c8b76";
|
|
469
|
+
};
|
|
470
|
+
/** The presences: the rules, the heading rule, the weekend's wash, a neighbour month's wash and its dates, a highlighter. */
|
|
471
|
+
readonly alpha: {
|
|
472
|
+
readonly rule: 0.3;
|
|
473
|
+
readonly head: 0.62;
|
|
474
|
+
readonly weekend: 0.1;
|
|
475
|
+
readonly outside: 0.06;
|
|
476
|
+
readonly faint: 0.26;
|
|
477
|
+
readonly highlight: 0.62;
|
|
478
|
+
};
|
|
479
|
+
readonly tapes: {
|
|
480
|
+
readonly ink: {
|
|
481
|
+
readonly cloth: {
|
|
482
|
+
readonly token: "bookcloth black (NOTEBOOK_LOOK.covers.ink)";
|
|
483
|
+
readonly css: "#221b16";
|
|
484
|
+
};
|
|
485
|
+
readonly foil: {
|
|
486
|
+
readonly token: "tree-shadow mat.css --brass";
|
|
487
|
+
readonly css: "#c4a574";
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
readonly tobacco: {
|
|
491
|
+
readonly cloth: {
|
|
492
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
493
|
+
readonly css: "#382416";
|
|
494
|
+
};
|
|
495
|
+
readonly foil: {
|
|
496
|
+
readonly token: "tree-shadow mat.css --cork";
|
|
497
|
+
readonly css: "#c48a52";
|
|
498
|
+
};
|
|
499
|
+
};
|
|
500
|
+
readonly kraft: {
|
|
501
|
+
readonly cloth: {
|
|
502
|
+
readonly token: "tree-shadow mat.css --kraft";
|
|
503
|
+
readonly css: "#d9b57c";
|
|
504
|
+
};
|
|
505
|
+
readonly foil: {
|
|
506
|
+
readonly token: "tree-shadow mat.css --ink-2";
|
|
507
|
+
readonly css: "#382416";
|
|
508
|
+
};
|
|
509
|
+
};
|
|
510
|
+
};
|
|
511
|
+
readonly highlighters: {
|
|
512
|
+
readonly yellow: {
|
|
513
|
+
readonly token: "highlighter yellow";
|
|
514
|
+
readonly css: "#f2d64f";
|
|
515
|
+
};
|
|
516
|
+
readonly green: {
|
|
517
|
+
readonly token: "highlighter green";
|
|
518
|
+
readonly css: "#b4d98a";
|
|
519
|
+
};
|
|
520
|
+
readonly pink: {
|
|
521
|
+
readonly token: "highlighter pink";
|
|
522
|
+
readonly css: "#f0a9bf";
|
|
523
|
+
};
|
|
524
|
+
readonly blue: {
|
|
525
|
+
readonly token: "highlighter blue";
|
|
526
|
+
readonly css: "#a3cde8";
|
|
527
|
+
};
|
|
528
|
+
readonly orange: {
|
|
529
|
+
readonly token: "highlighter orange";
|
|
530
|
+
readonly css: "#f4b673";
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
};
|
|
534
|
+
export type CalendarTape = keyof typeof CALENDAR_LOOK.tapes;
|
|
535
|
+
export declare const CALENDAR_TAPES: CalendarTape[];
|
|
536
|
+
export type HighlighterName = keyof typeof CALENDAR_LOOK.highlighters;
|
|
537
|
+
export declare const HIGHLIGHTER_NAMES: HighlighterName[];
|
|
538
|
+
/** The print's colours, for the raster (lab/calendar-print.ts `PrintLook`). */
|
|
539
|
+
export declare const calendarPrint: () => {
|
|
540
|
+
ink: string;
|
|
541
|
+
muted: string;
|
|
542
|
+
faint: 0.26;
|
|
543
|
+
hot: string;
|
|
544
|
+
pencil: string;
|
|
545
|
+
pens: Record<string, string>;
|
|
546
|
+
highlighters: Record<string, string>;
|
|
547
|
+
highlight: 0.62;
|
|
548
|
+
};
|
|
549
|
+
/** The pad's materials, for the pass: the paper, the print's rules and wash, the chipboard, the tape's cloth and foil. */
|
|
550
|
+
export declare const calendarLook: (tape: CalendarTape) => {
|
|
551
|
+
paper: RGB;
|
|
552
|
+
ink: RGB;
|
|
553
|
+
muted: RGB;
|
|
554
|
+
weekend: RGB;
|
|
555
|
+
hot: RGB;
|
|
556
|
+
chipboard: RGB;
|
|
557
|
+
cloth: RGB;
|
|
558
|
+
foil: RGB;
|
|
559
|
+
alpha: typeof CALENDAR_LOOK.alpha;
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* The inks a PERSON takes in apps/desk's rooms (D5a) — the colour `@ice/dom`'s remote-cursors reflector paints a peer's cursor and
|
|
563
|
+
* name chip in (core's `PresenceInfo.color`): violet and the warm hues, which read over the green mat by day and under the Moon;
|
|
564
|
+
* none a green of the mat's, none the pencil's blue (YOUR hand's). A demo's choice, not yet a DESIGN.md token.
|
|
565
|
+
*/
|
|
566
|
+
export declare const PRESENCE_INKS: readonly ["#8e4ec6", "#e2a336", "#e5484d", "#d6409f", "#f76b15"];
|
|
567
|
+
/** A palette every reference kind reads its look from: the roles, the note's papers and pens, the vinyls, the board's, the notebooks' and the calendars' materials. */
|
|
568
|
+
export type DeskPalette = PaperPalette & MiniMatPalette & BoardPalette & NotebookPalette & CalendarPalette;
|
|
569
|
+
/**
|
|
570
|
+
* THE DEFAULT PALETTE (D-D7-C.1) — complete for `DESK_OBJECTS`: the roles, the note's one paper (`yellow` — the product's
|
|
571
|
+
* `--vf-note-surface`), its pens, the mini mats' vinyls, the whiteboard's materials and markers (BOARD.md), the notebooks' page,
|
|
572
|
+
* ruling and covers (NOTEBOOK.md §4), the calendar's paper, print, tapes and presences (CALENDAR.md §4). `deskLayer({ palette })`
|
|
573
|
+
* takes it as it is; an app with its own tokens hands its own (the kinds read only what `theme()` is given).
|
|
574
|
+
*/
|
|
575
|
+
export declare const deskPalette: (name: ThemeName) => DeskPalette;
|
|
576
|
+
/** The theme the passes read for a name — `themeFrom` on the default palette's roles (the oracle's `THEMES[name]` exactly). */
|
|
577
|
+
export declare const deskTheme: (name: ThemeName) => GroundTheme;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type Entity, type World } from "../../../../core/src/index";
|
|
2
|
+
import type { PaperDriver } from "../object";
|
|
3
|
+
import { type HandLaw, type DeskEditor, type TextPart } from "../../../../desk/src/kit/index";
|
|
4
|
+
/** The note's text part's name — what the editor's lease carries while a note is being written (`DeskEditor.lease().part`). */
|
|
5
|
+
export declare const NOTE_BODY = "note.body";
|
|
6
|
+
export interface NoteBodyOptions {
|
|
7
|
+
/** The desk's ONE editor (the desk makes it — `ObjectDomHost.editor`). */
|
|
8
|
+
readonly editor: DeskEditor;
|
|
9
|
+
readonly world: World;
|
|
10
|
+
/** The note's driver (`PaperDriver`, D-D7-A.3): the host hands the note's own; none, no body. */
|
|
11
|
+
readonly driver: PaperDriver | undefined;
|
|
12
|
+
/** The builder's drawn geometry for an entity. */
|
|
13
|
+
readonly geometryOf: (e: Entity) => unknown;
|
|
14
|
+
/** The hand's face for the platform's own layout of the text (arrow keys by line): family and weight (the paper's default face). */
|
|
15
|
+
readonly font?: {
|
|
16
|
+
readonly family: string;
|
|
17
|
+
readonly weight: number;
|
|
18
|
+
};
|
|
19
|
+
readonly hand?: Pick<HandLaw, "size" | "lineHeight" | "pad">;
|
|
20
|
+
/** The clock the writing's flux runs on (`performance.now`). */
|
|
21
|
+
readonly now?: () => number;
|
|
22
|
+
}
|
|
23
|
+
/** The note's body: its text part (the desk routes taps to it) and the doors a rig and the keys use. */
|
|
24
|
+
export interface NoteBody extends TextPart {
|
|
25
|
+
/** Put the editor on note `e`, the caret before glyph `index` (the end by default). False for a still, a non-note or a read-only document. */
|
|
26
|
+
focus(e: Entity, index?: number): boolean;
|
|
27
|
+
/** The note being written, or undefined (the editor lent elsewhere, or to nothing). */
|
|
28
|
+
editing(): Entity | undefined;
|
|
29
|
+
}
|
|
30
|
+
export declare function createNoteBody(opts: NoteBodyOptions): NoteBody | undefined;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { type KindExtra, type KindPass, type KindProgram, type SlotContext, type Palette, type RGB, type TokenRef, type ObjectKind } from "../../../desk/src/index";
|
|
2
|
+
import { type MatPass, type MarkFrame, type HandLaw, type ShaderText } from "../../../desk/src/kit/index";
|
|
3
|
+
import type { PaperInstance } from "./layout";
|
|
4
|
+
import { type PaperGeometry, type PaperLaw } from "./paper";
|
|
5
|
+
import { PaperPass } from "./paper-pass";
|
|
6
|
+
import type { UvRect } from "./pages";
|
|
7
|
+
/** The note's kind name — its key in the registry and in every slot's `objects`. */
|
|
8
|
+
export declare const PAPER_KIND = "paper";
|
|
9
|
+
export declare class PaperKind implements KindPass<PaperInstance> {
|
|
10
|
+
/** The paper pass itself: a host's door to the ink pages (`alloc`, `write`, `reset`) and the note's law (`law`, `chain`, `wipeSoft`). */
|
|
11
|
+
readonly pass: PaperPass;
|
|
12
|
+
constructor(pass: PaperPass);
|
|
13
|
+
spawn(mat: MatPass): PaperKind;
|
|
14
|
+
tune(root: KindPass<PaperInstance>): void;
|
|
15
|
+
/** The pass's own `prepare`, argument for argument: the slot's camera, grid, clocks, the objects' presence, the light, the ring's colour, the lamp — and the records' keys (D6). */
|
|
16
|
+
prepare(_encoder: GPUCommandEncoder, s: SlotContext, records: readonly PaperInstance[], extra?: KindExtra): number;
|
|
17
|
+
dropped(): number;
|
|
18
|
+
drawRange(pass: GPURenderPassEncoder, first: number, end: number): void;
|
|
19
|
+
records(): import("../../../desk/src/index").RecordStoreStats;
|
|
20
|
+
cardResources(): {
|
|
21
|
+
readonly version: number;
|
|
22
|
+
readonly resources: readonly (GPUBuffer | GPUTextureView | GPUSampler)[];
|
|
23
|
+
};
|
|
24
|
+
cardSlot(index: number): number;
|
|
25
|
+
dispose(): void;
|
|
26
|
+
}
|
|
27
|
+
/** The note's program for a host's shader text: its pass made on the root's mat. */
|
|
28
|
+
export declare function paperProgram(text: ShaderText): KindProgram<PaperInstance>;
|
|
29
|
+
/**
|
|
30
|
+
* What the note's kind takes from the host's palette (theme.ts `Palette`, extended): the sheets by
|
|
31
|
+
* the `paper` prop's value and the pens' inks by the `pen` prop's — each a token (`--vf-note-surface`,
|
|
32
|
+
* STICKY.md §3's pens), the product's colours, never the engine's (the theme gate).
|
|
33
|
+
*/
|
|
34
|
+
export interface PaperPalette extends Palette {
|
|
35
|
+
readonly papers?: Readonly<Record<string, TokenRef>>;
|
|
36
|
+
readonly pens?: Readonly<Record<string, TokenRef>>;
|
|
37
|
+
}
|
|
38
|
+
/** The note's look for a theme: its sheets and inks, parsed. */
|
|
39
|
+
export interface PaperLook {
|
|
40
|
+
readonly papers: Readonly<Record<string, RGB>>;
|
|
41
|
+
readonly pens: Readonly<Record<string, RGB>>;
|
|
42
|
+
}
|
|
43
|
+
/** A note's writing as the far LOD greeks it (MINIMAT.md §5): the text's left edge and em (note units from the sheet's top-left) and each line's baseline and width. */
|
|
44
|
+
export interface PaperWriting {
|
|
45
|
+
readonly x0: number;
|
|
46
|
+
readonly em: number;
|
|
47
|
+
readonly lines: readonly {
|
|
48
|
+
readonly y: number;
|
|
49
|
+
readonly width: number;
|
|
50
|
+
}[];
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* What the host pins on a note (`ctx.asset`): a committed raster's place in the ink pages (`layer` + `uv`),
|
|
54
|
+
* and/or its writing's lines for the chip (`greek` — a still states them; the live text's layout is D2c's).
|
|
55
|
+
*/
|
|
56
|
+
export interface PaperAsset {
|
|
57
|
+
readonly layer?: number;
|
|
58
|
+
readonly uv?: UvRect;
|
|
59
|
+
readonly greek?: PaperWriting;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* How far a note's drawing reaches past its rect, world units: its shadow at full lift and curl,
|
|
63
|
+
* cast along the lamp's slope and blurred; the held scale; the tilt's overhang of the sheet's box.
|
|
64
|
+
*/
|
|
65
|
+
export declare function paperReach(law?: PaperLaw): number;
|
|
66
|
+
export interface PaperKindOptions {
|
|
67
|
+
/** The host's shader text; the generated module unless a host says (the Node oracle hands the .wgsl files on disk). */
|
|
68
|
+
readonly text?: ShaderText;
|
|
69
|
+
/** The paper's numbers (theme.ts `PAPER`) — the engine's unless a host tweaks them. */
|
|
70
|
+
readonly law?: PaperLaw;
|
|
71
|
+
/** The hand (D2c): its law (theme.ts `HAND`), its face (`caveat`) and the pen's bleed (0.3 note units). */
|
|
72
|
+
readonly hand?: {
|
|
73
|
+
readonly law?: HandLaw;
|
|
74
|
+
readonly face?: string;
|
|
75
|
+
readonly bleed?: number;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/** The note's kind, whole (kinds/world.ts `ObjectKind`): the program, and the world half on the prototype's laws. */
|
|
79
|
+
export declare function paperKind(opts?: PaperKindOptions): ObjectKind<PaperGeometry, PaperInstance, PaperLook>;
|
|
80
|
+
/** The note's silhouette for the desk's marks (D4a): the sheet as drawn — tilted, lifted to scale — its corner scaled with it. */
|
|
81
|
+
export declare function paperFrame(G: PaperGeometry): MarkFrame;
|