@operato/scene-visualizer 10.0.0-beta.1 → 10.0.0-beta.3
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/editors/property-editor-gltf-info.d.ts +8 -1
- package/dist/editors/property-editor-gltf-info.js +80 -24
- package/dist/editors/property-editor-gltf-info.js.map +1 -1
- package/package.json +2 -2
- package/dist/banner.d.ts +0 -244
- package/dist/banner.js +0 -75
- package/dist/banner.js.map +0 -1
- package/dist/camera.d.ts +0 -249
- package/dist/camera.js +0 -107
- package/dist/camera.js.map +0 -1
- package/dist/cube.d.ts +0 -241
- package/dist/cube.js +0 -37
- package/dist/cube.js.map +0 -1
- package/dist/cylinder.d.ts +0 -9
- package/dist/cylinder.js +0 -37
- package/dist/cylinder.js.map +0 -1
- package/dist/ellipse.d.ts +0 -5
- package/dist/ellipse.js +0 -20
- package/dist/ellipse.js.map +0 -1
- package/dist/gltf-object.d.ts +0 -249
- package/dist/gltf-object.js +0 -103
- package/dist/gltf-object.js.map +0 -1
- package/dist/html-overlay-element.d.ts +0 -1
- package/dist/html-overlay-element.js +0 -8
- package/dist/html-overlay-element.js.map +0 -1
- package/dist/light.d.ts +0 -14
- package/dist/light.js +0 -134
- package/dist/light.js.map +0 -1
- package/dist/polygon.d.ts +0 -17
- package/dist/polygon.js +0 -62
- package/dist/polygon.js.map +0 -1
- package/dist/rect.d.ts +0 -5
- package/dist/rect.js +0 -34
- package/dist/rect.js.map +0 -1
- package/dist/scene/component.d.ts +0 -1
- package/dist/scene/component.js +0 -29
- package/dist/scene/component.js.map +0 -1
- package/dist/sphere.d.ts +0 -9
- package/dist/sphere.js +0 -37
- package/dist/sphere.js.map +0 -1
- package/dist/sprite.d.ts +0 -238
- package/dist/sprite.js +0 -27
- package/dist/sprite.js.map +0 -1
- package/dist/text.d.ts +0 -1
- package/dist/text.js +0 -7
- package/dist/text.js.map +0 -1
- package/dist/three-container-editor.d.ts +0 -22
- package/dist/three-container-editor.js +0 -132
- package/dist/three-container-editor.js.map +0 -1
- package/dist/three-container.d.ts +0 -61
- package/dist/three-container.js +0 -371
- package/dist/three-container.js.map +0 -1
- package/dist/three-controls.d.ts +0 -111
- package/dist/three-controls.js +0 -414
- package/dist/three-controls.js.map +0 -1
- package/dist/three-layout.d.ts +0 -8
- package/dist/three-layout.js +0 -20
- package/dist/three-layout.js.map +0 -1
- package/dist/three-space.d.ts +0 -8
- package/dist/three-space.js +0 -58
- package/dist/three-space.js.map +0 -1
- package/dist/threed/common.d.ts +0 -22
- package/dist/threed/common.js +0 -19
- package/dist/threed/common.js.map +0 -1
- package/dist/threed/floor/floor.d.ts +0 -3
- package/dist/threed/floor/floor.js +0 -51
- package/dist/threed/floor/floor.js.map +0 -1
- package/dist/threed/html/elements.d.ts +0 -2
- package/dist/threed/html/elements.js +0 -21
- package/dist/threed/html/elements.js.map +0 -1
- package/dist/threed/index.d.ts +0 -16
- package/dist/threed/index.js +0 -17
- package/dist/threed/index.js.map +0 -1
- package/dist/threed/interfaces.d.ts +0 -15
- package/dist/threed/interfaces.js +0 -5
- package/dist/threed/interfaces.js.map +0 -1
- package/dist/threed/managers/camera-manager.d.ts +0 -14
- package/dist/threed/managers/camera-manager.js +0 -60
- package/dist/threed/managers/camera-manager.js.map +0 -1
- package/dist/threed/managers/controls-manager.d.ts +0 -50
- package/dist/threed/managers/controls-manager.js +0 -249
- package/dist/threed/managers/controls-manager.js.map +0 -1
- package/dist/threed/managers/event-manager3d.d.ts +0 -19
- package/dist/threed/managers/event-manager3d.js +0 -76
- package/dist/threed/managers/event-manager3d.js.map +0 -1
- package/dist/threed/managers/index.d.ts +0 -7
- package/dist/threed/managers/index.js +0 -7
- package/dist/threed/managers/index.js.map +0 -1
- package/dist/threed/managers/light-manager.d.ts +0 -7
- package/dist/threed/managers/light-manager.js +0 -37
- package/dist/threed/managers/light-manager.js.map +0 -1
- package/dist/threed/managers/renderer-manager.d.ts +0 -30
- package/dist/threed/managers/renderer-manager.js +0 -120
- package/dist/threed/managers/renderer-manager.js.map +0 -1
- package/dist/threed/managers/scene-manager.d.ts +0 -15
- package/dist/threed/managers/scene-manager.js +0 -48
- package/dist/threed/managers/scene-manager.js.map +0 -1
- package/dist/threed/managers/types.d.ts +0 -36
- package/dist/threed/managers/types.js +0 -2
- package/dist/threed/managers/types.js.map +0 -1
- package/dist/threed/real-object-camera-meshed.d.ts +0 -12
- package/dist/threed/real-object-camera-meshed.js +0 -49
- package/dist/threed/real-object-camera-meshed.js.map +0 -1
- package/dist/threed/real-object-camera.d.ts +0 -9
- package/dist/threed/real-object-camera.js +0 -31
- package/dist/threed/real-object-camera.js.map +0 -1
- package/dist/threed/real-object-dom-element.d.ts +0 -9
- package/dist/threed/real-object-dom-element.js +0 -48
- package/dist/threed/real-object-dom-element.js.map +0 -1
- package/dist/threed/real-object-dummy.d.ts +0 -6
- package/dist/threed/real-object-dummy.js +0 -11
- package/dist/threed/real-object-dummy.js.map +0 -1
- package/dist/threed/real-object-extrude.d.ts +0 -22
- package/dist/threed/real-object-extrude.js +0 -180
- package/dist/threed/real-object-extrude.js.map +0 -1
- package/dist/threed/real-object-gltf.d.ts +0 -16
- package/dist/threed/real-object-gltf.js +0 -105
- package/dist/threed/real-object-gltf.js.map +0 -1
- package/dist/threed/real-object-group.d.ts +0 -5
- package/dist/threed/real-object-group.js +0 -11
- package/dist/threed/real-object-group.js.map +0 -1
- package/dist/threed/real-object-mesh.d.ts +0 -13
- package/dist/threed/real-object-mesh.js +0 -73
- package/dist/threed/real-object-mesh.js.map +0 -1
- package/dist/threed/real-object-plane.d.ts +0 -5
- package/dist/threed/real-object-plane.js +0 -22
- package/dist/threed/real-object-plane.js.map +0 -1
- package/dist/threed/real-object-registry.d.ts +0 -7
- package/dist/threed/real-object-registry.js +0 -32
- package/dist/threed/real-object-registry.js.map +0 -1
- package/dist/threed/real-object-scene.d.ts +0 -21
- package/dist/threed/real-object-scene.js +0 -72
- package/dist/threed/real-object-scene.js.map +0 -1
- package/dist/threed/real-object-sprite-2d.d.ts +0 -14
- package/dist/threed/real-object-sprite-2d.js +0 -45
- package/dist/threed/real-object-sprite-2d.js.map +0 -1
- package/dist/threed/real-object-sprite.d.ts +0 -11
- package/dist/threed/real-object-sprite.js +0 -52
- package/dist/threed/real-object-sprite.js.map +0 -1
- package/dist/threed/real-object-text.d.ts +0 -15
- package/dist/threed/real-object-text.js +0 -66
- package/dist/threed/real-object-text.js.map +0 -1
- package/dist/threed/real-object.d.ts +0 -65
- package/dist/threed/real-object.js +0 -251
- package/dist/threed/real-object.js.map +0 -1
- package/dist/threed/texture/canvas-texture.d.ts +0 -4
- package/dist/threed/texture/canvas-texture.js +0 -49
- package/dist/threed/texture/canvas-texture.js.map +0 -1
- package/dist/threed/texture/text-texture.d.ts +0 -8
- package/dist/threed/texture/text-texture.js +0 -79
- package/dist/threed/texture/text-texture.js.map +0 -1
- package/dist/threed/three-dimensional-container.d.ts +0 -7
- package/dist/threed/three-dimensional-container.js +0 -2
- package/dist/threed/three-dimensional-container.js.map +0 -1
- package/dist/threed/utils/bound-uv-generator.d.ts +0 -16
- package/dist/threed/utils/bound-uv-generator.js +0 -42
- package/dist/threed/utils/bound-uv-generator.js.map +0 -1
- package/dist/threed/utils/dispose.d.ts +0 -2
- package/dist/threed/utils/dispose.js +0 -32
- package/dist/threed/utils/dispose.js.map +0 -1
- package/dist/wall.d.ts +0 -241
- package/dist/wall.js +0 -44
- package/dist/wall.js.map +0 -1
package/dist/camera.d.ts
DELETED
|
@@ -1,249 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentNature, Shape, RealObject } from '@hatiolab/things-scene';
|
|
2
|
-
import * as THREE from 'three';
|
|
3
|
-
export declare class Camera3D extends RealObject<THREE.Mesh> {
|
|
4
|
-
camera?: THREE.PerspectiveCamera;
|
|
5
|
-
helper?: THREE.CameraHelper;
|
|
6
|
-
protected getObject3dInstance(): THREE.Mesh<THREE.BufferGeometry<THREE.NormalBufferAttributes>, THREE.Material | THREE.Material[], THREE.Object3DEventMap>;
|
|
7
|
-
updateCamera(): void;
|
|
8
|
-
build(): void;
|
|
9
|
-
}
|
|
10
|
-
declare const Camera_base: (new (...args: any[]) => {
|
|
11
|
-
contains(x: any, y: any): boolean;
|
|
12
|
-
get path(): {
|
|
13
|
-
x: any;
|
|
14
|
-
y: any;
|
|
15
|
-
}[];
|
|
16
|
-
set path(path: {
|
|
17
|
-
x: any;
|
|
18
|
-
y: any;
|
|
19
|
-
}[]): any;
|
|
20
|
-
get anchors(): {
|
|
21
|
-
name: string;
|
|
22
|
-
position: {
|
|
23
|
-
x: any;
|
|
24
|
-
y: any;
|
|
25
|
-
};
|
|
26
|
-
}[];
|
|
27
|
-
get bounds(): any;
|
|
28
|
-
set bounds(bounds: any): any;
|
|
29
|
-
render(ctx: any): void;
|
|
30
|
-
_app: any;
|
|
31
|
-
_model: any;
|
|
32
|
-
_state: any;
|
|
33
|
-
_delta: any;
|
|
34
|
-
_animation: any;
|
|
35
|
-
_animate: any;
|
|
36
|
-
_parent: any;
|
|
37
|
-
_disposed: any;
|
|
38
|
-
_textHidden: any;
|
|
39
|
-
_text_substitutor: any;
|
|
40
|
-
_value_substitutor: any;
|
|
41
|
-
_mappings: any;
|
|
42
|
-
_realObject: import("@hatiolab/things-scene").IRealObject | undefined;
|
|
43
|
-
_cachedState: any;
|
|
44
|
-
updatedAt: any;
|
|
45
|
-
fontSize: any;
|
|
46
|
-
__cache__: any;
|
|
47
|
-
created(): void;
|
|
48
|
-
added(parent: any): void;
|
|
49
|
-
removed(parent: any): void;
|
|
50
|
-
ready(): Promise<void>;
|
|
51
|
-
touch(): void;
|
|
52
|
-
clearCache(...attrs: any[]): void;
|
|
53
|
-
removeSelf(completely: any): void;
|
|
54
|
-
resetAnimation(): void;
|
|
55
|
-
dispose(): void;
|
|
56
|
-
get nature(): import("@hatiolab/things-scene").ComponentNature;
|
|
57
|
-
get disposed(): boolean;
|
|
58
|
-
isLayer(): boolean;
|
|
59
|
-
isGroup(): boolean;
|
|
60
|
-
isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component").Container;
|
|
61
|
-
isLine(): boolean;
|
|
62
|
-
isRoot(): boolean;
|
|
63
|
-
isRootModel(): boolean;
|
|
64
|
-
is3dish(): boolean;
|
|
65
|
-
isIn3DSpace(): boolean;
|
|
66
|
-
isTemplate(): boolean;
|
|
67
|
-
isHTMLElement(): boolean;
|
|
68
|
-
isConnectable(): boolean;
|
|
69
|
-
isIdentifiable(): boolean;
|
|
70
|
-
isPositionable(): boolean;
|
|
71
|
-
replaceRefids(replaceMap: any): void;
|
|
72
|
-
get(property: any): any;
|
|
73
|
-
set(props: any, propval?: any): any;
|
|
74
|
-
getState(property: any): any;
|
|
75
|
-
setState(props: any, propval?: any): any;
|
|
76
|
-
get model(): any;
|
|
77
|
-
get state(): any;
|
|
78
|
-
get hierarchy(): any;
|
|
79
|
-
get volatile(): never[];
|
|
80
|
-
_applyProps(target: any, props: any, options: any): any;
|
|
81
|
-
move(offset: {
|
|
82
|
-
x: number;
|
|
83
|
-
y: number;
|
|
84
|
-
}, ...args: boolean[]): void;
|
|
85
|
-
symmetryX(x?: number): void;
|
|
86
|
-
symmetryY(y: number): void;
|
|
87
|
-
adjustResize(bounds: import("@hatiolab/things-scene").BOUNDS, origin_bounds: import("@hatiolab/things-scene").BOUNDS, diagonal: boolean): any;
|
|
88
|
-
adjustRotation(rotation: number, step: boolean): any;
|
|
89
|
-
outline(progress: number): any;
|
|
90
|
-
get center(): import("@hatiolab/things-scene").POINT;
|
|
91
|
-
set center(p: import("@hatiolab/things-scene").POINT): any;
|
|
92
|
-
get location(): import("@hatiolab/things-scene").POINT;
|
|
93
|
-
set location(l: import("@hatiolab/things-scene").POINT): any;
|
|
94
|
-
get rotate(): import("@hatiolab/things-scene").POINT;
|
|
95
|
-
set rotate(r: import("@hatiolab/things-scene").POINT): any;
|
|
96
|
-
get dimension(): import("@hatiolab/things-scene").DIMENSION;
|
|
97
|
-
set dimension(d: import("@hatiolab/things-scene").DIMENSION): any;
|
|
98
|
-
get drawPath(): import("@hatiolab/things-scene").POINT[];
|
|
99
|
-
get rotatePoint(): import("@hatiolab/things-scene").POINT;
|
|
100
|
-
get mutable(): boolean;
|
|
101
|
-
get resizable(): boolean;
|
|
102
|
-
get rotatable(): boolean;
|
|
103
|
-
buildRealObject(): import("@hatiolab/things-scene").IRealObject | undefined;
|
|
104
|
-
get realObject(): import("@hatiolab/things-scene").IRealObject | undefined;
|
|
105
|
-
draw(context?: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
106
|
-
prerender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
107
|
-
postrender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
108
|
-
prepare(resolve: (component: Component) => void, reject: (reason: any) => void): void;
|
|
109
|
-
prepareIf(condition: boolean): void;
|
|
110
|
-
drawText(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
111
|
-
drawStroke(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
112
|
-
drawFill(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
113
|
-
get strokeStyle(): any;
|
|
114
|
-
set strokeStyle(v: any): any;
|
|
115
|
-
get fillStyle(): any;
|
|
116
|
-
set fillStyle(v: any): any;
|
|
117
|
-
get fontColor(): string;
|
|
118
|
-
set fontColor(v: string): any;
|
|
119
|
-
get rotation(): number;
|
|
120
|
-
set rotation(v: number): any;
|
|
121
|
-
get decorators(): string[];
|
|
122
|
-
get decotag(): string;
|
|
123
|
-
get hidden(): boolean;
|
|
124
|
-
set hidden(v: boolean): any;
|
|
125
|
-
get tag(): string;
|
|
126
|
-
set tag(v: string): any;
|
|
127
|
-
get appendum(): any;
|
|
128
|
-
set appendum(v: any): any;
|
|
129
|
-
defaultTextSubstitutor(): any;
|
|
130
|
-
textLines(context?: import("@hatiolab/things-scene").SceneRenderContext): any;
|
|
131
|
-
get font(): string;
|
|
132
|
-
get lineHeight(): number;
|
|
133
|
-
get textSubstitutor(): () => string;
|
|
134
|
-
get text(): string;
|
|
135
|
-
set text(v: string): any;
|
|
136
|
-
get textBounds(): import("@hatiolab/things-scene").BOUNDS;
|
|
137
|
-
get textRotation(): number;
|
|
138
|
-
get textHidden(): boolean;
|
|
139
|
-
set textHidden(v: boolean): any;
|
|
140
|
-
get hasTextProperty(): boolean;
|
|
141
|
-
animate(opts: import("@hatiolab/things-scene/dist-types/animation/interfaces").AnimationConfig): any;
|
|
142
|
-
effect(context: import("@hatiolab/things-scene").SceneRenderContext, model: any): any;
|
|
143
|
-
serialize(...others: any[]): any;
|
|
144
|
-
trim(): void;
|
|
145
|
-
closeScene(data: any): void;
|
|
146
|
-
delta(attr?: string | object, value?: any): any;
|
|
147
|
-
invalidate(): void;
|
|
148
|
-
get value(): any;
|
|
149
|
-
set value(v: any): any;
|
|
150
|
-
get data(): any;
|
|
151
|
-
set data(v: any): any;
|
|
152
|
-
set tap(v: any): any;
|
|
153
|
-
get mappings(): any[];
|
|
154
|
-
get retention(): number;
|
|
155
|
-
get animation(): import("@hatiolab/things-scene/dist-types/animation/interfaces").AnimationController | undefined;
|
|
156
|
-
get started(): boolean;
|
|
157
|
-
set started(v: boolean): any;
|
|
158
|
-
get controls(): import("@hatiolab/things-scene").Control[] | undefined;
|
|
159
|
-
findFirst(finder: string | ((c: Component) => boolean), ...others: any[]): any;
|
|
160
|
-
findAll(s: string | ((c: Component) => boolean), ...others: any[]): any;
|
|
161
|
-
capture(x: number, y: number, except?: (c: Component) => boolean): any;
|
|
162
|
-
findAnchor(name: string): any;
|
|
163
|
-
isDescendible(container: Component): any;
|
|
164
|
-
getContext(component?: unknown): any;
|
|
165
|
-
get root(): Component;
|
|
166
|
-
get rootModel(): Component;
|
|
167
|
-
get parent(): Component;
|
|
168
|
-
set parent(v: Component): any;
|
|
169
|
-
get scalable(): boolean;
|
|
170
|
-
get stuck(): boolean;
|
|
171
|
-
get capturable(): boolean;
|
|
172
|
-
get position(): string;
|
|
173
|
-
get origin(): string;
|
|
174
|
-
get offset(): import("@hatiolab/things-scene").POINT;
|
|
175
|
-
get app(): import("@hatiolab/things-scene").ApplicationContext;
|
|
176
|
-
drawEffect(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
177
|
-
prepareFill(resolve: Function, reject: Function): void;
|
|
178
|
-
prepareFillIf(condition: boolean): void;
|
|
179
|
-
onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
|
|
180
|
-
drawImage(context: import("@hatiolab/things-scene").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
|
|
181
|
-
mutateBounds(logic: ((bounds: import("@hatiolab/things-scene").BOUNDS) => import("@hatiolab/things-scene").BOUNDS | void) | null, context?: any): void;
|
|
182
|
-
mutatePath(beforeLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, afterLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, context?: any): void;
|
|
183
|
-
access(accessor: string, data: any): any;
|
|
184
|
-
substitute(template: string, data: any): any;
|
|
185
|
-
onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
|
|
186
|
-
onchangeData(after: Record<string, any>, before: Record<string, any>): void;
|
|
187
|
-
buildMappings(): void;
|
|
188
|
-
executeMappings(force?: boolean): void;
|
|
189
|
-
disposeMappings(): void;
|
|
190
|
-
ondropfile(transfered: FileList, files: string[]): void;
|
|
191
|
-
transcoordS2P(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
192
|
-
transcoordP2S(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
193
|
-
transcoordS2T(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
194
|
-
transcoordT2P(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
195
|
-
transcoordT2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
196
|
-
transcoordS2TR(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
197
|
-
transcoordS2O(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
198
|
-
transcoordC2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
199
|
-
transcoordS2C(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
200
|
-
toParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
201
|
-
fromParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
202
|
-
toScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
203
|
-
fromScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
204
|
-
toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
205
|
-
toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
206
|
-
toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
207
|
-
on(name: string | object, callback: Function, context?: any): any;
|
|
208
|
-
off(name?: string | object, callback?: Function, context?: any): any;
|
|
209
|
-
once(name: string | object, callback: Function, context?: any): any;
|
|
210
|
-
trigger(name: string, ...args: any[]): any;
|
|
211
|
-
delegate_on(delegator: any): any;
|
|
212
|
-
delegate_off(delegator: any): any;
|
|
213
|
-
onchange(after: Record<string, any>, before: Record<string, any>): void;
|
|
214
|
-
calculateBounds?(): void;
|
|
215
|
-
oncreate_element?(element: HTMLElement): void;
|
|
216
|
-
removeComponent(component: Component, ghost?: boolean): void;
|
|
217
|
-
addComponent(component: Component, ghost?: boolean): void;
|
|
218
|
-
insertComponentAt(component: Component, index: number, ghost?: boolean): void;
|
|
219
|
-
getOverlay(component: Component): HTMLElement | undefined;
|
|
220
|
-
findById(id: string): Component | undefined;
|
|
221
|
-
findByRefid(ref: string | number): Component | undefined;
|
|
222
|
-
findAllById(id: string): Component[];
|
|
223
|
-
resize(): void;
|
|
224
|
-
fit(type?: string): void;
|
|
225
|
-
get components(): Component[] | undefined;
|
|
226
|
-
get layout(): any;
|
|
227
|
-
get auxOverlay(): HTMLElement | undefined;
|
|
228
|
-
get isReady(): boolean;
|
|
229
|
-
get unitScale(): number;
|
|
230
|
-
get selected(): Component[];
|
|
231
|
-
set selected(_v: Component[]): any;
|
|
232
|
-
get focused(): Component | null;
|
|
233
|
-
set focused(_v: Component | null): any;
|
|
234
|
-
get hasSameParentForAllSelected(): boolean;
|
|
235
|
-
set hasSameParentForAllSelected(_v: boolean): any;
|
|
236
|
-
get fitMode(): string | undefined;
|
|
237
|
-
set fitMode(_v: string | undefined): any;
|
|
238
|
-
get element(): HTMLElement | null;
|
|
239
|
-
set element(_v: HTMLElement | null): any;
|
|
240
|
-
}) & typeof Shape;
|
|
241
|
-
export declare class Camera extends Camera_base {
|
|
242
|
-
static _image: HTMLImageElement;
|
|
243
|
-
is3dish(): boolean;
|
|
244
|
-
static get image(): HTMLImageElement;
|
|
245
|
-
render(context: CanvasRenderingContext2D): void;
|
|
246
|
-
buildRealObject(): RealObject | undefined;
|
|
247
|
-
get nature(): ComponentNature;
|
|
248
|
-
}
|
|
249
|
-
export {};
|
package/dist/camera.js
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
var Camera_1;
|
|
2
|
-
import { __decorate } from "tslib";
|
|
3
|
-
/*
|
|
4
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
|
5
|
-
*/
|
|
6
|
-
import { RectPath, Shape, sceneComponent, RealObject } from '@hatiolab/things-scene';
|
|
7
|
-
import * as THREE from 'three';
|
|
8
|
-
const DEFAULT = {
|
|
9
|
-
far: 100000,
|
|
10
|
-
fov: 80,
|
|
11
|
-
near: 1,
|
|
12
|
-
zoom: 1
|
|
13
|
-
};
|
|
14
|
-
const NATURE = {
|
|
15
|
-
mutable: false,
|
|
16
|
-
resizable: true,
|
|
17
|
-
rotatable: true,
|
|
18
|
-
properties: [
|
|
19
|
-
{
|
|
20
|
-
type: 'number',
|
|
21
|
-
label: 'near',
|
|
22
|
-
name: 'near'
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
type: 'number',
|
|
26
|
-
label: 'far',
|
|
27
|
-
name: 'far'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: 'number',
|
|
31
|
-
label: 'fov',
|
|
32
|
-
name: 'fov'
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: 'number',
|
|
36
|
-
label: 'zoom',
|
|
37
|
-
name: 'zoom'
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: 'checkbox',
|
|
41
|
-
label: 'show-helper',
|
|
42
|
-
name: 'showHelper'
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
help: 'scene/component/camera'
|
|
46
|
-
};
|
|
47
|
-
export class Camera3D extends RealObject {
|
|
48
|
-
getObject3dInstance() {
|
|
49
|
-
return new THREE.Mesh();
|
|
50
|
-
}
|
|
51
|
-
updateCamera() {
|
|
52
|
-
var { near = DEFAULT.near, far = DEFAULT.far, fov = DEFAULT.fov, zoom = DEFAULT.zoom, showHelper } = this.component.state;
|
|
53
|
-
this.camera.far = far;
|
|
54
|
-
this.camera.fov = fov;
|
|
55
|
-
this.camera.near = near;
|
|
56
|
-
this.camera.zoom = zoom;
|
|
57
|
-
if (showHelper) {
|
|
58
|
-
if (!this.helper) {
|
|
59
|
-
this.helper = new THREE.CameraHelper(this.camera);
|
|
60
|
-
this.object3d.add(this.helper);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
else if (this.helper) {
|
|
64
|
-
this.object3d.remove(this.helper);
|
|
65
|
-
delete this.helper;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
build() {
|
|
69
|
-
super.build();
|
|
70
|
-
var { width = 0, height = 0, depth = 0, fillStyle = 'lightgray' } = this.component.state;
|
|
71
|
-
this.object3d.geometry = new THREE.BoxGeometry(width, depth, height);
|
|
72
|
-
this.object3d.material = new THREE.MeshStandardMaterial({ color: fillStyle, side: THREE.FrontSide });
|
|
73
|
-
this.camera = new THREE.PerspectiveCamera();
|
|
74
|
-
this.camera.position.set(0, 0, 0);
|
|
75
|
-
this.object3d.add(this.camera);
|
|
76
|
-
this.object3d.lookAt(0, 0, 0);
|
|
77
|
-
this.updateCamera();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
let Camera = Camera_1 = class Camera extends RectPath(Shape) {
|
|
81
|
-
is3dish() {
|
|
82
|
-
return true;
|
|
83
|
-
}
|
|
84
|
-
static get image() {
|
|
85
|
-
if (!Camera_1._image) {
|
|
86
|
-
Camera_1._image = new Image();
|
|
87
|
-
Camera_1._image.src = new URL('../icons/camera-big.png', import.meta.url).href;
|
|
88
|
-
}
|
|
89
|
-
return Camera_1._image;
|
|
90
|
-
}
|
|
91
|
-
render(context) {
|
|
92
|
-
var { left, top, width, height } = this.bounds;
|
|
93
|
-
context.beginPath();
|
|
94
|
-
this.drawImage(context, Camera_1.image, left, top, width, height);
|
|
95
|
-
}
|
|
96
|
-
buildRealObject() {
|
|
97
|
-
return new Camera3D(this);
|
|
98
|
-
}
|
|
99
|
-
get nature() {
|
|
100
|
-
return NATURE;
|
|
101
|
-
}
|
|
102
|
-
};
|
|
103
|
-
Camera = Camera_1 = __decorate([
|
|
104
|
-
sceneComponent('camera')
|
|
105
|
-
], Camera);
|
|
106
|
-
export { Camera };
|
|
107
|
-
//# sourceMappingURL=camera.js.map
|
package/dist/camera.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"camera.js","sourceRoot":"","sources":["../src/camera.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\nimport { Component, ComponentNature, RectPath, Shape, sceneComponent, RealObject } from '@hatiolab/things-scene'\nimport * as THREE from 'three'\n\nconst DEFAULT = {\n far: 100000,\n fov: 80,\n near: 1,\n zoom: 1\n}\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'number',\n label: 'near',\n name: 'near'\n },\n {\n type: 'number',\n label: 'far',\n name: 'far'\n },\n {\n type: 'number',\n label: 'fov',\n name: 'fov'\n },\n {\n type: 'number',\n label: 'zoom',\n name: 'zoom'\n },\n {\n type: 'checkbox',\n label: 'show-helper',\n name: 'showHelper'\n }\n ],\n help: 'scene/component/camera'\n}\n\nexport class Camera3D extends RealObject<THREE.Mesh> {\n camera?: THREE.PerspectiveCamera\n helper?: THREE.CameraHelper\n\n protected getObject3dInstance() {\n return new THREE.Mesh()\n }\n\n updateCamera() {\n var {\n near = DEFAULT.near,\n far = DEFAULT.far,\n fov = DEFAULT.fov,\n zoom = DEFAULT.zoom,\n showHelper\n } = this.component.state\n\n this.camera!.far = far\n this.camera!.fov = fov\n this.camera!.near = near\n this.camera!.zoom = zoom\n\n if (showHelper) {\n if (!this.helper) {\n this.helper = new THREE.CameraHelper(this.camera!)\n this.object3d.add(this.helper)\n }\n } else if (this.helper) {\n this.object3d.remove(this.helper)\n delete this.helper\n }\n }\n\n build() {\n super.build()\n\n var { width = 0, height = 0, depth = 0, fillStyle = 'lightgray' } = this.component.state\n\n this.object3d.geometry = new THREE.BoxGeometry(width, depth, height)\n this.object3d.material = new THREE.MeshStandardMaterial({ color: fillStyle, side: THREE.FrontSide })\n\n this.camera = new THREE.PerspectiveCamera()\n this.camera.position.set(0, 0, 0)\n\n this.object3d.add(this.camera)\n this.object3d.lookAt(0, 0, 0)\n\n this.updateCamera()\n }\n}\n\n@sceneComponent('camera')\nexport class Camera extends RectPath(Shape) {\n static _image: HTMLImageElement\n\n is3dish() {\n return true\n }\n\n static get image() {\n if (!Camera._image) {\n Camera._image = new Image()\n Camera._image.src = new URL('../icons/camera-big.png', import.meta.url).href\n }\n\n return Camera._image\n }\n\n render(context: CanvasRenderingContext2D) {\n var { left, top, width, height } = this.bounds\n\n context.beginPath()\n this.drawImage(context, Camera.image, left, top, width, height)\n }\n\n buildRealObject(): RealObject | undefined {\n return new Camera3D(this as any)\n }\n\n get nature(): ComponentNature {\n return NATURE\n }\n}\n"]}
|
package/dist/cube.d.ts
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
import { Component, ComponentNature, Shape, RealObject, RealObjectMesh } from '@hatiolab/things-scene';
|
|
2
|
-
export declare class Cube3D extends RealObjectMesh {
|
|
3
|
-
buildGeometry(): void;
|
|
4
|
-
}
|
|
5
|
-
declare const Cube_base: (new (...args: any[]) => {
|
|
6
|
-
contains(x: any, y: any): boolean;
|
|
7
|
-
get path(): {
|
|
8
|
-
x: any;
|
|
9
|
-
y: any;
|
|
10
|
-
}[];
|
|
11
|
-
set path(path: {
|
|
12
|
-
x: any;
|
|
13
|
-
y: any;
|
|
14
|
-
}[]): any;
|
|
15
|
-
get anchors(): {
|
|
16
|
-
name: string;
|
|
17
|
-
position: {
|
|
18
|
-
x: any;
|
|
19
|
-
y: any;
|
|
20
|
-
};
|
|
21
|
-
}[];
|
|
22
|
-
get bounds(): any;
|
|
23
|
-
set bounds(bounds: any): any;
|
|
24
|
-
render(ctx: any): void;
|
|
25
|
-
_app: any;
|
|
26
|
-
_model: any;
|
|
27
|
-
_state: any;
|
|
28
|
-
_delta: any;
|
|
29
|
-
_animation: any;
|
|
30
|
-
_animate: any;
|
|
31
|
-
_parent: any;
|
|
32
|
-
_disposed: any;
|
|
33
|
-
_textHidden: any;
|
|
34
|
-
_text_substitutor: any;
|
|
35
|
-
_value_substitutor: any;
|
|
36
|
-
_mappings: any;
|
|
37
|
-
_realObject: import("@hatiolab/things-scene").IRealObject | undefined;
|
|
38
|
-
_cachedState: any;
|
|
39
|
-
updatedAt: any;
|
|
40
|
-
fontSize: any;
|
|
41
|
-
__cache__: any;
|
|
42
|
-
created(): void;
|
|
43
|
-
added(parent: any): void;
|
|
44
|
-
removed(parent: any): void;
|
|
45
|
-
ready(): Promise<void>;
|
|
46
|
-
touch(): void;
|
|
47
|
-
clearCache(...attrs: any[]): void;
|
|
48
|
-
removeSelf(completely: any): void;
|
|
49
|
-
resetAnimation(): void;
|
|
50
|
-
dispose(): void;
|
|
51
|
-
get nature(): import("@hatiolab/things-scene").ComponentNature;
|
|
52
|
-
get disposed(): boolean;
|
|
53
|
-
isLayer(): boolean;
|
|
54
|
-
isGroup(): boolean;
|
|
55
|
-
isContainer(): this is import("@hatiolab/things-scene/dist-types/types/component").Container;
|
|
56
|
-
isLine(): boolean;
|
|
57
|
-
isRoot(): boolean;
|
|
58
|
-
isRootModel(): boolean;
|
|
59
|
-
is3dish(): boolean;
|
|
60
|
-
isIn3DSpace(): boolean;
|
|
61
|
-
isTemplate(): boolean;
|
|
62
|
-
isHTMLElement(): boolean;
|
|
63
|
-
isConnectable(): boolean;
|
|
64
|
-
isIdentifiable(): boolean;
|
|
65
|
-
isPositionable(): boolean;
|
|
66
|
-
replaceRefids(replaceMap: any): void;
|
|
67
|
-
get(property: any): any;
|
|
68
|
-
set(props: any, propval?: any): any;
|
|
69
|
-
getState(property: any): any;
|
|
70
|
-
setState(props: any, propval?: any): any;
|
|
71
|
-
get model(): any;
|
|
72
|
-
get state(): any;
|
|
73
|
-
get hierarchy(): any;
|
|
74
|
-
get volatile(): never[];
|
|
75
|
-
_applyProps(target: any, props: any, options: any): any;
|
|
76
|
-
move(offset: {
|
|
77
|
-
x: number;
|
|
78
|
-
y: number;
|
|
79
|
-
}, ...args: boolean[]): void;
|
|
80
|
-
symmetryX(x?: number): void;
|
|
81
|
-
symmetryY(y: number): void;
|
|
82
|
-
adjustResize(bounds: import("@hatiolab/things-scene").BOUNDS, origin_bounds: import("@hatiolab/things-scene").BOUNDS, diagonal: boolean): any;
|
|
83
|
-
adjustRotation(rotation: number, step: boolean): any;
|
|
84
|
-
outline(progress: number): any;
|
|
85
|
-
get center(): import("@hatiolab/things-scene").POINT;
|
|
86
|
-
set center(p: import("@hatiolab/things-scene").POINT): any;
|
|
87
|
-
get location(): import("@hatiolab/things-scene").POINT;
|
|
88
|
-
set location(l: import("@hatiolab/things-scene").POINT): any;
|
|
89
|
-
get rotate(): import("@hatiolab/things-scene").POINT;
|
|
90
|
-
set rotate(r: import("@hatiolab/things-scene").POINT): any;
|
|
91
|
-
get dimension(): import("@hatiolab/things-scene").DIMENSION;
|
|
92
|
-
set dimension(d: import("@hatiolab/things-scene").DIMENSION): any;
|
|
93
|
-
get drawPath(): import("@hatiolab/things-scene").POINT[];
|
|
94
|
-
get rotatePoint(): import("@hatiolab/things-scene").POINT;
|
|
95
|
-
get mutable(): boolean;
|
|
96
|
-
get resizable(): boolean;
|
|
97
|
-
get rotatable(): boolean;
|
|
98
|
-
buildRealObject(): import("@hatiolab/things-scene").IRealObject | undefined;
|
|
99
|
-
get realObject(): import("@hatiolab/things-scene").IRealObject | undefined;
|
|
100
|
-
draw(context?: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
101
|
-
prerender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
102
|
-
postrender(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
103
|
-
prepare(resolve: (component: Component) => void, reject: (reason: any) => void): void;
|
|
104
|
-
prepareIf(condition: boolean): void;
|
|
105
|
-
drawText(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
106
|
-
drawStroke(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
107
|
-
drawFill(context: import("@hatiolab/things-scene").SceneRenderContext, override?: Record<string, unknown>): void;
|
|
108
|
-
get strokeStyle(): any;
|
|
109
|
-
set strokeStyle(v: any): any;
|
|
110
|
-
get fillStyle(): any;
|
|
111
|
-
set fillStyle(v: any): any;
|
|
112
|
-
get fontColor(): string;
|
|
113
|
-
set fontColor(v: string): any;
|
|
114
|
-
get rotation(): number;
|
|
115
|
-
set rotation(v: number): any;
|
|
116
|
-
get decorators(): string[];
|
|
117
|
-
get decotag(): string;
|
|
118
|
-
get hidden(): boolean;
|
|
119
|
-
set hidden(v: boolean): any;
|
|
120
|
-
get tag(): string;
|
|
121
|
-
set tag(v: string): any;
|
|
122
|
-
get appendum(): any;
|
|
123
|
-
set appendum(v: any): any;
|
|
124
|
-
defaultTextSubstitutor(): any;
|
|
125
|
-
textLines(context?: import("@hatiolab/things-scene").SceneRenderContext): any;
|
|
126
|
-
get font(): string;
|
|
127
|
-
get lineHeight(): number;
|
|
128
|
-
get textSubstitutor(): () => string;
|
|
129
|
-
get text(): string;
|
|
130
|
-
set text(v: string): any;
|
|
131
|
-
get textBounds(): import("@hatiolab/things-scene").BOUNDS;
|
|
132
|
-
get textRotation(): number;
|
|
133
|
-
get textHidden(): boolean;
|
|
134
|
-
set textHidden(v: boolean): any;
|
|
135
|
-
get hasTextProperty(): boolean;
|
|
136
|
-
animate(opts: import("@hatiolab/things-scene/dist-types/animation/interfaces").AnimationConfig): any;
|
|
137
|
-
effect(context: import("@hatiolab/things-scene").SceneRenderContext, model: any): any;
|
|
138
|
-
serialize(...others: any[]): any;
|
|
139
|
-
trim(): void;
|
|
140
|
-
closeScene(data: any): void;
|
|
141
|
-
delta(attr?: string | object, value?: any): any;
|
|
142
|
-
invalidate(): void;
|
|
143
|
-
get value(): any;
|
|
144
|
-
set value(v: any): any;
|
|
145
|
-
get data(): any;
|
|
146
|
-
set data(v: any): any;
|
|
147
|
-
set tap(v: any): any;
|
|
148
|
-
get mappings(): any[];
|
|
149
|
-
get retention(): number;
|
|
150
|
-
get animation(): import("@hatiolab/things-scene/dist-types/animation/interfaces").AnimationController | undefined;
|
|
151
|
-
get started(): boolean;
|
|
152
|
-
set started(v: boolean): any;
|
|
153
|
-
get controls(): import("@hatiolab/things-scene").Control[] | undefined;
|
|
154
|
-
findFirst(finder: string | ((c: Component) => boolean), ...others: any[]): any;
|
|
155
|
-
findAll(s: string | ((c: Component) => boolean), ...others: any[]): any;
|
|
156
|
-
capture(x: number, y: number, except?: (c: Component) => boolean): any;
|
|
157
|
-
findAnchor(name: string): any;
|
|
158
|
-
isDescendible(container: Component): any;
|
|
159
|
-
getContext(component?: unknown): any;
|
|
160
|
-
get root(): Component;
|
|
161
|
-
get rootModel(): Component;
|
|
162
|
-
get parent(): Component;
|
|
163
|
-
set parent(v: Component): any;
|
|
164
|
-
get scalable(): boolean;
|
|
165
|
-
get stuck(): boolean;
|
|
166
|
-
get capturable(): boolean;
|
|
167
|
-
get position(): string;
|
|
168
|
-
get origin(): string;
|
|
169
|
-
get offset(): import("@hatiolab/things-scene").POINT;
|
|
170
|
-
get app(): import("@hatiolab/things-scene").ApplicationContext;
|
|
171
|
-
drawEffect(context: import("@hatiolab/things-scene").SceneRenderContext): void;
|
|
172
|
-
prepareFill(resolve: Function, reject: Function): void;
|
|
173
|
-
prepareFillIf(condition: boolean): void;
|
|
174
|
-
onchangeFill(after: Record<string, any>, before: Record<string, any>): void;
|
|
175
|
-
drawImage(context: import("@hatiolab/things-scene").SceneRenderContext, image: HTMLImageElement, left: number, top: number, width: number, height: number): void;
|
|
176
|
-
mutateBounds(logic: ((bounds: import("@hatiolab/things-scene").BOUNDS) => import("@hatiolab/things-scene").BOUNDS | void) | null, context?: any): void;
|
|
177
|
-
mutatePath(beforeLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, afterLogic: ((path: import("@hatiolab/things-scene").POINT[]) => import("@hatiolab/things-scene").POINT[] | void) | null, context?: any): void;
|
|
178
|
-
access(accessor: string, data: any): any;
|
|
179
|
-
substitute(template: string, data: any): any;
|
|
180
|
-
onchangeMappings(after: Record<string, any>, before: Record<string, any>): void;
|
|
181
|
-
onchangeData(after: Record<string, any>, before: Record<string, any>): void;
|
|
182
|
-
buildMappings(): void;
|
|
183
|
-
executeMappings(force?: boolean): void;
|
|
184
|
-
disposeMappings(): void;
|
|
185
|
-
ondropfile(transfered: FileList, files: string[]): void;
|
|
186
|
-
transcoordS2P(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
187
|
-
transcoordP2S(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
188
|
-
transcoordS2T(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
189
|
-
transcoordT2P(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
190
|
-
transcoordT2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
191
|
-
transcoordS2TR(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
192
|
-
transcoordS2O(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
193
|
-
transcoordC2S(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
194
|
-
transcoordS2C(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
195
|
-
toParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
196
|
-
fromParent(x: number, y: number, rp?: import("@hatiolab/things-scene").POINT): import("@hatiolab/things-scene").POINT;
|
|
197
|
-
toScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
198
|
-
fromScene(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
199
|
-
toLocal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
200
|
-
toGlobal(x: number, y: number, top?: Component): import("@hatiolab/things-scene").POINT;
|
|
201
|
-
toOther(x: number, y: number, target: Component): import("@hatiolab/things-scene").POINT;
|
|
202
|
-
on(name: string | object, callback: Function, context?: any): any;
|
|
203
|
-
off(name?: string | object, callback?: Function, context?: any): any;
|
|
204
|
-
once(name: string | object, callback: Function, context?: any): any;
|
|
205
|
-
trigger(name: string, ...args: any[]): any;
|
|
206
|
-
delegate_on(delegator: any): any;
|
|
207
|
-
delegate_off(delegator: any): any;
|
|
208
|
-
onchange(after: Record<string, any>, before: Record<string, any>): void;
|
|
209
|
-
calculateBounds?(): void;
|
|
210
|
-
oncreate_element?(element: HTMLElement): void;
|
|
211
|
-
removeComponent(component: Component, ghost?: boolean): void;
|
|
212
|
-
addComponent(component: Component, ghost?: boolean): void;
|
|
213
|
-
insertComponentAt(component: Component, index: number, ghost?: boolean): void;
|
|
214
|
-
getOverlay(component: Component): HTMLElement | undefined;
|
|
215
|
-
findById(id: string): Component | undefined;
|
|
216
|
-
findByRefid(ref: string | number): Component | undefined;
|
|
217
|
-
findAllById(id: string): Component[];
|
|
218
|
-
resize(): void;
|
|
219
|
-
fit(type?: string): void;
|
|
220
|
-
get components(): Component[] | undefined;
|
|
221
|
-
get layout(): any;
|
|
222
|
-
get auxOverlay(): HTMLElement | undefined;
|
|
223
|
-
get isReady(): boolean;
|
|
224
|
-
get unitScale(): number;
|
|
225
|
-
get selected(): Component[];
|
|
226
|
-
set selected(_v: Component[]): any;
|
|
227
|
-
get focused(): Component | null;
|
|
228
|
-
set focused(_v: Component | null): any;
|
|
229
|
-
get hasSameParentForAllSelected(): boolean;
|
|
230
|
-
set hasSameParentForAllSelected(_v: boolean): any;
|
|
231
|
-
get fitMode(): string | undefined;
|
|
232
|
-
set fitMode(_v: string | undefined): any;
|
|
233
|
-
get element(): HTMLElement | null;
|
|
234
|
-
set element(_v: HTMLElement | null): any;
|
|
235
|
-
}) & typeof Shape;
|
|
236
|
-
export declare class Cube extends Cube_base {
|
|
237
|
-
is3dish(): boolean;
|
|
238
|
-
buildRealObject(): RealObject | undefined;
|
|
239
|
-
get nature(): ComponentNature;
|
|
240
|
-
}
|
|
241
|
-
export {};
|
package/dist/cube.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright © HatioLab Inc. All rights reserved.
|
|
4
|
-
*/
|
|
5
|
-
import { RectPath, Shape, sceneComponent, RealObjectMesh } from '@hatiolab/things-scene';
|
|
6
|
-
import * as THREE from 'three';
|
|
7
|
-
const NATURE = {
|
|
8
|
-
mutable: false,
|
|
9
|
-
resizable: true,
|
|
10
|
-
rotatable: true,
|
|
11
|
-
properties: [],
|
|
12
|
-
help: 'scene/component/cube'
|
|
13
|
-
};
|
|
14
|
-
export class Cube3D extends RealObjectMesh {
|
|
15
|
-
buildGeometry() {
|
|
16
|
-
var { width = 0, height = 0, depth = 0 } = this.component.state;
|
|
17
|
-
let geometry = new THREE.BoxGeometry(1, 1, 1);
|
|
18
|
-
geometry.scale(width, depth, height);
|
|
19
|
-
this.object3d.geometry = geometry;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
let Cube = class Cube extends RectPath(Shape) {
|
|
23
|
-
is3dish() {
|
|
24
|
-
return true;
|
|
25
|
-
}
|
|
26
|
-
buildRealObject() {
|
|
27
|
-
return new Cube3D(this);
|
|
28
|
-
}
|
|
29
|
-
get nature() {
|
|
30
|
-
return NATURE;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
Cube = __decorate([
|
|
34
|
-
sceneComponent('cube')
|
|
35
|
-
], Cube);
|
|
36
|
-
export { Cube };
|
|
37
|
-
//# sourceMappingURL=cube.js.map
|
package/dist/cube.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cube.js","sourceRoot":"","sources":["../src/cube.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAA8B,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAc,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAChI,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,EAAE;IACd,IAAI,EAAE,sBAAsB;CAC7B,CAAA;AAED,MAAM,OAAO,MAAO,SAAQ,cAAc;IACxC,aAAa;QACX,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAA;QAE/D,IAAI,QAAQ,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QAC7C,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAEpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAA;IACnC,CAAC;CACF;AAGM,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,QAAQ,CAAC,KAAK,CAAC;IACvC,OAAO;QACL,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe;QACb,OAAO,IAAI,MAAM,CAAC,IAAW,CAAC,CAAA;IAChC,CAAC;IAED,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA;AAZY,IAAI;IADhB,cAAc,CAAC,MAAM,CAAC;GACV,IAAI,CAYhB","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\nimport { Component, ComponentNature, RectPath, Shape, sceneComponent, RealObject, RealObjectMesh } from '@hatiolab/things-scene'\nimport * as THREE from 'three'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [],\n help: 'scene/component/cube'\n}\n\nexport class Cube3D extends RealObjectMesh {\n buildGeometry() {\n var { width = 0, height = 0, depth = 0 } = this.component.state\n\n let geometry = new THREE.BoxGeometry(1, 1, 1)\n geometry.scale(width, depth, height)\n\n this.object3d.geometry = geometry\n }\n}\n\n@sceneComponent('cube')\nexport class Cube extends RectPath(Shape) {\n is3dish() {\n return true\n }\n\n buildRealObject(): RealObject | undefined {\n return new Cube3D(this as any)\n }\n\n get nature() {\n return NATURE\n }\n}\n"]}
|
package/dist/cylinder.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentNature, Ellipse, RealObject, RealObjectMesh } from '@hatiolab/things-scene';
|
|
2
|
-
export declare class Cylinder3D extends RealObjectMesh {
|
|
3
|
-
buildGeometry(): void;
|
|
4
|
-
}
|
|
5
|
-
export declare class Cylinder extends Ellipse {
|
|
6
|
-
is3dish(): boolean;
|
|
7
|
-
buildRealObject(): RealObject | undefined;
|
|
8
|
-
get nature(): ComponentNature;
|
|
9
|
-
}
|