@sebastianwessel/isostate 0.1.2 → 0.3.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/dist/animation/controller.d.ts +25 -1
- package/dist/animation/controller.d.ts.map +1 -1
- package/dist/browser/isostate.runtime.js +5 -2459
- package/dist/browser/isostate.runtime.js.map +22 -1
- package/dist/browser-runtime.d.ts +5 -0
- package/dist/browser-runtime.d.ts.map +1 -0
- package/dist/chunks/{index-DEv2-G9F.js → index-B6HlPnov.js} +243 -1092
- package/dist/chunks/index-B6HlPnov.js.map +1 -0
- package/dist/chunks/rendering-engine-BgHel7yX.js +1117 -0
- package/dist/chunks/rendering-engine-BgHel7yX.js.map +1 -0
- package/dist/chunks/scene-parser-xgVJh2FU.js +2676 -0
- package/dist/chunks/scene-parser-xgVJh2FU.js.map +1 -0
- package/dist/chunks/sha256-4JuurR-b.js +69 -0
- package/dist/chunks/sha256-4JuurR-b.js.map +1 -0
- package/dist/dsl/browser.d.ts +7 -0
- package/dist/dsl/browser.d.ts.map +1 -0
- package/dist/dsl/browser.js +5 -0
- package/dist/dsl/browser.js.map +1 -0
- package/dist/dsl/compiler.d.ts.map +1 -1
- package/dist/dsl/index.js +4 -2190
- package/dist/dsl/index.js.map +1 -1
- package/dist/dsl/scene-parser.d.ts.map +1 -1
- package/dist/dsl/scene-validator.d.ts +2 -1
- package/dist/dsl/scene-validator.d.ts.map +1 -1
- package/dist/editor-support/adapter.d.ts +46 -0
- package/dist/editor-support/adapter.d.ts.map +1 -0
- package/dist/editor-support/geometry.d.ts +32 -0
- package/dist/editor-support/geometry.d.ts.map +1 -0
- package/dist/editor-support/hit-test.d.ts +29 -0
- package/dist/editor-support/hit-test.d.ts.map +1 -0
- package/dist/editor-support/index.d.ts +7 -0
- package/dist/editor-support/index.d.ts.map +1 -0
- package/dist/editor-support/index.js +426 -0
- package/dist/editor-support/index.js.map +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/rendering/asset-node.d.ts +2 -1
- package/dist/rendering/asset-node.d.ts.map +1 -1
- package/dist/rendering/rendering-engine.d.ts +28 -1
- package/dist/rendering/rendering-engine.d.ts.map +1 -1
- package/dist/runtime/index.js +3 -1
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/mount-scene.d.ts +9 -0
- package/dist/runtime/mount-scene.d.ts.map +1 -1
- package/dist/types/assets.d.ts +27 -2
- package/dist/types/assets.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -4
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/node.d.ts +50 -2
- package/dist/types/node.d.ts.map +1 -1
- package/dist/types/runtime-bundle.d.ts +5 -0
- package/dist/types/runtime-bundle.d.ts.map +1 -1
- package/dist/types/scene.d.ts +28 -3
- package/dist/types/scene.d.ts.map +1 -1
- package/dist/types/validation.d.ts +6 -0
- package/dist/types/validation.d.ts.map +1 -1
- package/dist/utils/sha256.d.ts +3 -0
- package/dist/utils/sha256.d.ts.map +1 -0
- package/package.json +9 -1
- package/dist/chunks/index-DEv2-G9F.js.map +0 -1
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/types/node.ts"],"sourcesContent":["/** Entry animation types */\nexport type EntryAnimation =\n\t| \"fade-in\"\n\t| \"fade-in-grow\"\n\t| \"fall-in\"\n\t| \"rise-from-ground\"\n\t| \"slide-in-left\"\n\t| \"slide-in-right\"\n\t| \"flip-in\"\n\t| \"none\";\n\n/** Exit animation types */\nexport type ExitAnimation =\n\t| \"fade-out\"\n\t| \"fade-out-shrink\"\n\t| \"fall-through-ground\"\n\t| \"rise-away\"\n\t| \"slide-out-left\"\n\t| \"slide-out-right\"\n\t| \"flip-out\"\n\t| \"none\";\n\n/** Runtime/compiler-derived lifecycle status. Not authored in YAML. */\nexport type LifecycleStatus = \"entering\" | \"present\" | \"exiting\" | \"removed\";\n\n/** Runtime set of valid entry animation strings */\nexport const ENTRY_ANIMATIONS: ReadonlySet<EntryAnimation> = new Set([\n\t\"fade-in\",\n\t\"fade-in-grow\",\n\t\"fall-in\",\n\t\"rise-from-ground\",\n\t\"slide-in-left\",\n\t\"slide-in-right\",\n\t\"flip-in\",\n\t\"none\",\n]);\n\n/** Runtime set of valid exit animation strings */\nexport const EXIT_ANIMATIONS: ReadonlySet<ExitAnimation> = new Set([\n\t\"fade-out\",\n\t\"fade-out-shrink\",\n\t\"fall-through-ground\",\n\t\"rise-away\",\n\t\"slide-out-left\",\n\t\"slide-out-right\",\n\t\"flip-out\",\n\t\"none\",\n]);\n\n/** Runtime set of valid lifecycle status strings */\nexport const LIFECYCLE_STATUSES: ReadonlySet<LifecycleStatus> = new Set([\"entering\", \"present\", \"exiting\", \"removed\"]);\n\n/** Ambient animation configuration */\nexport interface AmbientAnimation {\n\t/** Animation class name */\n\tname: string;\n\t/** Whether the animation runs infinitely (default: true) */\n\tinfinite?: boolean;\n\t/** Number of times to play (only relevant when infinite: false) */\n\titerations?: number;\n}\n\n/** Horizontal anchor used by built-in text elements. */\nexport type TextAlign = \"start\" | \"middle\" | \"end\";\n\n/** Content and safe SVG text styling for the built-in `asset: text` element. */\nexport interface TextContent {\n\t/** Text content. Use newline characters for explicit line breaks. */\n\tvalue: string;\n\t/** Horizontal text anchor within the element cell. Defaults to `middle`. */\n\talign?: TextAlign;\n\t/** SVG font-size in CSS pixels before element scaling. Defaults to `12`. */\n\tfontSize?: number;\n\t/** SVG font-weight. Defaults to `700`. */\n\tfontWeight?: number | \"normal\" | \"bold\";\n\t/** Multiplier applied to `fontSize` for multiline spacing. Defaults to `1.2`. */\n\tlineHeight?: number;\n\t/** SVG fill color. Defaults to `currentColor`. */\n\tfill?: string;\n}\n\n/** Built-in generated primitive asset ids. These are not declared in header assets. */\nexport type PrimitiveAssetId = \"rectangle\" | \"circle\" | \"polygon\" | \"line\";\n\n/** Shared safe SVG style fields for generated primitive assets. */\nexport interface PrimitiveStyle {\n\t/** SVG fill color or safe CSS color token. Defaults to `currentColor`. */\n\tfill?: string;\n\t/** SVG stroke color or safe CSS color token. Defaults to `none`. */\n\tstroke?: string;\n\t/** SVG stroke width in CSS pixels before element scaling. Defaults to `0`. */\n\tstrokeWidth?: number;\n\t/** Element opacity from `0` to `1`. Defaults to `1`. */\n\topacity?: number;\n\t/** Optional dash/gap pair for stroked primitives. */\n\tdash?: [number, number];\n}\n\n/** Generated projected rectangle/diamond primitive content. */\nexport interface RectanglePrimitive extends PrimitiveStyle {\n\t/** Optional corner radius for screen-space rectangles. Defaults to `0`. */\n\trx?: number;\n}\n\n/** Generated circle primitive content. */\nexport interface CirclePrimitive extends PrimitiveStyle {}\n\n/** Generated polygon primitive content using normalized local grid coordinates. */\nexport interface PolygonPrimitive extends PrimitiveStyle {\n\t/** Polygon points in local normalized grid coordinates from `0` to `1`. */\n\tpoints: [number, number][];\n}\n\n/** Generated line/polyline primitive content using normalized local grid coordinates. */\nexport interface LinePrimitive extends Omit<PrimitiveStyle, \"fill\"> {\n\t/** Line points in local normalized grid coordinates from `0` to `1`. */\n\tpoints: [number, number][];\n\t/** SVG line cap. Defaults to `round`. */\n\tlineCap?: \"butt\" | \"round\" | \"square\";\n\t/** SVG line join. Defaults to `round`. */\n\tlineJoin?: \"miter\" | \"round\" | \"bevel\";\n}\n\n/** Element-level payload for generated primitive assets. */\nexport interface PrimitiveContent {\n\trectangle?: RectanglePrimitive;\n\tcircle?: CirclePrimitive;\n\tpolygon?: PolygonPrimitive;\n\tline?: LinePrimitive;\n}\n\n/** Element placement used in first-scene elements and later add operations. */\nexport interface ElementPlacement {\n\tid: string;\n\tasset: string;\n\tat: [number, number];\n\tsize?: number;\n\tlayer?: string;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContent;\n\tprimitive?: PrimitiveContent;\n}\n\n/** Element patch used by scene update operations. */\nexport interface ElementPatch {\n\tid: string;\n\tat?: [number, number];\n\tsize?: number;\n\tlayer?: string;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContent;\n\tprimitive?: PrimitiveContent;\n}\n\n/** Element removal used by scene remove operations. */\nexport interface ElementRemoval {\n\tid: string;\n\texit?: ExitAnimation;\n}\n\n/** Visual connector line pattern for authored connections and runtime connectors. */\nexport type ConnectorPattern = \"solid\" | \"dashed\" | \"dotted\";\n\n/** Visual connector geometry variant. */\nexport type ConnectorVariant = \"line\" | \"road\";\n\n/** Generated endpoint indicator placed at the start or end of a connector. */\nexport type ConnectorEndpoint = \"none\" | \"arrow\" | \"dot\" | \"circle\" | \"diamond\" | \"bar\";\n\n/** Direction used for connector endpoint orientation and flow animation. */\nexport type ConnectorDirection = \"route\" | \"reverse\";\n\n/** Authored connector style overrides for a visual connection. */\nexport interface ConnectorStyle {\n\t/** Geometry variant. Defaults to `line`. */\n\tvariant?: ConnectorVariant;\n\t/** Stroke pattern. Defaults to `solid`. */\n\tpattern?: ConnectorPattern;\n\t/** SVG stroke color or safe CSS color token. */\n\tstroke?: string;\n\t/** Stroke width in SVG user units. */\n\tstrokeWidth?: number;\n\t/** Connector opacity from `0` to `1`. */\n\topacity?: number;\n\t/** Explicit dash/gap pair in SVG user units. */\n\tdash?: [number, number];\n\t/** Optional outline stroke color for road connectors. */\n\toutline?: string;\n\t/** Optional outline width in SVG user units. */\n\toutlineWidth?: number;\n\t/** Optional road lane treatment. */\n\tlane?: \"none\" | \"center-dashed\";\n}\n\n/** Authored endpoint reference for compiler-routed visual connections. */\nexport interface ConnectorEndpointRef {\n\t/** Element id to attach to. Mutually exclusive with `at`. */\n\telement?: string;\n\t/** Explicit grid point to attach to. Mutually exclusive with `element`. */\n\tat?: [number, number];\n\t/** Element side or automatic side selection. Defaults to `auto`. */\n\tside?: \"auto\" | \"top\" | \"right\" | \"bottom\" | \"left\" | \"front\" | \"back\";\n\t/** Normalized side offset from `-0.5` to `0.5`. Defaults to `0`. */\n\toffset?: number;\n}\n\n/** Authored routing options used only by dev-time compiler tooling. */\nexport interface ConnectorRouting {\n\t/** Routing mode. Defaults to `orthogonal` for endpoint-routed connections. */\n\tmode?: \"straight\" | \"orthogonal\" | \"manual\";\n\t/** Obstacle avoidance selection. Defaults to `objects`. */\n\tavoid?: \"objects\" | \"none\" | string[];\n\t/** Obstacle clearance in grid cells. Defaults to `0.5`. */\n\tclearance?: number;\n\t/** Router grid step in grid cells. */\n\tgridStep?: number;\n\t/** Maximum allowed bends for advanced routers. */\n\tmaxBends?: number;\n\t/** Route scoring preference for advanced routers. */\n\tprefer?: \"direct\" | \"fewest-bends\" | \"shortest\";\n}\n\n/** Connection placement used in first-scene connections and later add operations. */\nexport interface ConnectionPlacement {\n\tid: string;\n\troute?: [number, number][];\n\tfrom?: ConnectorEndpointRef;\n\tto?: ConnectorEndpointRef;\n\trouting?: ConnectorRouting;\n\tlayer?: string;\n\tstyle?: ConnectorStyle;\n\tstart?: ConnectorEndpoint;\n\tend?: ConnectorEndpoint;\n\tdirection?: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Connection patch used by scene update operations. */\nexport interface ConnectionPatch {\n\tid: string;\n\troute?: [number, number][];\n\tfrom?: ConnectorEndpointRef;\n\tto?: ConnectorEndpointRef;\n\trouting?: ConnectorRouting;\n\tlayer?: string;\n\tstyle?: ConnectorStyle;\n\tstart?: ConnectorEndpoint;\n\tend?: ConnectorEndpoint;\n\tdirection?: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Connection removal used by scene remove operations. */\nexport interface ConnectionRemoval {\n\tid: string;\n\texit?: ExitAnimation;\n}\n\n/** Fully defaulted connector style emitted to browser runtime snapshots. */\nexport interface RuntimeConnectorStyle {\n\tvariant: ConnectorVariant;\n\tpattern: ConnectorPattern;\n\tstroke: string;\n\tstrokeWidth: number;\n\topacity: number;\n\tdash?: [number, number];\n\toutline?: string;\n\toutlineWidth: number;\n\tlane: \"none\" | \"center-dashed\";\n}\n\n/** Runtime-resolved connector state in a compiled scene stop. */\nexport interface RuntimeConnectorState {\n\tid: string;\n\troute: [number, number][];\n\tlayer: string;\n\tpresence: LifecycleStatus;\n\tstyle: RuntimeConnectorStyle;\n\tstart: ConnectorEndpoint;\n\tend: ConnectorEndpoint;\n\tdirection: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Runtime-resolved element state in a compiled scene stop. */\nexport interface RuntimeElementState {\n\tid: string;\n\tasset: string;\n\tpos: [number, number];\n\tsize: number;\n\tlayer: string;\n\tpresence: LifecycleStatus;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContent;\n\tprimitive?: PrimitiveContent;\n}\n\n// ── Type guards ──────────────────────────────────────────────────────────────\n\n/** Narrow a raw string to EntryAnimation. Returns undefined if invalid. */\nexport function guardEntryAnimation(v: unknown): EntryAnimation | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn ENTRY_ANIMATIONS.has(v as EntryAnimation) ? (v as EntryAnimation) : undefined;\n}\n\n/** Narrow a raw string to ExitAnimation. Returns undefined if invalid. */\nexport function guardExitAnimation(v: unknown): ExitAnimation | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn EXIT_ANIMATIONS.has(v as ExitAnimation) ? (v as ExitAnimation) : undefined;\n}\n\n/** Narrow a raw string to LifecycleStatus. Returns undefined if invalid. */\nexport function guardLifecycleStatus(v: unknown): LifecycleStatus | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn LIFECYCLE_STATUSES.has(v as LifecycleStatus) ? (v as LifecycleStatus) : undefined;\n}\n"],"names":[],"mappings":";;;AAyBA;AACO,MAAM,gBAAgB,GAAgC,IAAI,GAAG,CAAC;IACpE,SAAS;IACT,cAAc;IACd,SAAS;IACT,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,SAAS;IACT,MAAM;AACN,CAAA,CAAC;AAEF;AACO,MAAM,eAAe,GAA+B,IAAI,GAAG,CAAC;IAClE,UAAU;IACV,iBAAiB;IACjB,qBAAqB;IACrB,WAAW;IACX,gBAAgB;IAChB,iBAAiB;IACjB,UAAU;IACV,MAAM;AACN,CAAA,CAAC;AAEF;AACO,MAAM,kBAAkB,GAAiC,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAmQtH;AAEA;AACM,SAAU,mBAAmB,CAAC,CAAU,EAAA;IAC7C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAmB,CAAC,GAAI,CAAoB,GAAG,SAAS;AACrF;AAEA;AACM,SAAU,kBAAkB,CAAC,CAAU,EAAA;IAC5C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,eAAe,CAAC,GAAG,CAAC,CAAkB,CAAC,GAAI,CAAmB,GAAG,SAAS;AAClF;AAEA;AACM,SAAU,oBAAoB,CAAC,CAAU,EAAA;IAC9C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAoB,CAAC,GAAI,CAAqB,GAAG,SAAS;AACzF;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/types/node.ts"],"sourcesContent":["/** Entry animation types */\nexport type EntryAnimation =\n\t| \"fade-in\"\n\t| \"fade-in-grow\"\n\t| \"fall-in\"\n\t| \"rise-from-ground\"\n\t| \"slide-in-left\"\n\t| \"slide-in-right\"\n\t| \"flip-in\"\n\t| \"none\";\n\n/** Exit animation types */\nexport type ExitAnimation =\n\t| \"fade-out\"\n\t| \"fade-out-shrink\"\n\t| \"fall-through-ground\"\n\t| \"rise-away\"\n\t| \"slide-out-left\"\n\t| \"slide-out-right\"\n\t| \"flip-out\"\n\t| \"none\";\n\n/** Runtime/compiler-derived lifecycle status. Not authored in YAML. */\nexport type LifecycleStatus = \"entering\" | \"present\" | \"exiting\" | \"removed\";\n\n/** Runtime set of valid entry animation strings */\nexport const ENTRY_ANIMATIONS: ReadonlySet<EntryAnimation> = new Set([\n\t\"fade-in\",\n\t\"fade-in-grow\",\n\t\"fall-in\",\n\t\"rise-from-ground\",\n\t\"slide-in-left\",\n\t\"slide-in-right\",\n\t\"flip-in\",\n\t\"none\",\n]);\n\n/** Runtime set of valid exit animation strings */\nexport const EXIT_ANIMATIONS: ReadonlySet<ExitAnimation> = new Set([\n\t\"fade-out\",\n\t\"fade-out-shrink\",\n\t\"fall-through-ground\",\n\t\"rise-away\",\n\t\"slide-out-left\",\n\t\"slide-out-right\",\n\t\"flip-out\",\n\t\"none\",\n]);\n\n/** Runtime set of valid lifecycle status strings */\nexport const LIFECYCLE_STATUSES: ReadonlySet<LifecycleStatus> = new Set([\"entering\", \"present\", \"exiting\", \"removed\"]);\n\n/** Ambient animation configuration */\nexport interface AmbientAnimation {\n\t/** Animation class name */\n\tname: string;\n\t/** Whether the animation runs infinitely (default: true) */\n\tinfinite?: boolean;\n\t/** Number of times to play (only relevant when infinite: false) */\n\titerations?: number;\n}\n\nexport type CameraEasing = \"linear\" | \"ease-in-out\" | \"ease-out\";\n\nexport interface CameraGridArea {\n\tat: [number, number];\n\tsize: [number, number];\n}\n\nexport type CameraTarget = { element: string } | { area: CameraGridArea } | { reset: true };\n\nexport interface CameraFocus {\n\ttarget: CameraTarget;\n\tpadding?: number;\n\tduration?: number;\n\teasing?: CameraEasing;\n}\n\nexport interface CameraZoomOptions {\n\tpadding?: number;\n\tduration?: number;\n\teasing?: CameraEasing;\n}\n\nexport type RuntimeCameraTarget =\n\t| { type: \"element\"; id: string }\n\t| { type: \"area\"; at: [number, number]; size: [number, number] }\n\t| { type: \"reset\" };\n\nexport interface RuntimeCameraFocus {\n\ttarget: RuntimeCameraTarget;\n\tpadding?: number;\n\tduration?: number;\n\teasing?: CameraEasing;\n}\n\n/** Horizontal anchor used by built-in text elements. */\nexport type TextAlign = \"start\" | \"middle\" | \"end\";\n\n/** Content and safe SVG text styling for the built-in `asset: text` element. */\nexport interface TextContent {\n\t/** Text content. Use newline characters for explicit line breaks. */\n\tvalue: string;\n\t/** Horizontal text anchor within the element cell. Defaults to `middle`. */\n\talign?: TextAlign;\n\t/** SVG font-size in CSS pixels before element scaling. Defaults to `12`. */\n\tfontSize?: number;\n\t/** SVG font-weight. Defaults to `700`. */\n\tfontWeight?: number | \"normal\" | \"bold\";\n\t/** Multiplier applied to `fontSize` for multiline spacing. Defaults to `1.2`. */\n\tlineHeight?: number;\n\t/** SVG fill color. Defaults to `currentColor`. */\n\tfill?: string;\n}\n\n/** Sparse update payload for built-in text content. */\nexport type TextContentPatch = Partial<TextContent>;\n\n/** Built-in generated primitive asset ids. These are not declared in header assets. */\nexport type PrimitiveAssetId = \"rectangle\" | \"circle\" | \"polygon\" | \"line\";\n\n/** Shared safe SVG style fields for generated primitive assets. */\nexport interface PrimitiveStyle {\n\t/** SVG fill color or safe CSS color token. Defaults to `currentColor`. */\n\tfill?: string;\n\t/** SVG stroke color or safe CSS color token. Defaults to `none`. */\n\tstroke?: string;\n\t/** SVG stroke width in CSS pixels before element scaling. Defaults to `0`. */\n\tstrokeWidth?: number;\n\t/** Element opacity from `0` to `1`. Defaults to `1`. */\n\topacity?: number;\n\t/** Optional dash/gap pair for stroked primitives. */\n\tdash?: [number, number];\n}\n\n/** Generated projected rectangle/diamond primitive content. */\nexport interface RectanglePrimitive extends PrimitiveStyle {\n\t/** Optional corner radius for screen-space rectangles. Defaults to `0`. */\n\trx?: number;\n}\n\n/** Generated circle primitive content. */\nexport interface CirclePrimitive extends PrimitiveStyle {}\n\n/** Generated polygon primitive content using normalized local grid coordinates. */\nexport interface PolygonPrimitive extends PrimitiveStyle {\n\t/** Polygon points in local normalized grid coordinates from `0` to `1`. */\n\tpoints: [number, number][];\n}\n\n/** Generated line/polyline primitive content using normalized local grid coordinates. */\nexport interface LinePrimitive extends Omit<PrimitiveStyle, \"fill\"> {\n\t/** Line points in local normalized grid coordinates from `0` to `1`. */\n\tpoints: [number, number][];\n\t/** SVG line cap. Defaults to `round`. */\n\tlineCap?: \"butt\" | \"round\" | \"square\";\n\t/** SVG line join. Defaults to `round`. */\n\tlineJoin?: \"miter\" | \"round\" | \"bevel\";\n}\n\n/** Element-level payload for generated primitive assets. */\nexport interface PrimitiveContent {\n\trectangle?: RectanglePrimitive;\n\tcircle?: CirclePrimitive;\n\tpolygon?: PolygonPrimitive;\n\tline?: LinePrimitive;\n}\n\n/** Sparse update payload for built-in primitive content. */\nexport interface PrimitiveContentPatch {\n\trectangle?: Partial<RectanglePrimitive>;\n\tcircle?: Partial<CirclePrimitive>;\n\tpolygon?: Partial<PolygonPrimitive>;\n\tline?: Partial<LinePrimitive>;\n}\n\n/** Element placement used in first-scene elements and later add operations. */\nexport interface ElementPlacement {\n\tid: string;\n\tasset: string;\n\tat: [number, number];\n\tsize?: number;\n\tlayer?: string;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContent;\n\tprimitive?: PrimitiveContent;\n}\n\n/** Element patch used by scene update operations. */\nexport interface ElementPatch {\n\tid: string;\n\tat?: [number, number];\n\tsize?: number;\n\tlayer?: string;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContentPatch;\n\tprimitive?: PrimitiveContentPatch;\n}\n\n/** Element removal used by scene remove operations. */\nexport interface ElementRemoval {\n\tid: string;\n\texit?: ExitAnimation;\n}\n\n/** Visual connector line pattern for authored connections and runtime connectors. */\nexport type ConnectorPattern = \"solid\" | \"dashed\" | \"dotted\";\n\n/** Visual connector geometry variant. */\nexport type ConnectorVariant = \"line\" | \"road\";\n\n/** Generated endpoint indicator placed at the start or end of a connector. */\nexport type ConnectorEndpoint = \"none\" | \"arrow\" | \"dot\" | \"circle\" | \"diamond\" | \"bar\";\n\n/** Direction used for connector endpoint orientation and flow animation. */\nexport type ConnectorDirection = \"route\" | \"reverse\";\n\n/** Authored connector style overrides for a visual connection. */\nexport interface ConnectorStyle {\n\t/** Geometry variant. Defaults to `line`. */\n\tvariant?: ConnectorVariant;\n\t/** Stroke pattern. Defaults to `solid`. */\n\tpattern?: ConnectorPattern;\n\t/** SVG stroke color or safe CSS color token. */\n\tstroke?: string;\n\t/** Stroke width in SVG user units. */\n\tstrokeWidth?: number;\n\t/** Connector opacity from `0` to `1`. */\n\topacity?: number;\n\t/** Explicit dash/gap pair in SVG user units. */\n\tdash?: [number, number];\n\t/** Optional outline stroke color for road connectors. */\n\toutline?: string;\n\t/** Optional outline width in SVG user units. */\n\toutlineWidth?: number;\n\t/** Optional road lane treatment. */\n\tlane?: \"none\" | \"center-dashed\";\n}\n\n/** Authored endpoint reference for compiler-routed visual connections. */\nexport interface ConnectorEndpointRef {\n\t/** Element id to attach to. Mutually exclusive with `at`. */\n\telement?: string;\n\t/** Explicit grid point to attach to. Mutually exclusive with `element`. */\n\tat?: [number, number];\n\t/** Element side or automatic side selection. Defaults to `auto`. */\n\tside?: \"auto\" | \"top\" | \"right\" | \"bottom\" | \"left\" | \"front\" | \"back\";\n\t/** Normalized side offset from `-0.5` to `0.5`. Defaults to `0`. */\n\toffset?: number;\n}\n\n/** Authored routing options used only by dev-time compiler tooling. */\nexport interface ConnectorRouting {\n\t/** Routing mode. Defaults to `orthogonal` for endpoint-routed connections. */\n\tmode?: \"straight\" | \"orthogonal\" | \"manual\";\n\t/** Obstacle avoidance selection. Defaults to `objects`. */\n\tavoid?: \"objects\" | \"none\" | string[];\n\t/** Obstacle clearance in grid cells. Defaults to `0.5`. */\n\tclearance?: number;\n\t/** Router grid step in grid cells. */\n\tgridStep?: number;\n\t/** Maximum allowed bends for advanced routers. */\n\tmaxBends?: number;\n\t/** Route scoring preference for advanced routers. */\n\tprefer?: \"direct\" | \"fewest-bends\" | \"shortest\";\n}\n\n/** Connection placement used in first-scene connections and later add operations. */\nexport interface ConnectionPlacement {\n\tid: string;\n\troute?: [number, number][];\n\tfrom?: ConnectorEndpointRef;\n\tto?: ConnectorEndpointRef;\n\trouting?: ConnectorRouting;\n\tlayer?: string;\n\tstyle?: ConnectorStyle;\n\tstart?: ConnectorEndpoint;\n\tend?: ConnectorEndpoint;\n\tdirection?: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Connection patch used by scene update operations. */\nexport interface ConnectionPatch {\n\tid: string;\n\troute?: [number, number][];\n\tfrom?: ConnectorEndpointRef;\n\tto?: ConnectorEndpointRef;\n\trouting?: ConnectorRouting;\n\tlayer?: string;\n\tstyle?: ConnectorStyle;\n\tstart?: ConnectorEndpoint;\n\tend?: ConnectorEndpoint;\n\tdirection?: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Connection removal used by scene remove operations. */\nexport interface ConnectionRemoval {\n\tid: string;\n\texit?: ExitAnimation;\n}\n\n/** Fully defaulted connector style emitted to browser runtime snapshots. */\nexport interface RuntimeConnectorStyle {\n\tvariant: ConnectorVariant;\n\tpattern: ConnectorPattern;\n\tstroke: string;\n\tstrokeWidth: number;\n\topacity: number;\n\tdash?: [number, number];\n\toutline?: string;\n\toutlineWidth: number;\n\tlane: \"none\" | \"center-dashed\";\n}\n\n/** Runtime-resolved connector state in a compiled scene stop. */\nexport interface RuntimeConnectorState {\n\tid: string;\n\troute: [number, number][];\n\tlayer: string;\n\tpresence: LifecycleStatus;\n\tstyle: RuntimeConnectorStyle;\n\tstart: ConnectorEndpoint;\n\tend: ConnectorEndpoint;\n\tdirection: ConnectorDirection;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n}\n\n/** Runtime-resolved element state in a compiled scene stop. */\nexport interface RuntimeElementState {\n\tid: string;\n\tasset: string;\n\tpos: [number, number];\n\tsize: number;\n\tlayer: string;\n\tpresence: LifecycleStatus;\n\tenter?: EntryAnimation;\n\texit?: ExitAnimation;\n\tambient?: AmbientAnimation[];\n\ttext?: TextContent;\n\tprimitive?: PrimitiveContent;\n}\n\n// ── Type guards ──────────────────────────────────────────────────────────────\n\n/** Narrow a raw string to EntryAnimation. Returns undefined if invalid. */\nexport function guardEntryAnimation(v: unknown): EntryAnimation | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn ENTRY_ANIMATIONS.has(v as EntryAnimation) ? (v as EntryAnimation) : undefined;\n}\n\n/** Narrow a raw string to ExitAnimation. Returns undefined if invalid. */\nexport function guardExitAnimation(v: unknown): ExitAnimation | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn EXIT_ANIMATIONS.has(v as ExitAnimation) ? (v as ExitAnimation) : undefined;\n}\n\n/** Narrow a raw string to LifecycleStatus. Returns undefined if invalid. */\nexport function guardLifecycleStatus(v: unknown): LifecycleStatus | undefined {\n\tif (typeof v !== \"string\") return undefined;\n\treturn LIFECYCLE_STATUSES.has(v as LifecycleStatus) ? (v as LifecycleStatus) : undefined;\n}\n"],"names":[],"mappings":";;;;;AAyBA;AACO,MAAM,gBAAgB,GAAgC,IAAI,GAAG,CAAC;IACpE,SAAS;IACT,cAAc;IACd,SAAS;IACT,kBAAkB;IAClB,eAAe;IACf,gBAAgB;IAChB,SAAS;IACT,MAAM;AACN,CAAA,CAAC;AAEF;AACO,MAAM,eAAe,GAA+B,IAAI,GAAG,CAAC;IAClE,UAAU;IACV,iBAAiB;IACjB,qBAAqB;IACrB,WAAW;IACX,gBAAgB;IAChB,iBAAiB;IACjB,UAAU;IACV,MAAM;AACN,CAAA,CAAC;AAEF;AACO,MAAM,kBAAkB,GAAiC,IAAI,GAAG,CAAC,CAAC,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;AAgTtH;AAEA;AACM,SAAU,mBAAmB,CAAC,CAAU,EAAA;IAC7C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,gBAAgB,CAAC,GAAG,CAAC,CAAmB,CAAC,GAAI,CAAoB,GAAG,SAAS;AACrF;AAEA;AACM,SAAU,kBAAkB,CAAC,CAAU,EAAA;IAC5C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,eAAe,CAAC,GAAG,CAAC,CAAkB,CAAC,GAAI,CAAmB,GAAG,SAAS;AAClF;AAEA;AACM,SAAU,oBAAoB,CAAC,CAAU,EAAA;IAC9C,IAAI,OAAO,CAAC,KAAK,QAAQ;AAAE,QAAA,OAAO,SAAS;AAC3C,IAAA,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAoB,CAAC,GAAI,CAAqB,GAAG,SAAS;AACzF;;;;"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { PrimitiveContent, TextContent } from "../types/node.ts";
|
|
2
|
-
import type { RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
2
|
+
import type { CompiledSprite, RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
3
3
|
type ResolvedAsset = {
|
|
4
4
|
url: string;
|
|
5
5
|
anchor?: [number, number];
|
|
6
|
+
sprite?: CompiledSprite;
|
|
6
7
|
};
|
|
7
8
|
export type AssetResolver = (name: string) => ResolvedAsset | undefined;
|
|
8
9
|
export declare function createAssetResolver(bundle?: RuntimeBundle): AssetResolver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"asset-node.d.ts","sourceRoot":"","sources":["../../src/rendering/asset-node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,gBAAgB,EAA6B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"asset-node.d.ts","sourceRoot":"","sources":["../../src/rendering/asset-node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAiB,gBAAgB,EAA6B,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChH,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAKhF,KAAK,aAAa,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,cAAc,CAAA;CAAE,CAAC;AAEzF,MAAM,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,aAAa,GAAG,SAAS,CAAC;AAExE,wBAAgB,mBAAmB,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,aAAa,CAazE;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,WAAW,CAKtG;AAED,wBAAgB,mBAAmB,CAClC,WAAW,EAAE,WAAW,GAAG,SAAS,EACpC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GACd,WAAW,CAkCb;AAED,wBAAgB,wBAAwB,CACvC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,gBAAgB,GAAG,SAAS,EACvC,QAAQ,EAAE,MAAM,GACd,WAAW,CAoBb"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { RuntimeConnectorState, RuntimeElementState } from "../types/node.ts";
|
|
1
|
+
import type { CameraGridArea, RuntimeConnectorState, RuntimeElementState } from "../types/node.ts";
|
|
2
2
|
import type { RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
3
3
|
interface Bounds {
|
|
4
4
|
minX: number;
|
|
@@ -25,11 +25,19 @@ interface ResolvedLayoutState {
|
|
|
25
25
|
/** Internal state tracked per element node. */
|
|
26
26
|
interface ElementState {
|
|
27
27
|
node: SVGGElement;
|
|
28
|
+
current: RuntimeElementState;
|
|
29
|
+
anchor: [number, number];
|
|
28
30
|
isHidden: boolean;
|
|
29
31
|
entryKey?: string;
|
|
30
32
|
exitKey?: string;
|
|
31
33
|
ambient: Set<string>;
|
|
32
34
|
}
|
|
35
|
+
export interface ViewBoxRect {
|
|
36
|
+
minX: number;
|
|
37
|
+
minY: number;
|
|
38
|
+
width: number;
|
|
39
|
+
height: number;
|
|
40
|
+
}
|
|
33
41
|
/** Internal state tracked per connector node. */
|
|
34
42
|
interface ConnectorState {
|
|
35
43
|
node: SVGGElement;
|
|
@@ -63,6 +71,25 @@ export declare function getResolvedViewBox(bundle: RuntimeBundle): {
|
|
|
63
71
|
width: number;
|
|
64
72
|
height: number;
|
|
65
73
|
};
|
|
74
|
+
export declare function getResolvedProjectionLayout(bundle: RuntimeBundle): {
|
|
75
|
+
cellSize: number;
|
|
76
|
+
padding: {
|
|
77
|
+
x: number;
|
|
78
|
+
y: number;
|
|
79
|
+
};
|
|
80
|
+
selectedBounds: {
|
|
81
|
+
minX: number;
|
|
82
|
+
minY: number;
|
|
83
|
+
maxX: number;
|
|
84
|
+
maxY: number;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
export declare function getCurrentElementBounds(svg: SVGSVGElement & {
|
|
88
|
+
_elementMap?: Map<string, ElementState | unknown>;
|
|
89
|
+
_layout?: ResolvedLayoutState;
|
|
90
|
+
}, id: string): ViewBoxRect | undefined;
|
|
91
|
+
export declare function getGridAreaBounds(bundle: RuntimeBundle, area: CameraGridArea): ViewBoxRect;
|
|
92
|
+
export declare function applySceneViewBox(svg: SVGSVGElement, viewBox: ViewBoxRect): void;
|
|
66
93
|
/** Hide an element after its exit animation completes. */
|
|
67
94
|
export declare function hideElementAfterExit(node: SVGElement): void;
|
|
68
95
|
/** Show an element on re-addition. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rendering-engine.d.ts","sourceRoot":"","sources":["../../src/rendering/rendering-engine.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAqB,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"rendering-engine.d.ts","sourceRoot":"","sources":["../../src/rendering/rendering-engine.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAqB,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACtH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAoBhE,UAAU,MAAM;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACb;AAED,UAAU,mBAAmB;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;CACvE;AAED,+CAA+C;AAC/C,UAAU,YAAY;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,EAAE,mBAAmB,CAAC;IAC7B,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,GAAG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3D;AAED,wEAAwE;AACxE,wBAAgB,wBAAwB,CAAC,GAAG,EAAE,mBAAmB,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,WAAW,CAY3G;AAED,2CAA2C;AAC3C,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAExD;AAgsBD,oDAAoD;AACpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,IAAI,GAAE,OAAO,GAAG,MAAgB,GAAG,IAAI,CAO7G"}
|
package/dist/runtime/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { m as mountScene } from '../chunks/index-B6HlPnov.js';
|
|
2
|
+
import '../chunks/rendering-engine-BgHel7yX.js';
|
|
2
3
|
import '../chunks/errors-DyqEkrm5.js';
|
|
4
|
+
import '../chunks/sha256-4JuurR-b.js';
|
|
3
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;"}
|
|
@@ -23,6 +23,15 @@ export interface ResolvedRuntimeConfig {
|
|
|
23
23
|
width: number;
|
|
24
24
|
height: number;
|
|
25
25
|
};
|
|
26
|
+
camera: {
|
|
27
|
+
viewBox: {
|
|
28
|
+
minX: number;
|
|
29
|
+
minY: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
isZoomed: boolean;
|
|
34
|
+
};
|
|
26
35
|
theme: string;
|
|
27
36
|
themeVars: Record<string, string>;
|
|
28
37
|
scenes: Array<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mount-scene.d.ts","sourceRoot":"","sources":["../../src/runtime/mount-scene.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAA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AAM,EAAE,MAAM,CAAA;SAAE,CAAC;QAAC,QAAQ,EAAE,OAAO,CAAA;KAAE,CAAC;IACtG,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAChD,UAAU,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AAED,gFAAgF;AAChF,MAAM,WAAW,YAAY;IAC5B,qDAAqD;IACrD,GAAG,EAAE,aAAa,CAAC;IACnB,iEAAiE;IACjE,MAAM,EAAE,eAAe,CAAC;IACxB,yEAAyE;IACzE,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,yFAAyF;IACzF,iBAAiB,IAAI,qBAAqB,CAAC;IAC3C,uFAAuF;IACvF,OAAO,IAAI,IAAI,CAAC;CAChB;AAED,4DAA4D;AAC5D,wBAAgB,UAAU,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,GAAE,iBAAsB,GAAG,YAAY,CAgDpH"}
|
package/dist/types/assets.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
export type SpriteDefinition = [number, number] | {
|
|
2
|
+
at?: [number, number];
|
|
3
|
+
rect?: [number, number, number, number];
|
|
4
|
+
anchor?: [number, number];
|
|
5
|
+
};
|
|
6
|
+
/** Authored standalone URL asset metadata used by tooling and catalogs. */
|
|
7
|
+
export interface UrlAssetDefinition {
|
|
3
8
|
/** Unique asset id used by authored YAML and runtime elements. */
|
|
4
9
|
id: string;
|
|
5
10
|
/** Optional relative SVG path. Defaults to `id` when omitted. */
|
|
@@ -12,6 +17,26 @@ export interface AssetDefinition {
|
|
|
12
17
|
/** Optional category for authoring tooling. */
|
|
13
18
|
category?: AssetCategory;
|
|
14
19
|
}
|
|
20
|
+
/** Authored sprite sheet metadata used by tooling and catalogs. */
|
|
21
|
+
export interface SpriteSheetAssetDefinition {
|
|
22
|
+
/** Namespace id for the sheet; nested sprite ids are used by scene elements. */
|
|
23
|
+
id: string;
|
|
24
|
+
type: "sprite-sheet";
|
|
25
|
+
/** Relative image path with explicit extension. */
|
|
26
|
+
path: string;
|
|
27
|
+
/** Source image size in pixels. */
|
|
28
|
+
sheetSize: [number, number];
|
|
29
|
+
/** Regular tile size in pixels for grid-addressed sprites. */
|
|
30
|
+
tileSize?: [number, number];
|
|
31
|
+
/** Default normalized anchor inherited by sprites. */
|
|
32
|
+
anchor?: [number, number];
|
|
33
|
+
/** Logical placeable asset ids exposed by this sheet. */
|
|
34
|
+
sprites: Record<string, SpriteDefinition>;
|
|
35
|
+
/** Optional category for authoring tooling. */
|
|
36
|
+
category?: AssetCategory;
|
|
37
|
+
}
|
|
38
|
+
/** Authored asset metadata used by tooling and catalogs. */
|
|
39
|
+
export type AssetDefinition = UrlAssetDefinition | SpriteSheetAssetDefinition;
|
|
15
40
|
/** Asset categories for filtering and authoring tooling. */
|
|
16
41
|
export type AssetCategory = "building" | "nature" | "infrastructure" | "equipment" | "decoration" | "custom";
|
|
17
42
|
/** Mutable metadata registry used by authoring tooling, not browser rendering. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/types/assets.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/types/assets.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GACzB,CAAC,MAAM,EAAE,MAAM,CAAC,GAChB;IACA,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtB,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MA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E,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAAC;IAC7C,uDAAuD;IACvD,MAAM,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,eAAe,EAAE,CAAC;IACpD,mCAAmC;IACnC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IACzB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB;AAED,oEAAoE;AACpE,MAAM,WAAW,KAAK;IACrB,0DAA0D;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,iDAAiD;IACjD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC7B"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export type { AssetCategory, AssetDefinition, AssetRegistry, Theme, } from "./assets.ts";
|
|
1
|
+
export type { AssetCategory, AssetDefinition, AssetRegistry, SpriteDefinition as AssetSpriteDefinition, SpriteSheetAssetDefinition, Theme, UrlAssetDefinition, } from "./assets.ts";
|
|
2
2
|
export { AnimationError, ControllerError, ParseError, RenderError, ValidationErrorClass, } from "./errors.ts";
|
|
3
|
-
export type { AmbientAnimation, CirclePrimitive, ConnectionPatch, ConnectionPlacement, ConnectionRemoval, ConnectorDirection, ConnectorEndpoint, ConnectorEndpointRef, ConnectorPattern, ConnectorRouting, ConnectorStyle, ConnectorVariant, ElementPatch, ElementPlacement, ElementRemoval, EntryAnimation, ExitAnimation, LifecycleStatus, LinePrimitive, PolygonPrimitive, PrimitiveAssetId, PrimitiveContent, PrimitiveStyle, RectanglePrimitive, RuntimeConnectorState, RuntimeConnectorStyle, RuntimeElementState, TextAlign, TextContent, } from "./node.ts";
|
|
3
|
+
export type { AmbientAnimation, CameraEasing, CameraFocus, CameraGridArea, CameraTarget, CameraZoomOptions, CirclePrimitive, ConnectionPatch, ConnectionPlacement, ConnectionRemoval, ConnectorDirection, ConnectorEndpoint, ConnectorEndpointRef, ConnectorPattern, ConnectorRouting, ConnectorStyle, ConnectorVariant, ElementPatch, ElementPlacement, ElementRemoval, EntryAnimation, ExitAnimation, LifecycleStatus, LinePrimitive, PolygonPrimitive, PrimitiveAssetId, PrimitiveContent, PrimitiveContentPatch, PrimitiveStyle, RectanglePrimitive, RuntimeCameraFocus, RuntimeCameraTarget, RuntimeConnectorState, RuntimeConnectorStyle, RuntimeElementState, TextAlign, TextContent, TextContentPatch, } from "./node.ts";
|
|
4
4
|
export { guardEntryAnimation, guardExitAnimation, guardLifecycleStatus, } from "./node.ts";
|
|
5
|
-
export type { CompiledAsset, CompiledFloor, CompiledLayer, CompiledLayout, RuntimeBundle, } from "./runtime-bundle.ts";
|
|
6
|
-
export type { AssetCatalogEntry, FloorConfig, GridConfig, LayerDefinition, LayoutBounds, LayoutFit, ResolvedLayoutConfig, RuntimeSceneStop, SceneAddDelta, SceneDocument, SceneHeader, SceneRemoveDelta, SceneStep, SceneUpdateDelta, } from "./scene.ts";
|
|
5
|
+
export type { CompiledAsset, CompiledFloor, CompiledLayer, CompiledLayout, CompiledSprite, RuntimeBundle, } from "./runtime-bundle.ts";
|
|
6
|
+
export type { AssetCatalogEntry, FloorConfig, GridConfig, LayerDefinition, LayoutBounds, LayoutFit, ResolvedLayoutConfig, RuntimeSceneStop, SceneAddDelta, SceneDocument, SceneHeader, SceneRemoveDelta, SceneStep, SceneUpdateDelta, SpriteDefinition as SceneSpriteDefinition, SpriteSheetAssetCatalogEntry, UrlAssetCatalogEntry, } from "./scene.ts";
|
|
7
7
|
export type { ValidationError, ValidationReport, ValidationWarning, } from "./validation.ts";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,eAAe,EACf,aAAa,EACb,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,IAAI,qBAAqB,EACzC,0BAA0B,EAC1B,KAAK,EACL,kBAAkB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,cAAc,EACd,eAAe,EACf,UAAU,EACV,WAAW,EACX,oBAAoB,GACpB,MAAM,aAAa,CAAC;AACrB,YAAY,EACX,gBAAgB,EAChB,YAAY,EACZ,WAAW,EACX,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACb,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,WAAW,EACX,gBAAgB,GAChB,MAAM,WAAW,CAAC;AACnB,OAAO,EACN,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,GACpB,MAAM,WAAW,CAAC;AACnB,YAAY,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,GACb,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACX,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,eAAe,EACf,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,IAAI,qBAAqB,EACzC,4BAA4B,EAC5B,oBAAoB,GACpB,MAAM,YAAY,CAAC;AACpB,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC"}
|
package/dist/types/node.d.ts
CHANGED
|
@@ -19,6 +19,45 @@ export interface AmbientAnimation {
|
|
|
19
19
|
/** Number of times to play (only relevant when infinite: false) */
|
|
20
20
|
iterations?: number;
|
|
21
21
|
}
|
|
22
|
+
export type CameraEasing = "linear" | "ease-in-out" | "ease-out";
|
|
23
|
+
export interface CameraGridArea {
|
|
24
|
+
at: [number, number];
|
|
25
|
+
size: [number, number];
|
|
26
|
+
}
|
|
27
|
+
export type CameraTarget = {
|
|
28
|
+
element: string;
|
|
29
|
+
} | {
|
|
30
|
+
area: CameraGridArea;
|
|
31
|
+
} | {
|
|
32
|
+
reset: true;
|
|
33
|
+
};
|
|
34
|
+
export interface CameraFocus {
|
|
35
|
+
target: CameraTarget;
|
|
36
|
+
padding?: number;
|
|
37
|
+
duration?: number;
|
|
38
|
+
easing?: CameraEasing;
|
|
39
|
+
}
|
|
40
|
+
export interface CameraZoomOptions {
|
|
41
|
+
padding?: number;
|
|
42
|
+
duration?: number;
|
|
43
|
+
easing?: CameraEasing;
|
|
44
|
+
}
|
|
45
|
+
export type RuntimeCameraTarget = {
|
|
46
|
+
type: "element";
|
|
47
|
+
id: string;
|
|
48
|
+
} | {
|
|
49
|
+
type: "area";
|
|
50
|
+
at: [number, number];
|
|
51
|
+
size: [number, number];
|
|
52
|
+
} | {
|
|
53
|
+
type: "reset";
|
|
54
|
+
};
|
|
55
|
+
export interface RuntimeCameraFocus {
|
|
56
|
+
target: RuntimeCameraTarget;
|
|
57
|
+
padding?: number;
|
|
58
|
+
duration?: number;
|
|
59
|
+
easing?: CameraEasing;
|
|
60
|
+
}
|
|
22
61
|
/** Horizontal anchor used by built-in text elements. */
|
|
23
62
|
export type TextAlign = "start" | "middle" | "end";
|
|
24
63
|
/** Content and safe SVG text styling for the built-in `asset: text` element. */
|
|
@@ -36,6 +75,8 @@ export interface TextContent {
|
|
|
36
75
|
/** SVG fill color. Defaults to `currentColor`. */
|
|
37
76
|
fill?: string;
|
|
38
77
|
}
|
|
78
|
+
/** Sparse update payload for built-in text content. */
|
|
79
|
+
export type TextContentPatch = Partial<TextContent>;
|
|
39
80
|
/** Built-in generated primitive asset ids. These are not declared in header assets. */
|
|
40
81
|
export type PrimitiveAssetId = "rectangle" | "circle" | "polygon" | "line";
|
|
41
82
|
/** Shared safe SVG style fields for generated primitive assets. */
|
|
@@ -80,6 +121,13 @@ export interface PrimitiveContent {
|
|
|
80
121
|
polygon?: PolygonPrimitive;
|
|
81
122
|
line?: LinePrimitive;
|
|
82
123
|
}
|
|
124
|
+
/** Sparse update payload for built-in primitive content. */
|
|
125
|
+
export interface PrimitiveContentPatch {
|
|
126
|
+
rectangle?: Partial<RectanglePrimitive>;
|
|
127
|
+
circle?: Partial<CirclePrimitive>;
|
|
128
|
+
polygon?: Partial<PolygonPrimitive>;
|
|
129
|
+
line?: Partial<LinePrimitive>;
|
|
130
|
+
}
|
|
83
131
|
/** Element placement used in first-scene elements and later add operations. */
|
|
84
132
|
export interface ElementPlacement {
|
|
85
133
|
id: string;
|
|
@@ -102,8 +150,8 @@ export interface ElementPatch {
|
|
|
102
150
|
enter?: EntryAnimation;
|
|
103
151
|
exit?: ExitAnimation;
|
|
104
152
|
ambient?: AmbientAnimation[];
|
|
105
|
-
text?:
|
|
106
|
-
primitive?:
|
|
153
|
+
text?: TextContentPatch;
|
|
154
|
+
primitive?: PrimitiveContentPatch;
|
|
107
155
|
}
|
|
108
156
|
/** Element removal used by scene remove operations. */
|
|
109
157
|
export interface ElementRemoval {
|
package/dist/types/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../src/types/node.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,MAAM,MAAM,cAAc,GACvB,SAAS,GACT,cAAc,GACd,SAAS,GACT,kBAAkB,GAClB,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W,CAAC;IACnB,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC7B;AAID,2EAA2E;AAC3E,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,OAAO,GAAG,cAAc,GAAG,SAAS,CAG1E;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,OAAO,GAAG,aAAa,GAAG,SAAS,CAGxE;AAED,4EAA4E;AAC5E,wBAAgB,oBAAoB,CAAC,CAAC,EAAE,OAAO,GAAG,eAAe,GAAG,SAAS,CAG5E"}
|
|
@@ -4,6 +4,11 @@ export interface CompiledAsset {
|
|
|
4
4
|
url?: string;
|
|
5
5
|
category?: AssetCategory;
|
|
6
6
|
anchor?: [number, number];
|
|
7
|
+
sprite?: CompiledSprite;
|
|
8
|
+
}
|
|
9
|
+
export interface CompiledSprite {
|
|
10
|
+
sheetSize: [number, number];
|
|
11
|
+
rect: [number, number, number, number];
|
|
7
12
|
}
|
|
8
13
|
export interface CompiledFloor {
|
|
9
14
|
size: [number, number];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-bundle.d.ts","sourceRoot":"","sources":["../../src/types/runtime-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAAW,aAAa;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"runtime-bundle.d.ts","sourceRoot":"","sources":["../../src/types/runtime-bundle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,MAAM,WAA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,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;CACvC"}
|
package/dist/types/scene.d.ts
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import type { ConnectionPatch, ConnectionPlacement, ConnectionRemoval, ElementPatch, ElementPlacement, ElementRemoval, RuntimeConnectorState, RuntimeElementState } from "./node.ts";
|
|
1
|
+
import type { CameraFocus, ConnectionPatch, ConnectionPlacement, ConnectionRemoval, ElementPatch, ElementPlacement, ElementRemoval, RuntimeCameraFocus, RuntimeConnectorState, RuntimeElementState } from "./node.ts";
|
|
2
2
|
/** Scene grid configuration */
|
|
3
3
|
export interface GridConfig {
|
|
4
4
|
/** Cell size in projected units (default: 64) */
|
|
5
5
|
cellSize?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
export type SpriteDefinition = [number, number] | {
|
|
8
|
+
at?: [number, number];
|
|
9
|
+
rect?: [number, number, number, number];
|
|
10
|
+
anchor?: [number, number];
|
|
11
|
+
};
|
|
12
|
+
/** Standalone URL asset declared in an authored scene document header. */
|
|
13
|
+
export interface UrlAssetCatalogEntry {
|
|
9
14
|
/** Unique asset id used by scene elements. */
|
|
10
15
|
id: string;
|
|
11
16
|
/** Optional relative SVG path. Defaults to `id` when omitted. */
|
|
@@ -16,6 +21,24 @@ export interface AssetCatalogEntry {
|
|
|
16
21
|
*/
|
|
17
22
|
anchor?: [number, number];
|
|
18
23
|
}
|
|
24
|
+
/** Sprite sheet declared in an authored scene document header. */
|
|
25
|
+
export interface SpriteSheetAssetCatalogEntry {
|
|
26
|
+
/** Namespace id for the sheet; nested sprite ids are used by scene elements. */
|
|
27
|
+
id: string;
|
|
28
|
+
type: "sprite-sheet";
|
|
29
|
+
/** Relative image path with explicit extension. */
|
|
30
|
+
path: string;
|
|
31
|
+
/** Source image size in pixels. */
|
|
32
|
+
sheetSize: [number, number];
|
|
33
|
+
/** Regular tile size in pixels for grid-addressed sprites. */
|
|
34
|
+
tileSize?: [number, number];
|
|
35
|
+
/** Default normalized anchor inherited by sprites. */
|
|
36
|
+
anchor?: [number, number];
|
|
37
|
+
/** Logical placeable asset ids exposed by this sheet. */
|
|
38
|
+
sprites: Record<string, SpriteDefinition>;
|
|
39
|
+
}
|
|
40
|
+
/** Asset declared in an authored scene document header. */
|
|
41
|
+
export type AssetCatalogEntry = UrlAssetCatalogEntry | SpriteSheetAssetCatalogEntry;
|
|
19
42
|
/** Logical ground plane and stable layout bounds. */
|
|
20
43
|
export interface FloorConfig {
|
|
21
44
|
size?: [number, number];
|
|
@@ -78,6 +101,7 @@ export interface SceneStep {
|
|
|
78
101
|
add?: SceneAddDelta;
|
|
79
102
|
update?: SceneUpdateDelta;
|
|
80
103
|
remove?: SceneRemoveDelta;
|
|
104
|
+
camera?: CameraFocus;
|
|
81
105
|
}
|
|
82
106
|
/** Full authored scene document parsed from YAML. */
|
|
83
107
|
export interface SceneDocument {
|
|
@@ -90,5 +114,6 @@ export interface RuntimeSceneStop {
|
|
|
90
114
|
progress: number;
|
|
91
115
|
elements: RuntimeElementState[];
|
|
92
116
|
connectors: RuntimeConnectorState[];
|
|
117
|
+
camera?: RuntimeCameraFocus;
|
|
93
118
|
}
|
|
94
119
|
//# sourceMappingURL=scene.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../src/types/scene.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACX,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,MAAM,WAAW,CAAC;AAEnB,+BAA+B;AAC/B,MAAM,W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6,8 @@ export interface ValidationError {
|
|
|
6
6
|
message: string;
|
|
7
7
|
/** Element ID involved (if applicable) */
|
|
8
8
|
elementId?: string;
|
|
9
|
+
/** Connection ID involved (if applicable) */
|
|
10
|
+
connectionId?: string;
|
|
9
11
|
/** State name involved (if applicable) */
|
|
10
12
|
stateName?: string;
|
|
11
13
|
/** Scene ID involved (if applicable) */
|
|
@@ -14,6 +16,10 @@ export interface ValidationError {
|
|
|
14
16
|
assetName?: string;
|
|
15
17
|
/** Layer name involved (if applicable) */
|
|
16
18
|
layerName?: string;
|
|
19
|
+
/** Dot-path field involved (if applicable) */
|
|
20
|
+
field?: string;
|
|
21
|
+
/** Offending value involved (if safe and applicable) */
|
|
22
|
+
value?: unknown;
|
|
17
23
|
/** Source location (if applicable) */
|
|
18
24
|
location?: {
|
|
19
25
|
file?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["../../src/types/validation.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,MAAM,WAAW,eAAe;IAC/B,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wCAAwC;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0CAA0C;IAC1C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sCAAsC;IACtC,QAAQ,CAAC,EAAE;QACV,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,2CAA2C;IAC3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Ae;CAAG;AAE7D,iCAAiC;AACjC,MAAM,WAAW,gBAAgB;IAChC,sBAAsB;IACtB,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,4BAA4B;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sha256.d.ts","sourceRoot":"","sources":["../../src/utils/sha256.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAC/C,wBAAgB,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CA8D5C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sebastianwessel/isostate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Isometric scene engine — SVG rendering, animation, and YAML DSL for browser-based isometric scenes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"isostate",
|
|
@@ -25,6 +25,14 @@
|
|
|
25
25
|
"./dsl": {
|
|
26
26
|
"types": "./dist/dsl/index.d.ts",
|
|
27
27
|
"import": "./dist/dsl/index.js"
|
|
28
|
+
},
|
|
29
|
+
"./dsl/browser": {
|
|
30
|
+
"types": "./dist/dsl/browser.d.ts",
|
|
31
|
+
"import": "./dist/dsl/browser.js"
|
|
32
|
+
},
|
|
33
|
+
"./editor-support": {
|
|
34
|
+
"types": "./dist/editor-support/index.d.ts",
|
|
35
|
+
"import": "./dist/editor-support/index.js"
|
|
28
36
|
}
|
|
29
37
|
},
|
|
30
38
|
"files": [
|