@sebastianwessel/isostate 0.1.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/animation-engine.d.ts +78 -0
- package/dist/animation/animation-engine.d.ts.map +1 -0
- package/dist/animation/controller.d.ts +130 -0
- package/dist/animation/controller.d.ts.map +1 -0
- package/dist/browser/isostate.runtime.js +2449 -0
- package/dist/browser/isostate.runtime.js.map +1 -0
- package/dist/chunks/errors-DyqEkrm5.js +29 -0
- package/dist/chunks/errors-DyqEkrm5.js.map +1 -0
- package/dist/chunks/index-CDQt8CfR.js +2380 -0
- package/dist/chunks/index-CDQt8CfR.js.map +1 -0
- package/dist/dsl/compiler.d.ts +13 -0
- package/dist/dsl/compiler.d.ts.map +1 -0
- package/dist/dsl/index.d.ts +7 -0
- package/dist/dsl/index.d.ts.map +1 -0
- package/dist/dsl/index.js +2191 -0
- package/dist/dsl/index.js.map +1 -0
- package/dist/dsl/scene-parser.d.ts +6 -0
- package/dist/dsl/scene-parser.d.ts.map +1 -0
- package/dist/dsl/scene-validator.d.ts +11 -0
- package/dist/dsl/scene-validator.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/rendering/animation-css.d.ts +3 -0
- package/dist/rendering/animation-css.d.ts.map +1 -0
- package/dist/rendering/asset-node.d.ts +13 -0
- package/dist/rendering/asset-node.d.ts.map +1 -0
- package/dist/rendering/rendering-engine.d.ts +77 -0
- package/dist/rendering/rendering-engine.d.ts.map +1 -0
- package/dist/rendering/theme.d.ts +2 -0
- package/dist/rendering/theme.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +3 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/mount-scene.d.ts +52 -0
- package/dist/runtime/mount-scene.d.ts.map +1 -0
- package/dist/types/asset-registry.d.ts +26 -0
- package/dist/types/asset-registry.d.ts.map +1 -0
- package/dist/types/assets.d.ts +37 -0
- package/dist/types/assets.d.ts.map +1 -0
- package/dist/types/errors.d.ts +23 -0
- package/dist/types/errors.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/node.d.ts +251 -0
- package/dist/types/node.d.ts.map +1 -0
- package/dist/types/runtime-bundle.d.ts +44 -0
- package/dist/types/runtime-bundle.d.ts.map +1 -0
- package/dist/types/scene.d.ts +94 -0
- package/dist/types/scene.d.ts.map +1 -0
- package/dist/types/validation.d.ts +40 -0
- package/dist/types/validation.d.ts.map +1 -0
- package/dist/utils/easing.d.ts +25 -0
- package/dist/utils/easing.d.ts.map +1 -0
- package/dist/utils/index.d.ts +3 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/projection.d.ts +22 -0
- package/dist/utils/projection.d.ts.map +1 -0
- package/package.json +63 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation-css.d.ts","sourceRoot":"","sources":["../../src/rendering/animation-css.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,wBAAgB,gBAAgB,IAAI,MAAM,CA6BzC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { PrimitiveContent, TextContent } from "../types/node.ts";
|
|
2
|
+
import type { RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
3
|
+
type ResolvedAsset = {
|
|
4
|
+
url: string;
|
|
5
|
+
anchor?: [number, number];
|
|
6
|
+
};
|
|
7
|
+
export type AssetResolver = (name: string) => ResolvedAsset | undefined;
|
|
8
|
+
export declare function createAssetResolver(bundle?: RuntimeBundle): AssetResolver;
|
|
9
|
+
export declare function createAssetNode(asset: ResolvedAsset, assetName: string, cellSize: number): SVGGElement;
|
|
10
|
+
export declare function createTextAssetNode(textContent: TextContent | undefined, assetName: string, cellSize: number): SVGGElement;
|
|
11
|
+
export declare function createPrimitiveAssetNode(assetName: string, primitive: PrimitiveContent | undefined, cellSize: number): SVGGElement;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=asset-node.d.ts.map
|
|
@@ -0,0 +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;AAKhE,KAAK,aAAa,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAAE,CAAC;AAEhE,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,CAEtG;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"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { RuntimeConnectorState, RuntimeElementState } from "../types/node.ts";
|
|
2
|
+
import type { RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
3
|
+
interface Bounds {
|
|
4
|
+
minX: number;
|
|
5
|
+
minY: number;
|
|
6
|
+
maxX: number;
|
|
7
|
+
maxY: number;
|
|
8
|
+
}
|
|
9
|
+
interface ResolvedLayoutState {
|
|
10
|
+
cellSize: number;
|
|
11
|
+
padding: {
|
|
12
|
+
x: number;
|
|
13
|
+
y: number;
|
|
14
|
+
};
|
|
15
|
+
contentBounds: Bounds;
|
|
16
|
+
floorBounds: Bounds;
|
|
17
|
+
selectedBounds: Bounds;
|
|
18
|
+
viewBox: {
|
|
19
|
+
minX: number;
|
|
20
|
+
minY: number;
|
|
21
|
+
width: number;
|
|
22
|
+
height: number;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
/** Internal state tracked per element node. */
|
|
26
|
+
interface ElementState {
|
|
27
|
+
node: SVGGElement;
|
|
28
|
+
isHidden: boolean;
|
|
29
|
+
entryKey?: string;
|
|
30
|
+
exitKey?: string;
|
|
31
|
+
ambient: Set<string>;
|
|
32
|
+
}
|
|
33
|
+
/** Internal state tracked per connector node. */
|
|
34
|
+
interface ConnectorState {
|
|
35
|
+
node: SVGGElement;
|
|
36
|
+
shaft: SVGPathElement;
|
|
37
|
+
isHidden: boolean;
|
|
38
|
+
ambient: Set<string>;
|
|
39
|
+
}
|
|
40
|
+
export interface RenderConfig {
|
|
41
|
+
label?: string;
|
|
42
|
+
themeVars?: Record<string, string>;
|
|
43
|
+
}
|
|
44
|
+
/** Build the SVG DOM for a compiled runtime bundle and mount it into a container. */
|
|
45
|
+
export declare function buildSceneDOM(container: HTMLElement, bundle: RuntimeBundle, config?: RenderConfig): SVGSVGElement;
|
|
46
|
+
/** Update transforms and ambient classes for a live set of interpolated runtime values. */
|
|
47
|
+
export declare function updateElementTransforms(svg: SVGSVGElement & {
|
|
48
|
+
_elementMap?: Map<string, ElementState | unknown>;
|
|
49
|
+
_connectorMap?: Map<string, ConnectorState | unknown>;
|
|
50
|
+
_layout?: ResolvedLayoutState;
|
|
51
|
+
}, elements: RuntimeElementState[], connectors?: RuntimeConnectorState[]): void;
|
|
52
|
+
/** Read the internal ElementState for an element by its id. */
|
|
53
|
+
export declare function getElementState(svg: SVGSVGElement & {
|
|
54
|
+
_elementMap?: Map<string, ElementState | unknown>;
|
|
55
|
+
}, id: string): ElementState | undefined;
|
|
56
|
+
/** Read the internal ConnectorState for a connector by its id. */
|
|
57
|
+
export declare function getConnectorState(svg: SVGSVGElement & {
|
|
58
|
+
_connectorMap?: Map<string, ConnectorState | unknown>;
|
|
59
|
+
}, id: string): ConnectorState | undefined;
|
|
60
|
+
export declare function getResolvedViewBox(bundle: RuntimeBundle): {
|
|
61
|
+
minX: number;
|
|
62
|
+
minY: number;
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
};
|
|
66
|
+
/** Hide an element after its exit animation completes. */
|
|
67
|
+
export declare function hideElementAfterExit(node: SVGElement): void;
|
|
68
|
+
/** Show an element on re-addition. */
|
|
69
|
+
export declare function unhideElementOnReadd(node: SVGElement): void;
|
|
70
|
+
/** Create a new element SVG instance for lifecycle re-instantiation. */
|
|
71
|
+
export declare function createNewElementInstance(def: RuntimeElementState, parent?: SVGGElement | null): SVGGElement;
|
|
72
|
+
/** Remove an element node from the DOM. */
|
|
73
|
+
export declare function removeElementNode(node: SVGElement): void;
|
|
74
|
+
/** Apply a CSS keyframe animation to an element. */
|
|
75
|
+
export declare function animateElement(node: SVGElement, keyframeName: string, type?: "enter" | "exit"): void;
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=rendering-engine.d.ts.map
|
|
@@ -0,0 +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;AACtG,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,IA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,MAAM,EAAE,IAAI,GAAE,OAAO,GAAG,MAAgB,GAAG,IAAI,CAO7G"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/rendering/theme.ts"],"names":[],"mappings":"AAIA,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAO9G"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type { CompiledAsset, CompiledFloor, CompiledLayer, CompiledLayout, RuntimeBundle, } from "../types/runtime-bundle.ts";
|
|
2
|
+
export { type MountedScene, type MountSceneOptions, mountScene, type ResolvedRuntimeConfig, } from "./mount-scene.ts";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/runtime/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACX,aAAa,EACb,aAAa,EACb,aAAa,EACb,cAAc,EACd,aAAa,GACb,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACN,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,UAAU,EACV,KAAK,qBAAqB,GAC1B,MAAM,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { AnimationEngine } from "../animation/animation-engine.ts";
|
|
2
|
+
import type { ControllerConfig } from "../animation/controller.ts";
|
|
3
|
+
import { AnimationController } from "../animation/controller.ts";
|
|
4
|
+
import type { CompiledFloor, CompiledLayout, RuntimeBundle } from "../types/runtime-bundle.ts";
|
|
5
|
+
export interface MountSceneOptions {
|
|
6
|
+
/** Controller options, `false` to disable, or omitted to leave controller uninitialized. */
|
|
7
|
+
controller?: ControllerConfig | false;
|
|
8
|
+
/** Accessible label for the mounted SVG root. */
|
|
9
|
+
label?: string;
|
|
10
|
+
/** CSS custom properties applied on top of the bundle theme. */
|
|
11
|
+
themeVars?: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
/** Runtime configuration resolved from a mounted scene bundle. */
|
|
14
|
+
export interface ResolvedRuntimeConfig {
|
|
15
|
+
grid: {
|
|
16
|
+
cellSize: number;
|
|
17
|
+
};
|
|
18
|
+
floor: CompiledFloor;
|
|
19
|
+
layout: CompiledLayout;
|
|
20
|
+
viewBox: {
|
|
21
|
+
minX: number;
|
|
22
|
+
minY: number;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
theme: string;
|
|
27
|
+
themeVars: Record<string, string>;
|
|
28
|
+
scenes: Array<{
|
|
29
|
+
id: string;
|
|
30
|
+
progress: number;
|
|
31
|
+
}>;
|
|
32
|
+
layerOrder: Array<{
|
|
33
|
+
name: string;
|
|
34
|
+
order: number;
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
37
|
+
/** Handles returned by `mountScene()` for controlling and disposing a scene. */
|
|
38
|
+
export interface MountedScene {
|
|
39
|
+
/** Root SVG element appended to the mount target. */
|
|
40
|
+
svg: SVGSVGElement;
|
|
41
|
+
/** Animation engine used by the mounted scene and controller. */
|
|
42
|
+
engine: AnimationEngine;
|
|
43
|
+
/** Optional controller created when `options.controller` is provided. */
|
|
44
|
+
controller?: AnimationController;
|
|
45
|
+
/** Inspect effective runtime settings after defaults and bundle metadata are applied. */
|
|
46
|
+
getResolvedConfig(): ResolvedRuntimeConfig;
|
|
47
|
+
/** Remove DOM and event listeners owned by this mount. Safe to call more than once. */
|
|
48
|
+
destroy(): void;
|
|
49
|
+
}
|
|
50
|
+
/** Mount a compiled runtime bundle into an HTML element. */
|
|
51
|
+
export declare function mountScene(target: HTMLElement, bundle: RuntimeBundle, options?: MountSceneOptions): MountedScene;
|
|
52
|
+
//# sourceMappingURL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,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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { AssetCategory, AssetDefinition, AssetRegistry, Theme } from "./assets.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Resolve a theme name to its CSS variable map.
|
|
4
|
+
* Returns undefined if the theme is not found.
|
|
5
|
+
*/
|
|
6
|
+
export declare function resolveTheme(name: string): Record<string, string> | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* Compose a new theme by extending an existing one with overrides.
|
|
9
|
+
*/
|
|
10
|
+
export declare function composeTheme(baseName: string, overrides: Record<string, string>): Theme;
|
|
11
|
+
/**
|
|
12
|
+
* Default asset registry implementation.
|
|
13
|
+
* Maps asset ids to definitions and supports category filtering.
|
|
14
|
+
*/
|
|
15
|
+
export declare class AssetRegistryImpl implements AssetRegistry {
|
|
16
|
+
private _assets;
|
|
17
|
+
register(asset: AssetDefinition): void;
|
|
18
|
+
get(id: string): AssetDefinition | undefined;
|
|
19
|
+
getAll(category?: AssetCategory): AssetDefinition[];
|
|
20
|
+
has(id: string): boolean;
|
|
21
|
+
remove(id: string): void;
|
|
22
|
+
}
|
|
23
|
+
export declare function createAssetRegistry(assets?: AssetDefinition[]): AssetRegistryImpl;
|
|
24
|
+
/** Create a fresh registry populated with the built-in demo assets. */
|
|
25
|
+
export declare function createDefaultRegistry(): AssetRegistryImpl;
|
|
26
|
+
//# sourceMappingURL=asset-registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset-registry.d.ts","sourceRoot":"","sources":["../../src/types/asset-registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAkCxF;;;GAGG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAE7E;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,KAAK,CAMvF;AAID;;;GAGG;AACH,qBAAa,iBAAkB,YAAW,aAAa;IACtD,OAAO,CAAC,OAAO,CAAsC;IAErD,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAItC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS;IAI5C,MAAM,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,eAAe,EAAE;IAOnD,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAIxB,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI;CAGxB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,GAAE,eAAe,EAAO,GAAG,iBAAiB,CAMrF;AAED,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,iBAAiB,CAuBzD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Authored asset metadata used by tooling and catalogs. */
|
|
2
|
+
export interface AssetDefinition {
|
|
3
|
+
/** Unique asset id used by authored YAML and runtime elements. */
|
|
4
|
+
id: string;
|
|
5
|
+
/** Optional relative SVG path. Defaults to `id` when omitted. */
|
|
6
|
+
path?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Normalized point inside the asset viewport that sits on the element's
|
|
9
|
+
* projected footprint anchor. Defaults to bottom-center `[0.5, 1]`.
|
|
10
|
+
*/
|
|
11
|
+
anchor?: [number, number];
|
|
12
|
+
/** Optional category for authoring tooling. */
|
|
13
|
+
category?: AssetCategory;
|
|
14
|
+
}
|
|
15
|
+
/** Asset categories for filtering and authoring tooling. */
|
|
16
|
+
export type AssetCategory = "building" | "nature" | "infrastructure" | "equipment" | "decoration" | "custom";
|
|
17
|
+
/** Mutable metadata registry used by authoring tooling, not browser rendering. */
|
|
18
|
+
export interface AssetRegistry {
|
|
19
|
+
/** Register or replace an asset definition by `asset.id`. */
|
|
20
|
+
register(asset: AssetDefinition): void;
|
|
21
|
+
/** Get a single asset by id. */
|
|
22
|
+
get(id: string): AssetDefinition | undefined;
|
|
23
|
+
/** Get all assets, optionally filtered by category. */
|
|
24
|
+
getAll(category?: AssetCategory): AssetDefinition[];
|
|
25
|
+
/** Check if an asset id exists. */
|
|
26
|
+
has(id: string): boolean;
|
|
27
|
+
/** Remove an asset by id. */
|
|
28
|
+
remove(id: string): void;
|
|
29
|
+
}
|
|
30
|
+
/** Theme definition mapping CSS custom property names to values. */
|
|
31
|
+
export interface Theme {
|
|
32
|
+
/** Theme id used in scene headers and runtime bundles. */
|
|
33
|
+
name: string;
|
|
34
|
+
/** CSS custom property name to value mapping. */
|
|
35
|
+
vars: Record<string, string>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=assets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.d.ts","sourceRoot":"","sources":["../../src/types/assets.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,MAAM,WAAW,eAAe;IAC/B,kEAAkE;IAClE,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,4DAA4D;AAC5D,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,QAAQ,GAAG,gBAAgB,GAAG,WAAW,GAAG,YAAY,GAAG,QAAQ,CAAC;AAE7G,kFAAkF;AAClF,MAAM,WAAW,aAAa;IAC7B,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IACvC,gCAAgC;IAChC,GAAG,CAAC,EAAE,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"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** Base class for all structured errors */
|
|
2
|
+
declare class IsostateError extends Error {
|
|
3
|
+
readonly code: string;
|
|
4
|
+
readonly details?: Record<string, unknown> | undefined;
|
|
5
|
+
constructor(code: string, message: string, details?: Record<string, unknown> | undefined);
|
|
6
|
+
}
|
|
7
|
+
/** DSL parsing error */
|
|
8
|
+
export declare class ParseError extends IsostateError {
|
|
9
|
+
}
|
|
10
|
+
/** DSL validation error */
|
|
11
|
+
export declare class ValidationErrorClass extends IsostateError {
|
|
12
|
+
}
|
|
13
|
+
/** Rendering engine error */
|
|
14
|
+
export declare class RenderError extends IsostateError {
|
|
15
|
+
}
|
|
16
|
+
/** Animation engine error */
|
|
17
|
+
export declare class AnimationError extends IsostateError {
|
|
18
|
+
}
|
|
19
|
+
/** Animation controller error */
|
|
20
|
+
export declare class ControllerError extends IsostateError {
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../src/types/errors.ts"],"names":[],"mappings":"AAAA,2CAA2C;AAC3C,cAAM,aAAc,SAAQ,KAAK;aAEf,IAAI,EAAE,MAAM;aAEZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;gBAFjC,IAAI,EAAE,MAAM,EAC5B,OAAO,EAAE,MAAM,EACC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,YAAA;CAKlD;AAED,wBAAwB;AACxB,qBAAa,UAAW,SAAQ,aAAa;CAAG;AAEhD,2BAA2B;AAC3B,qBAAa,oBAAqB,SAAQ,aAAa;CAAG;AAE1D,6BAA6B;AAC7B,qBAAa,WAAY,SAAQ,aAAa;CAAG;AAEjD,6BAA6B;AAC7B,qBAAa,cAAe,SAAQ,aAAa;CAAG;AAEpD,iCAAiC;AACjC,qBAAa,eAAgB,SAAQ,aAAa;CAAG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { AssetCategory, AssetDefinition, AssetRegistry, Theme, } from "./assets.ts";
|
|
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";
|
|
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";
|
|
7
|
+
export type { ValidationError, ValidationReport, ValidationWarning, } from "./validation.ts";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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,GACL,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,cAAc,EACd,eAAe,EACf,UAAU,EACV,WAAW,EACX,oBAAoB,GACpB,MAAM,aAAa,CAAC;AACrB,YAAY,EACX,gBAAgB,EAChB,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,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,SAAS,EACT,WAAW,GACX,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,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,GAChB,MAAM,YAAY,CAAC;AACpB,YAAY,EACX,eAAe,EACf,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
/** Entry animation types */
|
|
2
|
+
export type EntryAnimation = "fade-in" | "fade-in-grow" | "fall-in" | "rise-from-ground" | "slide-in-left" | "slide-in-right" | "flip-in" | "none";
|
|
3
|
+
/** Exit animation types */
|
|
4
|
+
export type ExitAnimation = "fade-out" | "fade-out-shrink" | "fall-through-ground" | "rise-away" | "slide-out-left" | "slide-out-right" | "flip-out" | "none";
|
|
5
|
+
/** Runtime/compiler-derived lifecycle status. Not authored in YAML. */
|
|
6
|
+
export type LifecycleStatus = "entering" | "present" | "exiting" | "removed";
|
|
7
|
+
/** Runtime set of valid entry animation strings */
|
|
8
|
+
export declare const ENTRY_ANIMATIONS: ReadonlySet<EntryAnimation>;
|
|
9
|
+
/** Runtime set of valid exit animation strings */
|
|
10
|
+
export declare const EXIT_ANIMATIONS: ReadonlySet<ExitAnimation>;
|
|
11
|
+
/** Runtime set of valid lifecycle status strings */
|
|
12
|
+
export declare const LIFECYCLE_STATUSES: ReadonlySet<LifecycleStatus>;
|
|
13
|
+
/** Ambient animation configuration */
|
|
14
|
+
export interface AmbientAnimation {
|
|
15
|
+
/** Animation class name */
|
|
16
|
+
name: string;
|
|
17
|
+
/** Whether the animation runs infinitely (default: true) */
|
|
18
|
+
infinite?: boolean;
|
|
19
|
+
/** Number of times to play (only relevant when infinite: false) */
|
|
20
|
+
iterations?: number;
|
|
21
|
+
}
|
|
22
|
+
/** Horizontal anchor used by built-in text elements. */
|
|
23
|
+
export type TextAlign = "start" | "middle" | "end";
|
|
24
|
+
/** Content and safe SVG text styling for the built-in `asset: text` element. */
|
|
25
|
+
export interface TextContent {
|
|
26
|
+
/** Text content. Use newline characters for explicit line breaks. */
|
|
27
|
+
value: string;
|
|
28
|
+
/** Horizontal text anchor within the element cell. Defaults to `middle`. */
|
|
29
|
+
align?: TextAlign;
|
|
30
|
+
/** SVG font-size in CSS pixels before element scaling. Defaults to `12`. */
|
|
31
|
+
fontSize?: number;
|
|
32
|
+
/** SVG font-weight. Defaults to `700`. */
|
|
33
|
+
fontWeight?: number | "normal" | "bold";
|
|
34
|
+
/** Multiplier applied to `fontSize` for multiline spacing. Defaults to `1.2`. */
|
|
35
|
+
lineHeight?: number;
|
|
36
|
+
/** SVG fill color. Defaults to `currentColor`. */
|
|
37
|
+
fill?: string;
|
|
38
|
+
}
|
|
39
|
+
/** Built-in generated primitive asset ids. These are not declared in header assets. */
|
|
40
|
+
export type PrimitiveAssetId = "rectangle" | "circle" | "polygon" | "line";
|
|
41
|
+
/** Shared safe SVG style fields for generated primitive assets. */
|
|
42
|
+
export interface PrimitiveStyle {
|
|
43
|
+
/** SVG fill color or safe CSS color token. Defaults to `currentColor`. */
|
|
44
|
+
fill?: string;
|
|
45
|
+
/** SVG stroke color or safe CSS color token. Defaults to `none`. */
|
|
46
|
+
stroke?: string;
|
|
47
|
+
/** SVG stroke width in CSS pixels before element scaling. Defaults to `0`. */
|
|
48
|
+
strokeWidth?: number;
|
|
49
|
+
/** Element opacity from `0` to `1`. Defaults to `1`. */
|
|
50
|
+
opacity?: number;
|
|
51
|
+
/** Optional dash/gap pair for stroked primitives. */
|
|
52
|
+
dash?: [number, number];
|
|
53
|
+
}
|
|
54
|
+
/** Generated projected rectangle/diamond primitive content. */
|
|
55
|
+
export interface RectanglePrimitive extends PrimitiveStyle {
|
|
56
|
+
/** Optional corner radius for screen-space rectangles. Defaults to `0`. */
|
|
57
|
+
rx?: number;
|
|
58
|
+
}
|
|
59
|
+
/** Generated circle primitive content. */
|
|
60
|
+
export interface CirclePrimitive extends PrimitiveStyle {
|
|
61
|
+
}
|
|
62
|
+
/** Generated polygon primitive content using normalized local grid coordinates. */
|
|
63
|
+
export interface PolygonPrimitive extends PrimitiveStyle {
|
|
64
|
+
/** Polygon points in local normalized grid coordinates from `0` to `1`. */
|
|
65
|
+
points: [number, number][];
|
|
66
|
+
}
|
|
67
|
+
/** Generated line/polyline primitive content using normalized local grid coordinates. */
|
|
68
|
+
export interface LinePrimitive extends Omit<PrimitiveStyle, "fill"> {
|
|
69
|
+
/** Line points in local normalized grid coordinates from `0` to `1`. */
|
|
70
|
+
points: [number, number][];
|
|
71
|
+
/** SVG line cap. Defaults to `round`. */
|
|
72
|
+
lineCap?: "butt" | "round" | "square";
|
|
73
|
+
/** SVG line join. Defaults to `round`. */
|
|
74
|
+
lineJoin?: "miter" | "round" | "bevel";
|
|
75
|
+
}
|
|
76
|
+
/** Element-level payload for generated primitive assets. */
|
|
77
|
+
export interface PrimitiveContent {
|
|
78
|
+
rectangle?: RectanglePrimitive;
|
|
79
|
+
circle?: CirclePrimitive;
|
|
80
|
+
polygon?: PolygonPrimitive;
|
|
81
|
+
line?: LinePrimitive;
|
|
82
|
+
}
|
|
83
|
+
/** Element placement used in first-scene elements and later add operations. */
|
|
84
|
+
export interface ElementPlacement {
|
|
85
|
+
id: string;
|
|
86
|
+
asset: string;
|
|
87
|
+
at: [number, number];
|
|
88
|
+
size?: number;
|
|
89
|
+
layer?: string;
|
|
90
|
+
enter?: EntryAnimation;
|
|
91
|
+
exit?: ExitAnimation;
|
|
92
|
+
ambient?: AmbientAnimation[];
|
|
93
|
+
text?: TextContent;
|
|
94
|
+
primitive?: PrimitiveContent;
|
|
95
|
+
}
|
|
96
|
+
/** Element patch used by scene update operations. */
|
|
97
|
+
export interface ElementPatch {
|
|
98
|
+
id: string;
|
|
99
|
+
at?: [number, number];
|
|
100
|
+
size?: number;
|
|
101
|
+
layer?: string;
|
|
102
|
+
enter?: EntryAnimation;
|
|
103
|
+
exit?: ExitAnimation;
|
|
104
|
+
ambient?: AmbientAnimation[];
|
|
105
|
+
text?: TextContent;
|
|
106
|
+
primitive?: PrimitiveContent;
|
|
107
|
+
}
|
|
108
|
+
/** Element removal used by scene remove operations. */
|
|
109
|
+
export interface ElementRemoval {
|
|
110
|
+
id: string;
|
|
111
|
+
exit?: ExitAnimation;
|
|
112
|
+
}
|
|
113
|
+
/** Visual connector line pattern for authored connections and runtime connectors. */
|
|
114
|
+
export type ConnectorPattern = "solid" | "dashed" | "dotted";
|
|
115
|
+
/** Visual connector geometry variant. */
|
|
116
|
+
export type ConnectorVariant = "line" | "road";
|
|
117
|
+
/** Generated endpoint indicator placed at the start or end of a connector. */
|
|
118
|
+
export type ConnectorEndpoint = "none" | "arrow" | "dot" | "circle" | "diamond" | "bar";
|
|
119
|
+
/** Direction used for connector endpoint orientation and flow animation. */
|
|
120
|
+
export type ConnectorDirection = "route" | "reverse";
|
|
121
|
+
/** Authored connector style overrides for a visual connection. */
|
|
122
|
+
export interface ConnectorStyle {
|
|
123
|
+
/** Geometry variant. Defaults to `line`. */
|
|
124
|
+
variant?: ConnectorVariant;
|
|
125
|
+
/** Stroke pattern. Defaults to `solid`. */
|
|
126
|
+
pattern?: ConnectorPattern;
|
|
127
|
+
/** SVG stroke color or safe CSS color token. */
|
|
128
|
+
stroke?: string;
|
|
129
|
+
/** Stroke width in SVG user units. */
|
|
130
|
+
strokeWidth?: number;
|
|
131
|
+
/** Connector opacity from `0` to `1`. */
|
|
132
|
+
opacity?: number;
|
|
133
|
+
/** Explicit dash/gap pair in SVG user units. */
|
|
134
|
+
dash?: [number, number];
|
|
135
|
+
/** Optional outline stroke color for road connectors. */
|
|
136
|
+
outline?: string;
|
|
137
|
+
/** Optional outline width in SVG user units. */
|
|
138
|
+
outlineWidth?: number;
|
|
139
|
+
/** Optional road lane treatment. */
|
|
140
|
+
lane?: "none" | "center-dashed";
|
|
141
|
+
}
|
|
142
|
+
/** Authored endpoint reference for compiler-routed visual connections. */
|
|
143
|
+
export interface ConnectorEndpointRef {
|
|
144
|
+
/** Element id to attach to. Mutually exclusive with `at`. */
|
|
145
|
+
element?: string;
|
|
146
|
+
/** Explicit grid point to attach to. Mutually exclusive with `element`. */
|
|
147
|
+
at?: [number, number];
|
|
148
|
+
/** Element side or automatic side selection. Defaults to `auto`. */
|
|
149
|
+
side?: "auto" | "top" | "right" | "bottom" | "left" | "front" | "back";
|
|
150
|
+
/** Normalized side offset from `-0.5` to `0.5`. Defaults to `0`. */
|
|
151
|
+
offset?: number;
|
|
152
|
+
}
|
|
153
|
+
/** Authored routing options used only by dev-time compiler tooling. */
|
|
154
|
+
export interface ConnectorRouting {
|
|
155
|
+
/** Routing mode. Defaults to `orthogonal` for endpoint-routed connections. */
|
|
156
|
+
mode?: "straight" | "orthogonal" | "manual";
|
|
157
|
+
/** Obstacle avoidance selection. Defaults to `objects`. */
|
|
158
|
+
avoid?: "objects" | "none" | string[];
|
|
159
|
+
/** Obstacle clearance in grid cells. Defaults to `0.5`. */
|
|
160
|
+
clearance?: number;
|
|
161
|
+
/** Router grid step in grid cells. */
|
|
162
|
+
gridStep?: number;
|
|
163
|
+
/** Maximum allowed bends for advanced routers. */
|
|
164
|
+
maxBends?: number;
|
|
165
|
+
/** Route scoring preference for advanced routers. */
|
|
166
|
+
prefer?: "direct" | "fewest-bends" | "shortest";
|
|
167
|
+
}
|
|
168
|
+
/** Connection placement used in first-scene connections and later add operations. */
|
|
169
|
+
export interface ConnectionPlacement {
|
|
170
|
+
id: string;
|
|
171
|
+
route?: [number, number][];
|
|
172
|
+
from?: ConnectorEndpointRef;
|
|
173
|
+
to?: ConnectorEndpointRef;
|
|
174
|
+
routing?: ConnectorRouting;
|
|
175
|
+
layer?: string;
|
|
176
|
+
style?: ConnectorStyle;
|
|
177
|
+
start?: ConnectorEndpoint;
|
|
178
|
+
end?: ConnectorEndpoint;
|
|
179
|
+
direction?: ConnectorDirection;
|
|
180
|
+
enter?: EntryAnimation;
|
|
181
|
+
exit?: ExitAnimation;
|
|
182
|
+
ambient?: AmbientAnimation[];
|
|
183
|
+
}
|
|
184
|
+
/** Connection patch used by scene update operations. */
|
|
185
|
+
export interface ConnectionPatch {
|
|
186
|
+
id: string;
|
|
187
|
+
route?: [number, number][];
|
|
188
|
+
from?: ConnectorEndpointRef;
|
|
189
|
+
to?: ConnectorEndpointRef;
|
|
190
|
+
routing?: ConnectorRouting;
|
|
191
|
+
layer?: string;
|
|
192
|
+
style?: ConnectorStyle;
|
|
193
|
+
start?: ConnectorEndpoint;
|
|
194
|
+
end?: ConnectorEndpoint;
|
|
195
|
+
direction?: ConnectorDirection;
|
|
196
|
+
enter?: EntryAnimation;
|
|
197
|
+
exit?: ExitAnimation;
|
|
198
|
+
ambient?: AmbientAnimation[];
|
|
199
|
+
}
|
|
200
|
+
/** Connection removal used by scene remove operations. */
|
|
201
|
+
export interface ConnectionRemoval {
|
|
202
|
+
id: string;
|
|
203
|
+
exit?: ExitAnimation;
|
|
204
|
+
}
|
|
205
|
+
/** Fully defaulted connector style emitted to browser runtime snapshots. */
|
|
206
|
+
export interface RuntimeConnectorStyle {
|
|
207
|
+
variant: ConnectorVariant;
|
|
208
|
+
pattern: ConnectorPattern;
|
|
209
|
+
stroke: string;
|
|
210
|
+
strokeWidth: number;
|
|
211
|
+
opacity: number;
|
|
212
|
+
dash?: [number, number];
|
|
213
|
+
outline?: string;
|
|
214
|
+
outlineWidth: number;
|
|
215
|
+
lane: "none" | "center-dashed";
|
|
216
|
+
}
|
|
217
|
+
/** Runtime-resolved connector state in a compiled scene stop. */
|
|
218
|
+
export interface RuntimeConnectorState {
|
|
219
|
+
id: string;
|
|
220
|
+
route: [number, number][];
|
|
221
|
+
layer: string;
|
|
222
|
+
presence: LifecycleStatus;
|
|
223
|
+
style: RuntimeConnectorStyle;
|
|
224
|
+
start: ConnectorEndpoint;
|
|
225
|
+
end: ConnectorEndpoint;
|
|
226
|
+
direction: ConnectorDirection;
|
|
227
|
+
enter?: EntryAnimation;
|
|
228
|
+
exit?: ExitAnimation;
|
|
229
|
+
ambient?: AmbientAnimation[];
|
|
230
|
+
}
|
|
231
|
+
/** Runtime-resolved element state in a compiled scene stop. */
|
|
232
|
+
export interface RuntimeElementState {
|
|
233
|
+
id: string;
|
|
234
|
+
asset: string;
|
|
235
|
+
pos: [number, number];
|
|
236
|
+
size: number;
|
|
237
|
+
layer: string;
|
|
238
|
+
presence: LifecycleStatus;
|
|
239
|
+
enter?: EntryAnimation;
|
|
240
|
+
exit?: ExitAnimation;
|
|
241
|
+
ambient?: AmbientAnimation[];
|
|
242
|
+
text?: TextContent;
|
|
243
|
+
primitive?: PrimitiveContent;
|
|
244
|
+
}
|
|
245
|
+
/** Narrow a raw string to EntryAnimation. Returns undefined if invalid. */
|
|
246
|
+
export declare function guardEntryAnimation(v: unknown): EntryAnimation | undefined;
|
|
247
|
+
/** Narrow a raw string to ExitAnimation. Returns undefined if invalid. */
|
|
248
|
+
export declare function guardExitAnimation(v: unknown): ExitAnimation | undefined;
|
|
249
|
+
/** Narrow a raw string to LifecycleStatus. Returns undefined if invalid. */
|
|
250
|
+
export declare function guardLifecycleStatus(v: unknown): LifecycleStatus | undefined;
|
|
251
|
+
//# sourceMappingURL=node.d.ts.map
|
|
@@ -0,0 +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,eAAe,GACf,gBAAgB,GAChB,SAAS,GACT,MAAM,CAAC;AAEV,2BAA2B;AAC3B,MAAM,MAAM,aAAa,GACtB,UAAU,GACV,iBAAiB,GACjB,qBAAqB,GACrB,WAAW,GACX,gBAAgB,GAChB,iBAAiB,GACjB,UAAU,GAC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C,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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { AssetCategory } from "./assets.ts";
|
|
2
|
+
import type { RuntimeSceneStop } from "./scene.ts";
|
|
3
|
+
export interface CompiledAsset {
|
|
4
|
+
url?: string;
|
|
5
|
+
category?: AssetCategory;
|
|
6
|
+
anchor?: [number, number];
|
|
7
|
+
}
|
|
8
|
+
export interface CompiledFloor {
|
|
9
|
+
size: [number, number];
|
|
10
|
+
origin: [number, number];
|
|
11
|
+
visible: boolean;
|
|
12
|
+
layer: string;
|
|
13
|
+
asset?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface CompiledLayer {
|
|
16
|
+
name: string;
|
|
17
|
+
order: number;
|
|
18
|
+
}
|
|
19
|
+
export interface CompiledLayout {
|
|
20
|
+
fit: "contain" | "none";
|
|
21
|
+
align: [number, number];
|
|
22
|
+
padding: {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
};
|
|
26
|
+
bounds: "floor" | "content" | "union";
|
|
27
|
+
}
|
|
28
|
+
export interface RuntimeBundle {
|
|
29
|
+
_format: "isostate-runtime-bundle";
|
|
30
|
+
_version: string;
|
|
31
|
+
_digest: string;
|
|
32
|
+
grid: {
|
|
33
|
+
cellSize: number;
|
|
34
|
+
};
|
|
35
|
+
floor: CompiledFloor;
|
|
36
|
+
layout: CompiledLayout;
|
|
37
|
+
theme: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
themeVars?: Record<string, string>;
|
|
40
|
+
scenes: RuntimeSceneStop[];
|
|
41
|
+
layers: CompiledLayer[];
|
|
42
|
+
assets?: Record<string, CompiledAsset>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=runtime-bundle.d.ts.map
|
|
@@ -0,0 +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;CAC1B;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvB,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,SAAS,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxB,OAAO,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAClC,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;CACtC;AAED,MAAM,WAAW,aAAa;IAC7B,OAAO,EAAE,yBAAyB,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC;IAC3B,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