@smarterplan/ngx-smarterplan-core 1.2.0 → 1.2.1
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/esm2020/lib/matterport-extensions/nest-thermostat/CanvasImage.mjs +51 -0
- package/esm2020/lib/matterport-extensions/nest-thermostat/CanvasRenderer.mjs +62 -0
- package/esm2020/lib/matterport-extensions/nest-thermostat/NestThermostat.mjs +158 -0
- package/esm2020/lib/matterport-extensions/nest-thermostat/PlaneRenderer.mjs +85 -0
- package/esm2020/lib/matterport-extensions/scene-component/SceneComponent.mjs +1 -1
- package/esm2020/lib/matterport-extensions/security-camera/SecurityCamera.mjs +22 -22
- package/esm2020/lib/services/matterport.service.mjs +39 -7
- package/esm2020/lib/services/models/object3D.service.mjs +1 -1
- package/esm2020/lib/services/models/poi.service.mjs +1 -1
- package/esm2020/lib/services/viewer.service.mjs +1 -1
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs +355 -28
- package/fesm2015/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs +355 -28
- package/fesm2020/smarterplan-ngx-smarterplan-core.mjs.map +1 -1
- package/lib/matterport-extensions/nest-thermostat/CanvasImage.d.ts +31 -0
- package/lib/matterport-extensions/nest-thermostat/CanvasImage.d.ts.map +1 -0
- package/lib/matterport-extensions/nest-thermostat/CanvasRenderer.d.ts +38 -0
- package/lib/matterport-extensions/nest-thermostat/CanvasRenderer.d.ts.map +1 -0
- package/lib/matterport-extensions/nest-thermostat/NestThermostat.d.ts +42 -0
- package/lib/matterport-extensions/nest-thermostat/NestThermostat.d.ts.map +1 -0
- package/lib/matterport-extensions/nest-thermostat/PlaneRenderer.d.ts +46 -0
- package/lib/matterport-extensions/nest-thermostat/PlaneRenderer.d.ts.map +1 -0
- package/lib/services/matterport.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2020/lib/matterport-extensions/common/src/SceneComponent.mjs +0 -128
- package/esm2020/lib/matterport-extensions/common/src/sdk-components/OrientedBox.mjs +0 -145
- package/esm2020/lib/matterport-extensions/core/src/index.mjs +0 -4
- package/esm2020/lib/matterport-extensions/core/src/observable/Observable.mjs +0 -167
- package/esm2020/lib/matterport-extensions/core/src/observable/ObservableValue.mjs +0 -38
- package/esm2020/lib/matterport-extensions/core/src/subscription/ISubscription.mjs +0 -2
- package/esm2020/lib/matterport-extensions/core/src/types.mjs +0 -2
- package/esm2020/lib/matterport-extensions/core/src/util/index.mjs +0 -165
- package/lib/matterport-extensions/common/src/SceneComponent.d.ts +0 -388
- package/lib/matterport-extensions/common/src/SceneComponent.d.ts.map +0 -1
- package/lib/matterport-extensions/common/src/sdk-components/OrientedBox.d.ts +0 -44
- package/lib/matterport-extensions/common/src/sdk-components/OrientedBox.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/index.d.ts +0 -4
- package/lib/matterport-extensions/core/src/index.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/observable/Observable.d.ts +0 -94
- package/lib/matterport-extensions/core/src/observable/Observable.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/observable/ObservableValue.d.ts +0 -21
- package/lib/matterport-extensions/core/src/observable/ObservableValue.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/subscription/ISubscription.d.ts +0 -26
- package/lib/matterport-extensions/core/src/subscription/ISubscription.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/types.d.ts +0 -10
- package/lib/matterport-extensions/core/src/types.d.ts.map +0 -1
- package/lib/matterport-extensions/core/src/util/index.d.ts +0 -31
- package/lib/matterport-extensions/core/src/util/index.d.ts.map +0 -1
|
@@ -1,388 +0,0 @@
|
|
|
1
|
-
import THREE, { Scene } from 'three';
|
|
2
|
-
import { Dict } from '../../core/src';
|
|
3
|
-
/**
|
|
4
|
-
* The base of all `SceneComponent` created with the sdk.
|
|
5
|
-
* All properties of this class are always available to all components generated through the sdk.
|
|
6
|
-
* These properties should all be considered reserved and should not be overwritten by the subclass.
|
|
7
|
-
*/
|
|
8
|
-
declare abstract class SceneComponentPrivate {
|
|
9
|
-
/**
|
|
10
|
-
* @reserved
|
|
11
|
-
* The name registered to the factory used to generate this component.
|
|
12
|
-
*/
|
|
13
|
-
readonly componentType: string;
|
|
14
|
-
/**
|
|
15
|
-
* @reserved
|
|
16
|
-
* A dictionary of properties that this component computes. Every component is guaranteed to have `outputs.collider` and `outputs.objectRoot`.
|
|
17
|
-
* This dictionary is observable and can be the source of a bind target.
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
outputs: ComponentOutput;
|
|
21
|
-
/**
|
|
22
|
-
* @reserved
|
|
23
|
-
* A dictionary of events that will be handled by this component's `onEvent`. Every component is guaranteed to have all of the `InteractionSelection` keys:
|
|
24
|
-
* `events[InteractionSelection.CLICK]`, `events[InteractionSelection.HOVER]`, `events[InteractionSelection.DRAG]`
|
|
25
|
-
* Note: registering to receive `InteractionSelection.HOVER` will produce both `InteractionType.HOVER` and `InteractionType.UNHOVER` in `onEvent`.
|
|
26
|
-
*/
|
|
27
|
-
events: Dict<boolean>;
|
|
28
|
-
/**
|
|
29
|
-
* @reserved
|
|
30
|
-
* The context provides access to the underlying framework, e.g. THREE.js.
|
|
31
|
-
*/
|
|
32
|
-
context: ComponentContext;
|
|
33
|
-
/**
|
|
34
|
-
* @reserved
|
|
35
|
-
* Binds `this[prop]` to the output of `src[srcProp]`.
|
|
36
|
-
* When the value of `src[srcProp]` changes, the value is propagated and sets `this[prop]` to the same value automatically.
|
|
37
|
-
*/
|
|
38
|
-
bind: (prop: string, src: SceneComponent['outputs' | 'inputs'], srcProp: keyof SceneComponent['outputs' | 'inputs']) => void;
|
|
39
|
-
/**
|
|
40
|
-
* @reserved
|
|
41
|
-
* Notifies this component of an `eventType` when the `src` Component calls `notify` with a `srcEventType` event
|
|
42
|
-
*/
|
|
43
|
-
bindEvent: (eventType: string, src: SceneComponent, srcEventType: string) => void;
|
|
44
|
-
/**
|
|
45
|
-
* @reserved
|
|
46
|
-
* Notifies any event bindings of an event with `eventType` and data `eventData`
|
|
47
|
-
*/
|
|
48
|
-
notify: (eventType: string, eventData?: unknown) => void;
|
|
49
|
-
/**
|
|
50
|
-
* @reserved
|
|
51
|
-
* Spy on a component's notify from outside of the component system
|
|
52
|
-
*/
|
|
53
|
-
spyOnEvent: (spy: IComponentEventSpy) => ISubscription;
|
|
54
|
-
}
|
|
55
|
-
export declare abstract class SceneComponent extends SceneComponentPrivate {
|
|
56
|
-
/**
|
|
57
|
-
* An optional dictionary of properties that affects the behavior of the component.
|
|
58
|
-
* The properties can be changed by an external source at any time. It is up to the component to respond appropriately to the changes.
|
|
59
|
-
* The input properties can also be bind targets to another observable source, e.g. the output property of another component.
|
|
60
|
-
*/
|
|
61
|
-
inputs?: Dict;
|
|
62
|
-
/**
|
|
63
|
-
* This event is called once after the scene node its attached to has started.
|
|
64
|
-
*/
|
|
65
|
-
onInit?(): void;
|
|
66
|
-
/**
|
|
67
|
-
* This event is called at most once per frame when there are events on this component.
|
|
68
|
-
* Any of the interaction types specified in `this.interactions` or a call to notify for a bound event will trigger this event.
|
|
69
|
-
* @property {string | ComponentInteractionType} eventType The event type
|
|
70
|
-
* @property {unknown} eventData The data payload of the event
|
|
71
|
-
*/
|
|
72
|
-
onEvent?(eventType: string, eventData: unknown): void;
|
|
73
|
-
/**
|
|
74
|
-
* This event is called after an input property has changed.
|
|
75
|
-
* It will be called at most once a frame.
|
|
76
|
-
*/
|
|
77
|
-
onInputsUpdated?(previousInputs: this['inputs']): void;
|
|
78
|
-
/**
|
|
79
|
-
* This event is called once a frame after input changes have been detected.
|
|
80
|
-
*/
|
|
81
|
-
onTick?(tickDelta: number): void;
|
|
82
|
-
/**
|
|
83
|
-
* @reserved
|
|
84
|
-
* A dictionary of events that will be handled by this component's `onEvent`. Every component is guaranteed to have all of the `InteractionSelection` keys:
|
|
85
|
-
* `events[InteractionSelection.CLICK]`, `events[InteractionSelection.HOVER]`, `events[InteractionSelection.DRAG]`
|
|
86
|
-
* Note: registering to receive `InteractionSelection.HOVER` will produce both `InteractionType.HOVER` and `InteractionType.UNHOVER` in `onEvent`.
|
|
87
|
-
*/
|
|
88
|
-
events: Record<string, boolean>;
|
|
89
|
-
/**
|
|
90
|
-
* @reserved
|
|
91
|
-
* A dictionary of events that will be emitted by this component.
|
|
92
|
-
*/
|
|
93
|
-
emits?: Record<string, boolean>;
|
|
94
|
-
/**
|
|
95
|
-
* This event is called once right before the scene node has stopped.
|
|
96
|
-
*/
|
|
97
|
-
onDestroy?(): void;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* A node of a scene graph.
|
|
101
|
-
* Aggregates `SceneComponent` as children.
|
|
102
|
-
*/
|
|
103
|
-
export interface ISceneNode {
|
|
104
|
-
/**
|
|
105
|
-
* A human readable name provided by the user.
|
|
106
|
-
*/
|
|
107
|
-
name: string;
|
|
108
|
-
/**
|
|
109
|
-
* The position of the node.
|
|
110
|
-
* The position, quaternion, scale transforms are applied in scale, quaternion, then scale order. (same as THREE.js)
|
|
111
|
-
*/
|
|
112
|
-
readonly position: THREE.Vector3;
|
|
113
|
-
/**
|
|
114
|
-
* The orientation of the node.
|
|
115
|
-
* The position, quaternion, scale transforms are applied in scale, quaternion, then scale order. (same as THREE.js)
|
|
116
|
-
*/
|
|
117
|
-
readonly quaternion: THREE.Quaternion;
|
|
118
|
-
/**
|
|
119
|
-
* The scale of the node.
|
|
120
|
-
* The position, quaternion, scale transforms are applied in scale, quaternion, then scale order. (same as THREE.js)
|
|
121
|
-
*/
|
|
122
|
-
readonly scale: THREE.Vector3;
|
|
123
|
-
/**
|
|
124
|
-
* Create and add a child component to this node.
|
|
125
|
-
*
|
|
126
|
-
* @param factory The name associated with the factory to generate a `SceneComponent`
|
|
127
|
-
* @param initialInputs An initial set of inputs, immediately available to the newly create `SceneComponent.onInit`
|
|
128
|
-
*/
|
|
129
|
-
addComponent(factory: string, initialInputs?: SceneComponent['inputs']): SceneComponent;
|
|
130
|
-
/**
|
|
131
|
-
* An iterator to iterate over the components added to this node using a for-of loop.
|
|
132
|
-
*/
|
|
133
|
-
componentIterator(): IterableIterator<SceneComponent>;
|
|
134
|
-
/**
|
|
135
|
-
* Start the node and its components.
|
|
136
|
-
*/
|
|
137
|
-
start(): void;
|
|
138
|
-
/**
|
|
139
|
-
* Stop the node and its components.
|
|
140
|
-
*/
|
|
141
|
-
stop(): void;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* The types of the Interaction events received from the registered `InteractionSelection`
|
|
145
|
-
*/
|
|
146
|
-
export declare enum ComponentInteractionType {
|
|
147
|
-
/** CLICK events */
|
|
148
|
-
CLICK = "INTERACTION.CLICK",
|
|
149
|
-
/** HOVER events */
|
|
150
|
-
HOVER = "INTERACTION.HOVER",
|
|
151
|
-
/** DRAG events (mousedown then move) */
|
|
152
|
-
DRAG = "INTERACTION.DRAG",
|
|
153
|
-
DRAG_BEGIN = "INTERACTION.DRAG_BEGIN",
|
|
154
|
-
DRAG_END = "INTERACTION.DRAG_END",
|
|
155
|
-
POINTER_MOVE = "INTERACTION.POINTER_MOVE",
|
|
156
|
-
POINTER_BUTTON = "INTERACTION.POINTER_BUTTON",
|
|
157
|
-
SCROLL = "INTERACTION.SCROLL",
|
|
158
|
-
KEY = "INTERACTION.KEY",
|
|
159
|
-
LONG_PRESS_START = "INTERACTION.LONG_PRESS_START",
|
|
160
|
-
LONG_PRESS_END = "INTERACTION.LONG_PRESS_END",
|
|
161
|
-
MULTI_SWIPE = "INTERACTION.MULTI_SWIPE",
|
|
162
|
-
MULTI_SWIPE_END = "INTERACTION.MULTI_SWIPE_END",
|
|
163
|
-
PINCH = "INTERACTION.PINCH",
|
|
164
|
-
PINCH_END = "INTERACTION.PINCH_END",
|
|
165
|
-
ROTATE = "INTERACTION.ROTATE",
|
|
166
|
-
ROTATE_END = "INTERACTION.ROTATE_END"
|
|
167
|
-
}
|
|
168
|
-
declare abstract class ComponentOutputReserved {
|
|
169
|
-
objectRoot: THREE.Object3D | null;
|
|
170
|
-
collider: THREE.Object3D | null;
|
|
171
|
-
}
|
|
172
|
-
interface ComponentOut extends Dict {
|
|
173
|
-
}
|
|
174
|
-
declare class ComponentOut extends ComponentOutputReserved {
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* A general-use bag of properties.
|
|
178
|
-
* At a minimum, it has `objectRoot` and `collider` automatically defined.
|
|
179
|
-
*/
|
|
180
|
-
export declare type ComponentOutput = ComponentOut;
|
|
181
|
-
/**
|
|
182
|
-
* The context of a component (available as `this.context`) in a `SceneComponent` subclass.
|
|
183
|
-
* Access to the root `ISceneNode` and the THREE.js are available.
|
|
184
|
-
*/
|
|
185
|
-
export declare type ComponentContext = {
|
|
186
|
-
three: typeof THREE;
|
|
187
|
-
root: ISceneNode;
|
|
188
|
-
renderer: THREE.WebGLRenderer;
|
|
189
|
-
user: Dict;
|
|
190
|
-
scene: Scene;
|
|
191
|
-
};
|
|
192
|
-
/**
|
|
193
|
-
* A raycast intersection with a mesh
|
|
194
|
-
*/
|
|
195
|
-
export declare type Intersect = {
|
|
196
|
-
point: THREE.Vector3;
|
|
197
|
-
normal: THREE.Vector3;
|
|
198
|
-
collider: THREE.Object3D;
|
|
199
|
-
};
|
|
200
|
-
/**
|
|
201
|
-
* A spy that can be attached to a component using `spyOnEvent`
|
|
202
|
-
*/
|
|
203
|
-
export interface IComponentEventSpy<T = unknown> {
|
|
204
|
-
readonly eventType: string;
|
|
205
|
-
onEvent(eventData?: T): void;
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* An object responsible for removing a spy from a component's event
|
|
209
|
-
*/
|
|
210
|
-
export interface ISubscription {
|
|
211
|
-
cancel(): void;
|
|
212
|
-
}
|
|
213
|
-
export interface IVector2 {
|
|
214
|
-
x: number;
|
|
215
|
-
y: number;
|
|
216
|
-
}
|
|
217
|
-
export interface IVector3 {
|
|
218
|
-
x: number;
|
|
219
|
-
y: number;
|
|
220
|
-
z: number;
|
|
221
|
-
}
|
|
222
|
-
export declare enum PointerButton {
|
|
223
|
-
PRIMARY = 0,
|
|
224
|
-
MIDDLE = 1,
|
|
225
|
-
SECONDARY = 2,
|
|
226
|
-
BACK = 3,
|
|
227
|
-
FORWARD = 4,
|
|
228
|
-
COUNT = 5
|
|
229
|
-
}
|
|
230
|
-
export declare enum PointerButtonMask {
|
|
231
|
-
NONE = 0,
|
|
232
|
-
PRIMARY = 1,
|
|
233
|
-
SECONDARY = 4,
|
|
234
|
-
MIDDLE = 2,
|
|
235
|
-
BACK = 8,
|
|
236
|
-
FORWARD = 16,
|
|
237
|
-
ALL = 31
|
|
238
|
-
}
|
|
239
|
-
export declare enum PointerDevice {
|
|
240
|
-
MOUSE = "mouse",
|
|
241
|
-
TOUCH = "touch",
|
|
242
|
-
PEN = "pen",
|
|
243
|
-
GAMEPAD = "gamepad"
|
|
244
|
-
}
|
|
245
|
-
/**
|
|
246
|
-
* Fired on every mouse down, provides current position/buttons down.
|
|
247
|
-
*/
|
|
248
|
-
export interface DragBeginEvent {
|
|
249
|
-
/** Current position */
|
|
250
|
-
readonly position: IVector2;
|
|
251
|
-
/** Buttons down during event */
|
|
252
|
-
readonly buttons: PointerButtonMask;
|
|
253
|
-
}
|
|
254
|
-
/**
|
|
255
|
-
* Fired only after the pointer has moved far enough from DragBeginEvent
|
|
256
|
-
*/
|
|
257
|
-
export interface DragEvent {
|
|
258
|
-
/** Current position */
|
|
259
|
-
readonly position: IVector2;
|
|
260
|
-
/** Delta moved since last drag event */
|
|
261
|
-
readonly delta: IVector2;
|
|
262
|
-
/** Buttons down during event */
|
|
263
|
-
readonly buttons: PointerButtonMask;
|
|
264
|
-
}
|
|
265
|
-
/**
|
|
266
|
-
* Fired on every mouse up, includes information about the difference between the DragBegin and current positions
|
|
267
|
-
*/
|
|
268
|
-
export interface DragEndEvent extends DragEvent {
|
|
269
|
-
/** duration since last DragEvent */
|
|
270
|
-
readonly timeSinceLastMove: number;
|
|
271
|
-
/** The delta between position, and the position from DragBeginEvent */
|
|
272
|
-
readonly fullDelta: IVector2;
|
|
273
|
-
}
|
|
274
|
-
export interface PointerMoveEvent {
|
|
275
|
-
readonly id: number;
|
|
276
|
-
readonly position: IVector2;
|
|
277
|
-
readonly buttons: PointerButtonMask;
|
|
278
|
-
readonly device: PointerDevice;
|
|
279
|
-
}
|
|
280
|
-
export interface PointerButtonEvent {
|
|
281
|
-
readonly id: number;
|
|
282
|
-
readonly position: IVector2;
|
|
283
|
-
readonly button: PointerButton;
|
|
284
|
-
readonly down: boolean;
|
|
285
|
-
readonly device: PointerDevice;
|
|
286
|
-
}
|
|
287
|
-
export interface ScrollEvent {
|
|
288
|
-
readonly position: IVector2;
|
|
289
|
-
readonly delta: IVector2;
|
|
290
|
-
}
|
|
291
|
-
export declare enum KeyState {
|
|
292
|
-
DOWN = 0,
|
|
293
|
-
PRESSED = 1,
|
|
294
|
-
UP = 2
|
|
295
|
-
}
|
|
296
|
-
export declare enum Keys {
|
|
297
|
-
ESCAPE = 27,
|
|
298
|
-
ZERO = 48,
|
|
299
|
-
ONE = 49,
|
|
300
|
-
TWO = 50,
|
|
301
|
-
THREE = 51,
|
|
302
|
-
FOUR = 52,
|
|
303
|
-
FIVE = 53,
|
|
304
|
-
SIX = 54,
|
|
305
|
-
SEVEN = 55,
|
|
306
|
-
EIGHT = 56,
|
|
307
|
-
NINE = 57,
|
|
308
|
-
LEFTARROW = 37,
|
|
309
|
-
UPARROW = 38,
|
|
310
|
-
RIGHTARROW = 39,
|
|
311
|
-
DOWNARROW = 40,
|
|
312
|
-
TAB = 9,
|
|
313
|
-
A = 65,
|
|
314
|
-
B = 66,
|
|
315
|
-
C = 67,
|
|
316
|
-
D = 68,
|
|
317
|
-
E = 69,
|
|
318
|
-
F = 70,
|
|
319
|
-
G = 71,
|
|
320
|
-
H = 72,
|
|
321
|
-
I = 73,
|
|
322
|
-
J = 74,
|
|
323
|
-
K = 75,
|
|
324
|
-
L = 76,
|
|
325
|
-
M = 77,
|
|
326
|
-
N = 78,
|
|
327
|
-
O = 79,
|
|
328
|
-
P = 80,
|
|
329
|
-
Q = 81,
|
|
330
|
-
R = 82,
|
|
331
|
-
S = 83,
|
|
332
|
-
T = 84,
|
|
333
|
-
U = 85,
|
|
334
|
-
V = 86,
|
|
335
|
-
W = 87,
|
|
336
|
-
X = 88,
|
|
337
|
-
Y = 89,
|
|
338
|
-
Z = 90,
|
|
339
|
-
SPACE = 32,
|
|
340
|
-
RETURN = 13,
|
|
341
|
-
DELETE = 46,
|
|
342
|
-
BACKSPACE = 8,
|
|
343
|
-
SEMICOLON = 186,
|
|
344
|
-
PLUSEQUALS = 187,
|
|
345
|
-
DASHUNDERSCORE = 189,
|
|
346
|
-
OPENBRACKET = 219,
|
|
347
|
-
SHIFT = 16,
|
|
348
|
-
ALT = 18,
|
|
349
|
-
CONTROL = 17
|
|
350
|
-
}
|
|
351
|
-
export interface KeyEvent {
|
|
352
|
-
key: Keys;
|
|
353
|
-
state: KeyState;
|
|
354
|
-
modifiers: {
|
|
355
|
-
altKey: boolean;
|
|
356
|
-
shiftKey: boolean;
|
|
357
|
-
ctrlKey: boolean;
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
export interface LongPressStartEvent {
|
|
361
|
-
readonly position: IVector2;
|
|
362
|
-
readonly buttons: PointerButtonMask;
|
|
363
|
-
readonly threshold: number;
|
|
364
|
-
}
|
|
365
|
-
export interface LongPressEndEvent {
|
|
366
|
-
}
|
|
367
|
-
export interface MultiSwipeEvent {
|
|
368
|
-
readonly pointerCount: number;
|
|
369
|
-
readonly position: IVector2;
|
|
370
|
-
readonly delta: IVector2;
|
|
371
|
-
}
|
|
372
|
-
export interface MultiSwipeEndEvent extends MultiSwipeEvent {
|
|
373
|
-
readonly timeSinceLastMove: number;
|
|
374
|
-
}
|
|
375
|
-
export interface PinchEvent {
|
|
376
|
-
readonly pinchDelta: number;
|
|
377
|
-
}
|
|
378
|
-
export interface PinchEndEvent extends PinchEvent {
|
|
379
|
-
readonly timeSinceLastMove: number;
|
|
380
|
-
}
|
|
381
|
-
export interface RotateEvent {
|
|
382
|
-
readonly rotateDelta: number;
|
|
383
|
-
}
|
|
384
|
-
export interface RotateEndEvent extends RotateEvent {
|
|
385
|
-
readonly timeSinceLastMove: number;
|
|
386
|
-
}
|
|
387
|
-
export {};
|
|
388
|
-
//# sourceMappingURL=SceneComponent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SceneComponent.d.ts","sourceRoot":"","sources":["../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/common/src/SceneComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAEtC;;;;GAIG;AACH,uBAAe,qBAAqB;IAClC;;;OAGG;IACH,SAAiB,aAAa,EAAE,MAAM,CAAC;IAEvC;;;;;OAKG;IACK,OAAO,EAAE,eAAe,CAAC;IAEjC;;;;;OAKG;IACK,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9B;;;OAGG;IACK,OAAO,EAAE,gBAAgB,CAAC;IAElC;;;;OAIG;IACK,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,CAAC,SAAS,GAAG,QAAQ,CAAC,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC,SAAS,GAAG,QAAQ,CAAC,KAAK,IAAI,CAAC;IAErI;;;OAGG;IACK,SAAS,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IAE1F;;;OAGG;IACK,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjE;;;OAGG;IACK,UAAU,EAAE,CAAC,GAAG,EAAE,kBAAkB,KA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;CAC9B;AAED,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { SceneComponent, ComponentInteractionType, ISceneNode } from '../SceneComponent';
|
|
2
|
-
export interface IInteractionEvent {
|
|
3
|
-
type: ComponentInteractionType;
|
|
4
|
-
node: ISceneNode;
|
|
5
|
-
component: SceneComponent;
|
|
6
|
-
}
|
|
7
|
-
interface Inputs {
|
|
8
|
-
size: {
|
|
9
|
-
x: number;
|
|
10
|
-
y: number;
|
|
11
|
-
z: number;
|
|
12
|
-
};
|
|
13
|
-
color: number;
|
|
14
|
-
visible: boolean;
|
|
15
|
-
opacity: number;
|
|
16
|
-
transitionTime: number;
|
|
17
|
-
lineOpacity: number;
|
|
18
|
-
lineColor: number;
|
|
19
|
-
}
|
|
20
|
-
export declare class OrientedBox extends SceneComponent {
|
|
21
|
-
private root;
|
|
22
|
-
private box;
|
|
23
|
-
private edges;
|
|
24
|
-
private boxMixer;
|
|
25
|
-
private clipVisible;
|
|
26
|
-
private clipNotVisible;
|
|
27
|
-
private edgesClipVisible;
|
|
28
|
-
private edgesClipNotVisible;
|
|
29
|
-
inputs: Inputs;
|
|
30
|
-
events: {
|
|
31
|
-
"INTERACTION.CLICK": boolean;
|
|
32
|
-
"INTERACTION.HOVER": boolean;
|
|
33
|
-
"INTERACTION.DRAG": boolean;
|
|
34
|
-
};
|
|
35
|
-
onInit(): void;
|
|
36
|
-
onEvent(interactionType: ComponentInteractionType, eventData: unknown): void;
|
|
37
|
-
makeBox(): void;
|
|
38
|
-
onInputsUpdated(oldInputs: Inputs): void;
|
|
39
|
-
onTick(delta: number): void;
|
|
40
|
-
}
|
|
41
|
-
export declare const orientedBoxType = "mp.orientedBox";
|
|
42
|
-
export declare const makeOrientedBox: () => OrientedBox;
|
|
43
|
-
export {};
|
|
44
|
-
//# sourceMappingURL=OrientedBox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OrientedBox.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/common/src/sdk-components/OrientedBox.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEzF,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,wBAAwB,CAAC;IAC/B,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,cAAc,CAAC;CAC3B;AAED,UAAU,MAAM;IACd,IAAI,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;KAAE,CAAC;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CACnB;AAcD,qBAAa,WAAY,SAAQ,cAAc;IAC7C,OAAO,CAAC,IAAI,CAAyB;IACrC,OAAO,CAAC,GAAG,CAAqB;IAChC,OAAO,CAAC,KAAK,CAA6B;IAC1C,OAAO,CAAC,QAAQ,CAA+B;IAC/C,OAAO,CAAC,WAAW,CAA8B;IACjD,OAAO,CAAC,cAAc,CAA8B;IACpD,OAAO,CAAC,gBAAgB,CAA8B;IACtD,OAAO,CAAC,mBAAmB,CAA8B;IAEhD,MAAM,EAAE,MAAM,CAQrB;IAEO,MAAM;;;;MAIb;IAEO,MAAM;IAgBN,OAAO,CAAC,eAAe,EAAE,wBAAwB,EAAE,SAAS,EAAE,OAAO,GAAG,IAAI;IAerF,OAAO;IA8CE,eAAe,CAAC,SAAS,EAAE,MAAM;IAwCjC,MAAM,CAAC,KAAK,EAAE,MAAM;CAG9B;AAED,eAAO,MAAM,eAAe,mBAAmB,CAAC;AAChD,eAAO,MAAM,eAAe,mBAE3B,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,SAAS,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ISubscription } from '../subscription/ISubscription';
|
|
2
|
-
export declare type ChangeObserver<T = never> = (newValue: T) => void;
|
|
3
|
-
/**
|
|
4
|
-
* Observable: Let something subscribe to changes to something else
|
|
5
|
-
*
|
|
6
|
-
* Abstract base class for all the other Observable* classes. Implements
|
|
7
|
-
* the basic onChange(), notification and dirty concepts.
|
|
8
|
-
*/
|
|
9
|
-
export declare class Observable<T> {
|
|
10
|
-
readonly isObservable: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* Does this Observable have gossip to share with its observers?
|
|
13
|
-
*/
|
|
14
|
-
_dirtyObservable: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* If an Observable is active, it will immediately notify any listeners
|
|
17
|
-
* about its changes. It can be useful to set this to false while doing many changes together
|
|
18
|
-
*/
|
|
19
|
-
private _activeObservable;
|
|
20
|
-
/**
|
|
21
|
-
* Callbacks for when any property or element of this instance of Observable change
|
|
22
|
-
*/
|
|
23
|
-
private _changeObservers;
|
|
24
|
-
/**
|
|
25
|
-
* Observables which this Observable will propagate its changes to
|
|
26
|
-
*/
|
|
27
|
-
private _parentObservables;
|
|
28
|
-
private _childObservables;
|
|
29
|
-
constructor();
|
|
30
|
-
/**
|
|
31
|
-
* Register a callback to be called whenever any kind of change occurs with this object.
|
|
32
|
-
* It is up to the deriving classes to determine what a "change" is.
|
|
33
|
-
*
|
|
34
|
-
* @param {ChangeObserver<T>} [observer]
|
|
35
|
-
* @memberof Observable
|
|
36
|
-
*/
|
|
37
|
-
onChanged(observer: ChangeObserver<T>): ISubscription;
|
|
38
|
-
/**
|
|
39
|
-
* Remove a specific callback registered to respond to any change event.
|
|
40
|
-
*
|
|
41
|
-
* @param {ChangeObserver} [observer]
|
|
42
|
-
* @memberof Observable
|
|
43
|
-
*/
|
|
44
|
-
removeOnChanged(observer: ChangeObserver<T>): void;
|
|
45
|
-
/**
|
|
46
|
-
* Call the "anything changed" callbacks associated with 'observable'.
|
|
47
|
-
* Also calls it for any ancestors, then finally clears the dirty flag.
|
|
48
|
-
*/
|
|
49
|
-
protected notifyObservers(): void;
|
|
50
|
-
protected notifyObserver(observer: ChangeObserver<T>): void;
|
|
51
|
-
/**
|
|
52
|
-
* Set this object and all Observable ancestors as dirty,
|
|
53
|
-
* then notify all observers. Generally used internally by the Observable* implementations,
|
|
54
|
-
* but can also be triggered manually if needed
|
|
55
|
-
*/
|
|
56
|
-
setDirty(): void;
|
|
57
|
-
private setDirtyRecursive;
|
|
58
|
-
/**
|
|
59
|
-
* Add an Observable as a child to this one (if it's Observable)
|
|
60
|
-
* This is what ensures onChange() notifications bubble up correctly
|
|
61
|
-
* and setActive() flows down correctly
|
|
62
|
-
*/
|
|
63
|
-
protected addChildObservable(obj: T | Observable<any>): void;
|
|
64
|
-
/**
|
|
65
|
-
* Remove an Observable as a child to this one (if it's Observable)
|
|
66
|
-
* This is what ensures onChange() notifications bubble up correctly,
|
|
67
|
-
* and setActive() flows down correctly
|
|
68
|
-
*/
|
|
69
|
-
protected removeChildObservables(obj: T | Observable<any>): void;
|
|
70
|
-
/**
|
|
71
|
-
* Run a function *atomically*, meaning that even if you
|
|
72
|
-
* mutate lots of parts of the Observable dozens of times,
|
|
73
|
-
* listeners will only be notified once
|
|
74
|
-
* @param func to fun
|
|
75
|
-
*/
|
|
76
|
-
atomic(func: () => void): void;
|
|
77
|
-
/**
|
|
78
|
-
* Set whether this Observable (and all descendants) should be
|
|
79
|
-
* considered active, aka notifying about changes
|
|
80
|
-
* @param value
|
|
81
|
-
*/
|
|
82
|
-
protected setActive(value: boolean): void;
|
|
83
|
-
/**
|
|
84
|
-
* Return a deep copy of the target object of the observable,
|
|
85
|
-
* without any observable members. See also the deepCopy util function
|
|
86
|
-
*/
|
|
87
|
-
deepCopy(): any;
|
|
88
|
-
/**
|
|
89
|
-
* Convenient static function to type check if object is Observable
|
|
90
|
-
* @param obj
|
|
91
|
-
*/
|
|
92
|
-
static isObservable<T>(obj: any): obj is Observable<T>;
|
|
93
|
-
}
|
|
94
|
-
//# sourceMappingURL=Observable.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Observable.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/observable/Observable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9D,oBAAY,cAAc,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;AAE9D;;;;;GAKG;AACH,qBAAa,UAAU,CAAC,CAAC;IACvB,SAAgB,YAAY,EAAE,OAAO,CAAQ;IAE7C;;OAEG;IACI,gBAAgB,EAAE,OAAO,CAAS;IAEzC;;;OAGG;IACH,OAAO,CAAC,iBAAiB,CAAiB;IAE1C;;OAEG;IACH,OAAO,CAAC,gBAAgB,CAAgC;IAExD;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAmC;IAC7D,OAAO,CAAC,iBAAiB,CAAmC;;IAI5D;;;;;;OAMG;IACI,SAAS,CAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,aAAa;IAc7D;;;;;OAKG;IACI,eAAe,CAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;IAI1D;;;OAGG;IACH,SAAS,CAAC,eAAe;IAYzB,SAAS,CAAC,cAAc,CAAE,QAAQ,EAAE,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI;IAM5D;;;;OAIG;IACI,QAAQ;IAOf,OAAO,CAAC,iBAAiB;IAOzB;;;;OAIG;IACH,SAAS,CAAC,kBAAkB,CAAE,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI;IAO7D;;;;OAIG;IACH,SAAS,CAAC,sBAAsB,CAAE,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI;IAOjE;;;;;OAKG;IACI,MAAM,CAAE,IAAI,EAAE,MAAM,IAAI;IAe/B;;;;OAIG;IACH,SAAS,CAAC,SAAS,CAAE,KAAK,EAAE,OAAO;IAWnC;;;OAGG;IACI,QAAQ,IAAK,GAAG;IAIvB;;;OAGG;WACW,YAAY,CAAC,CAAC,EAAG,GAAG,EAAE,GAAG,GAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC;CAG/D"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Observable } from './Observable';
|
|
2
|
-
import { ChangeObserver } from './Observable';
|
|
3
|
-
/**
|
|
4
|
-
* An ObservableValue lets you listen to a single value
|
|
5
|
-
*
|
|
6
|
-
* * Ways to observe:
|
|
7
|
-
* - The normal Observable onChange()
|
|
8
|
-
*
|
|
9
|
-
* If the value in the ObservableValue is also Observable, any changes to the value
|
|
10
|
-
* will also bubble up to the ObservableValue
|
|
11
|
-
*/
|
|
12
|
-
export declare class ObservableValue<T> extends Observable<T> {
|
|
13
|
-
private _value;
|
|
14
|
-
constructor(intialValue: T);
|
|
15
|
-
protected notifyObserver: (observer: ChangeObserver<T>) => void;
|
|
16
|
-
get value(): T;
|
|
17
|
-
set value(newVal: T);
|
|
18
|
-
deepCopy(): any;
|
|
19
|
-
}
|
|
20
|
-
export declare const createObservableValue: <T = any>(value: T) => ObservableValue<T>;
|
|
21
|
-
//# sourceMappingURL=ObservableValue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ObservableValue.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/observable/ObservableValue.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C;;;;;;;;GAQG;AACH,qBAAa,eAAe,CAAC,CAAC,CAAE,SAAQ,UAAU,CAAC,CAAC,CAAC;IACnD,OAAO,CAAC,MAAM,CAAI;gBAEN,WAAW,EAAE,CAAC;IAK1B,UAAmB,cAAc,aAAc,eAAe,CAAC,CAAC,KAAG,IAAI,CAEtE;IAED,IAAW,KAAK,IAAI,CAAC,CAEpB;IAED,IAAW,KAAK,CAAC,MAAM,EAAE,CAAC,EAOzB;IAEe,QAAQ;CAGzB;AAED,eAAO,MAAM,qBAAqB,2CAEjC,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A wrapper for data/observable subscriptions, allowing simple subscribing and unsubscribing to data/observable changes
|
|
3
|
-
* without direct references to the market, the original observables, or the callback to be (un)registered.
|
|
4
|
-
*
|
|
5
|
-
* @template T
|
|
6
|
-
* @template K
|
|
7
|
-
*/
|
|
8
|
-
export interface ISubscription {
|
|
9
|
-
/**
|
|
10
|
-
* Subscribe to changes of the data in the Catalog
|
|
11
|
-
* If this subscription has been previously renewed (w/o being cancelled) no changes occur
|
|
12
|
-
* a.k.a. renewing an active subscription is a no-op
|
|
13
|
-
*
|
|
14
|
-
* @memberof ISubscription
|
|
15
|
-
*/
|
|
16
|
-
renew(): void;
|
|
17
|
-
/**
|
|
18
|
-
* Unsubscribe from change of the data in the Catalog
|
|
19
|
-
* If this subscription has been previously cancelled (w/o being renewed) no changes occur
|
|
20
|
-
* a.k.a. cancelling a cancelled subscription is a no-op
|
|
21
|
-
*
|
|
22
|
-
* @memberof ISubscription
|
|
23
|
-
*/
|
|
24
|
-
cancel(): void;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=ISubscription.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ISubscription.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/subscription/ISubscription.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B;;;;;;OAMG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAAC;CAChB"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A general purpose, indexable object type
|
|
3
|
-
*/
|
|
4
|
-
export declare type Dict<V = any> = {
|
|
5
|
-
[key: string]: V;
|
|
6
|
-
};
|
|
7
|
-
export declare type DeepPartial<T> = {
|
|
8
|
-
[P in keyof T]?: T[P] extends Function ? T[P] : T[P] extends Array<infer U> ? Array<U> : T[P] extends ReadonlyArray<infer U> ? ReadonlyArray<U> : T[P] extends {} ? DeepPartial<T[P]> : T[P];
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,IAAI,CAAC,CAAC,GAAG,GAAG,IAAI;IAC1B,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAClB,CAAC;AAEF,oBAAY,WAAW,CAAC,CAAC,IAAI;KAC1B,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EACb,CAAC,CAAC,CAAC,CAAC,SAAS,QAAQ,GAAG,CAAC,CAAC,CAAC,CAAC,GAC5B,CAAC,CAAC,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GACtC,CAAC,CAAC,CAAC,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,GACtD,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GACnC,CAAC,CAAC,CAAC,CAAC;CACP,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core utilities required/shared between the Monitor and Observable.
|
|
3
|
-
*/
|
|
4
|
-
import { DeepPartial } from "../types";
|
|
5
|
-
/**
|
|
6
|
-
* Returns true if the supplied property is one of the reserved Observable keys that we do not want to intercept
|
|
7
|
-
* @param prop
|
|
8
|
-
*/
|
|
9
|
-
export declare const ignoredKey: (prop: string) => boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Returns a deep copy object with any internal observable related keys removed.
|
|
12
|
-
* @param {number} obj
|
|
13
|
-
* @param {number} ancestors Internal list to keep track of circular references
|
|
14
|
-
*/
|
|
15
|
-
export declare const deepCopy: (obj: any, ancestors?: any) => any;
|
|
16
|
-
/**
|
|
17
|
-
* Merge object B, into object A, adding new properties, or updating existing properties as needed.
|
|
18
|
-
* Note: Ignores Observable specific properties listed in ignoredKey()
|
|
19
|
-
*/
|
|
20
|
-
export declare const merge: (a: any, b: any) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Return a "diff object", a partial object which contains any NEW key/value pairs
|
|
23
|
-
* in the "newer" param tree
|
|
24
|
-
*/
|
|
25
|
-
export declare const diffObject: <T>(original: DeepPartial<T>, newer: DeepPartial<T>) => any;
|
|
26
|
-
/**
|
|
27
|
-
* Using deep comparison, returns true if a difference is found between two variables or their nested values.
|
|
28
|
-
*/
|
|
29
|
-
export declare const deepDiffers: (a: any, b: any) => boolean;
|
|
30
|
-
export declare function isNumber(x: any): x is number;
|
|
31
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../projects/ngx-smarterplan-core/src/lib/matterport-extensions/core/src/util/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;;GAGG;AACH,eAAO,MAAM,UAAU,SAAU,MAAM,KAAG,OAezC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,QAAQ,QAAS,GAAG,cAAa,GAAG,KAAQ,GAuCxD,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,MAAO,GAAG,KAAK,GAAG,KAAG,IAgCtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,6DA+BtB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,WAAW,MAAO,GAAG,KAAK,GAAG,KAAG,OAY5C,CAAC;AAEF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,IAAI,MAAM,CAE5C"}
|