@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,94 @@
|
|
|
1
|
+
import type { ConnectionPatch, ConnectionPlacement, ConnectionRemoval, ElementPatch, ElementPlacement, ElementRemoval, RuntimeConnectorState, RuntimeElementState } from "./node.ts";
|
|
2
|
+
/** Scene grid configuration */
|
|
3
|
+
export interface GridConfig {
|
|
4
|
+
/** Cell size in projected units (default: 64) */
|
|
5
|
+
cellSize?: number;
|
|
6
|
+
}
|
|
7
|
+
/** Asset declared in an authored scene document header. */
|
|
8
|
+
export interface AssetCatalogEntry {
|
|
9
|
+
/** Unique asset id used by scene elements. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Optional relative SVG path. Defaults to `id` when omitted. */
|
|
12
|
+
path?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Normalized point inside the asset viewport that sits on the element's
|
|
15
|
+
* projected footprint anchor. Defaults to bottom-center `[0.5, 1]`.
|
|
16
|
+
*/
|
|
17
|
+
anchor?: [number, number];
|
|
18
|
+
}
|
|
19
|
+
/** Logical ground plane and stable layout bounds. */
|
|
20
|
+
export interface FloorConfig {
|
|
21
|
+
size?: [number, number];
|
|
22
|
+
origin?: [number, number];
|
|
23
|
+
layer?: string;
|
|
24
|
+
visible?: boolean;
|
|
25
|
+
asset?: string;
|
|
26
|
+
}
|
|
27
|
+
export type LayoutFit = "contain" | "none";
|
|
28
|
+
export type LayoutBounds = "floor" | "content" | "union";
|
|
29
|
+
/** Resolved layout emitted to runtime bundles. */
|
|
30
|
+
export interface ResolvedLayoutConfig {
|
|
31
|
+
fit: LayoutFit;
|
|
32
|
+
align: [number, number];
|
|
33
|
+
padding: {
|
|
34
|
+
x: number;
|
|
35
|
+
y: number;
|
|
36
|
+
};
|
|
37
|
+
bounds: LayoutBounds;
|
|
38
|
+
}
|
|
39
|
+
/** Layer definition for render order and grouping */
|
|
40
|
+
export interface LayerDefinition {
|
|
41
|
+
/** Unique layer name (kebab-case) */
|
|
42
|
+
name: string;
|
|
43
|
+
/** Render order (lower = behind). Defaults to declaration order. */
|
|
44
|
+
order?: number;
|
|
45
|
+
}
|
|
46
|
+
/** Scene document header. */
|
|
47
|
+
export interface SceneHeader {
|
|
48
|
+
version?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
className?: string;
|
|
51
|
+
assetBaseUrl?: string;
|
|
52
|
+
assets: AssetCatalogEntry[];
|
|
53
|
+
grid?: GridConfig;
|
|
54
|
+
floor?: FloorConfig;
|
|
55
|
+
theme?: string;
|
|
56
|
+
layers: LayerDefinition[];
|
|
57
|
+
}
|
|
58
|
+
/** Authored scene timeline stop. */
|
|
59
|
+
export interface SceneAddDelta {
|
|
60
|
+
elements?: ElementPlacement[];
|
|
61
|
+
connections?: ConnectionPlacement[];
|
|
62
|
+
}
|
|
63
|
+
/** Authored scene update operation section. */
|
|
64
|
+
export interface SceneUpdateDelta {
|
|
65
|
+
elements?: ElementPatch[];
|
|
66
|
+
connections?: ConnectionPatch[];
|
|
67
|
+
}
|
|
68
|
+
/** Authored scene remove operation section. */
|
|
69
|
+
export interface SceneRemoveDelta {
|
|
70
|
+
elements?: ElementRemoval[];
|
|
71
|
+
connections?: ConnectionRemoval[];
|
|
72
|
+
}
|
|
73
|
+
/** Authored scene timeline stop. */
|
|
74
|
+
export interface SceneStep {
|
|
75
|
+
id: string;
|
|
76
|
+
elements?: ElementPlacement[];
|
|
77
|
+
connections?: ConnectionPlacement[];
|
|
78
|
+
add?: SceneAddDelta;
|
|
79
|
+
update?: SceneUpdateDelta;
|
|
80
|
+
remove?: SceneRemoveDelta;
|
|
81
|
+
}
|
|
82
|
+
/** Full authored scene document parsed from YAML. */
|
|
83
|
+
export interface SceneDocument {
|
|
84
|
+
header: SceneHeader;
|
|
85
|
+
scenes: SceneStep[];
|
|
86
|
+
}
|
|
87
|
+
/** Compiled runtime scene stop. */
|
|
88
|
+
export interface RuntimeSceneStop {
|
|
89
|
+
id: string;
|
|
90
|
+
progress: number;
|
|
91
|
+
elements: RuntimeElementState[];
|
|
92
|
+
connectors: RuntimeConnectorState[];
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=scene.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.d.ts","sourceRoot":"","sources":["../../src/types/scene.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** Validation error detail */
|
|
2
|
+
export interface ValidationError {
|
|
3
|
+
/** Machine-readable error code */
|
|
4
|
+
code: string;
|
|
5
|
+
/** Descriptive error message */
|
|
6
|
+
message: string;
|
|
7
|
+
/** Element ID involved (if applicable) */
|
|
8
|
+
elementId?: string;
|
|
9
|
+
/** State name involved (if applicable) */
|
|
10
|
+
stateName?: string;
|
|
11
|
+
/** Scene ID involved (if applicable) */
|
|
12
|
+
sceneId?: string;
|
|
13
|
+
/** Asset name involved (if applicable) */
|
|
14
|
+
assetName?: string;
|
|
15
|
+
/** Layer name involved (if applicable) */
|
|
16
|
+
layerName?: string;
|
|
17
|
+
/** Source location (if applicable) */
|
|
18
|
+
location?: {
|
|
19
|
+
file?: string;
|
|
20
|
+
line?: number;
|
|
21
|
+
column?: number;
|
|
22
|
+
};
|
|
23
|
+
/** Previous lifecycle state (if applicable) */
|
|
24
|
+
fromState?: string;
|
|
25
|
+
/** Next lifecycle state (if applicable) */
|
|
26
|
+
toState?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Validation warning detail */
|
|
29
|
+
export interface ValidationWarning extends ValidationError {
|
|
30
|
+
}
|
|
31
|
+
/** Complete validation report */
|
|
32
|
+
export interface ValidationReport {
|
|
33
|
+
/** Blocking errors */
|
|
34
|
+
errors: ValidationError[];
|
|
35
|
+
/** Non-blocking warnings */
|
|
36
|
+
warnings: ValidationWarning[];
|
|
37
|
+
/** True when no errors are present */
|
|
38
|
+
isValid: boolean;
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +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;IAC3C,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,gCAAgC;AAChC,MAAM,WAAW,iBAAkB,SAAQ,eAAe;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,25 @@
|
|
|
1
|
+
/** Easing function type */
|
|
2
|
+
export type EasingFn = (t: number) => number;
|
|
3
|
+
/** Easing configuration type */
|
|
4
|
+
export type EasingType = "linear" | "easeInCubic" | "easeInOutCubic" | "easeOutCubic";
|
|
5
|
+
/**
|
|
6
|
+
* Linear easing (no interpolation).
|
|
7
|
+
*/
|
|
8
|
+
export declare function linear(t: number): number;
|
|
9
|
+
/**
|
|
10
|
+
* Cubic ease-in: starts slowly, accelerates.
|
|
11
|
+
*/
|
|
12
|
+
export declare function easeInCubic(t: number): number;
|
|
13
|
+
/**
|
|
14
|
+
* Cubic ease-out: starts fast, decelerates.
|
|
15
|
+
*/
|
|
16
|
+
export declare function easeOutCubic(t: number): number;
|
|
17
|
+
/**
|
|
18
|
+
* Cubic ease-in-out: slow start, fast middle, slow end.
|
|
19
|
+
*/
|
|
20
|
+
export declare function easeInOutCubic(t: number): number;
|
|
21
|
+
/**
|
|
22
|
+
* Resolve an easing type string to a function.
|
|
23
|
+
*/
|
|
24
|
+
export declare function resolveEasing(type: EasingType): EasingFn;
|
|
25
|
+
//# sourceMappingURL=easing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../../src/utils/easing.ts"],"names":[],"mappings":"AAAA,2BAA2B;AAC3B,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;AAE7C,gCAAgC;AAChC,MAAM,MAAM,UAAU,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,GAAG,cAAc,CAAC;AAEtF;;GAEG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE7C;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAEhD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,UAAU,GAAG,QAAQ,CAWxD"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { type EasingFn, type EasingType, easeInCubic, easeInOutCubic, easeOutCubic, linear, resolveEasing, } from "./easing.ts";
|
|
2
|
+
export { calculateTransform, calculateVisualSize, DEFAULT_CELL_SIZE, projectToScreen, } from "./projection.ts";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,QAAQ,EACb,KAAK,UAAU,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,MAAM,EACN,aAAa,GACb,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GACf,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** Default cell size in pixels */
|
|
2
|
+
export declare const DEFAULT_CELL_SIZE = 64;
|
|
3
|
+
/**
|
|
4
|
+
* Calculate raw scene-space coordinates from isometric grid position.
|
|
5
|
+
* Layout is applied separately by subtracting resolved bounds and adding padding.
|
|
6
|
+
*/
|
|
7
|
+
export declare function projectToRaw(gridX: number, gridY: number, cellSize: number): {
|
|
8
|
+
rawX: number;
|
|
9
|
+
rawY: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Calculate screen coordinates from raw isometric projection and resolved bounds.
|
|
13
|
+
*/
|
|
14
|
+
export declare function projectToScreen(gridX: number, gridY: number, cellSize: number, boundsMinX?: number, boundsMinY?: number, paddingX?: number, paddingY?: number): {
|
|
15
|
+
screenX: number;
|
|
16
|
+
screenY: number;
|
|
17
|
+
};
|
|
18
|
+
/** Calculate the screen size for an element based on its grid size. */
|
|
19
|
+
export declare function calculateVisualSize(gridSize: number, cellSize: number): number;
|
|
20
|
+
/** Calculate the element transform string for positioning and scaling. */
|
|
21
|
+
export declare function calculateTransform(screenX: number, screenY: number, visualSize: number, cellSize: number): string;
|
|
22
|
+
//# sourceMappingURL=projection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"projection.d.ts","sourceRoot":"","sources":["../../src/utils/projection.ts"],"names":[],"mappings":"AAAA,kCAAkC;AAClC,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAK3G;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC9B,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,MAAM,EAChB,UAAU,SAAI,EACd,UAAU,SAAI,EACd,QAAQ,SAAI,EACZ,QAAQ,SAAI,GACV;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAMtC;AAED,uEAAuE;AACvE,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9E;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGjH"}
|
package/package.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sebastianwessel/isostate",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Isometric scene engine — SVG rendering, animation, and YAML DSL for browser-based isometric scenes.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./runtime": {
|
|
14
|
+
"types": "./dist/runtime/index.d.ts",
|
|
15
|
+
"import": "./dist/runtime/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./dsl": {
|
|
18
|
+
"types": "./dist/dsl/index.d.ts",
|
|
19
|
+
"import": "./dist/dsl/index.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"registry": "https://registry.npmjs.org/"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"scripts": {
|
|
31
|
+
"clean": "rm -rf dist",
|
|
32
|
+
"build": "cd ../.. && bun run build",
|
|
33
|
+
"lint": "biome check src/",
|
|
34
|
+
"format": "biome format --write src/",
|
|
35
|
+
"test": "bun test",
|
|
36
|
+
"prepublishOnly": "cd ../.. && bun run build && bun run lint"
|
|
37
|
+
},
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"typescript": "^6.0.3",
|
|
40
|
+
"@biomejs/biome": "^2.4.15",
|
|
41
|
+
"yaml": "^2.9.0",
|
|
42
|
+
"publint": "^0.3.21",
|
|
43
|
+
"size-limit": "^12.1.0"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"yaml": "^2.9.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"yaml": {
|
|
50
|
+
"optional": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"engines": {
|
|
54
|
+
"node": ">=18.0.0"
|
|
55
|
+
},
|
|
56
|
+
"author": "Sebastian Wessel",
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "git+ssh://git@github.com/sebastianwessel/isostate.git",
|
|
61
|
+
"directory": "packages/core"
|
|
62
|
+
}
|
|
63
|
+
}
|