@smplrspace/smplr-loader 2.31.0 → 2.31.1-beta.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/dist/generated/smplr.d.ts +2286 -20
- package/package.json +1 -1
|
@@ -3,11 +3,16 @@ import { CSSProperties } from 'react';
|
|
|
3
3
|
import { Dispatch } from 'react';
|
|
4
4
|
import { EasingOptions } from 'mapbox-gl';
|
|
5
5
|
import { GetTokenSilentlyOptions } from '@auth0/auth0-spa-js';
|
|
6
|
+
import { IArrayType } from 'mobx-state-tree';
|
|
6
7
|
import { IMaybe } from 'mobx-state-tree';
|
|
7
8
|
import { IModelType } from 'mobx-state-tree';
|
|
9
|
+
import { Instance } from 'mobx-state-tree';
|
|
8
10
|
import { IOptionalIType } from 'mobx-state-tree';
|
|
9
11
|
import { ISimpleType } from 'mobx-state-tree';
|
|
12
|
+
import { IType } from 'mobx-state-tree';
|
|
10
13
|
import { LogoutOptions } from '@auth0/auth0-spa-js';
|
|
14
|
+
import { MapMouseEvent } from 'mapbox-gl';
|
|
15
|
+
import { Mesh } from '@babylonjs/core/Meshes/mesh';
|
|
11
16
|
import { default as NoSleep_2 } from 'nosleep.js';
|
|
12
17
|
import { _NotCustomized } from 'mobx-state-tree';
|
|
13
18
|
import { RedirectLoginOptions } from '@auth0/auth0-spa-js';
|
|
@@ -15,11 +20,60 @@ import { Reducer } from 'react';
|
|
|
15
20
|
import { ReducerAction } from 'react';
|
|
16
21
|
import { RefObject } from 'react';
|
|
17
22
|
import { Scene } from '@babylonjs/core/scene';
|
|
23
|
+
import { SnapshotIn } from 'mobx-state-tree';
|
|
18
24
|
import { SnapshotOut } from 'mobx-state-tree';
|
|
19
25
|
import { UniversalCamera } from '@babylonjs/core/Cameras/universalCamera';
|
|
20
26
|
import { User as User_2 } from '@auth0/auth0-spa-js';
|
|
27
|
+
import { Vector2 } from '@babylonjs/core/Maths/math';
|
|
21
28
|
import { VRDeviceOrientationFreeCamera } from '@babylonjs/core/Cameras/VR/vrDeviceOrientationFreeCamera';
|
|
22
29
|
|
|
30
|
+
declare const AbstractSegment: IModelType< {
|
|
31
|
+
start: IModelType< {
|
|
32
|
+
r: ISimpleType<number>;
|
|
33
|
+
t: ISimpleType<number>;
|
|
34
|
+
} & {
|
|
35
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
36
|
+
}, {
|
|
37
|
+
regenerateId(randomizer: string): void;
|
|
38
|
+
}, _NotCustomized, _NotCustomized>;
|
|
39
|
+
end: IModelType< {
|
|
40
|
+
r: ISimpleType<number>;
|
|
41
|
+
t: ISimpleType<number>;
|
|
42
|
+
} & {
|
|
43
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
44
|
+
}, {
|
|
45
|
+
regenerateId(randomizer: string): void;
|
|
46
|
+
}, _NotCustomized, _NotCustomized>;
|
|
47
|
+
}, {
|
|
48
|
+
readonly centerPoint: SOCanvasPoint;
|
|
49
|
+
}, _NotCustomized, _NotCustomized>;
|
|
50
|
+
|
|
51
|
+
declare const Annotation: IModelType< {
|
|
52
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
53
|
+
type: IOptionalIType<ISimpleType<AnnotationType>, [undefined]>;
|
|
54
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
55
|
+
r: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
56
|
+
t: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
57
|
+
height: IMaybe<ISimpleType<number>>;
|
|
58
|
+
size: IMaybe<ISimpleType<number>>;
|
|
59
|
+
media: IMaybe<ISimpleType<string>>;
|
|
60
|
+
is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
61
|
+
direction: IMaybe<ISimpleType<number>>;
|
|
62
|
+
}, {
|
|
63
|
+
setType(type: AnnotationType): void;
|
|
64
|
+
rename(name: string): void;
|
|
65
|
+
moveTo({ r, t }: CanvasCoord): void;
|
|
66
|
+
setHeight(height: number): void;
|
|
67
|
+
setSize(size: number): void;
|
|
68
|
+
remove(): void;
|
|
69
|
+
setMedia(url: string | undefined): void;
|
|
70
|
+
setIs360(is360: boolean): void;
|
|
71
|
+
setDirection(angle: number | undefined): void;
|
|
72
|
+
regenerateId(randomizer: string): void;
|
|
73
|
+
}, _NotCustomized, _NotCustomized>;
|
|
74
|
+
|
|
75
|
+
declare type AnnotationType = 'classic' | 'entrance';
|
|
76
|
+
|
|
23
77
|
declare interface Auth0ContextValue {
|
|
24
78
|
isAuthenticated: boolean;
|
|
25
79
|
user: User | null;
|
|
@@ -55,8 +109,42 @@ declare interface BaseDataLayer<T, D extends UnknownData> {
|
|
|
55
109
|
legend?: LegendConfig;
|
|
56
110
|
}
|
|
57
111
|
|
|
112
|
+
declare interface BaseOption<C, K extends keyof C> {
|
|
113
|
+
name: K;
|
|
114
|
+
description?: string;
|
|
115
|
+
disabledIf?: (args: {
|
|
116
|
+
configuration: C | Options<C>[];
|
|
117
|
+
}) => boolean;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare type BooleanOption<C, K extends keyof C> = BaseOption<C, K> & {
|
|
121
|
+
type: 'boolean';
|
|
122
|
+
defaultValue: boolean | undefined;
|
|
123
|
+
};
|
|
124
|
+
|
|
58
125
|
export declare type CameraMode = '2d' | '3d'
|
|
59
126
|
|
|
127
|
+
declare interface CanvasBoundingBox {
|
|
128
|
+
minR: number;
|
|
129
|
+
maxR: number;
|
|
130
|
+
minT: number;
|
|
131
|
+
maxT: number;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare interface CanvasCoord {
|
|
135
|
+
r: number;
|
|
136
|
+
t: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare const CanvasPoint: IModelType< {
|
|
140
|
+
r: ISimpleType<number>;
|
|
141
|
+
t: ISimpleType<number>;
|
|
142
|
+
} & {
|
|
143
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
144
|
+
}, {
|
|
145
|
+
regenerateId(randomizer: string): void;
|
|
146
|
+
}, _NotCustomized, _NotCustomized>;
|
|
147
|
+
|
|
60
148
|
declare const categoryScale: <C extends string>({ categories, nodata, }: CategoryScaleOptions<C>) => (category: C) => string;
|
|
61
149
|
|
|
62
150
|
declare interface CategoryScaleOptions<C extends string> {
|
|
@@ -72,6 +160,24 @@ declare const categorySwatches: <C extends string>({ categories, nodata, exclude
|
|
|
72
160
|
label: string;
|
|
73
161
|
}[];
|
|
74
162
|
|
|
163
|
+
declare namespace chair {
|
|
164
|
+
export {
|
|
165
|
+
key,
|
|
166
|
+
ChairStyle,
|
|
167
|
+
ChairConfiguration,
|
|
168
|
+
options,
|
|
169
|
+
render3d,
|
|
170
|
+
render2d,
|
|
171
|
+
getNominalDimensions
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare type ChairConfiguration = {
|
|
176
|
+
style: ChairStyle;
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
declare type ChairStyle = 'chair' | 'office-chair' | 'stool';
|
|
180
|
+
|
|
75
181
|
declare namespace Color {
|
|
76
182
|
export {
|
|
77
183
|
drawColorSwatches,
|
|
@@ -112,6 +218,23 @@ declare interface ColorSwatchesProps {
|
|
|
112
218
|
|
|
113
219
|
declare const cssToSmplrColor: (c: string) => string;
|
|
114
220
|
|
|
221
|
+
declare namespace cube {
|
|
222
|
+
export {
|
|
223
|
+
key_2 as key,
|
|
224
|
+
CubeConfiguration,
|
|
225
|
+
options_2 as options,
|
|
226
|
+
render3d_2 as render3d,
|
|
227
|
+
render2d_2 as render2d,
|
|
228
|
+
getNominalDimensions_2 as getNominalDimensions,
|
|
229
|
+
getGroundFootprint
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
declare type CubeConfiguration = {
|
|
234
|
+
glass: boolean;
|
|
235
|
+
crossed: boolean;
|
|
236
|
+
};
|
|
237
|
+
|
|
115
238
|
declare interface CubeOptions<D> {
|
|
116
239
|
shape: 'cube';
|
|
117
240
|
size?: number;
|
|
@@ -167,6 +290,27 @@ declare type DeepPartial<T> = T extends object ? {
|
|
|
167
290
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
168
291
|
} : T;
|
|
169
292
|
|
|
293
|
+
declare namespace desk {
|
|
294
|
+
export {
|
|
295
|
+
key_3 as key,
|
|
296
|
+
DeskConfiguration,
|
|
297
|
+
options_3 as options,
|
|
298
|
+
render3d_3 as render3d,
|
|
299
|
+
render2d_3 as render2d,
|
|
300
|
+
getNominalDimensions_3 as getNominalDimensions,
|
|
301
|
+
getGroundFootprint_2 as getGroundFootprint
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare type DeskConfiguration = {
|
|
306
|
+
leftSide: DeskSide;
|
|
307
|
+
rightSide: DeskSide;
|
|
308
|
+
drawerBar: boolean;
|
|
309
|
+
seat: chair.ChairStyle | 'none';
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
declare type DeskSide = 'feet' | 'plank' | 'drawers';
|
|
313
|
+
|
|
170
314
|
declare interface Dimensions {
|
|
171
315
|
length: number;
|
|
172
316
|
height: number;
|
|
@@ -316,6 +460,181 @@ declare interface GeoPoint {
|
|
|
316
460
|
lat: number;
|
|
317
461
|
}
|
|
318
462
|
|
|
463
|
+
declare interface Georeference {
|
|
464
|
+
location: OrientatedGeoPoint & {
|
|
465
|
+
scaleCorrection: number;
|
|
466
|
+
};
|
|
467
|
+
anchor: CanvasCoord & {
|
|
468
|
+
levelIndex: number;
|
|
469
|
+
};
|
|
470
|
+
cameraPlacement: MapCameraPlacement;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
declare const getGroundFootprint: GroundFootprintGetter<CubeConfiguration>;
|
|
474
|
+
|
|
475
|
+
declare const getGroundFootprint_2: GroundFootprintGetter<DeskConfiguration>;
|
|
476
|
+
|
|
477
|
+
declare const getNominalDimensions: NominalDimensionsGetter<ChairConfiguration>;
|
|
478
|
+
|
|
479
|
+
declare const getNominalDimensions_2: NominalDimensionsGetter<CubeConfiguration>;
|
|
480
|
+
|
|
481
|
+
declare const getNominalDimensions_3: NominalDimensionsGetter<DeskConfiguration>;
|
|
482
|
+
|
|
483
|
+
declare const getNominalDimensions_4: NominalDimensionsGetter<ScreenConfiguration>;
|
|
484
|
+
|
|
485
|
+
declare const getNominalDimensions_5: NominalDimensionsGetter<ShelvesConfiguration>;
|
|
486
|
+
|
|
487
|
+
declare const getNominalDimensions_6: NominalDimensionsGetter<TableConfiguration>;
|
|
488
|
+
|
|
489
|
+
declare const getNominalDimensions_7: NominalDimensionsGetter<TableAndChairsConfiguration>;
|
|
490
|
+
|
|
491
|
+
declare const getNominalDimensions_8: NominalDimensionsGetter<TriangularDeskConfiguration>;
|
|
492
|
+
|
|
493
|
+
declare const Ground: IModelType< {
|
|
494
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
495
|
+
type: IOptionalIType<ISimpleType<"ground">, [undefined]>;
|
|
496
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
497
|
+
options: IOptionalIType<IModelType< {
|
|
498
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender">, [undefined]>;
|
|
499
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
500
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
501
|
+
contour: IMaybe<ISimpleType<number>>;
|
|
502
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
503
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
504
|
+
}, {
|
|
505
|
+
setType(type: "normal" | "shell" | "norender"): void;
|
|
506
|
+
setBaseHeight(baseHeight: number): void;
|
|
507
|
+
setThickness(thickness: number): void;
|
|
508
|
+
setContour(contour: number): void;
|
|
509
|
+
setStyle(style: string): void;
|
|
510
|
+
setExternal(external: boolean): void;
|
|
511
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
512
|
+
segments: IArrayType<IModelType< {
|
|
513
|
+
start: IModelType< {
|
|
514
|
+
r: ISimpleType<number>;
|
|
515
|
+
t: ISimpleType<number>;
|
|
516
|
+
} & {
|
|
517
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
518
|
+
}, {
|
|
519
|
+
regenerateId(randomizer: string): void;
|
|
520
|
+
}, _NotCustomized, _NotCustomized>;
|
|
521
|
+
end: IModelType< {
|
|
522
|
+
r: ISimpleType<number>;
|
|
523
|
+
t: ISimpleType<number>;
|
|
524
|
+
} & {
|
|
525
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
526
|
+
}, {
|
|
527
|
+
regenerateId(randomizer: string): void;
|
|
528
|
+
}, _NotCustomized, _NotCustomized>;
|
|
529
|
+
}, {
|
|
530
|
+
readonly centerPoint: SOCanvasPoint;
|
|
531
|
+
} & {
|
|
532
|
+
regenerateIds(randomizer: string): void;
|
|
533
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
534
|
+
holes: IArrayType<IModelType< {
|
|
535
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
536
|
+
type: IOptionalIType<ISimpleType<"hole">, [undefined]>;
|
|
537
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
538
|
+
segments: IArrayType<IModelType< {
|
|
539
|
+
start: IModelType< {
|
|
540
|
+
r: ISimpleType<number>;
|
|
541
|
+
t: ISimpleType<number>;
|
|
542
|
+
} & {
|
|
543
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
544
|
+
}, {
|
|
545
|
+
regenerateId(randomizer: string): void;
|
|
546
|
+
}, _NotCustomized, _NotCustomized>;
|
|
547
|
+
end: IModelType< {
|
|
548
|
+
r: ISimpleType<number>;
|
|
549
|
+
t: ISimpleType<number>;
|
|
550
|
+
} & {
|
|
551
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
552
|
+
}, {
|
|
553
|
+
regenerateId(randomizer: string): void;
|
|
554
|
+
}, _NotCustomized, _NotCustomized>;
|
|
555
|
+
}, {
|
|
556
|
+
readonly centerPoint: SOCanvasPoint;
|
|
557
|
+
} & {
|
|
558
|
+
regenerateIds(randomizer: string): void;
|
|
559
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
560
|
+
}, {
|
|
561
|
+
getGround(): IGround;
|
|
562
|
+
} & {
|
|
563
|
+
newInParent(): void;
|
|
564
|
+
removeInParent(): void;
|
|
565
|
+
clearInEditor(id: string): void;
|
|
566
|
+
regenerateIds(randomizer: string): void;
|
|
567
|
+
} & {
|
|
568
|
+
rename(name: string): void;
|
|
569
|
+
} & {
|
|
570
|
+
readonly points: SOCanvasPoint[];
|
|
571
|
+
readonly geometry: SegmentGeometry;
|
|
572
|
+
} & {
|
|
573
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
574
|
+
addPointAfter({ pointId }: {
|
|
575
|
+
pointId: string;
|
|
576
|
+
}): void;
|
|
577
|
+
close(): void;
|
|
578
|
+
removePoint(id: string): void;
|
|
579
|
+
} & {
|
|
580
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
581
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
582
|
+
}, {
|
|
583
|
+
newInParent(): void;
|
|
584
|
+
removeInParent(): void;
|
|
585
|
+
clearInEditor(id: string): void;
|
|
586
|
+
regenerateIds(randomizer: string): void;
|
|
587
|
+
} & {
|
|
588
|
+
rename(name: string): void;
|
|
589
|
+
addHole(hole?: Omit<SIHole, 'segments'> & {
|
|
590
|
+
segments: SOGroundSegment[];
|
|
591
|
+
}): void;
|
|
592
|
+
removeHole(holeId: string): void;
|
|
593
|
+
replaceSegments(segments: SIGroundSegment[]): void;
|
|
594
|
+
} & {
|
|
595
|
+
readonly points: SOCanvasPoint[];
|
|
596
|
+
readonly geometry: SegmentGeometry;
|
|
597
|
+
} & {
|
|
598
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
599
|
+
addPointAfter({ pointId }: {
|
|
600
|
+
pointId: string;
|
|
601
|
+
}): void;
|
|
602
|
+
close(): void;
|
|
603
|
+
removePoint(id: string): void;
|
|
604
|
+
} & {
|
|
605
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
606
|
+
}, _NotCustomized, _NotCustomized>;
|
|
607
|
+
|
|
608
|
+
declare type GroundFootprintGetter<C> = (args: {
|
|
609
|
+
width: number;
|
|
610
|
+
length: number;
|
|
611
|
+
closed: boolean;
|
|
612
|
+
configuration: Partial<C>;
|
|
613
|
+
}) => Vector2[];
|
|
614
|
+
|
|
615
|
+
declare const GroundSegment: IModelType< {
|
|
616
|
+
start: IModelType< {
|
|
617
|
+
r: ISimpleType<number>;
|
|
618
|
+
t: ISimpleType<number>;
|
|
619
|
+
} & {
|
|
620
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
621
|
+
}, {
|
|
622
|
+
regenerateId(randomizer: string): void;
|
|
623
|
+
}, _NotCustomized, _NotCustomized>;
|
|
624
|
+
end: IModelType< {
|
|
625
|
+
r: ISimpleType<number>;
|
|
626
|
+
t: ISimpleType<number>;
|
|
627
|
+
} & {
|
|
628
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
629
|
+
}, {
|
|
630
|
+
regenerateId(randomizer: string): void;
|
|
631
|
+
}, _NotCustomized, _NotCustomized>;
|
|
632
|
+
}, {
|
|
633
|
+
readonly centerPoint: SOCanvasPoint;
|
|
634
|
+
} & {
|
|
635
|
+
regenerateIds(randomizer: string): void;
|
|
636
|
+
}, _NotCustomized, _NotCustomized>;
|
|
637
|
+
|
|
319
638
|
declare interface HeatmapBarChartOptions {
|
|
320
639
|
style: 'bar-chart';
|
|
321
640
|
height: (interpolatedValue: number) => number;
|
|
@@ -353,6 +672,61 @@ declare interface HeatmapSpheresOptions {
|
|
|
353
672
|
|
|
354
673
|
declare type HeatmapStyleOptions = HeatmapSpheresOptions | HeatmapGridOptions | HeatmapBarChartOptions;
|
|
355
674
|
|
|
675
|
+
declare const Hole: IModelType< {
|
|
676
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
677
|
+
type: IOptionalIType<ISimpleType<"hole">, [undefined]>;
|
|
678
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
679
|
+
segments: IArrayType<IModelType< {
|
|
680
|
+
start: IModelType< {
|
|
681
|
+
r: ISimpleType<number>;
|
|
682
|
+
t: ISimpleType<number>;
|
|
683
|
+
} & {
|
|
684
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
685
|
+
}, {
|
|
686
|
+
regenerateId(randomizer: string): void;
|
|
687
|
+
}, _NotCustomized, _NotCustomized>;
|
|
688
|
+
end: IModelType< {
|
|
689
|
+
r: ISimpleType<number>;
|
|
690
|
+
t: ISimpleType<number>;
|
|
691
|
+
} & {
|
|
692
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
693
|
+
}, {
|
|
694
|
+
regenerateId(randomizer: string): void;
|
|
695
|
+
}, _NotCustomized, _NotCustomized>;
|
|
696
|
+
}, {
|
|
697
|
+
readonly centerPoint: SOCanvasPoint;
|
|
698
|
+
} & {
|
|
699
|
+
regenerateIds(randomizer: string): void;
|
|
700
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
701
|
+
}, {
|
|
702
|
+
getGround(): IGround;
|
|
703
|
+
} & {
|
|
704
|
+
newInParent(): void;
|
|
705
|
+
removeInParent(): void;
|
|
706
|
+
clearInEditor(id: string): void;
|
|
707
|
+
regenerateIds(randomizer: string): void;
|
|
708
|
+
} & {
|
|
709
|
+
rename(name: string): void;
|
|
710
|
+
} & {
|
|
711
|
+
readonly points: SOCanvasPoint[];
|
|
712
|
+
readonly geometry: SegmentGeometry;
|
|
713
|
+
} & {
|
|
714
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
715
|
+
addPointAfter({ pointId }: {
|
|
716
|
+
pointId: string;
|
|
717
|
+
}): void;
|
|
718
|
+
close(): void;
|
|
719
|
+
removePoint(id: string): void;
|
|
720
|
+
} & {
|
|
721
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
722
|
+
}, _NotCustomized, _NotCustomized>;
|
|
723
|
+
|
|
724
|
+
declare interface IAnnotation extends Instance<typeof Annotation> {
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
declare interface ICanvasPoint extends Instance<typeof CanvasPoint> {
|
|
728
|
+
}
|
|
729
|
+
|
|
356
730
|
export declare type IconData = BaseData & {
|
|
357
731
|
position: SmplrCoord3d;
|
|
358
732
|
};
|
|
@@ -391,6 +765,43 @@ declare interface IconsSwatchesProps {
|
|
|
391
765
|
noLabels?: boolean;
|
|
392
766
|
}
|
|
393
767
|
|
|
768
|
+
declare interface IGround extends Instance<typeof Ground> {
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
declare interface IObject extends Instance<typeof Object_2> {
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
declare interface IRoof extends Instance<typeof Roof> {
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
declare interface IStair extends Instance<typeof Stair> {
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
declare interface IWall extends Instance<typeof Wall> {
|
|
781
|
+
}
|
|
782
|
+
|
|
783
|
+
declare interface IWallOpening extends Instance<typeof WallOpening> {
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare interface IWallSegment extends Instance<typeof WallSegment> {
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
declare const key = "chair";
|
|
790
|
+
|
|
791
|
+
declare const key_2 = "cube";
|
|
792
|
+
|
|
793
|
+
declare const key_3 = "desk";
|
|
794
|
+
|
|
795
|
+
declare const key_4 = "screen";
|
|
796
|
+
|
|
797
|
+
declare const key_5 = "shelves";
|
|
798
|
+
|
|
799
|
+
declare const key_6 = "table";
|
|
800
|
+
|
|
801
|
+
declare const key_7 = "tableAndChairs";
|
|
802
|
+
|
|
803
|
+
declare const key_8 = "triangularDesk";
|
|
804
|
+
|
|
394
805
|
declare type LegendConfig = NumericLegend | ColorSwatches | IconLegend;
|
|
395
806
|
|
|
396
807
|
declare interface LegendProps {
|
|
@@ -402,6 +813,485 @@ declare interface LegendProps {
|
|
|
402
813
|
correctColor?: boolean;
|
|
403
814
|
}
|
|
404
815
|
|
|
816
|
+
declare const Level: IModelType< {
|
|
817
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
818
|
+
initials: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
819
|
+
autoInitials: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
820
|
+
grounds: IOptionalIType<IArrayType<IModelType< {
|
|
821
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
822
|
+
type: IOptionalIType<ISimpleType<"ground">, [undefined]>;
|
|
823
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
824
|
+
options: IOptionalIType<IModelType< {
|
|
825
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender">, [undefined]>;
|
|
826
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
827
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
828
|
+
contour: IMaybe<ISimpleType<number>>;
|
|
829
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
830
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
831
|
+
}, {
|
|
832
|
+
setType(type: "normal" | "shell" | "norender"): void;
|
|
833
|
+
setBaseHeight(baseHeight: number): void;
|
|
834
|
+
setThickness(thickness: number): void;
|
|
835
|
+
setContour(contour: number): void;
|
|
836
|
+
setStyle(style: string): void;
|
|
837
|
+
setExternal(external: boolean): void;
|
|
838
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
839
|
+
segments: IArrayType<IModelType< {
|
|
840
|
+
start: IModelType< {
|
|
841
|
+
r: ISimpleType<number>;
|
|
842
|
+
t: ISimpleType<number>;
|
|
843
|
+
} & {
|
|
844
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
845
|
+
}, {
|
|
846
|
+
regenerateId(randomizer: string): void;
|
|
847
|
+
}, _NotCustomized, _NotCustomized>;
|
|
848
|
+
end: IModelType< {
|
|
849
|
+
r: ISimpleType<number>;
|
|
850
|
+
t: ISimpleType<number>;
|
|
851
|
+
} & {
|
|
852
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
853
|
+
}, {
|
|
854
|
+
regenerateId(randomizer: string): void;
|
|
855
|
+
}, _NotCustomized, _NotCustomized>;
|
|
856
|
+
}, {
|
|
857
|
+
readonly centerPoint: SOCanvasPoint;
|
|
858
|
+
} & {
|
|
859
|
+
regenerateIds(randomizer: string): void;
|
|
860
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
861
|
+
holes: IArrayType<IModelType< {
|
|
862
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
863
|
+
type: IOptionalIType<ISimpleType<"hole">, [undefined]>;
|
|
864
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
865
|
+
segments: IArrayType<IModelType< {
|
|
866
|
+
start: IModelType< {
|
|
867
|
+
r: ISimpleType<number>;
|
|
868
|
+
t: ISimpleType<number>;
|
|
869
|
+
} & {
|
|
870
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
871
|
+
}, {
|
|
872
|
+
regenerateId(randomizer: string): void;
|
|
873
|
+
}, _NotCustomized, _NotCustomized>;
|
|
874
|
+
end: IModelType< {
|
|
875
|
+
r: ISimpleType<number>;
|
|
876
|
+
t: ISimpleType<number>;
|
|
877
|
+
} & {
|
|
878
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
879
|
+
}, {
|
|
880
|
+
regenerateId(randomizer: string): void;
|
|
881
|
+
}, _NotCustomized, _NotCustomized>;
|
|
882
|
+
}, {
|
|
883
|
+
readonly centerPoint: SOCanvasPoint;
|
|
884
|
+
} & {
|
|
885
|
+
regenerateIds(randomizer: string): void;
|
|
886
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
887
|
+
}, {
|
|
888
|
+
getGround(): IGround;
|
|
889
|
+
} & {
|
|
890
|
+
newInParent(): void;
|
|
891
|
+
removeInParent(): void;
|
|
892
|
+
clearInEditor(id: string): void;
|
|
893
|
+
regenerateIds(randomizer: string): void;
|
|
894
|
+
} & {
|
|
895
|
+
rename(name: string): void;
|
|
896
|
+
} & {
|
|
897
|
+
readonly points: SOCanvasPoint[];
|
|
898
|
+
readonly geometry: SegmentGeometry;
|
|
899
|
+
} & {
|
|
900
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
901
|
+
addPointAfter({ pointId }: {
|
|
902
|
+
pointId: string;
|
|
903
|
+
}): void;
|
|
904
|
+
close(): void;
|
|
905
|
+
removePoint(id: string): void;
|
|
906
|
+
} & {
|
|
907
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
908
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
909
|
+
}, {
|
|
910
|
+
newInParent(): void;
|
|
911
|
+
removeInParent(): void;
|
|
912
|
+
clearInEditor(id: string): void;
|
|
913
|
+
regenerateIds(randomizer: string): void;
|
|
914
|
+
} & {
|
|
915
|
+
rename(name: string): void;
|
|
916
|
+
addHole(hole?: (Omit<SIHole, "segments"> & {
|
|
917
|
+
segments: SOGroundSegment[];
|
|
918
|
+
}) | undefined): void;
|
|
919
|
+
removeHole(holeId: string): void;
|
|
920
|
+
replaceSegments(segments: SIGroundSegment[]): void;
|
|
921
|
+
} & {
|
|
922
|
+
readonly points: SOCanvasPoint[];
|
|
923
|
+
readonly geometry: SegmentGeometry;
|
|
924
|
+
} & {
|
|
925
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
926
|
+
addPointAfter({ pointId }: {
|
|
927
|
+
pointId: string;
|
|
928
|
+
}): void;
|
|
929
|
+
close(): void;
|
|
930
|
+
removePoint(id: string): void;
|
|
931
|
+
} & {
|
|
932
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
933
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
934
|
+
walls: IOptionalIType<IArrayType<IModelType< {
|
|
935
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
936
|
+
type: IOptionalIType<ISimpleType<"wall">, [undefined]>;
|
|
937
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
938
|
+
options: IOptionalIType<IModelType< {
|
|
939
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender" | "structural">, [undefined]>;
|
|
940
|
+
cap: IOptionalIType<ISimpleType<"flat" | "round">, [undefined]>;
|
|
941
|
+
height: IMaybe<ISimpleType<number>>;
|
|
942
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
943
|
+
autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
944
|
+
partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
945
|
+
}, {
|
|
946
|
+
setType(type: "normal" | "shell" | "norender" | "structural"): void;
|
|
947
|
+
setCap(cap: "flat" | "round"): void;
|
|
948
|
+
setHeight(height: number): void;
|
|
949
|
+
setThickness(thickness: number): void;
|
|
950
|
+
setAutoFacade(autoFacade: boolean): void;
|
|
951
|
+
setPartOfFacade(partOfFacade: boolean): void;
|
|
952
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
953
|
+
segments: IArrayType<IModelType< {
|
|
954
|
+
start: IModelType< {
|
|
955
|
+
r: ISimpleType<number>;
|
|
956
|
+
t: ISimpleType<number>;
|
|
957
|
+
} & {
|
|
958
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
959
|
+
}, {
|
|
960
|
+
regenerateId(randomizer: string): void;
|
|
961
|
+
}, _NotCustomized, _NotCustomized>;
|
|
962
|
+
end: IModelType< {
|
|
963
|
+
r: ISimpleType<number>;
|
|
964
|
+
t: ISimpleType<number>;
|
|
965
|
+
} & {
|
|
966
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
967
|
+
}, {
|
|
968
|
+
regenerateId(randomizer: string): void;
|
|
969
|
+
}, _NotCustomized, _NotCustomized>;
|
|
970
|
+
} & {
|
|
971
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
972
|
+
openings: IArrayType<IModelType< {
|
|
973
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
974
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
975
|
+
type: ISimpleType<"door" | "window">;
|
|
976
|
+
dimensions: IOptionalIType<IModelType< {
|
|
977
|
+
width: IMaybe<ISimpleType<number>>;
|
|
978
|
+
height: IMaybe<ISimpleType<number>>;
|
|
979
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
980
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
981
|
+
position: IMaybe<IModelType< {
|
|
982
|
+
from: ISimpleType<"start" | "end">;
|
|
983
|
+
distance: ISimpleType<number>;
|
|
984
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
985
|
+
options: IOptionalIType<IModelType< {
|
|
986
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
987
|
+
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
988
|
+
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
989
|
+
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
990
|
+
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
991
|
+
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
992
|
+
swapInOut: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
993
|
+
swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
994
|
+
glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
995
|
+
openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
996
|
+
panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
997
|
+
openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
998
|
+
railingHeight: IMaybe<ISimpleType<number>>;
|
|
999
|
+
railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1000
|
+
}, {
|
|
1001
|
+
setStyle(style: string): void;
|
|
1002
|
+
setNbOfPanels(nbOfPanels: number): void;
|
|
1003
|
+
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
1004
|
+
setCenterSplit(centerSplit: boolean): void;
|
|
1005
|
+
setSwapKnob(swapKnob: boolean): void;
|
|
1006
|
+
setSwapInOut(swapInOut: boolean): void;
|
|
1007
|
+
setSwapPanels(swapPanels: boolean): void;
|
|
1008
|
+
setTwoPanels(twoPanels: boolean): void;
|
|
1009
|
+
setGlass(glass: boolean): void;
|
|
1010
|
+
setOpenFrom(openFrom: string): void;
|
|
1011
|
+
setPanelsOpened(panelsOpened: number): void;
|
|
1012
|
+
setOpenAngle(openAngle: number): void;
|
|
1013
|
+
setRailingHeight(railingHeight: number): void;
|
|
1014
|
+
setRailingStyle(railingStyle: string): void;
|
|
1015
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1016
|
+
}, {
|
|
1017
|
+
readonly segment: IWallSegment;
|
|
1018
|
+
} & {
|
|
1019
|
+
readonly feature: IWall;
|
|
1020
|
+
readonly direction: number;
|
|
1021
|
+
} & {
|
|
1022
|
+
readonly orientation: "horizontal" | "vertical";
|
|
1023
|
+
} & {
|
|
1024
|
+
verifyOpeningPosition(): void;
|
|
1025
|
+
regenerateId(randomizer: string): void;
|
|
1026
|
+
} & {
|
|
1027
|
+
rename(name: string): void;
|
|
1028
|
+
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
1029
|
+
moveTo(position: SIWallOpeningPosition): void;
|
|
1030
|
+
moveInDirection(direction: URDL, distance?: number): void;
|
|
1031
|
+
remove(): void;
|
|
1032
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1033
|
+
}, {
|
|
1034
|
+
readonly centerPoint: SOCanvasPoint;
|
|
1035
|
+
} & {
|
|
1036
|
+
readonly centerPoint: SOCanvasPoint;
|
|
1037
|
+
} & {
|
|
1038
|
+
addOpening(opening: SIWallOpening): void;
|
|
1039
|
+
removeOpening(id: string): void;
|
|
1040
|
+
regenerateIds(randomizer: string): void;
|
|
1041
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1042
|
+
}, {
|
|
1043
|
+
newInParent(): void;
|
|
1044
|
+
removeInParent(): void;
|
|
1045
|
+
clearInEditor(id: string): void;
|
|
1046
|
+
regenerateIds(randomizer: string): void;
|
|
1047
|
+
} & {
|
|
1048
|
+
rename(name: string): void;
|
|
1049
|
+
} & {
|
|
1050
|
+
readonly points: SOCanvasPoint[];
|
|
1051
|
+
readonly geometry: SegmentGeometry;
|
|
1052
|
+
} & {
|
|
1053
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
1054
|
+
addPointAfter({ pointId }: {
|
|
1055
|
+
pointId: string;
|
|
1056
|
+
}): void;
|
|
1057
|
+
close(): void;
|
|
1058
|
+
removePoint(id: string): void;
|
|
1059
|
+
} & {
|
|
1060
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
1061
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
1062
|
+
roofs: IOptionalIType<IArrayType<IModelType< {
|
|
1063
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1064
|
+
type: IOptionalIType<ISimpleType<"roof">, [undefined]>;
|
|
1065
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1066
|
+
options: IOptionalIType<IModelType< {
|
|
1067
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
1068
|
+
topHeight: IMaybe<ISimpleType<number>>;
|
|
1069
|
+
angle: IMaybe<ISimpleType<number>>;
|
|
1070
|
+
}, {
|
|
1071
|
+
setBaseHeight(baseHeight: number): void;
|
|
1072
|
+
setTopHeight(topHeight: number): void;
|
|
1073
|
+
setAngle(angle: number): void;
|
|
1074
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1075
|
+
segments: IArrayType<IModelType< {
|
|
1076
|
+
start: IModelType< {
|
|
1077
|
+
r: ISimpleType<number>;
|
|
1078
|
+
t: ISimpleType<number>;
|
|
1079
|
+
} & {
|
|
1080
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1081
|
+
}, {
|
|
1082
|
+
regenerateId(randomizer: string): void;
|
|
1083
|
+
}, _NotCustomized, _NotCustomized>;
|
|
1084
|
+
end: IModelType< {
|
|
1085
|
+
r: ISimpleType<number>;
|
|
1086
|
+
t: ISimpleType<number>;
|
|
1087
|
+
} & {
|
|
1088
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1089
|
+
}, {
|
|
1090
|
+
regenerateId(randomizer: string): void;
|
|
1091
|
+
}, _NotCustomized, _NotCustomized>;
|
|
1092
|
+
} & {
|
|
1093
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1094
|
+
base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly centerPoint: SOCanvasPoint;
|
|
1097
|
+
} & {
|
|
1098
|
+
regenerateIds(randomizer: string): void;
|
|
1099
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1100
|
+
}, {
|
|
1101
|
+
newInParent(): void;
|
|
1102
|
+
removeInParent(): void;
|
|
1103
|
+
clearInEditor(id: string): void;
|
|
1104
|
+
regenerateIds(randomizer: string): void;
|
|
1105
|
+
} & {
|
|
1106
|
+
rename(name: string): void;
|
|
1107
|
+
setBaseSegmentById(id: string): void;
|
|
1108
|
+
} & {
|
|
1109
|
+
readonly points: SOCanvasPoint[];
|
|
1110
|
+
readonly geometry: SegmentGeometry;
|
|
1111
|
+
} & {
|
|
1112
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
1113
|
+
addPointAfter({ pointId }: {
|
|
1114
|
+
pointId: string;
|
|
1115
|
+
}): void;
|
|
1116
|
+
close(): void;
|
|
1117
|
+
removePoint(id: string): void;
|
|
1118
|
+
} & {
|
|
1119
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
1120
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
1121
|
+
stairs: IArrayType<IModelType< {
|
|
1122
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1123
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1124
|
+
bottomSegment: IArrayType<IModelType< {
|
|
1125
|
+
r: ISimpleType<number>;
|
|
1126
|
+
t: ISimpleType<number>;
|
|
1127
|
+
} & {
|
|
1128
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1129
|
+
}, {
|
|
1130
|
+
regenerateId(randomizer: string): void;
|
|
1131
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1132
|
+
topSegment: IArrayType<IModelType< {
|
|
1133
|
+
r: ISimpleType<number>;
|
|
1134
|
+
t: ISimpleType<number>;
|
|
1135
|
+
} & {
|
|
1136
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1137
|
+
}, {
|
|
1138
|
+
regenerateId(randomizer: string): void;
|
|
1139
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1140
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
1141
|
+
height: IMaybe<ISimpleType<number>>;
|
|
1142
|
+
style: IOptionalIType<ISimpleType<"slope" | "thin" | "thick" | "block">, [undefined]>;
|
|
1143
|
+
}, {
|
|
1144
|
+
rename(name: string): void;
|
|
1145
|
+
setBaseHeight(baseHeight: number): void;
|
|
1146
|
+
setHeight(height: number): void;
|
|
1147
|
+
setStyle(style: "slope" | "thin" | "thick" | "block"): void;
|
|
1148
|
+
moveBy({ dr, dt }: {
|
|
1149
|
+
dr: number;
|
|
1150
|
+
dt: number;
|
|
1151
|
+
}): void;
|
|
1152
|
+
remove(): void;
|
|
1153
|
+
regenerateIds(randomizer: string): void;
|
|
1154
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1155
|
+
annotations: IArrayType<IModelType< {
|
|
1156
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1157
|
+
type: IOptionalIType<ISimpleType<AnnotationType>, [undefined]>;
|
|
1158
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1159
|
+
r: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1160
|
+
t: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1161
|
+
height: IMaybe<ISimpleType<number>>;
|
|
1162
|
+
size: IMaybe<ISimpleType<number>>;
|
|
1163
|
+
media: IMaybe<ISimpleType<string>>;
|
|
1164
|
+
is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1165
|
+
direction: IMaybe<ISimpleType<number>>;
|
|
1166
|
+
}, {
|
|
1167
|
+
setType(type: AnnotationType): void;
|
|
1168
|
+
rename(name: string): void;
|
|
1169
|
+
moveTo({ r, t }: CanvasCoord): void;
|
|
1170
|
+
setHeight(height: number): void;
|
|
1171
|
+
setSize(size: number): void;
|
|
1172
|
+
remove(): void;
|
|
1173
|
+
setMedia(url: string | undefined): void;
|
|
1174
|
+
setIs360(is360: boolean): void;
|
|
1175
|
+
setDirection(angle: number | undefined): void;
|
|
1176
|
+
regenerateId(randomizer: string): void;
|
|
1177
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1178
|
+
objects: IArrayType<IModelType< {
|
|
1179
|
+
catalogId: ISimpleType<string>;
|
|
1180
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1181
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1182
|
+
levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1183
|
+
position: IOptionalIType<IModelType< {
|
|
1184
|
+
x: ISimpleType<number>;
|
|
1185
|
+
z: ISimpleType<number>;
|
|
1186
|
+
} & {
|
|
1187
|
+
elevation: ISimpleType<number>;
|
|
1188
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1189
|
+
rotation: IOptionalIType<IModelType< {
|
|
1190
|
+
pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1191
|
+
yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1192
|
+
roll: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1193
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1194
|
+
dimensions: IOptionalIType<IModelType< {
|
|
1195
|
+
length: IMaybe<ISimpleType<number>>;
|
|
1196
|
+
width: IMaybe<ISimpleType<number>>;
|
|
1197
|
+
height: IMaybe<ISimpleType<number>>;
|
|
1198
|
+
}, {
|
|
1199
|
+
readonly safeValues: {
|
|
1200
|
+
length: number;
|
|
1201
|
+
width: number;
|
|
1202
|
+
height: number;
|
|
1203
|
+
};
|
|
1204
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1205
|
+
configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>>>;
|
|
1206
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1207
|
+
}, {
|
|
1208
|
+
rename(name: string): void;
|
|
1209
|
+
moveTo(position: Partial<SILevelCoord3d>): void;
|
|
1210
|
+
setLevelIndex(levelIndex: number): void;
|
|
1211
|
+
resize(dimensions: Partial<SIObjectDimensions>): void;
|
|
1212
|
+
rotate(rotation: Partial<SIObjectRotation>): void;
|
|
1213
|
+
configure(configurationChanges: Partial<ParametricObjectConfiguration>): void;
|
|
1214
|
+
remove(): void;
|
|
1215
|
+
regenerateId(randomizer: string): void;
|
|
1216
|
+
setExternal(external: boolean): void;
|
|
1217
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
1218
|
+
floorplan: IOptionalIType<IModelType< {
|
|
1219
|
+
url: IMaybe<ISimpleType<string>>;
|
|
1220
|
+
data: IMaybe<ISimpleType<string>>;
|
|
1221
|
+
r: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1222
|
+
t: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1223
|
+
scale: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1224
|
+
flipped: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1225
|
+
}, {
|
|
1226
|
+
isNil(): boolean;
|
|
1227
|
+
} & {
|
|
1228
|
+
setUrl(url: string): void;
|
|
1229
|
+
setData(data: string | undefined): void;
|
|
1230
|
+
moveTo({ r, t }: CanvasCoord): void;
|
|
1231
|
+
setScale(scale: number): void;
|
|
1232
|
+
setFlipped(flipped: boolean): void;
|
|
1233
|
+
remove(): void;
|
|
1234
|
+
} & {
|
|
1235
|
+
rescaleByFactor(factor: number, imageOnly?: boolean): void;
|
|
1236
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly hash: string;
|
|
1239
|
+
readonly points: ICanvasPoint[];
|
|
1240
|
+
} & {
|
|
1241
|
+
readonly boundingBox: CanvasBoundingBox | null;
|
|
1242
|
+
readonly centerPoint: CanvasCoord | null;
|
|
1243
|
+
readonly autoGroundHash: string;
|
|
1244
|
+
getHash({ only, ignore }: {
|
|
1245
|
+
only: any;
|
|
1246
|
+
ignore: any;
|
|
1247
|
+
}): string;
|
|
1248
|
+
readonly isEmpty: boolean;
|
|
1249
|
+
readonly openings: IWallOpening[];
|
|
1250
|
+
} & {
|
|
1251
|
+
readonly doors: IWallOpening[];
|
|
1252
|
+
readonly windows: IWallOpening[];
|
|
1253
|
+
readonly initialsFromName: string;
|
|
1254
|
+
} & {
|
|
1255
|
+
rename(name: string): void;
|
|
1256
|
+
setInitials(initials: string): void;
|
|
1257
|
+
setAutoInitials(enabled: boolean): void;
|
|
1258
|
+
newGround(ground?: Omit<SIGround, 'segments'> & {
|
|
1259
|
+
segments: SOGroundSegment[];
|
|
1260
|
+
}, forceId?: string): void;
|
|
1261
|
+
removeGround(id: string): void;
|
|
1262
|
+
removeAllGrounds(): void;
|
|
1263
|
+
newWall(wall?: Omit<SIWall, 'segments'> & {
|
|
1264
|
+
segments: SOAbstractSegment[] | SOWallSegment[];
|
|
1265
|
+
}): void;
|
|
1266
|
+
removeWall(id: string): void;
|
|
1267
|
+
removeAllWalls(): void;
|
|
1268
|
+
newRoof(): void;
|
|
1269
|
+
removeRoof(id: string): void;
|
|
1270
|
+
removeAllRoofs(): void;
|
|
1271
|
+
addStairs(stairs?: SIStair): void;
|
|
1272
|
+
removeStairs(id: string): void;
|
|
1273
|
+
removeAllStairs(): void;
|
|
1274
|
+
addAnnotation(annotation: SIAnnotation): void;
|
|
1275
|
+
removeAnnotation(id: string): void;
|
|
1276
|
+
removeAllAnnotations(): void;
|
|
1277
|
+
addObject(object: SIObject): void;
|
|
1278
|
+
removeObject(id: string): void;
|
|
1279
|
+
removeAllObjects(): void;
|
|
1280
|
+
setObjectsLevelIndex(levelIndex: number): void;
|
|
1281
|
+
updateObjectsLevelIndex(updater: (levelIndex: number) => number): void;
|
|
1282
|
+
regenerateIds(randomizer: string): void;
|
|
1283
|
+
} & {
|
|
1284
|
+
addObjects(objects: SIObject[]): void;
|
|
1285
|
+
clear(): void;
|
|
1286
|
+
}, _NotCustomized, _NotCustomized>;
|
|
1287
|
+
|
|
1288
|
+
declare const LevelCoord3d: IModelType< {
|
|
1289
|
+
x: ISimpleType<number>;
|
|
1290
|
+
z: ISimpleType<number>;
|
|
1291
|
+
} & {
|
|
1292
|
+
elevation: ISimpleType<number>;
|
|
1293
|
+
}, {}, _NotCustomized, _NotCustomized>;
|
|
1294
|
+
|
|
405
1295
|
declare interface LimitedPointerEvent {
|
|
406
1296
|
pointerX: number;
|
|
407
1297
|
pointerY: number;
|
|
@@ -424,13 +1314,20 @@ declare class Map_2 {
|
|
|
424
1314
|
remove: () => void;
|
|
425
1315
|
mapbox(): mapboxgl.Map | undefined;
|
|
426
1316
|
startViewer(options: MapViewerOptions): Promise<void>;
|
|
1317
|
+
addPointDataLayer<D extends UnknownSpaceData>(definition: PointMapDataLayerDefinition<D>): void;
|
|
1318
|
+
updatePointDataLayer<D extends UnknownSpaceData>(definitionUpdates: Partial<PointMapDataLayerDefinition<D>>): void;
|
|
1319
|
+
addPolygonDataLayer<D extends UnknownSpaceData>(definition: PolygonMapDataLayerDefinition<D>): void;
|
|
1320
|
+
updatePolygonDataLayer<D extends UnknownSpaceData>(definitionUpdates: Partial<PolygonMapDataLayerDefinition<D>>): void;
|
|
1321
|
+
removeDataLayer(id: string): void;
|
|
1322
|
+
removeAllDataLayers(): void;
|
|
1323
|
+
getDataElementPositionOnScreen(layerId: string, elementId: string): ScreenXY | null;
|
|
427
1324
|
setStyle(style: string): void;
|
|
428
1325
|
setDefaultStyle(): void;
|
|
429
1326
|
addSpaces(spaces: GeojsonSpace[]): void;
|
|
430
1327
|
addSpacesById(spaceIds: string[]): void;
|
|
431
1328
|
removeSpacesById(spaceIds: string[]): void;
|
|
432
1329
|
removeAllSpaces(): void;
|
|
433
|
-
updateRenderOptions(options:
|
|
1330
|
+
updateRenderOptions(options: PartialMapRenderOptions): void;
|
|
434
1331
|
showOsmBuildings(): void;
|
|
435
1332
|
hideOsmBuildings(): void;
|
|
436
1333
|
toggleOsmBuildings(): void;
|
|
@@ -464,6 +1361,12 @@ export declare interface MapCameraPlacement {
|
|
|
464
1361
|
center: GeoPoint;
|
|
465
1362
|
}
|
|
466
1363
|
|
|
1364
|
+
declare interface MapDataLayerSharedDefinition<T, D extends UnknownSpaceData> {
|
|
1365
|
+
onClick?: (dataElement: T & D, event: MapMouseEvent) => void;
|
|
1366
|
+
onHover?: (dataElement: T & D, event: MapMouseEvent) => void;
|
|
1367
|
+
onHoverOut?: (dataElement: T & D, event: MapMouseEvent) => void;
|
|
1368
|
+
}
|
|
1369
|
+
|
|
467
1370
|
export declare type MapOptions = {
|
|
468
1371
|
clientToken: string;
|
|
469
1372
|
disableErrorReporting?: boolean;
|
|
@@ -475,7 +1378,7 @@ export declare type MapOptions = {
|
|
|
475
1378
|
container: HTMLElement;
|
|
476
1379
|
});
|
|
477
1380
|
|
|
478
|
-
export declare interface
|
|
1381
|
+
export declare interface MapRenderOptions {
|
|
479
1382
|
footprint: {
|
|
480
1383
|
render: boolean;
|
|
481
1384
|
color: string;
|
|
@@ -505,9 +1408,10 @@ export declare interface MapViewerOptions {
|
|
|
505
1408
|
onError?: (errorMessage: string) => void;
|
|
506
1409
|
experimental__standardStyle?: boolean;
|
|
507
1410
|
onSpaceClick?: ({ space, levelIndex }: {
|
|
508
|
-
space:
|
|
1411
|
+
space: ValidGeojsonSpace | undefined;
|
|
509
1412
|
levelIndex: number;
|
|
510
1413
|
}) => void;
|
|
1414
|
+
legendPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
511
1415
|
}
|
|
512
1416
|
|
|
513
1417
|
declare interface Material {
|
|
@@ -520,10 +1424,38 @@ declare interface Material {
|
|
|
520
1424
|
|
|
521
1425
|
export declare type NoData = Record<string, never>;
|
|
522
1426
|
|
|
1427
|
+
declare type NominalDimensionsGetter<C> = (args: {
|
|
1428
|
+
length: number;
|
|
1429
|
+
width: number;
|
|
1430
|
+
height: number;
|
|
1431
|
+
previousDimensions: {
|
|
1432
|
+
length: number;
|
|
1433
|
+
width: number;
|
|
1434
|
+
height: number;
|
|
1435
|
+
};
|
|
1436
|
+
configuration: C;
|
|
1437
|
+
}) => {
|
|
1438
|
+
nLength: number;
|
|
1439
|
+
nWidth: number;
|
|
1440
|
+
nHeight: number;
|
|
1441
|
+
};
|
|
1442
|
+
|
|
523
1443
|
declare interface NonInteractiveDataLayer<T, D extends UnknownData> {
|
|
524
1444
|
legend?: LegendConfig;
|
|
525
1445
|
}
|
|
526
1446
|
|
|
1447
|
+
declare type NumberOption<C, K extends keyof C> = BaseOption<C, K> & {
|
|
1448
|
+
type: 'number';
|
|
1449
|
+
defaultValue: number | undefined;
|
|
1450
|
+
inputProps: {
|
|
1451
|
+
placeholder: string;
|
|
1452
|
+
min: number;
|
|
1453
|
+
max: number;
|
|
1454
|
+
step: number;
|
|
1455
|
+
precision: number;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
|
|
527
1459
|
declare interface NumericLegend extends Pick<LegendProps, 'colorScale' | 'domain' | 'ticks'> {
|
|
528
1460
|
type: 'numeric';
|
|
529
1461
|
}
|
|
@@ -574,6 +1506,65 @@ declare interface NumericScaleOptions {
|
|
|
574
1506
|
zeroAsNoData?: boolean;
|
|
575
1507
|
}
|
|
576
1508
|
|
|
1509
|
+
declare const Object_2: IModelType< {
|
|
1510
|
+
catalogId: ISimpleType<string>;
|
|
1511
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1512
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1513
|
+
levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1514
|
+
position: IOptionalIType<IModelType< {
|
|
1515
|
+
x: ISimpleType<number>;
|
|
1516
|
+
z: ISimpleType<number>;
|
|
1517
|
+
} & {
|
|
1518
|
+
elevation: ISimpleType<number>;
|
|
1519
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1520
|
+
rotation: IOptionalIType<IModelType< {
|
|
1521
|
+
pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1522
|
+
yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1523
|
+
roll: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1524
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1525
|
+
dimensions: IOptionalIType<IModelType< {
|
|
1526
|
+
length: IMaybe<ISimpleType<number>>;
|
|
1527
|
+
width: IMaybe<ISimpleType<number>>;
|
|
1528
|
+
height: IMaybe<ISimpleType<number>>;
|
|
1529
|
+
}, {
|
|
1530
|
+
readonly safeValues: {
|
|
1531
|
+
length: number;
|
|
1532
|
+
width: number;
|
|
1533
|
+
height: number;
|
|
1534
|
+
};
|
|
1535
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
1536
|
+
configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>>>;
|
|
1537
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1538
|
+
}, {
|
|
1539
|
+
rename(name: string): void;
|
|
1540
|
+
moveTo(position: Partial<SILevelCoord3d>): void;
|
|
1541
|
+
setLevelIndex(levelIndex: number): void;
|
|
1542
|
+
resize(dimensions: Partial<SIObjectDimensions>): void;
|
|
1543
|
+
rotate(rotation: Partial<SIObjectRotation>): void;
|
|
1544
|
+
configure(configurationChanges: Partial<ParametricObjectConfiguration>): void;
|
|
1545
|
+
remove(): void;
|
|
1546
|
+
regenerateId(randomizer: string): void;
|
|
1547
|
+
setExternal(external: boolean): void;
|
|
1548
|
+
}, _NotCustomized, _NotCustomized>;
|
|
1549
|
+
|
|
1550
|
+
declare const ObjectDimensions: IModelType< {
|
|
1551
|
+
length: IMaybe<ISimpleType<number>>;
|
|
1552
|
+
width: IMaybe<ISimpleType<number>>;
|
|
1553
|
+
height: IMaybe<ISimpleType<number>>;
|
|
1554
|
+
}, {
|
|
1555
|
+
readonly safeValues: {
|
|
1556
|
+
length: number;
|
|
1557
|
+
width: number;
|
|
1558
|
+
height: number;
|
|
1559
|
+
};
|
|
1560
|
+
}, _NotCustomized, _NotCustomized>;
|
|
1561
|
+
|
|
1562
|
+
declare const ObjectRotation: IModelType< {
|
|
1563
|
+
pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1564
|
+
yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1565
|
+
roll: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1566
|
+
}, {}, _NotCustomized, _NotCustomized>;
|
|
1567
|
+
|
|
577
1568
|
declare type OmitOptional<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
578
1569
|
|
|
579
1570
|
export declare type OnPickFn = (args: { coordinates: SmplrCoord3d; furnitureId?: string }) => void | Promise<void>
|
|
@@ -594,6 +1585,28 @@ export declare interface Opening {
|
|
|
594
1585
|
|
|
595
1586
|
declare type OpeningType = 'door' | 'window';
|
|
596
1587
|
|
|
1588
|
+
declare type Option_2<C, K extends keyof C> = BooleanOption<C, K> | NumberOption<C, K> | SelectOption<C, K>;
|
|
1589
|
+
|
|
1590
|
+
declare type Options<C> = {
|
|
1591
|
+
[K in keyof C]: Option_2<C, K>;
|
|
1592
|
+
}[keyof C];
|
|
1593
|
+
|
|
1594
|
+
declare const options: Options<ChairConfiguration>[];
|
|
1595
|
+
|
|
1596
|
+
declare const options_2: Options<CubeConfiguration>[];
|
|
1597
|
+
|
|
1598
|
+
declare const options_3: Options<DeskConfiguration>[];
|
|
1599
|
+
|
|
1600
|
+
declare const options_4: Options<ScreenConfiguration>[];
|
|
1601
|
+
|
|
1602
|
+
declare const options_5: Options<ShelvesConfiguration>[];
|
|
1603
|
+
|
|
1604
|
+
declare const options_6: Options<TableConfiguration>[];
|
|
1605
|
+
|
|
1606
|
+
declare const options_7: Options<TableAndChairsConfiguration>[];
|
|
1607
|
+
|
|
1608
|
+
declare const options_8: Options<TriangularDeskConfiguration>[];
|
|
1609
|
+
|
|
597
1610
|
declare interface OrbitCamera extends ArcRotateCamera {
|
|
598
1611
|
smplrData: {
|
|
599
1612
|
persisted: boolean;
|
|
@@ -629,6 +1642,37 @@ export declare interface OrbitCameraPlacementUpdate {
|
|
|
629
1642
|
};
|
|
630
1643
|
}
|
|
631
1644
|
|
|
1645
|
+
declare interface OrientatedGeoPoint extends GeoPoint {
|
|
1646
|
+
heading: number;
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
declare type ParametricObject2dRenderer<C> = (args: {
|
|
1650
|
+
scene: SmplrScene;
|
|
1651
|
+
width: number;
|
|
1652
|
+
length: number;
|
|
1653
|
+
configuration: Partial<C>;
|
|
1654
|
+
renderFilter?: Filter;
|
|
1655
|
+
newCamera?: boolean;
|
|
1656
|
+
minimumLayerGap?: number;
|
|
1657
|
+
defaults: SOSpaceDefaults;
|
|
1658
|
+
}) => {
|
|
1659
|
+
stroke?: Mesh;
|
|
1660
|
+
fill: Mesh;
|
|
1661
|
+
};
|
|
1662
|
+
|
|
1663
|
+
declare type ParametricObject3dRenderer<C> = (args: {
|
|
1664
|
+
scene: SmplrScene;
|
|
1665
|
+
width: number;
|
|
1666
|
+
length: number;
|
|
1667
|
+
height: number;
|
|
1668
|
+
configuration: Partial<C>;
|
|
1669
|
+
renderFilter?: Filter;
|
|
1670
|
+
newCamera?: boolean;
|
|
1671
|
+
minimumLayerGap?: number;
|
|
1672
|
+
}) => Mesh;
|
|
1673
|
+
|
|
1674
|
+
declare type ParametricObjectConfiguration = chair.ChairConfiguration | cube.CubeConfiguration | desk.DeskConfiguration | screen_2.ScreenConfiguration | shelves.ShelvesConfiguration | table.TableConfiguration | tableAndChairs.TableAndChairsConfiguration | triangularDesk.TriangularDeskConfiguration;
|
|
1675
|
+
|
|
632
1676
|
export declare interface PartialMapCameraPlacement {
|
|
633
1677
|
pitch?: number;
|
|
634
1678
|
bearing?: number;
|
|
@@ -636,7 +1680,7 @@ export declare interface PartialMapCameraPlacement {
|
|
|
636
1680
|
center?: GeoPoint;
|
|
637
1681
|
}
|
|
638
1682
|
|
|
639
|
-
export declare type
|
|
1683
|
+
export declare type PartialMapRenderOptions = DeepPartial<MapRenderOptions>;
|
|
640
1684
|
|
|
641
1685
|
export declare interface PartialOrbitCameraPlacement {
|
|
642
1686
|
alpha?: number;
|
|
@@ -666,6 +1710,8 @@ export declare type PointDataLayer<D extends UnknownData = NoData> = BaseDataLay
|
|
|
666
1710
|
disableElevationCorrection?: boolean;
|
|
667
1711
|
} & PointShapeOptions<D>;
|
|
668
1712
|
|
|
1713
|
+
declare type PointMapDataLayerDefinition<D extends UnknownSpaceData = SpaceNoData> = Omit<PointDataLayer<D>, 'type' | 'onDrag' | 'onDrop' | 'disableElevationCorrection' | 'onClick' | 'onHover' | 'onHoverOut'> & MapDataLayerSharedDefinition<PointData, D>;
|
|
1714
|
+
|
|
669
1715
|
declare type PointShapeOptions<D> = SphereOptions<D> | CubeOptions<D>;
|
|
670
1716
|
|
|
671
1717
|
export declare type PolygonData = BaseData & {
|
|
@@ -692,6 +1738,8 @@ export declare interface PolygonDataLayer<D extends UnknownData = NoData> extend
|
|
|
692
1738
|
disableElevationCorrection?: boolean;
|
|
693
1739
|
}
|
|
694
1740
|
|
|
1741
|
+
declare type PolygonMapDataLayerDefinition<D extends UnknownSpaceData = SpaceNoData> = Omit<PolygonDataLayer<D>, 'type' | 'alpha' | 'onDrag' | 'onDrop' | 'disableReshape' | 'reshapeBoxColor' | 'disableElevationCorrection' | 'onClick' | 'onHover' | 'onHoverOut'> & MapDataLayerSharedDefinition<PolygonData, D>;
|
|
1742
|
+
|
|
695
1743
|
export declare type PolylineData = BaseData & {
|
|
696
1744
|
coordinates: SmplrCoord3d[];
|
|
697
1745
|
};
|
|
@@ -930,24 +1978,216 @@ declare const ragSwatches: <C extends string>({ categories, colors, nodata, excl
|
|
|
930
1978
|
label: string;
|
|
931
1979
|
}[];
|
|
932
1980
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
coordinates: SmplrCoord2d[][];
|
|
937
|
-
}
|
|
1981
|
+
declare const render2d: ParametricObject2dRenderer<ChairConfiguration & {
|
|
1982
|
+
closed?: boolean;
|
|
1983
|
+
}>;
|
|
938
1984
|
|
|
939
|
-
declare
|
|
940
|
-
screenX: number;
|
|
941
|
-
screenY: number;
|
|
942
|
-
}
|
|
1985
|
+
declare const render2d_2: ParametricObject2dRenderer<CubeConfiguration>;
|
|
943
1986
|
|
|
944
|
-
|
|
945
|
-
loadingMessage?: string;
|
|
946
|
-
onReady?: () => void;
|
|
947
|
-
onError?: (errorMessage: string) => void;
|
|
948
|
-
}
|
|
1987
|
+
declare const render2d_3: ParametricObject2dRenderer<DeskConfiguration>;
|
|
949
1988
|
|
|
950
|
-
declare
|
|
1989
|
+
declare const render2d_4: ParametricObject2dRenderer<ScreenConfiguration>;
|
|
1990
|
+
|
|
1991
|
+
declare const render2d_5: ParametricObject2dRenderer<ShelvesConfiguration>;
|
|
1992
|
+
|
|
1993
|
+
declare const render2d_6: ParametricObject2dRenderer<TableConfiguration>;
|
|
1994
|
+
|
|
1995
|
+
declare const render2d_7: ParametricObject2dRenderer<TableAndChairsConfiguration>;
|
|
1996
|
+
|
|
1997
|
+
declare const render2d_8: ParametricObject2dRenderer<TriangularDeskConfiguration>;
|
|
1998
|
+
|
|
1999
|
+
declare const render3d: ParametricObject3dRenderer<ChairConfiguration>;
|
|
2000
|
+
|
|
2001
|
+
declare const render3d_2: ParametricObject3dRenderer<CubeConfiguration>;
|
|
2002
|
+
|
|
2003
|
+
declare const render3d_3: ParametricObject3dRenderer<DeskConfiguration>;
|
|
2004
|
+
|
|
2005
|
+
declare const render3d_4: ParametricObject3dRenderer<ScreenConfiguration>;
|
|
2006
|
+
|
|
2007
|
+
declare const render3d_5: ParametricObject3dRenderer<ShelvesConfiguration>;
|
|
2008
|
+
|
|
2009
|
+
declare const render3d_6: ParametricObject3dRenderer<TableConfiguration>;
|
|
2010
|
+
|
|
2011
|
+
declare const render3d_7: ParametricObject3dRenderer<TableAndChairsConfiguration>;
|
|
2012
|
+
|
|
2013
|
+
declare const render3d_8: ParametricObject3dRenderer<TriangularDeskConfiguration>;
|
|
2014
|
+
|
|
2015
|
+
declare const Roof: IModelType< {
|
|
2016
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2017
|
+
type: IOptionalIType<ISimpleType<"roof">, [undefined]>;
|
|
2018
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2019
|
+
options: IOptionalIType<IModelType< {
|
|
2020
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
2021
|
+
topHeight: IMaybe<ISimpleType<number>>;
|
|
2022
|
+
angle: IMaybe<ISimpleType<number>>;
|
|
2023
|
+
}, {
|
|
2024
|
+
setBaseHeight(baseHeight: number): void;
|
|
2025
|
+
setTopHeight(topHeight: number): void;
|
|
2026
|
+
setAngle(angle: number): void;
|
|
2027
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2028
|
+
segments: IArrayType<IModelType< {
|
|
2029
|
+
start: IModelType< {
|
|
2030
|
+
r: ISimpleType<number>;
|
|
2031
|
+
t: ISimpleType<number>;
|
|
2032
|
+
} & {
|
|
2033
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2034
|
+
}, {
|
|
2035
|
+
regenerateId(randomizer: string): void;
|
|
2036
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2037
|
+
end: IModelType< {
|
|
2038
|
+
r: ISimpleType<number>;
|
|
2039
|
+
t: ISimpleType<number>;
|
|
2040
|
+
} & {
|
|
2041
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2042
|
+
}, {
|
|
2043
|
+
regenerateId(randomizer: string): void;
|
|
2044
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2045
|
+
} & {
|
|
2046
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2047
|
+
base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2048
|
+
}, {
|
|
2049
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2050
|
+
} & {
|
|
2051
|
+
regenerateIds(randomizer: string): void;
|
|
2052
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2053
|
+
}, {
|
|
2054
|
+
newInParent(): void;
|
|
2055
|
+
removeInParent(): void;
|
|
2056
|
+
clearInEditor(id: string): void;
|
|
2057
|
+
regenerateIds(randomizer: string): void;
|
|
2058
|
+
} & {
|
|
2059
|
+
rename(name: string): void;
|
|
2060
|
+
setBaseSegmentById(id: string): void;
|
|
2061
|
+
} & {
|
|
2062
|
+
readonly points: SOCanvasPoint[];
|
|
2063
|
+
readonly geometry: SegmentGeometry;
|
|
2064
|
+
} & {
|
|
2065
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
2066
|
+
addPointAfter({ pointId }: {
|
|
2067
|
+
pointId: string;
|
|
2068
|
+
}): void;
|
|
2069
|
+
close(): void;
|
|
2070
|
+
removePoint(id: string): void;
|
|
2071
|
+
} & {
|
|
2072
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
2073
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2074
|
+
|
|
2075
|
+
export declare interface RoomWithHoles {
|
|
2076
|
+
room: SmplrCoord2d[];
|
|
2077
|
+
holes: SmplrCoord2d[][];
|
|
2078
|
+
coordinates: SmplrCoord2d[][];
|
|
2079
|
+
}
|
|
2080
|
+
|
|
2081
|
+
declare namespace screen_2 {
|
|
2082
|
+
export {
|
|
2083
|
+
key_4 as key,
|
|
2084
|
+
ScreenConfiguration,
|
|
2085
|
+
options_4 as options,
|
|
2086
|
+
render3d_4 as render3d,
|
|
2087
|
+
render2d_4 as render2d,
|
|
2088
|
+
getNominalDimensions_4 as getNominalDimensions
|
|
2089
|
+
}
|
|
2090
|
+
}
|
|
2091
|
+
|
|
2092
|
+
declare type ScreenConfiguration = {
|
|
2093
|
+
foot: 'television' | 'computer' | 'no-foot';
|
|
2094
|
+
};
|
|
2095
|
+
|
|
2096
|
+
declare interface ScreenXY {
|
|
2097
|
+
screenX: number;
|
|
2098
|
+
screenY: number;
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
declare type SegmentGeometry = 'point' | 'unknown' | 'polygon' | 'line';
|
|
2102
|
+
|
|
2103
|
+
declare type SelectOption<C, K extends keyof C> = BaseOption<C, K> & {
|
|
2104
|
+
type: 'select';
|
|
2105
|
+
defaultValue: C[K] | undefined;
|
|
2106
|
+
possibleValues: C[K][];
|
|
2107
|
+
};
|
|
2108
|
+
|
|
2109
|
+
export declare interface SessionOptions {
|
|
2110
|
+
loadingMessage?: string;
|
|
2111
|
+
onReady?: () => void;
|
|
2112
|
+
onError?: (errorMessage: string) => void;
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
declare namespace shelves {
|
|
2116
|
+
export {
|
|
2117
|
+
key_5 as key,
|
|
2118
|
+
ShelvesConfiguration,
|
|
2119
|
+
options_5 as options,
|
|
2120
|
+
render3d_5 as render3d,
|
|
2121
|
+
render2d_5 as render2d,
|
|
2122
|
+
getNominalDimensions_5 as getNominalDimensions
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
declare type ShelvesConfiguration = {
|
|
2127
|
+
rows: number;
|
|
2128
|
+
columns: number;
|
|
2129
|
+
doors: 'no-doors' | 'swing-doors' | 'sliding-doors' | 'drawers';
|
|
2130
|
+
doorPanels: number;
|
|
2131
|
+
doorRows: number;
|
|
2132
|
+
doorColumns: number;
|
|
2133
|
+
frameThickness: number;
|
|
2134
|
+
glassDoor: boolean;
|
|
2135
|
+
backPanel: boolean;
|
|
2136
|
+
};
|
|
2137
|
+
|
|
2138
|
+
declare interface SIAnnotation extends SnapshotIn<typeof Annotation> {
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
declare interface SICanvasPoint extends SnapshotIn<typeof CanvasPoint> {
|
|
2142
|
+
}
|
|
2143
|
+
|
|
2144
|
+
declare interface SIGround extends SnapshotIn<typeof Ground> {
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
declare interface SIGroundSegment extends SnapshotIn<typeof GroundSegment> {
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
declare interface SIHole extends SnapshotIn<typeof Hole> {
|
|
2151
|
+
}
|
|
2152
|
+
|
|
2153
|
+
declare interface SILevel extends Instance<typeof Level> {
|
|
2154
|
+
}
|
|
2155
|
+
|
|
2156
|
+
declare interface SILevelCoord3d extends SnapshotIn<typeof LevelCoord3d> {
|
|
2157
|
+
}
|
|
2158
|
+
|
|
2159
|
+
declare interface SIObject extends SnapshotIn<typeof Object_2> {
|
|
2160
|
+
}
|
|
2161
|
+
|
|
2162
|
+
declare interface SIObjectDimensions extends SnapshotIn<typeof ObjectDimensions> {
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2165
|
+
declare interface SIObjectRotation extends SnapshotIn<typeof ObjectRotation> {
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
declare interface SIStair extends SnapshotIn<typeof Stair> {
|
|
2169
|
+
}
|
|
2170
|
+
|
|
2171
|
+
declare interface SIWall extends SnapshotIn<typeof Wall> {
|
|
2172
|
+
}
|
|
2173
|
+
|
|
2174
|
+
declare interface SIWallOpening extends SnapshotIn<typeof WallOpening> {
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
declare interface SIWallOpeningDimensions extends SnapshotIn<typeof WallOpeningDimensions> {
|
|
2178
|
+
}
|
|
2179
|
+
|
|
2180
|
+
declare interface SIWallOpeningPosition extends SnapshotIn<typeof WallOpeningPosition> {
|
|
2181
|
+
}
|
|
2182
|
+
|
|
2183
|
+
declare type SmplrCamera = OrbitCamera | UniversalCamera | VrCamera;
|
|
2184
|
+
|
|
2185
|
+
declare enum SmplrCameraType {
|
|
2186
|
+
Orbit = "orbit",
|
|
2187
|
+
Walkin = "walkin",
|
|
2188
|
+
Game = "game",
|
|
2189
|
+
Vr = "vr"
|
|
2190
|
+
}
|
|
951
2191
|
|
|
952
2192
|
export declare interface SmplrCoord2d {
|
|
953
2193
|
levelIndex: number;
|
|
@@ -978,9 +2218,27 @@ declare interface SmplrScene extends Scene {
|
|
|
978
2218
|
|
|
979
2219
|
declare const smplrToCssColor: (c: string) => string;
|
|
980
2220
|
|
|
2221
|
+
declare interface SOAbstractSegment extends SnapshotOut<typeof AbstractSegment> {
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
declare interface SOCanvasPoint extends SnapshotOut<typeof CanvasPoint> {
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
declare interface SOGroundSegment extends SnapshotOut<typeof GroundSegment> {
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
declare interface SOSpace extends SnapshotOut<typeof Space_2> {
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
declare interface SOSpaceDefaults extends SnapshotOut<typeof SpaceDefaults> {
|
|
2234
|
+
}
|
|
2235
|
+
|
|
981
2236
|
declare interface SOWallOpeningOptions extends SnapshotOut<typeof WallOpeningOptions> {
|
|
982
2237
|
}
|
|
983
2238
|
|
|
2239
|
+
declare interface SOWallSegment extends SnapshotOut<typeof WallSegment> {
|
|
2240
|
+
}
|
|
2241
|
+
|
|
984
2242
|
export declare class Space {
|
|
985
2243
|
private options;
|
|
986
2244
|
private viewerStarted;
|
|
@@ -1046,6 +2304,615 @@ export declare class Space {
|
|
|
1046
2304
|
}): Promise<string>;
|
|
1047
2305
|
}
|
|
1048
2306
|
|
|
2307
|
+
declare const Space_2: IModelType< {
|
|
2308
|
+
levels: IOptionalIType<IArrayType<IModelType< {
|
|
2309
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2310
|
+
initials: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2311
|
+
autoInitials: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2312
|
+
grounds: IOptionalIType<IArrayType<IModelType< {
|
|
2313
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2314
|
+
type: IOptionalIType<ISimpleType<"ground">, [undefined]>;
|
|
2315
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2316
|
+
options: IOptionalIType<IModelType< {
|
|
2317
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender">, [undefined]>;
|
|
2318
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
2319
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
2320
|
+
contour: IMaybe<ISimpleType<number>>;
|
|
2321
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2322
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2323
|
+
}, {
|
|
2324
|
+
setType(type: "normal" | "shell" | "norender"): void;
|
|
2325
|
+
setBaseHeight(baseHeight: number): void;
|
|
2326
|
+
setThickness(thickness: number): void;
|
|
2327
|
+
setContour(contour: number): void;
|
|
2328
|
+
setStyle(style: string): void;
|
|
2329
|
+
setExternal(external: boolean): void;
|
|
2330
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2331
|
+
segments: IArrayType<IModelType< {
|
|
2332
|
+
start: IModelType< {
|
|
2333
|
+
r: ISimpleType<number>;
|
|
2334
|
+
t: ISimpleType<number>;
|
|
2335
|
+
} & {
|
|
2336
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2337
|
+
}, {
|
|
2338
|
+
regenerateId(randomizer: string): void;
|
|
2339
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2340
|
+
end: IModelType< {
|
|
2341
|
+
r: ISimpleType<number>;
|
|
2342
|
+
t: ISimpleType<number>;
|
|
2343
|
+
} & {
|
|
2344
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2345
|
+
}, {
|
|
2346
|
+
regenerateId(randomizer: string): void;
|
|
2347
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2348
|
+
}, {
|
|
2349
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2350
|
+
} & {
|
|
2351
|
+
regenerateIds(randomizer: string): void;
|
|
2352
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2353
|
+
holes: IArrayType<IModelType< {
|
|
2354
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2355
|
+
type: IOptionalIType<ISimpleType<"hole">, [undefined]>;
|
|
2356
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2357
|
+
segments: IArrayType<IModelType< {
|
|
2358
|
+
start: IModelType< {
|
|
2359
|
+
r: ISimpleType<number>;
|
|
2360
|
+
t: ISimpleType<number>;
|
|
2361
|
+
} & {
|
|
2362
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2363
|
+
}, {
|
|
2364
|
+
regenerateId(randomizer: string): void;
|
|
2365
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2366
|
+
end: IModelType< {
|
|
2367
|
+
r: ISimpleType<number>;
|
|
2368
|
+
t: ISimpleType<number>;
|
|
2369
|
+
} & {
|
|
2370
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2371
|
+
}, {
|
|
2372
|
+
regenerateId(randomizer: string): void;
|
|
2373
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2374
|
+
}, {
|
|
2375
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2376
|
+
} & {
|
|
2377
|
+
regenerateIds(randomizer: string): void;
|
|
2378
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2379
|
+
}, {
|
|
2380
|
+
getGround(): IGround;
|
|
2381
|
+
} & {
|
|
2382
|
+
newInParent(): void;
|
|
2383
|
+
removeInParent(): void;
|
|
2384
|
+
clearInEditor(id: string): void;
|
|
2385
|
+
regenerateIds(randomizer: string): void;
|
|
2386
|
+
} & {
|
|
2387
|
+
rename(name: string): void;
|
|
2388
|
+
} & {
|
|
2389
|
+
readonly points: SOCanvasPoint[];
|
|
2390
|
+
readonly geometry: SegmentGeometry;
|
|
2391
|
+
} & {
|
|
2392
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
2393
|
+
addPointAfter({ pointId }: {
|
|
2394
|
+
pointId: string;
|
|
2395
|
+
}): void;
|
|
2396
|
+
close(): void;
|
|
2397
|
+
removePoint(id: string): void;
|
|
2398
|
+
} & {
|
|
2399
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
2400
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2401
|
+
}, {
|
|
2402
|
+
newInParent(): void;
|
|
2403
|
+
removeInParent(): void;
|
|
2404
|
+
clearInEditor(id: string): void;
|
|
2405
|
+
regenerateIds(randomizer: string): void;
|
|
2406
|
+
} & {
|
|
2407
|
+
rename(name: string): void;
|
|
2408
|
+
addHole(hole?: (Omit<SIHole, "segments"> & {
|
|
2409
|
+
segments: SOGroundSegment[];
|
|
2410
|
+
}) | undefined): void;
|
|
2411
|
+
removeHole(holeId: string): void;
|
|
2412
|
+
replaceSegments(segments: SIGroundSegment[]): void;
|
|
2413
|
+
} & {
|
|
2414
|
+
readonly points: SOCanvasPoint[];
|
|
2415
|
+
readonly geometry: SegmentGeometry;
|
|
2416
|
+
} & {
|
|
2417
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
2418
|
+
addPointAfter({ pointId }: {
|
|
2419
|
+
pointId: string;
|
|
2420
|
+
}): void;
|
|
2421
|
+
close(): void;
|
|
2422
|
+
removePoint(id: string): void;
|
|
2423
|
+
} & {
|
|
2424
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
2425
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
2426
|
+
walls: IOptionalIType<IArrayType<IModelType< {
|
|
2427
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2428
|
+
type: IOptionalIType<ISimpleType<"wall">, [undefined]>;
|
|
2429
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2430
|
+
options: IOptionalIType<IModelType< {
|
|
2431
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender" | "structural">, [undefined]>;
|
|
2432
|
+
cap: IOptionalIType<ISimpleType<"flat" | "round">, [undefined]>;
|
|
2433
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2434
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
2435
|
+
autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2436
|
+
partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2437
|
+
}, {
|
|
2438
|
+
setType(type: "normal" | "shell" | "norender" | "structural"): void;
|
|
2439
|
+
setCap(cap: "flat" | "round"): void;
|
|
2440
|
+
setHeight(height: number): void;
|
|
2441
|
+
setThickness(thickness: number): void;
|
|
2442
|
+
setAutoFacade(autoFacade: boolean): void;
|
|
2443
|
+
setPartOfFacade(partOfFacade: boolean): void;
|
|
2444
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2445
|
+
segments: IArrayType<IModelType< {
|
|
2446
|
+
start: IModelType< {
|
|
2447
|
+
r: ISimpleType<number>;
|
|
2448
|
+
t: ISimpleType<number>;
|
|
2449
|
+
} & {
|
|
2450
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2451
|
+
}, {
|
|
2452
|
+
regenerateId(randomizer: string): void;
|
|
2453
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2454
|
+
end: IModelType< {
|
|
2455
|
+
r: ISimpleType<number>;
|
|
2456
|
+
t: ISimpleType<number>;
|
|
2457
|
+
} & {
|
|
2458
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2459
|
+
}, {
|
|
2460
|
+
regenerateId(randomizer: string): void;
|
|
2461
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2462
|
+
} & {
|
|
2463
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2464
|
+
openings: IArrayType<IModelType< {
|
|
2465
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2466
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2467
|
+
type: ISimpleType<"door" | "window">;
|
|
2468
|
+
dimensions: IOptionalIType<IModelType< {
|
|
2469
|
+
width: IMaybe<ISimpleType<number>>;
|
|
2470
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2471
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
2472
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2473
|
+
position: IMaybe<IModelType< {
|
|
2474
|
+
from: ISimpleType<"start" | "end">;
|
|
2475
|
+
distance: ISimpleType<number>;
|
|
2476
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
2477
|
+
options: IOptionalIType<IModelType< {
|
|
2478
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2479
|
+
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2480
|
+
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2481
|
+
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2482
|
+
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2483
|
+
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2484
|
+
swapInOut: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2485
|
+
swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2486
|
+
glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2487
|
+
openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2488
|
+
panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2489
|
+
openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2490
|
+
railingHeight: IMaybe<ISimpleType<number>>;
|
|
2491
|
+
railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2492
|
+
}, {
|
|
2493
|
+
setStyle(style: string): void;
|
|
2494
|
+
setNbOfPanels(nbOfPanels: number): void;
|
|
2495
|
+
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
2496
|
+
setCenterSplit(centerSplit: boolean): void;
|
|
2497
|
+
setSwapKnob(swapKnob: boolean): void;
|
|
2498
|
+
setSwapInOut(swapInOut: boolean): void;
|
|
2499
|
+
setSwapPanels(swapPanels: boolean): void;
|
|
2500
|
+
setTwoPanels(twoPanels: boolean): void;
|
|
2501
|
+
setGlass(glass: boolean): void;
|
|
2502
|
+
setOpenFrom(openFrom: string): void;
|
|
2503
|
+
setPanelsOpened(panelsOpened: number): void;
|
|
2504
|
+
setOpenAngle(openAngle: number): void;
|
|
2505
|
+
setRailingHeight(railingHeight: number): void;
|
|
2506
|
+
setRailingStyle(railingStyle: string): void;
|
|
2507
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2508
|
+
}, {
|
|
2509
|
+
readonly segment: IWallSegment;
|
|
2510
|
+
} & {
|
|
2511
|
+
readonly feature: IWall;
|
|
2512
|
+
readonly direction: number;
|
|
2513
|
+
} & {
|
|
2514
|
+
readonly orientation: "horizontal" | "vertical";
|
|
2515
|
+
} & {
|
|
2516
|
+
verifyOpeningPosition(): void;
|
|
2517
|
+
regenerateId(randomizer: string): void;
|
|
2518
|
+
} & {
|
|
2519
|
+
rename(name: string): void;
|
|
2520
|
+
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
2521
|
+
moveTo(position: SIWallOpeningPosition): void;
|
|
2522
|
+
moveInDirection(direction: URDL, distance?: number): void;
|
|
2523
|
+
remove(): void;
|
|
2524
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2525
|
+
}, {
|
|
2526
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2527
|
+
} & {
|
|
2528
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2529
|
+
} & {
|
|
2530
|
+
addOpening(opening: SIWallOpening): void;
|
|
2531
|
+
removeOpening(id: string): void;
|
|
2532
|
+
regenerateIds(randomizer: string): void;
|
|
2533
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2534
|
+
}, {
|
|
2535
|
+
newInParent(): void;
|
|
2536
|
+
removeInParent(): void;
|
|
2537
|
+
clearInEditor(id: string): void;
|
|
2538
|
+
regenerateIds(randomizer: string): void;
|
|
2539
|
+
} & {
|
|
2540
|
+
rename(name: string): void;
|
|
2541
|
+
} & {
|
|
2542
|
+
readonly points: SOCanvasPoint[];
|
|
2543
|
+
readonly geometry: SegmentGeometry;
|
|
2544
|
+
} & {
|
|
2545
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
2546
|
+
addPointAfter({ pointId }: {
|
|
2547
|
+
pointId: string;
|
|
2548
|
+
}): void;
|
|
2549
|
+
close(): void;
|
|
2550
|
+
removePoint(id: string): void;
|
|
2551
|
+
} & {
|
|
2552
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
2553
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
2554
|
+
roofs: IOptionalIType<IArrayType<IModelType< {
|
|
2555
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2556
|
+
type: IOptionalIType<ISimpleType<"roof">, [undefined]>;
|
|
2557
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2558
|
+
options: IOptionalIType<IModelType< {
|
|
2559
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
2560
|
+
topHeight: IMaybe<ISimpleType<number>>;
|
|
2561
|
+
angle: IMaybe<ISimpleType<number>>;
|
|
2562
|
+
}, {
|
|
2563
|
+
setBaseHeight(baseHeight: number): void;
|
|
2564
|
+
setTopHeight(topHeight: number): void;
|
|
2565
|
+
setAngle(angle: number): void;
|
|
2566
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2567
|
+
segments: IArrayType<IModelType< {
|
|
2568
|
+
start: IModelType< {
|
|
2569
|
+
r: ISimpleType<number>;
|
|
2570
|
+
t: ISimpleType<number>;
|
|
2571
|
+
} & {
|
|
2572
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2573
|
+
}, {
|
|
2574
|
+
regenerateId(randomizer: string): void;
|
|
2575
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2576
|
+
end: IModelType< {
|
|
2577
|
+
r: ISimpleType<number>;
|
|
2578
|
+
t: ISimpleType<number>;
|
|
2579
|
+
} & {
|
|
2580
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2581
|
+
}, {
|
|
2582
|
+
regenerateId(randomizer: string): void;
|
|
2583
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2584
|
+
} & {
|
|
2585
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2586
|
+
base: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2587
|
+
}, {
|
|
2588
|
+
readonly centerPoint: SOCanvasPoint;
|
|
2589
|
+
} & {
|
|
2590
|
+
regenerateIds(randomizer: string): void;
|
|
2591
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2592
|
+
}, {
|
|
2593
|
+
newInParent(): void;
|
|
2594
|
+
removeInParent(): void;
|
|
2595
|
+
clearInEditor(id: string): void;
|
|
2596
|
+
regenerateIds(randomizer: string): void;
|
|
2597
|
+
} & {
|
|
2598
|
+
rename(name: string): void;
|
|
2599
|
+
setBaseSegmentById(id: string): void;
|
|
2600
|
+
} & {
|
|
2601
|
+
readonly points: SOCanvasPoint[];
|
|
2602
|
+
readonly geometry: SegmentGeometry;
|
|
2603
|
+
} & {
|
|
2604
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
2605
|
+
addPointAfter({ pointId }: {
|
|
2606
|
+
pointId: string;
|
|
2607
|
+
}): void;
|
|
2608
|
+
close(): void;
|
|
2609
|
+
removePoint(id: string): void;
|
|
2610
|
+
} & {
|
|
2611
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
2612
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
2613
|
+
stairs: IArrayType<IModelType< {
|
|
2614
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2615
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2616
|
+
bottomSegment: IArrayType<IModelType< {
|
|
2617
|
+
r: ISimpleType<number>;
|
|
2618
|
+
t: ISimpleType<number>;
|
|
2619
|
+
} & {
|
|
2620
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2621
|
+
}, {
|
|
2622
|
+
regenerateId(randomizer: string): void;
|
|
2623
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2624
|
+
topSegment: IArrayType<IModelType< {
|
|
2625
|
+
r: ISimpleType<number>;
|
|
2626
|
+
t: ISimpleType<number>;
|
|
2627
|
+
} & {
|
|
2628
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2629
|
+
}, {
|
|
2630
|
+
regenerateId(randomizer: string): void;
|
|
2631
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2632
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
2633
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2634
|
+
style: IOptionalIType<ISimpleType<"slope" | "thin" | "thick" | "block">, [undefined]>;
|
|
2635
|
+
}, {
|
|
2636
|
+
rename(name: string): void;
|
|
2637
|
+
setBaseHeight(baseHeight: number): void;
|
|
2638
|
+
setHeight(height: number): void;
|
|
2639
|
+
setStyle(style: "slope" | "thin" | "thick" | "block"): void;
|
|
2640
|
+
moveBy({ dr, dt }: {
|
|
2641
|
+
dr: number;
|
|
2642
|
+
dt: number;
|
|
2643
|
+
}): void;
|
|
2644
|
+
remove(): void;
|
|
2645
|
+
regenerateIds(randomizer: string): void;
|
|
2646
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2647
|
+
annotations: IArrayType<IModelType< {
|
|
2648
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2649
|
+
type: IOptionalIType<ISimpleType<AnnotationType>, [undefined]>;
|
|
2650
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2651
|
+
r: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2652
|
+
t: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2653
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2654
|
+
size: IMaybe<ISimpleType<number>>;
|
|
2655
|
+
media: IMaybe<ISimpleType<string>>;
|
|
2656
|
+
is360: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2657
|
+
direction: IMaybe<ISimpleType<number>>;
|
|
2658
|
+
}, {
|
|
2659
|
+
setType(type: AnnotationType): void;
|
|
2660
|
+
rename(name: string): void;
|
|
2661
|
+
moveTo({ r, t }: CanvasCoord): void;
|
|
2662
|
+
setHeight(height: number): void;
|
|
2663
|
+
setSize(size: number): void;
|
|
2664
|
+
remove(): void;
|
|
2665
|
+
setMedia(url: string | undefined): void;
|
|
2666
|
+
setIs360(is360: boolean): void;
|
|
2667
|
+
setDirection(angle: number | undefined): void;
|
|
2668
|
+
regenerateId(randomizer: string): void;
|
|
2669
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2670
|
+
objects: IArrayType<IModelType< {
|
|
2671
|
+
catalogId: ISimpleType<string>;
|
|
2672
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2673
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2674
|
+
levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2675
|
+
position: IOptionalIType<IModelType< {
|
|
2676
|
+
x: ISimpleType<number>;
|
|
2677
|
+
z: ISimpleType<number>;
|
|
2678
|
+
} & {
|
|
2679
|
+
elevation: ISimpleType<number>;
|
|
2680
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2681
|
+
rotation: IOptionalIType<IModelType< {
|
|
2682
|
+
pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2683
|
+
yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2684
|
+
roll: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2685
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2686
|
+
dimensions: IOptionalIType<IModelType< {
|
|
2687
|
+
length: IMaybe<ISimpleType<number>>;
|
|
2688
|
+
width: IMaybe<ISimpleType<number>>;
|
|
2689
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2690
|
+
}, {
|
|
2691
|
+
readonly safeValues: {
|
|
2692
|
+
length: number;
|
|
2693
|
+
width: number;
|
|
2694
|
+
height: number;
|
|
2695
|
+
};
|
|
2696
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2697
|
+
configuration: IMaybe<IType<Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>, Partial<ParametricObjectConfiguration>>>;
|
|
2698
|
+
external: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2699
|
+
}, {
|
|
2700
|
+
rename(name: string): void;
|
|
2701
|
+
moveTo(position: Partial<SILevelCoord3d>): void;
|
|
2702
|
+
setLevelIndex(levelIndex: number): void;
|
|
2703
|
+
resize(dimensions: Partial<SIObjectDimensions>): void;
|
|
2704
|
+
rotate(rotation: Partial<SIObjectRotation>): void;
|
|
2705
|
+
configure(configurationChanges: Partial<ParametricObjectConfiguration>): void;
|
|
2706
|
+
remove(): void;
|
|
2707
|
+
regenerateId(randomizer: string): void;
|
|
2708
|
+
setExternal(external: boolean): void;
|
|
2709
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
2710
|
+
floorplan: IOptionalIType<IModelType< {
|
|
2711
|
+
url: IMaybe<ISimpleType<string>>;
|
|
2712
|
+
data: IMaybe<ISimpleType<string>>;
|
|
2713
|
+
r: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2714
|
+
t: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2715
|
+
scale: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2716
|
+
flipped: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
2717
|
+
}, {
|
|
2718
|
+
isNil(): boolean;
|
|
2719
|
+
} & {
|
|
2720
|
+
setUrl(url: string): void;
|
|
2721
|
+
setData(data: string | undefined): void;
|
|
2722
|
+
moveTo({ r, t }: CanvasCoord): void;
|
|
2723
|
+
setScale(scale: number): void;
|
|
2724
|
+
setFlipped(flipped: boolean): void;
|
|
2725
|
+
remove(): void;
|
|
2726
|
+
} & {
|
|
2727
|
+
rescaleByFactor(factor: number, imageOnly?: boolean): void;
|
|
2728
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2729
|
+
}, {
|
|
2730
|
+
readonly hash: string;
|
|
2731
|
+
readonly points: ICanvasPoint[];
|
|
2732
|
+
} & {
|
|
2733
|
+
readonly boundingBox: CanvasBoundingBox | null;
|
|
2734
|
+
readonly centerPoint: CanvasCoord | null;
|
|
2735
|
+
readonly autoGroundHash: string;
|
|
2736
|
+
getHash({ only, ignore }: {
|
|
2737
|
+
only: any;
|
|
2738
|
+
ignore: any;
|
|
2739
|
+
}): string;
|
|
2740
|
+
readonly isEmpty: boolean;
|
|
2741
|
+
readonly openings: IWallOpening[];
|
|
2742
|
+
} & {
|
|
2743
|
+
readonly doors: IWallOpening[];
|
|
2744
|
+
readonly windows: IWallOpening[];
|
|
2745
|
+
readonly initialsFromName: string;
|
|
2746
|
+
} & {
|
|
2747
|
+
rename(name: string): void;
|
|
2748
|
+
setInitials(initials: string): void;
|
|
2749
|
+
setAutoInitials(enabled: boolean): void;
|
|
2750
|
+
newGround(ground?: (Omit<SIGround, "segments"> & {
|
|
2751
|
+
segments: SOGroundSegment[];
|
|
2752
|
+
}) | undefined, forceId?: string | undefined): void;
|
|
2753
|
+
removeGround(id: string): void;
|
|
2754
|
+
removeAllGrounds(): void;
|
|
2755
|
+
newWall(wall?: (Omit<SIWall, "segments"> & {
|
|
2756
|
+
segments: SOAbstractSegment[] | SOWallSegment[];
|
|
2757
|
+
}) | undefined): void;
|
|
2758
|
+
removeWall(id: string): void;
|
|
2759
|
+
removeAllWalls(): void;
|
|
2760
|
+
newRoof(): void;
|
|
2761
|
+
removeRoof(id: string): void;
|
|
2762
|
+
removeAllRoofs(): void;
|
|
2763
|
+
addStairs(stairs?: SIStair | undefined): void;
|
|
2764
|
+
removeStairs(id: string): void;
|
|
2765
|
+
removeAllStairs(): void;
|
|
2766
|
+
addAnnotation(annotation: SIAnnotation): void;
|
|
2767
|
+
removeAnnotation(id: string): void;
|
|
2768
|
+
removeAllAnnotations(): void;
|
|
2769
|
+
addObject(object: SIObject): void;
|
|
2770
|
+
removeObject(id: string): void;
|
|
2771
|
+
removeAllObjects(): void;
|
|
2772
|
+
setObjectsLevelIndex(levelIndex: number): void;
|
|
2773
|
+
updateObjectsLevelIndex(updater: (levelIndex: number) => number): void;
|
|
2774
|
+
regenerateIds(randomizer: string): void;
|
|
2775
|
+
} & {
|
|
2776
|
+
addObjects(objects: SIObject[]): void;
|
|
2777
|
+
clear(): void;
|
|
2778
|
+
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
2779
|
+
camerasEnabled: IOptionalIType<IArrayType<ISimpleType<SmplrCameraType>>, [undefined]>;
|
|
2780
|
+
compassDirection: IMaybe<ISimpleType<number>>;
|
|
2781
|
+
facade: IMaybe<IModelType< {
|
|
2782
|
+
url: ISimpleType<string>;
|
|
2783
|
+
levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2784
|
+
position: IOptionalIType<IModelType< {
|
|
2785
|
+
x: ISimpleType<number>;
|
|
2786
|
+
z: ISimpleType<number>;
|
|
2787
|
+
} & {
|
|
2788
|
+
elevation: ISimpleType<number>;
|
|
2789
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2790
|
+
rotation: IOptionalIType<IModelType< {
|
|
2791
|
+
pitch: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2792
|
+
yaw: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2793
|
+
roll: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2794
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2795
|
+
dimensions: IOptionalIType<IModelType< {
|
|
2796
|
+
length: IMaybe<ISimpleType<number>>;
|
|
2797
|
+
width: IMaybe<ISimpleType<number>>;
|
|
2798
|
+
height: IMaybe<ISimpleType<number>>;
|
|
2799
|
+
}, {
|
|
2800
|
+
readonly safeValues: {
|
|
2801
|
+
length: number;
|
|
2802
|
+
width: number;
|
|
2803
|
+
height: number;
|
|
2804
|
+
};
|
|
2805
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2806
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
2807
|
+
defaults: IOptionalIType<IModelType< {
|
|
2808
|
+
unit: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2809
|
+
groundThickness: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2810
|
+
wallHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2811
|
+
wallThickness: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2812
|
+
roofBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2813
|
+
roofTopHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2814
|
+
roofAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2815
|
+
doorWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2816
|
+
doorHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2817
|
+
doorBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2818
|
+
windowWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2819
|
+
windowHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2820
|
+
windowBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2821
|
+
railingHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2822
|
+
stairsStepSize: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2823
|
+
annotationHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2824
|
+
annotationSize: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2825
|
+
}, {
|
|
2826
|
+
setUnit(unit: string): void;
|
|
2827
|
+
setGroundThickness(groundThickness: number): void;
|
|
2828
|
+
setWallHeight(wallHeight: number): void;
|
|
2829
|
+
setWallThickness(wallThickness: number): void;
|
|
2830
|
+
setRoofBaseHeight(roofBaseHeight: number): void;
|
|
2831
|
+
setRoofTopHeight(roofTopHeight: number): void;
|
|
2832
|
+
setRoofAngle(roofAngle: number): void;
|
|
2833
|
+
setDoorWidth(doorWidth: number): void;
|
|
2834
|
+
setDoorHeight(doorHeight: number): void;
|
|
2835
|
+
setDoorBaseHeight(doorBaseHeight: number): void;
|
|
2836
|
+
setWindowWidth(windowWidth: number): void;
|
|
2837
|
+
setWindowHeight(windowHeight: number): void;
|
|
2838
|
+
setWindowBaseHeight(windowBaseHeight: number): void;
|
|
2839
|
+
setRailingHeight(railingHeight: number): void;
|
|
2840
|
+
setStairsStepSize(stairsStepSize: number): void;
|
|
2841
|
+
setAnnotationHeight(annotationHeight: number): void;
|
|
2842
|
+
setAnnotationSize(annotationSize: number): void;
|
|
2843
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
2844
|
+
}, {
|
|
2845
|
+
readonly hash: string;
|
|
2846
|
+
} & {
|
|
2847
|
+
getHash({ only, ignore }: {
|
|
2848
|
+
only?: string[] | undefined;
|
|
2849
|
+
ignore?: string[] | undefined;
|
|
2850
|
+
}): string;
|
|
2851
|
+
readonly isEmpty: boolean;
|
|
2852
|
+
readonly grounds: IGround[];
|
|
2853
|
+
readonly walls: IWall[];
|
|
2854
|
+
readonly roofs: IRoof[];
|
|
2855
|
+
readonly stairs: IStair[];
|
|
2856
|
+
readonly objects: IObject[];
|
|
2857
|
+
readonly openings: IWallOpening[];
|
|
2858
|
+
readonly doors: IWallOpening[];
|
|
2859
|
+
readonly windows: IWallOpening[];
|
|
2860
|
+
readonly annotations: IAnnotation[];
|
|
2861
|
+
} & {
|
|
2862
|
+
addLevel(): void;
|
|
2863
|
+
clearLevel(levelIndex: number): void;
|
|
2864
|
+
removeLevel(levelIndex: number): void;
|
|
2865
|
+
setLevels(levels: SILevel[]): void;
|
|
2866
|
+
setCompassDirection(direction: number): void;
|
|
2867
|
+
regenerateIdsForLevel(levelIndex: number): void;
|
|
2868
|
+
} & {
|
|
2869
|
+
flip(): void;
|
|
2870
|
+
duplicateLevel(levelIndex: number): void;
|
|
2871
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2872
|
+
|
|
2873
|
+
declare const SpaceDefaults: IModelType< {
|
|
2874
|
+
unit: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
2875
|
+
groundThickness: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2876
|
+
wallHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2877
|
+
wallThickness: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2878
|
+
roofBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2879
|
+
roofTopHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2880
|
+
roofAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2881
|
+
doorWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2882
|
+
doorHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2883
|
+
doorBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2884
|
+
windowWidth: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2885
|
+
windowHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2886
|
+
windowBaseHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2887
|
+
railingHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2888
|
+
stairsStepSize: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2889
|
+
annotationHeight: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2890
|
+
annotationSize: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
2891
|
+
}, {
|
|
2892
|
+
setUnit(unit: string): void;
|
|
2893
|
+
setGroundThickness(groundThickness: number): void;
|
|
2894
|
+
setWallHeight(wallHeight: number): void;
|
|
2895
|
+
setWallThickness(wallThickness: number): void;
|
|
2896
|
+
setRoofBaseHeight(roofBaseHeight: number): void;
|
|
2897
|
+
setRoofTopHeight(roofTopHeight: number): void;
|
|
2898
|
+
setRoofAngle(roofAngle: number): void;
|
|
2899
|
+
setDoorWidth(doorWidth: number): void;
|
|
2900
|
+
setDoorHeight(doorHeight: number): void;
|
|
2901
|
+
setDoorBaseHeight(doorBaseHeight: number): void;
|
|
2902
|
+
setWindowWidth(windowWidth: number): void;
|
|
2903
|
+
setWindowHeight(windowHeight: number): void;
|
|
2904
|
+
setWindowBaseHeight(windowBaseHeight: number): void;
|
|
2905
|
+
setRailingHeight(railingHeight: number): void;
|
|
2906
|
+
setStairsStepSize(stairsStepSize: number): void;
|
|
2907
|
+
setAnnotationHeight(annotationHeight: number): void;
|
|
2908
|
+
setAnnotationSize(annotationSize: number): void;
|
|
2909
|
+
}, _NotCustomized, _NotCustomized>;
|
|
2910
|
+
|
|
2911
|
+
export declare type SpaceNoData = NoData & {
|
|
2912
|
+
id: string;
|
|
2913
|
+
spaceId: SpaceSid;
|
|
2914
|
+
};
|
|
2915
|
+
|
|
1049
2916
|
export declare type SpaceOptions = {
|
|
1050
2917
|
spaceId: string;
|
|
1051
2918
|
spaceDefinition?: object;
|
|
@@ -1060,6 +2927,10 @@ export declare type SpaceOptions = {
|
|
|
1060
2927
|
container: HTMLElement;
|
|
1061
2928
|
});
|
|
1062
2929
|
|
|
2930
|
+
declare type SpacePrefix = typeof spacePrefix;
|
|
2931
|
+
|
|
2932
|
+
declare const spacePrefix: "spc_";
|
|
2933
|
+
|
|
1063
2934
|
export declare interface SpaceRenderOptions {
|
|
1064
2935
|
compass?: boolean
|
|
1065
2936
|
annotations?: boolean
|
|
@@ -1087,6 +2958,8 @@ export declare interface SpaceRenderOptions {
|
|
|
1087
2958
|
}
|
|
1088
2959
|
}
|
|
1089
2960
|
|
|
2961
|
+
declare type SpaceSid = `${SpacePrefix}${string}`;
|
|
2962
|
+
|
|
1090
2963
|
export declare interface SpaceViewerOptions {
|
|
1091
2964
|
mode?: CameraMode;
|
|
1092
2965
|
preview?: boolean;
|
|
@@ -1123,6 +2996,80 @@ declare interface SphereOptions<D> {
|
|
|
1123
2996
|
});
|
|
1124
2997
|
}
|
|
1125
2998
|
|
|
2999
|
+
declare const Stair: IModelType< {
|
|
3000
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3001
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3002
|
+
bottomSegment: IArrayType<IModelType< {
|
|
3003
|
+
r: ISimpleType<number>;
|
|
3004
|
+
t: ISimpleType<number>;
|
|
3005
|
+
} & {
|
|
3006
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3007
|
+
}, {
|
|
3008
|
+
regenerateId(randomizer: string): void;
|
|
3009
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
3010
|
+
topSegment: IArrayType<IModelType< {
|
|
3011
|
+
r: ISimpleType<number>;
|
|
3012
|
+
t: ISimpleType<number>;
|
|
3013
|
+
} & {
|
|
3014
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3015
|
+
}, {
|
|
3016
|
+
regenerateId(randomizer: string): void;
|
|
3017
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
3018
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
3019
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3020
|
+
style: IOptionalIType<ISimpleType<Style>, [undefined]>;
|
|
3021
|
+
}, {
|
|
3022
|
+
rename(name: string): void;
|
|
3023
|
+
setBaseHeight(baseHeight: number): void;
|
|
3024
|
+
setHeight(height: number): void;
|
|
3025
|
+
setStyle(style: Style): void;
|
|
3026
|
+
moveBy({ dr, dt }: {
|
|
3027
|
+
dr: number;
|
|
3028
|
+
dt: number;
|
|
3029
|
+
}): void;
|
|
3030
|
+
remove(): void;
|
|
3031
|
+
regenerateIds(randomizer: string): void;
|
|
3032
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3033
|
+
|
|
3034
|
+
declare type Style = 'slope' | 'thin' | 'thick' | 'block';
|
|
3035
|
+
|
|
3036
|
+
declare namespace table {
|
|
3037
|
+
export {
|
|
3038
|
+
key_6 as key,
|
|
3039
|
+
TableShape,
|
|
3040
|
+
TableConfiguration,
|
|
3041
|
+
options_6 as options,
|
|
3042
|
+
render3d_6 as render3d,
|
|
3043
|
+
render2d_6 as render2d,
|
|
3044
|
+
getNominalDimensions_6 as getNominalDimensions
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
3047
|
+
|
|
3048
|
+
declare namespace tableAndChairs {
|
|
3049
|
+
export {
|
|
3050
|
+
key_7 as key,
|
|
3051
|
+
TableAndChairsConfiguration,
|
|
3052
|
+
options_7 as options,
|
|
3053
|
+
render3d_7 as render3d,
|
|
3054
|
+
render2d_7 as render2d,
|
|
3055
|
+
getNominalDimensions_7 as getNominalDimensions
|
|
3056
|
+
}
|
|
3057
|
+
}
|
|
3058
|
+
|
|
3059
|
+
declare type TableAndChairsConfiguration = {
|
|
3060
|
+
shape: table.TableShape;
|
|
3061
|
+
seat: chair.ChairStyle;
|
|
3062
|
+
numberOfSeats: number;
|
|
3063
|
+
seatsOnOneSide: boolean;
|
|
3064
|
+
noEndSeat: boolean;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
declare type TableConfiguration = {
|
|
3068
|
+
shape: TableShape;
|
|
3069
|
+
};
|
|
3070
|
+
|
|
3071
|
+
declare type TableShape = 'rectangle' | 'round';
|
|
3072
|
+
|
|
1126
3073
|
declare interface TakeScreenshotArgs {
|
|
1127
3074
|
width?: number;
|
|
1128
3075
|
height?: number;
|
|
@@ -1133,8 +3080,30 @@ declare interface TakeScreenshotArgs {
|
|
|
1133
3080
|
declare const toString_2: () => string;
|
|
1134
3081
|
export { toString_2 as toString }
|
|
1135
3082
|
|
|
3083
|
+
declare namespace triangularDesk {
|
|
3084
|
+
export {
|
|
3085
|
+
key_8 as key,
|
|
3086
|
+
TriangularDeskConfiguration,
|
|
3087
|
+
options_8 as options,
|
|
3088
|
+
render3d_8 as render3d,
|
|
3089
|
+
render2d_8 as render2d,
|
|
3090
|
+
getNominalDimensions_8 as getNominalDimensions
|
|
3091
|
+
}
|
|
3092
|
+
}
|
|
3093
|
+
|
|
3094
|
+
declare type TriangularDeskConfiguration = {
|
|
3095
|
+
seat: chair.ChairStyle | 'none';
|
|
3096
|
+
};
|
|
3097
|
+
|
|
1136
3098
|
export declare type UnknownData = Record<string, unknown>;
|
|
1137
3099
|
|
|
3100
|
+
export declare interface UnknownSpaceData extends UnknownData {
|
|
3101
|
+
id: string;
|
|
3102
|
+
spaceId: SpaceSid;
|
|
3103
|
+
}
|
|
3104
|
+
|
|
3105
|
+
declare type URDL = 'up' | 'down' | 'right' | 'left';
|
|
3106
|
+
|
|
1138
3107
|
declare const useEventEmitter: () => {
|
|
1139
3108
|
addListener: (listener: Listener) => number;
|
|
1140
3109
|
removeListener: (listenerId: number) => void;
|
|
@@ -1155,6 +3124,11 @@ declare interface User extends Auth0UserWithClaims {
|
|
|
1155
3124
|
emailVerified: boolean
|
|
1156
3125
|
}
|
|
1157
3126
|
|
|
3127
|
+
export declare interface ValidGeojsonSpace extends GeojsonSpace {
|
|
3128
|
+
definition: SOSpace;
|
|
3129
|
+
georeference: Georeference;
|
|
3130
|
+
}
|
|
3131
|
+
|
|
1158
3132
|
declare interface Vector2Coord {
|
|
1159
3133
|
x: number;
|
|
1160
3134
|
y: number;
|
|
@@ -1164,7 +3138,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
1164
3138
|
z: number;
|
|
1165
3139
|
}
|
|
1166
3140
|
|
|
1167
|
-
export declare const version = "2.31.
|
|
3141
|
+
export declare const version = "2.31.1-beta.1";
|
|
1168
3142
|
|
|
1169
3143
|
declare interface ViewerRendererHandle {
|
|
1170
3144
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1198,6 +3172,203 @@ declare interface VrCamera extends VRDeviceOrientationFreeCamera {
|
|
|
1198
3172
|
noSleep: NoSleep_2;
|
|
1199
3173
|
}
|
|
1200
3174
|
|
|
3175
|
+
declare const Wall: IModelType< {
|
|
3176
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3177
|
+
type: IOptionalIType<ISimpleType<"wall">, [undefined]>;
|
|
3178
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3179
|
+
options: IOptionalIType<IModelType< {
|
|
3180
|
+
type: IOptionalIType<ISimpleType<"normal" | "shell" | "norender" | "structural">, [undefined]>;
|
|
3181
|
+
cap: IOptionalIType<ISimpleType<"flat" | "round">, [undefined]>;
|
|
3182
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3183
|
+
thickness: IMaybe<ISimpleType<number>>;
|
|
3184
|
+
autoFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3185
|
+
partOfFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3186
|
+
}, {
|
|
3187
|
+
setType(type: "normal" | "shell" | "norender" | "structural"): void;
|
|
3188
|
+
setCap(cap: "flat" | "round"): void;
|
|
3189
|
+
setHeight(height: number): void;
|
|
3190
|
+
setThickness(thickness: number): void;
|
|
3191
|
+
setAutoFacade(autoFacade: boolean): void;
|
|
3192
|
+
setPartOfFacade(partOfFacade: boolean): void;
|
|
3193
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3194
|
+
segments: IArrayType<IModelType< {
|
|
3195
|
+
start: IModelType< {
|
|
3196
|
+
r: ISimpleType<number>;
|
|
3197
|
+
t: ISimpleType<number>;
|
|
3198
|
+
} & {
|
|
3199
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3200
|
+
}, {
|
|
3201
|
+
regenerateId(randomizer: string): void;
|
|
3202
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3203
|
+
end: IModelType< {
|
|
3204
|
+
r: ISimpleType<number>;
|
|
3205
|
+
t: ISimpleType<number>;
|
|
3206
|
+
} & {
|
|
3207
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3208
|
+
}, {
|
|
3209
|
+
regenerateId(randomizer: string): void;
|
|
3210
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3211
|
+
} & {
|
|
3212
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3213
|
+
openings: IArrayType<IModelType< {
|
|
3214
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3215
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3216
|
+
type: ISimpleType<"door" | "window">;
|
|
3217
|
+
dimensions: IOptionalIType<IModelType< {
|
|
3218
|
+
width: IMaybe<ISimpleType<number>>;
|
|
3219
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3220
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
3221
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3222
|
+
position: IMaybe<IModelType< {
|
|
3223
|
+
from: ISimpleType<"start" | "end">;
|
|
3224
|
+
distance: ISimpleType<number>;
|
|
3225
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
3226
|
+
options: IOptionalIType<IModelType< {
|
|
3227
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3228
|
+
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3229
|
+
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3230
|
+
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3231
|
+
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3232
|
+
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3233
|
+
swapInOut: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3234
|
+
swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3235
|
+
glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3236
|
+
openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3237
|
+
panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3238
|
+
openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3239
|
+
railingHeight: IMaybe<ISimpleType<number>>;
|
|
3240
|
+
railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3241
|
+
}, {
|
|
3242
|
+
setStyle(style: string): void;
|
|
3243
|
+
setNbOfPanels(nbOfPanels: number): void;
|
|
3244
|
+
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
3245
|
+
setCenterSplit(centerSplit: boolean): void;
|
|
3246
|
+
setSwapKnob(swapKnob: boolean): void;
|
|
3247
|
+
setSwapInOut(swapInOut: boolean): void;
|
|
3248
|
+
setSwapPanels(swapPanels: boolean): void;
|
|
3249
|
+
setTwoPanels(twoPanels: boolean): void;
|
|
3250
|
+
setGlass(glass: boolean): void;
|
|
3251
|
+
setOpenFrom(openFrom: string): void;
|
|
3252
|
+
setPanelsOpened(panelsOpened: number): void;
|
|
3253
|
+
setOpenAngle(openAngle: number): void;
|
|
3254
|
+
setRailingHeight(railingHeight: number): void;
|
|
3255
|
+
setRailingStyle(railingStyle: string): void;
|
|
3256
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3257
|
+
}, {
|
|
3258
|
+
readonly segment: IWallSegment;
|
|
3259
|
+
} & {
|
|
3260
|
+
readonly feature: IWall;
|
|
3261
|
+
readonly direction: number;
|
|
3262
|
+
} & {
|
|
3263
|
+
readonly orientation: "horizontal" | "vertical";
|
|
3264
|
+
} & {
|
|
3265
|
+
verifyOpeningPosition(): void;
|
|
3266
|
+
regenerateId(randomizer: string): void;
|
|
3267
|
+
} & {
|
|
3268
|
+
rename(name: string): void;
|
|
3269
|
+
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
3270
|
+
moveTo(position: SIWallOpeningPosition): void;
|
|
3271
|
+
moveInDirection(direction: URDL, distance?: number): void;
|
|
3272
|
+
remove(): void;
|
|
3273
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
3274
|
+
}, {
|
|
3275
|
+
readonly centerPoint: SOCanvasPoint;
|
|
3276
|
+
} & {
|
|
3277
|
+
readonly centerPoint: SOCanvasPoint;
|
|
3278
|
+
} & {
|
|
3279
|
+
addOpening(opening: SIWallOpening): void;
|
|
3280
|
+
removeOpening(id: string): void;
|
|
3281
|
+
regenerateIds(randomizer: string): void;
|
|
3282
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
3283
|
+
}, {
|
|
3284
|
+
newInParent(): void;
|
|
3285
|
+
removeInParent(): void;
|
|
3286
|
+
clearInEditor(id: string): void;
|
|
3287
|
+
regenerateIds(randomizer: string): void;
|
|
3288
|
+
} & {
|
|
3289
|
+
rename(name: string): void;
|
|
3290
|
+
} & {
|
|
3291
|
+
readonly points: SOCanvasPoint[];
|
|
3292
|
+
readonly geometry: SegmentGeometry;
|
|
3293
|
+
} & {
|
|
3294
|
+
addPoint({ r, t }: SICanvasPoint): void;
|
|
3295
|
+
addPointAfter({ pointId }: {
|
|
3296
|
+
pointId: string;
|
|
3297
|
+
}): void;
|
|
3298
|
+
close(): void;
|
|
3299
|
+
removePoint(id: string): void;
|
|
3300
|
+
} & {
|
|
3301
|
+
movePoint(id: string, { r, t }: SICanvasPoint): void;
|
|
3302
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3303
|
+
|
|
3304
|
+
declare const WallOpening: IModelType< {
|
|
3305
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3306
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3307
|
+
type: ISimpleType<"door" | "window">;
|
|
3308
|
+
dimensions: IOptionalIType<IModelType< {
|
|
3309
|
+
width: IMaybe<ISimpleType<number>>;
|
|
3310
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3311
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
3312
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3313
|
+
position: IMaybe<IModelType< {
|
|
3314
|
+
from: ISimpleType<"start" | "end">;
|
|
3315
|
+
distance: ISimpleType<number>;
|
|
3316
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
3317
|
+
options: IOptionalIType<IModelType< {
|
|
3318
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3319
|
+
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3320
|
+
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3321
|
+
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3322
|
+
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3323
|
+
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3324
|
+
swapInOut: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3325
|
+
swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3326
|
+
glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3327
|
+
openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3328
|
+
panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3329
|
+
openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3330
|
+
railingHeight: IMaybe<ISimpleType<number>>;
|
|
3331
|
+
railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3332
|
+
}, {
|
|
3333
|
+
setStyle(style: string): void;
|
|
3334
|
+
setNbOfPanels(nbOfPanels: number): void;
|
|
3335
|
+
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
3336
|
+
setCenterSplit(centerSplit: boolean): void;
|
|
3337
|
+
setSwapKnob(swapKnob: boolean): void;
|
|
3338
|
+
setSwapInOut(swapInOut: boolean): void;
|
|
3339
|
+
setSwapPanels(swapPanels: boolean): void;
|
|
3340
|
+
setTwoPanels(twoPanels: boolean): void;
|
|
3341
|
+
setGlass(glass: boolean): void;
|
|
3342
|
+
setOpenFrom(openFrom: string): void;
|
|
3343
|
+
setPanelsOpened(panelsOpened: number): void;
|
|
3344
|
+
setOpenAngle(openAngle: number): void;
|
|
3345
|
+
setRailingHeight(railingHeight: number): void;
|
|
3346
|
+
setRailingStyle(railingStyle: string): void;
|
|
3347
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3348
|
+
}, {
|
|
3349
|
+
readonly segment: IWallSegment;
|
|
3350
|
+
} & {
|
|
3351
|
+
readonly feature: IWall;
|
|
3352
|
+
readonly direction: number;
|
|
3353
|
+
} & {
|
|
3354
|
+
readonly orientation: "horizontal" | "vertical";
|
|
3355
|
+
} & {
|
|
3356
|
+
verifyOpeningPosition(): void;
|
|
3357
|
+
regenerateId(randomizer: string): void;
|
|
3358
|
+
} & {
|
|
3359
|
+
rename(name: string): void;
|
|
3360
|
+
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
3361
|
+
moveTo(position: SIWallOpeningPosition): void;
|
|
3362
|
+
moveInDirection(direction: URDL, distance?: number): void;
|
|
3363
|
+
remove(): void;
|
|
3364
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3365
|
+
|
|
3366
|
+
declare const WallOpeningDimensions: IModelType< {
|
|
3367
|
+
width: IMaybe<ISimpleType<number>>;
|
|
3368
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3369
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
3370
|
+
}, {}, _NotCustomized, _NotCustomized>;
|
|
3371
|
+
|
|
1201
3372
|
declare const WallOpeningOptions: IModelType< {
|
|
1202
3373
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1203
3374
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
@@ -1230,4 +3401,99 @@ setRailingHeight(railingHeight: number): void;
|
|
|
1230
3401
|
setRailingStyle(railingStyle: string): void;
|
|
1231
3402
|
}, _NotCustomized, _NotCustomized>;
|
|
1232
3403
|
|
|
3404
|
+
declare const WallOpeningPosition: IModelType< {
|
|
3405
|
+
from: ISimpleType<"start" | "end">;
|
|
3406
|
+
distance: ISimpleType<number>;
|
|
3407
|
+
}, {}, _NotCustomized, _NotCustomized>;
|
|
3408
|
+
|
|
3409
|
+
declare const WallSegment: IModelType< {
|
|
3410
|
+
start: IModelType< {
|
|
3411
|
+
r: ISimpleType<number>;
|
|
3412
|
+
t: ISimpleType<number>;
|
|
3413
|
+
} & {
|
|
3414
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3415
|
+
}, {
|
|
3416
|
+
regenerateId(randomizer: string): void;
|
|
3417
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3418
|
+
end: IModelType< {
|
|
3419
|
+
r: ISimpleType<number>;
|
|
3420
|
+
t: ISimpleType<number>;
|
|
3421
|
+
} & {
|
|
3422
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3423
|
+
}, {
|
|
3424
|
+
regenerateId(randomizer: string): void;
|
|
3425
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3426
|
+
} & {
|
|
3427
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3428
|
+
openings: IArrayType<IModelType< {
|
|
3429
|
+
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3430
|
+
name: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3431
|
+
type: ISimpleType<"door" | "window">;
|
|
3432
|
+
dimensions: IOptionalIType<IModelType< {
|
|
3433
|
+
width: IMaybe<ISimpleType<number>>;
|
|
3434
|
+
height: IMaybe<ISimpleType<number>>;
|
|
3435
|
+
baseHeight: IMaybe<ISimpleType<number>>;
|
|
3436
|
+
}, {}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3437
|
+
position: IMaybe<IModelType< {
|
|
3438
|
+
from: ISimpleType<"start" | "end">;
|
|
3439
|
+
distance: ISimpleType<number>;
|
|
3440
|
+
}, {}, _NotCustomized, _NotCustomized>>;
|
|
3441
|
+
options: IOptionalIType<IModelType< {
|
|
3442
|
+
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3443
|
+
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3444
|
+
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3445
|
+
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3446
|
+
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3447
|
+
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3448
|
+
swapInOut: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3449
|
+
swapPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3450
|
+
glass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3451
|
+
openFrom: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3452
|
+
panelsOpened: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3453
|
+
openAngle: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3454
|
+
railingHeight: IMaybe<ISimpleType<number>>;
|
|
3455
|
+
railingStyle: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3456
|
+
}, {
|
|
3457
|
+
setStyle(style: string): void;
|
|
3458
|
+
setNbOfPanels(nbOfPanels: number): void;
|
|
3459
|
+
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
3460
|
+
setCenterSplit(centerSplit: boolean): void;
|
|
3461
|
+
setSwapKnob(swapKnob: boolean): void;
|
|
3462
|
+
setSwapInOut(swapInOut: boolean): void;
|
|
3463
|
+
setSwapPanels(swapPanels: boolean): void;
|
|
3464
|
+
setTwoPanels(twoPanels: boolean): void;
|
|
3465
|
+
setGlass(glass: boolean): void;
|
|
3466
|
+
setOpenFrom(openFrom: string): void;
|
|
3467
|
+
setPanelsOpened(panelsOpened: number): void;
|
|
3468
|
+
setOpenAngle(openAngle: number): void;
|
|
3469
|
+
setRailingHeight(railingHeight: number): void;
|
|
3470
|
+
setRailingStyle(railingStyle: string): void;
|
|
3471
|
+
}, _NotCustomized, _NotCustomized>, [undefined]>;
|
|
3472
|
+
}, {
|
|
3473
|
+
readonly segment: IWallSegment;
|
|
3474
|
+
} & {
|
|
3475
|
+
readonly feature: IWall;
|
|
3476
|
+
readonly direction: number;
|
|
3477
|
+
} & {
|
|
3478
|
+
readonly orientation: "horizontal" | "vertical";
|
|
3479
|
+
} & {
|
|
3480
|
+
verifyOpeningPosition(): void;
|
|
3481
|
+
regenerateId(randomizer: string): void;
|
|
3482
|
+
} & {
|
|
3483
|
+
rename(name: string): void;
|
|
3484
|
+
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
3485
|
+
moveTo(position: SIWallOpeningPosition): void;
|
|
3486
|
+
moveInDirection(direction: URDL, distance?: number): void;
|
|
3487
|
+
remove(): void;
|
|
3488
|
+
}, _NotCustomized, _NotCustomized>>;
|
|
3489
|
+
}, {
|
|
3490
|
+
readonly centerPoint: SOCanvasPoint;
|
|
3491
|
+
} & {
|
|
3492
|
+
readonly centerPoint: SOCanvasPoint;
|
|
3493
|
+
} & {
|
|
3494
|
+
addOpening(opening: SIWallOpening): void;
|
|
3495
|
+
removeOpening(id: string): void;
|
|
3496
|
+
regenerateIds(randomizer: string): void;
|
|
3497
|
+
}, _NotCustomized, _NotCustomized>;
|
|
3498
|
+
|
|
1233
3499
|
export { }
|