@johnoscott/isometric-engine 0.14.1 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/iso-editor.js +249 -203
- package/iso-render.js +200 -154
- package/iso-systems.js +210 -162
- package/isometric-diagram.js +389 -0
- package/js/iso-core/index.js +5 -0
- package/js/iso-core/mono.js +242 -0
- package/js/iso-editor/ui/canvas.js +23 -1
- package/js/iso-objects/ants.js +36 -0
- package/js/iso-objects/index.js +55 -1
- package/js/iso-objects/looks.js +25 -0
- package/js/iso-objects/mono-paint.js +96 -0
- package/js/iso-objects/motion-builder.js +130 -0
- package/js/iso-objects/motion-doc.js +421 -0
- package/js/iso-objects/motion-entry.js +34 -0
- package/js/iso-objects/motion-schema.js +83 -0
- package/js/iso-objects/motion.js +640 -0
- package/js/iso-objects/resolve.js +238 -0
- package/js/iso-objects/scene.js +15 -13
- package/js/iso-objects/timeline.js +593 -0
- package/js/iso-systems/compile.js +83 -1
- package/js/iso-systems/index.js +4 -1
- package/js/iso-systems/render.js +20 -0
- package/js/iso-systems/schema.json +40 -0
- package/js/iso-viewer/index.js +6 -0
- package/js/iso-viewer/page.js +40 -16
- package/js/iso-viewer/play.js +340 -0
- package/js/iso-viewer/player.js +149 -175
- package/js/iso-viewer/transport.js +289 -0
- package/package.json +84 -2
- package/src/iso-core/index.ts +1 -0
- package/src/iso-core/mono.ts +306 -0
- package/src/iso-core/theme.ts +2 -1
- package/src/iso-editor/ui/canvas.ts +14 -1
- package/src/iso-objects/ants.ts +53 -0
- package/src/iso-objects/compile.ts +4 -1
- package/src/iso-objects/index.ts +16 -1
- package/src/iso-objects/looks.ts +21 -0
- package/src/iso-objects/mono-paint.ts +97 -0
- package/src/iso-objects/motion-builder.ts +79 -0
- package/src/iso-objects/motion-doc.ts +309 -0
- package/src/iso-objects/motion-entry.ts +13 -0
- package/src/iso-objects/motion-schema.ts +55 -0
- package/src/iso-objects/motion.ts +617 -0
- package/src/iso-objects/resolve.ts +196 -0
- package/src/iso-objects/scene.ts +32 -13
- package/src/iso-objects/timeline.ts +493 -0
- package/src/iso-objects/types.ts +22 -2
- package/src/iso-systems/compile.ts +86 -4
- package/src/iso-systems/index.ts +4 -1
- package/src/iso-systems/render.ts +45 -0
- package/src/iso-systems/schema.json +40 -0
- package/src/iso-viewer/index.ts +4 -0
- package/src/iso-viewer/page.ts +28 -11
- package/src/iso-viewer/play.ts +280 -0
- package/src/iso-viewer/player.ts +132 -150
- package/src/iso-viewer/transport.ts +272 -0
- package/types/iso-core/index.d.ts +1 -0
- package/types/iso-core/mono.d.ts +61 -0
- package/types/iso-core/theme.d.ts +2 -0
- package/types/iso-objects/ants.d.ts +34 -0
- package/types/iso-objects/compile.d.ts +3 -0
- package/types/iso-objects/index.d.ts +16 -1
- package/types/iso-objects/looks.d.ts +4 -0
- package/types/iso-objects/mono-paint.d.ts +20 -0
- package/types/iso-objects/motion-builder.d.ts +105 -0
- package/types/iso-objects/motion-doc.d.ts +193 -0
- package/types/iso-objects/motion-entry.d.ts +11 -0
- package/types/iso-objects/motion-schema.d.ts +594 -0
- package/types/iso-objects/motion.d.ts +202 -0
- package/types/iso-objects/resolve.d.ts +20 -0
- package/types/iso-objects/scene.d.ts +14 -0
- package/types/iso-objects/timeline.d.ts +66 -0
- package/types/iso-objects/types.d.ts +34 -0
- package/types/iso-systems/compile.d.ts +25 -3
- package/types/iso-systems/index.d.ts +4 -1
- package/types/iso-systems/render.d.ts +25 -0
- package/types/iso-viewer/index.d.ts +4 -0
- package/types/iso-viewer/play.d.ts +37 -0
- package/types/iso-viewer/transport.d.ts +73 -0
- package/types/player/isometric-diagram.d.ts +24 -0
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
function pageClock() {
|
|
2
|
+
const g = globalThis;
|
|
3
|
+
return {
|
|
4
|
+
now: () => performance.now(),
|
|
5
|
+
next(f) {
|
|
6
|
+
const id = {};
|
|
7
|
+
const once = () => {
|
|
8
|
+
if (id.raf !== void 0) g.cancelAnimationFrame?.(id.raf);
|
|
9
|
+
clearTimeout(id.timer);
|
|
10
|
+
f();
|
|
11
|
+
};
|
|
12
|
+
id.raf = g.requestAnimationFrame?.(once);
|
|
13
|
+
id.timer = setTimeout(once, id.raf === void 0 ? 16 : 100);
|
|
14
|
+
return id;
|
|
15
|
+
},
|
|
16
|
+
cancel(id) {
|
|
17
|
+
const x = id;
|
|
18
|
+
if (x.raf !== void 0) g.cancelAnimationFrame?.(x.raf);
|
|
19
|
+
clearTimeout(x.timer);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
const BACK_WITHIN = 400;
|
|
24
|
+
function transport(tl0, o = {}) {
|
|
25
|
+
const clock = o.clock ?? pageClock();
|
|
26
|
+
let tl = tl0, T = 0, rate = good(o.rate ?? 1), loop = o.loop ?? false, playing = false, active = true, gone = false;
|
|
27
|
+
let on = (o.ambient ?? tl.ambient) === "on";
|
|
28
|
+
let A = on ? 0 : "off";
|
|
29
|
+
let pending, last = 0, beat = tl.beatAt(0), told = false, turn = 0, until;
|
|
30
|
+
const subs = {};
|
|
31
|
+
function good(r) {
|
|
32
|
+
if (!(Number.isFinite(r) && r > 0)) throw new Error("rate is a number over 0");
|
|
33
|
+
return r;
|
|
34
|
+
}
|
|
35
|
+
const clamp = (ms) => Math.max(0, Math.min(tl.duration, ms));
|
|
36
|
+
function emit(k, ...a) {
|
|
37
|
+
for (const f of [...subs[k] ?? []]) f(...a);
|
|
38
|
+
}
|
|
39
|
+
const moves = () => active && !gone && (playing || on && tl.loops);
|
|
40
|
+
function arm() {
|
|
41
|
+
if (moves()) {
|
|
42
|
+
if (pending === void 0) {
|
|
43
|
+
last = clock.now();
|
|
44
|
+
pending = clock.next(tick);
|
|
45
|
+
}
|
|
46
|
+
} else if (pending !== void 0) {
|
|
47
|
+
clock.cancel(pending);
|
|
48
|
+
pending = void 0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function passed(from, to) {
|
|
52
|
+
const mine = turn;
|
|
53
|
+
for (const b of tl.beats) {
|
|
54
|
+
if (b.start <= from || b.start > to || b.index === beat?.index) continue;
|
|
55
|
+
beat = b;
|
|
56
|
+
told = true;
|
|
57
|
+
emit("beat", b, "play");
|
|
58
|
+
if (turn !== mine) return false;
|
|
59
|
+
}
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
function play1(dt) {
|
|
63
|
+
if (!playing) {
|
|
64
|
+
emit("time", T, "ambient");
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const was = T, to = T + dt, mine = turn;
|
|
68
|
+
if (until !== void 0 && to >= until) {
|
|
69
|
+
T = until;
|
|
70
|
+
if (!passed(was, T)) return;
|
|
71
|
+
until = void 0;
|
|
72
|
+
playing = false;
|
|
73
|
+
emit("time", T, "play");
|
|
74
|
+
if (turn === mine) emit("pause");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (to < tl.duration) {
|
|
78
|
+
T = to;
|
|
79
|
+
if (passed(was, T)) emit("time", T, "play");
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (loop) {
|
|
83
|
+
if (!passed(was, tl.duration)) return;
|
|
84
|
+
T = to % tl.duration;
|
|
85
|
+
if (on) A = T;
|
|
86
|
+
beat = void 0;
|
|
87
|
+
emit("loop");
|
|
88
|
+
if (turn !== mine) return;
|
|
89
|
+
const first = tl.beatAt(0);
|
|
90
|
+
if (first) {
|
|
91
|
+
beat = first;
|
|
92
|
+
emit("beat", first, "play");
|
|
93
|
+
if (turn !== mine || !passed(first.start, T)) return;
|
|
94
|
+
}
|
|
95
|
+
emit("time", T, "play");
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
T = tl.duration;
|
|
99
|
+
if (!passed(was, T)) return;
|
|
100
|
+
playing = false;
|
|
101
|
+
emit("time", T, "play");
|
|
102
|
+
if (turn !== mine) return;
|
|
103
|
+
emit("pause");
|
|
104
|
+
if (turn !== mine) return;
|
|
105
|
+
emit("end");
|
|
106
|
+
}
|
|
107
|
+
function tick() {
|
|
108
|
+
pending = void 0;
|
|
109
|
+
const now = clock.now(), dt = Math.max(0, now - last) * rate;
|
|
110
|
+
last = now;
|
|
111
|
+
if (on && A !== "off") A += dt;
|
|
112
|
+
play1(dt);
|
|
113
|
+
if (pending === void 0) {
|
|
114
|
+
if (moves()) pending = clock.next(tick);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function land(how, again = false) {
|
|
118
|
+
const b = tl.beatAt(T);
|
|
119
|
+
turn++;
|
|
120
|
+
const mine = turn, other = b?.name !== beat?.name || b?.index !== beat?.index;
|
|
121
|
+
beat = b;
|
|
122
|
+
if (b && (other || again)) {
|
|
123
|
+
told = true;
|
|
124
|
+
emit("beat", b, how);
|
|
125
|
+
if (turn !== mine) return;
|
|
126
|
+
}
|
|
127
|
+
emit("time", T, how);
|
|
128
|
+
}
|
|
129
|
+
function seek(ms, o2 = {}) {
|
|
130
|
+
if (gone || !Number.isFinite(ms)) return;
|
|
131
|
+
const to = clamp(ms);
|
|
132
|
+
if (on && A !== "off") A = o2.join ? to : A + to - T;
|
|
133
|
+
T = to;
|
|
134
|
+
last = clock.now();
|
|
135
|
+
if (until !== void 0 && T >= until) until = void 0;
|
|
136
|
+
land("seek");
|
|
137
|
+
arm();
|
|
138
|
+
}
|
|
139
|
+
function restart() {
|
|
140
|
+
if (gone) return;
|
|
141
|
+
T = 0;
|
|
142
|
+
if (on) A = 0;
|
|
143
|
+
until = void 0;
|
|
144
|
+
last = clock.now();
|
|
145
|
+
land("seek", true);
|
|
146
|
+
arm();
|
|
147
|
+
}
|
|
148
|
+
const api = {
|
|
149
|
+
get timeline() {
|
|
150
|
+
return tl;
|
|
151
|
+
},
|
|
152
|
+
get duration() {
|
|
153
|
+
return tl.duration;
|
|
154
|
+
},
|
|
155
|
+
get time() {
|
|
156
|
+
return T;
|
|
157
|
+
},
|
|
158
|
+
get ambientTime() {
|
|
159
|
+
return A;
|
|
160
|
+
},
|
|
161
|
+
get playing() {
|
|
162
|
+
return playing;
|
|
163
|
+
},
|
|
164
|
+
get beat() {
|
|
165
|
+
return beat;
|
|
166
|
+
},
|
|
167
|
+
get cue() {
|
|
168
|
+
return tl.cues(T);
|
|
169
|
+
},
|
|
170
|
+
get rate() {
|
|
171
|
+
return rate;
|
|
172
|
+
},
|
|
173
|
+
set rate(r) {
|
|
174
|
+
const v = good(r);
|
|
175
|
+
if (v === rate) return;
|
|
176
|
+
rate = v;
|
|
177
|
+
emit("rate", v);
|
|
178
|
+
},
|
|
179
|
+
get loop() {
|
|
180
|
+
return loop;
|
|
181
|
+
},
|
|
182
|
+
set loop(v) {
|
|
183
|
+
loop = v;
|
|
184
|
+
},
|
|
185
|
+
get ambient() {
|
|
186
|
+
return on;
|
|
187
|
+
},
|
|
188
|
+
set ambient(v) {
|
|
189
|
+
if (gone || v === on) return;
|
|
190
|
+
on = v;
|
|
191
|
+
if (on && A === "off") A = beat?.start ?? 0;
|
|
192
|
+
arm();
|
|
193
|
+
emit("ambient", on);
|
|
194
|
+
emit("time", T, "ambient");
|
|
195
|
+
},
|
|
196
|
+
get active() {
|
|
197
|
+
return active;
|
|
198
|
+
},
|
|
199
|
+
set active(v) {
|
|
200
|
+
if (v === active) return;
|
|
201
|
+
active = v;
|
|
202
|
+
arm();
|
|
203
|
+
},
|
|
204
|
+
state: () => tl.at(T, { ambient: A }),
|
|
205
|
+
play(p = {}) {
|
|
206
|
+
if (gone || playing || tl.duration <= 0) return;
|
|
207
|
+
if (T >= tl.duration && p.until === void 0) restart();
|
|
208
|
+
until = p.until !== void 0 && p.until > T && p.until <= tl.duration ? p.until : void 0;
|
|
209
|
+
if (p.until !== void 0 && until === void 0) return;
|
|
210
|
+
playing = true;
|
|
211
|
+
last = clock.now();
|
|
212
|
+
arm();
|
|
213
|
+
emit("play");
|
|
214
|
+
if (playing && !told && beat) {
|
|
215
|
+
told = true;
|
|
216
|
+
emit("beat", beat, "play");
|
|
217
|
+
}
|
|
218
|
+
},
|
|
219
|
+
pause() {
|
|
220
|
+
if (!playing) return;
|
|
221
|
+
playing = false;
|
|
222
|
+
until = void 0;
|
|
223
|
+
turn++;
|
|
224
|
+
arm();
|
|
225
|
+
emit("pause");
|
|
226
|
+
},
|
|
227
|
+
toggle() {
|
|
228
|
+
if (playing) api.pause();
|
|
229
|
+
else api.play();
|
|
230
|
+
},
|
|
231
|
+
seek,
|
|
232
|
+
seekBeat(b) {
|
|
233
|
+
const ms = typeof b === "number" ? tl.beats[b]?.start : tl.beats.find((x) => x.name === b)?.start;
|
|
234
|
+
if (ms === void 0) return false;
|
|
235
|
+
seek(ms);
|
|
236
|
+
return true;
|
|
237
|
+
},
|
|
238
|
+
next() {
|
|
239
|
+
const n = tl.beats.find((b) => b.start > T);
|
|
240
|
+
seek(n ? n.start : tl.duration);
|
|
241
|
+
},
|
|
242
|
+
prev() {
|
|
243
|
+
const back = [...tl.beats].reverse().find((b) => b.start < T - BACK_WITHIN);
|
|
244
|
+
seek(back ? back.start : 0);
|
|
245
|
+
},
|
|
246
|
+
restart,
|
|
247
|
+
rebind(next) {
|
|
248
|
+
if (gone || !next.ok) return false;
|
|
249
|
+
until = void 0;
|
|
250
|
+
const was = tl.beatAt(T), frac = was ? (T - was.start) / Math.max(1, was.end - was.start) : 0, d = A === "off" ? 0 : A - T, before = tl;
|
|
251
|
+
tl = next;
|
|
252
|
+
if (was) {
|
|
253
|
+
const same = next.beats.find((b) => b.name === was.name);
|
|
254
|
+
if (same) T = same.start + frac * (same.end - same.start);
|
|
255
|
+
else {
|
|
256
|
+
const near = before.beats.filter((b) => b.index < was.index).reverse().map((b) => next.beats.find((x) => x.name === b.name)).find(Boolean);
|
|
257
|
+
T = near ? near.start : 0;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
T = clamp(T);
|
|
261
|
+
if (on && A !== "off") A = T + d;
|
|
262
|
+
last = clock.now();
|
|
263
|
+
land("rebind");
|
|
264
|
+
arm();
|
|
265
|
+
return true;
|
|
266
|
+
},
|
|
267
|
+
on(k, f) {
|
|
268
|
+
const set = subs[k] ??= /* @__PURE__ */ new Set();
|
|
269
|
+
set.add(f);
|
|
270
|
+
return () => {
|
|
271
|
+
set.delete(f);
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
dispose() {
|
|
275
|
+
gone = true;
|
|
276
|
+
turn++;
|
|
277
|
+
playing = false;
|
|
278
|
+
if (pending !== void 0) clock.cancel(pending);
|
|
279
|
+
pending = void 0;
|
|
280
|
+
for (const k of Object.keys(subs)) subs[k].clear();
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
arm();
|
|
284
|
+
return api;
|
|
285
|
+
}
|
|
286
|
+
export {
|
|
287
|
+
pageClock,
|
|
288
|
+
transport
|
|
289
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@johnoscott/isometric-engine",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "A generic isometric diagram engine: render (L0–L2) and editor (L0–L3), with a 2D view and a YAML diagram format.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
8
8
|
"./src/**",
|
|
9
|
-
"./js/**"
|
|
9
|
+
"./js/**",
|
|
10
|
+
"./isometric-diagram.js"
|
|
10
11
|
],
|
|
11
12
|
"repository": {
|
|
12
13
|
"type": "git",
|
|
@@ -28,6 +29,7 @@
|
|
|
28
29
|
"iso-editor.d.ts",
|
|
29
30
|
"iso-systems.js",
|
|
30
31
|
"iso-systems.d.ts",
|
|
32
|
+
"isometric-diagram.js",
|
|
31
33
|
"types/",
|
|
32
34
|
"assets/",
|
|
33
35
|
"LICENSES/",
|
|
@@ -49,6 +51,21 @@
|
|
|
49
51
|
"types": "./iso-systems.d.ts",
|
|
50
52
|
"default": "./iso-systems.js"
|
|
51
53
|
},
|
|
54
|
+
"./motion": {
|
|
55
|
+
"types": "./types/iso-objects/motion-entry.d.ts",
|
|
56
|
+
"source": "./src/iso-objects/motion-entry.ts",
|
|
57
|
+
"default": "./js/iso-objects/motion-entry.js"
|
|
58
|
+
},
|
|
59
|
+
"./transport": {
|
|
60
|
+
"types": "./types/iso-viewer/transport.d.ts",
|
|
61
|
+
"source": "./src/iso-viewer/transport.ts",
|
|
62
|
+
"default": "./js/iso-viewer/transport.js"
|
|
63
|
+
},
|
|
64
|
+
"./player": {
|
|
65
|
+
"types": "./types/player/isometric-diagram.d.ts",
|
|
66
|
+
"default": "./isometric-diagram.js"
|
|
67
|
+
},
|
|
68
|
+
"./isometric-diagram.js": "./isometric-diagram.js",
|
|
52
69
|
"./modules/iso-core/compile-schema": {
|
|
53
70
|
"types": "./types/iso-core/compile-schema.d.ts",
|
|
54
71
|
"source": "./src/iso-core/compile-schema.ts",
|
|
@@ -79,6 +96,11 @@
|
|
|
79
96
|
"source": "./src/iso-core/kernel.ts",
|
|
80
97
|
"default": "./js/iso-core/kernel.js"
|
|
81
98
|
},
|
|
99
|
+
"./modules/iso-core/mono": {
|
|
100
|
+
"types": "./types/iso-core/mono.d.ts",
|
|
101
|
+
"source": "./src/iso-core/mono.ts",
|
|
102
|
+
"default": "./js/iso-core/mono.js"
|
|
103
|
+
},
|
|
82
104
|
"./modules/iso-core/parse": {
|
|
83
105
|
"types": "./types/iso-core/parse.d.ts",
|
|
84
106
|
"source": "./src/iso-core/parse.ts",
|
|
@@ -109,6 +131,11 @@
|
|
|
109
131
|
"source": "./src/iso-core/vdom.ts",
|
|
110
132
|
"default": "./js/iso-core/vdom.js"
|
|
111
133
|
},
|
|
134
|
+
"./modules/iso-objects/ants": {
|
|
135
|
+
"types": "./types/iso-objects/ants.d.ts",
|
|
136
|
+
"source": "./src/iso-objects/ants.ts",
|
|
137
|
+
"default": "./js/iso-objects/ants.js"
|
|
138
|
+
},
|
|
112
139
|
"./modules/iso-objects/assemble": {
|
|
113
140
|
"types": "./types/iso-objects/assemble.d.ts",
|
|
114
141
|
"source": "./src/iso-objects/assemble.ts",
|
|
@@ -164,11 +191,46 @@
|
|
|
164
191
|
"source": "./src/iso-objects/labels.ts",
|
|
165
192
|
"default": "./js/iso-objects/labels.js"
|
|
166
193
|
},
|
|
194
|
+
"./modules/iso-objects/looks": {
|
|
195
|
+
"types": "./types/iso-objects/looks.d.ts",
|
|
196
|
+
"source": "./src/iso-objects/looks.ts",
|
|
197
|
+
"default": "./js/iso-objects/looks.js"
|
|
198
|
+
},
|
|
199
|
+
"./modules/iso-objects/mono-paint": {
|
|
200
|
+
"types": "./types/iso-objects/mono-paint.d.ts",
|
|
201
|
+
"source": "./src/iso-objects/mono-paint.ts",
|
|
202
|
+
"default": "./js/iso-objects/mono-paint.js"
|
|
203
|
+
},
|
|
204
|
+
"./modules/iso-objects/motion-builder": {
|
|
205
|
+
"types": "./types/iso-objects/motion-builder.d.ts",
|
|
206
|
+
"source": "./src/iso-objects/motion-builder.ts",
|
|
207
|
+
"default": "./js/iso-objects/motion-builder.js"
|
|
208
|
+
},
|
|
209
|
+
"./modules/iso-objects/motion-doc": {
|
|
210
|
+
"types": "./types/iso-objects/motion-doc.d.ts",
|
|
211
|
+
"source": "./src/iso-objects/motion-doc.ts",
|
|
212
|
+
"default": "./js/iso-objects/motion-doc.js"
|
|
213
|
+
},
|
|
214
|
+
"./modules/iso-objects/motion-schema": {
|
|
215
|
+
"types": "./types/iso-objects/motion-schema.d.ts",
|
|
216
|
+
"source": "./src/iso-objects/motion-schema.ts",
|
|
217
|
+
"default": "./js/iso-objects/motion-schema.js"
|
|
218
|
+
},
|
|
219
|
+
"./modules/iso-objects/motion": {
|
|
220
|
+
"types": "./types/iso-objects/motion.d.ts",
|
|
221
|
+
"source": "./src/iso-objects/motion.ts",
|
|
222
|
+
"default": "./js/iso-objects/motion.js"
|
|
223
|
+
},
|
|
167
224
|
"./modules/iso-objects/place": {
|
|
168
225
|
"types": "./types/iso-objects/place.d.ts",
|
|
169
226
|
"source": "./src/iso-objects/place.ts",
|
|
170
227
|
"default": "./js/iso-objects/place.js"
|
|
171
228
|
},
|
|
229
|
+
"./modules/iso-objects/resolve": {
|
|
230
|
+
"types": "./types/iso-objects/resolve.d.ts",
|
|
231
|
+
"source": "./src/iso-objects/resolve.ts",
|
|
232
|
+
"default": "./js/iso-objects/resolve.js"
|
|
233
|
+
},
|
|
172
234
|
"./modules/iso-objects/route": {
|
|
173
235
|
"types": "./types/iso-objects/route.d.ts",
|
|
174
236
|
"source": "./src/iso-objects/route.ts",
|
|
@@ -184,6 +246,11 @@
|
|
|
184
246
|
"source": "./src/iso-objects/steps.ts",
|
|
185
247
|
"default": "./js/iso-objects/steps.js"
|
|
186
248
|
},
|
|
249
|
+
"./modules/iso-objects/timeline": {
|
|
250
|
+
"types": "./types/iso-objects/timeline.d.ts",
|
|
251
|
+
"source": "./src/iso-objects/timeline.ts",
|
|
252
|
+
"default": "./js/iso-objects/timeline.js"
|
|
253
|
+
},
|
|
187
254
|
"./modules/iso-objects/types": {
|
|
188
255
|
"types": "./types/iso-objects/types.d.ts",
|
|
189
256
|
"source": "./src/iso-objects/types.ts",
|
|
@@ -239,6 +306,11 @@
|
|
|
239
306
|
"source": "./src/iso-viewer/page.ts",
|
|
240
307
|
"default": "./js/iso-viewer/page.js"
|
|
241
308
|
},
|
|
309
|
+
"./modules/iso-viewer/play": {
|
|
310
|
+
"types": "./types/iso-viewer/play.d.ts",
|
|
311
|
+
"source": "./src/iso-viewer/play.ts",
|
|
312
|
+
"default": "./js/iso-viewer/play.js"
|
|
313
|
+
},
|
|
242
314
|
"./modules/iso-viewer/still": {
|
|
243
315
|
"types": "./types/iso-viewer/still.d.ts",
|
|
244
316
|
"source": "./src/iso-viewer/still.ts",
|
|
@@ -279,6 +351,11 @@
|
|
|
279
351
|
"source": "./src/iso-viewer/timeline-time.ts",
|
|
280
352
|
"default": "./js/iso-viewer/timeline-time.js"
|
|
281
353
|
},
|
|
354
|
+
"./modules/iso-viewer/transport": {
|
|
355
|
+
"types": "./types/iso-viewer/transport.d.ts",
|
|
356
|
+
"source": "./src/iso-viewer/transport.ts",
|
|
357
|
+
"default": "./js/iso-viewer/transport.js"
|
|
358
|
+
},
|
|
282
359
|
"./modules/iso-viewer/view-css": {
|
|
283
360
|
"types": "./types/iso-viewer/view-css.d.ts",
|
|
284
361
|
"source": "./src/iso-viewer/view-css.ts",
|
|
@@ -502,6 +579,11 @@
|
|
|
502
579
|
"source": "./src/iso-systems/nodes.ts",
|
|
503
580
|
"default": "./js/iso-systems/nodes.js"
|
|
504
581
|
},
|
|
582
|
+
"./modules/iso-systems/render": {
|
|
583
|
+
"types": "./types/iso-systems/render.d.ts",
|
|
584
|
+
"source": "./src/iso-systems/render.ts",
|
|
585
|
+
"default": "./js/iso-systems/render.js"
|
|
586
|
+
},
|
|
505
587
|
"./modules/iso-systems/validate": {
|
|
506
588
|
"types": "./types/iso-systems/validate.d.ts",
|
|
507
589
|
"source": "./src/iso-systems/validate.ts",
|
package/src/iso-core/index.ts
CHANGED
|
@@ -25,3 +25,4 @@ export type { SvgNode } from './svg-dom.ts';
|
|
|
25
25
|
export { VEl, vdoc, serialize } from './vdom.ts';
|
|
26
26
|
export type { VNode } from './vdom.ts';
|
|
27
27
|
export { createHash, sha256Hex } from './shims/crypto.ts';
|
|
28
|
+
export { MONO, greyOf, contrast, monoOf, type MonoLook, type MonoTable, type MonoPattern } from './mono.ts';
|