@zixcel/dom-renderer 0.10.4 → 0.10.6
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 +7 -1
- package/package.json +7 -5
- package/src/book-reader.d.mts +9 -1
- package/src/book-reader.mjs +54 -33
- package/src/dom-elements.d.mts +11 -0
- package/src/dom-elements.mjs +48 -0
- package/src/frame-layout.d.mts +9 -3
- package/src/frame-layout.mjs +22 -22
- package/src/frame.d.mts +22 -10
- package/src/frame.mjs +93 -45
- package/src/geometry-policy.d.mts +3 -0
- package/src/geometry-policy.mjs +17 -0
- package/src/graph-documents.d.mts +48 -0
- package/src/graph-documents.mjs +40 -0
- package/src/graphics-disposal.d.mts +2 -0
- package/src/graphics-disposal.mjs +14 -0
- package/src/index.d.mts +11 -57
- package/src/index.mjs +9 -205
- package/src/input-form.d.mts +5 -0
- package/src/input-form.mjs +103 -0
- package/src/inspection-overview.d.mts +27 -1
- package/src/inspection-overview.mjs +50 -33
- package/src/npc-motion.d.mts +1 -1
- package/src/npc-motion.mjs +5 -5
- package/src/object-presentation.d.mts +22 -26
- package/src/object-presentation.mjs +20 -17
- package/src/open-world-projection.d.mts +19 -10
- package/src/open-world-projection.mjs +31 -22
- package/src/reconcile.d.mts +1 -1
- package/src/reconcile.mjs +31 -19
- package/src/scene-items.d.mts +9 -0
- package/src/scene-items.mjs +29 -0
- package/src/scene-renderer.d.mts +37 -0
- package/src/scene-renderer.mjs +170 -0
- package/src/spatial-patterns.d.mts +22 -27
- package/src/spatial-patterns.mjs +63 -41
- package/src/spatial.d.mts +17 -6
- package/src/spatial.mjs +39 -25
- package/src/structure-graph.d.mts +5 -13
- package/src/structure-graph.mjs +167 -96
- package/src/symbol.d.mts +1 -1
- package/src/symbol.mjs +21 -16
- package/src/world-api.d.mts +56 -0
- package/src/world-api.mjs +8 -0
- package/src/world-camera.d.mts +14 -0
- package/src/world-camera.mjs +74 -0
- package/src/world-clock.d.mts +19 -0
- package/src/world-clock.mjs +30 -0
- package/src/world-commands.d.mts +39 -0
- package/src/world-commands.mjs +1 -0
- package/src/world-context.d.mts +132 -0
- package/src/world-context.mjs +1 -0
- package/src/world-controller.d.mts +43 -0
- package/src/world-controller.mjs +62 -0
- package/src/world-conversation.d.mts +3 -0
- package/src/world-conversation.mjs +46 -0
- package/src/world-events.d.mts +2 -0
- package/src/world-events.mjs +120 -0
- package/src/world-gpu.d.mts +3 -15
- package/src/world-gpu.mjs +159 -74
- package/src/world-input.d.mts +2 -2
- package/src/world-input.mjs +28 -18
- package/src/world-lifecycle.d.mts +12 -0
- package/src/world-lifecycle.mjs +172 -0
- package/src/world-model.d.mts +29 -40
- package/src/world-model.mjs +103 -74
- package/src/world-projection.d.mts +5 -0
- package/src/world-projection.mjs +169 -0
- package/src/world-render-loop.d.mts +9 -0
- package/src/world-render-loop.mjs +110 -0
- package/src/world-resources.d.mts +34 -0
- package/src/world-resources.mjs +8 -0
- package/src/world-runtime.d.mts +2 -36
- package/src/world-runtime.mjs +6 -311
- package/src/world-setup.d.mts +2 -0
- package/src/world-setup.mjs +179 -0
- package/src/world-surface.d.mts +2 -7
- package/src/world-surface.mjs +20 -12
- package/src/world-types.d.mts +74 -0
- package/src/world-types.mjs +1 -0
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ObjectForm, ObjectPresentation } from './object-presentation.mjs';
|
|
2
|
+
export interface VectorPoint {
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
z: number;
|
|
6
|
+
}
|
|
7
|
+
export interface Pose extends VectorPoint {
|
|
8
|
+
yaw: number;
|
|
9
|
+
pitch: number;
|
|
10
|
+
focus?: VectorPoint;
|
|
11
|
+
cameraMode?: 'third-person' | 'overview';
|
|
12
|
+
}
|
|
13
|
+
export interface WorldObject {
|
|
14
|
+
id: string;
|
|
15
|
+
title?: string;
|
|
16
|
+
kind?: string;
|
|
17
|
+
form?: ObjectForm;
|
|
18
|
+
summary?: string;
|
|
19
|
+
anchor?: string;
|
|
20
|
+
plot?: number;
|
|
21
|
+
member?: number;
|
|
22
|
+
selected?: boolean;
|
|
23
|
+
disabled?: boolean;
|
|
24
|
+
scalars?: readonly unknown[];
|
|
25
|
+
unresolved?: unknown;
|
|
26
|
+
needsReview?: boolean;
|
|
27
|
+
group?: {
|
|
28
|
+
kind: string;
|
|
29
|
+
ref: string;
|
|
30
|
+
} | null;
|
|
31
|
+
groupLabel?: string;
|
|
32
|
+
semanticRef?: string | null;
|
|
33
|
+
sourceRefs?: readonly {
|
|
34
|
+
owner: string;
|
|
35
|
+
}[];
|
|
36
|
+
memberIds?: readonly string[];
|
|
37
|
+
changeKey?: string;
|
|
38
|
+
supportRef?: string;
|
|
39
|
+
observationLabel?: string;
|
|
40
|
+
}
|
|
41
|
+
export type WorldItem<T extends WorldObject = WorldObject> = T & ObjectPresentation & VectorPoint;
|
|
42
|
+
export interface WorldRelation {
|
|
43
|
+
id?: string;
|
|
44
|
+
from: string;
|
|
45
|
+
to: string;
|
|
46
|
+
active?: boolean;
|
|
47
|
+
}
|
|
48
|
+
export interface WorldModel<T extends WorldObject = WorldObject> {
|
|
49
|
+
items: WorldItem<T>[];
|
|
50
|
+
relations: WorldRelation[];
|
|
51
|
+
pattern?: string;
|
|
52
|
+
}
|
|
53
|
+
export interface ActorRange {
|
|
54
|
+
id: string;
|
|
55
|
+
start: number;
|
|
56
|
+
end: number;
|
|
57
|
+
}
|
|
58
|
+
export interface Gpu {
|
|
59
|
+
pattern(value: string): void;
|
|
60
|
+
upload(data: Float32Array, ranges?: ActorRange[]): void;
|
|
61
|
+
motionStates(states: Map<string, string>): void;
|
|
62
|
+
draw(pose: Pose, aspect: number, zoom: number, size: {
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
}, milliseconds?: number, visibleActors?: Set<string>): void;
|
|
66
|
+
readonly count: number;
|
|
67
|
+
readonly stats: {
|
|
68
|
+
calls: number;
|
|
69
|
+
triangles: number;
|
|
70
|
+
geometries: number;
|
|
71
|
+
textures: number;
|
|
72
|
+
};
|
|
73
|
+
close(): void;
|
|
74
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|