@smplrspace/smplr-loader 2.47.1-beta.0 → 2.47.1-beta.10
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 +111 -74
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
|
@@ -267,12 +267,12 @@ declare const cssToSmplrColor: (c: string) => string;
|
|
|
267
267
|
|
|
268
268
|
declare namespace cube {
|
|
269
269
|
export {
|
|
270
|
-
|
|
270
|
+
key_3 as key,
|
|
271
271
|
CubeConfiguration,
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
272
|
+
options_3 as options,
|
|
273
|
+
render3d_3 as render3d,
|
|
274
|
+
render2d_3 as render2d,
|
|
275
|
+
getNominalDimensions_3 as getNominalDimensions,
|
|
276
276
|
getGroundFootprint
|
|
277
277
|
}
|
|
278
278
|
}
|
|
@@ -339,12 +339,12 @@ declare type DeepPartial<T> = T extends object ? {
|
|
|
339
339
|
|
|
340
340
|
declare namespace desk {
|
|
341
341
|
export {
|
|
342
|
-
|
|
342
|
+
key_4 as key,
|
|
343
343
|
DeskConfiguration,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
344
|
+
options_4 as options,
|
|
345
|
+
render3d_4 as render3d,
|
|
346
|
+
render2d_4 as render2d,
|
|
347
|
+
getNominalDimensions_4 as getNominalDimensions,
|
|
348
348
|
getGroundFootprint_2 as getGroundFootprint
|
|
349
349
|
}
|
|
350
350
|
}
|
|
@@ -588,19 +588,21 @@ declare const getGroundFootprint_2: GroundFootprintGetter<DeskConfiguration>;
|
|
|
588
588
|
|
|
589
589
|
declare const getNominalDimensions: NominalDimensionsGetter<ChairConfiguration>;
|
|
590
590
|
|
|
591
|
-
declare const getNominalDimensions_2: NominalDimensionsGetter<
|
|
591
|
+
declare const getNominalDimensions_2: NominalDimensionsGetter<SofaConfiguration>;
|
|
592
|
+
|
|
593
|
+
declare const getNominalDimensions_3: NominalDimensionsGetter<CubeConfiguration>;
|
|
592
594
|
|
|
593
|
-
declare const
|
|
595
|
+
declare const getNominalDimensions_4: NominalDimensionsGetter<DeskConfiguration>;
|
|
594
596
|
|
|
595
|
-
declare const
|
|
597
|
+
declare const getNominalDimensions_5: NominalDimensionsGetter<ScreenConfiguration>;
|
|
596
598
|
|
|
597
|
-
declare const
|
|
599
|
+
declare const getNominalDimensions_6: NominalDimensionsGetter<ShelvesConfiguration>;
|
|
598
600
|
|
|
599
|
-
declare const
|
|
601
|
+
declare const getNominalDimensions_7: NominalDimensionsGetter<TableConfiguration>;
|
|
600
602
|
|
|
601
|
-
declare const
|
|
603
|
+
declare const getNominalDimensions_8: NominalDimensionsGetter<TableAndChairsConfiguration>;
|
|
602
604
|
|
|
603
|
-
declare const
|
|
605
|
+
declare const getNominalDimensions_9: NominalDimensionsGetter<TriangularDeskConfiguration>;
|
|
604
606
|
|
|
605
607
|
declare const Ground: IModelType< {
|
|
606
608
|
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
@@ -936,6 +938,8 @@ declare interface IObject extends Instance<typeof Object_2> {
|
|
|
936
938
|
declare interface IRoof extends Instance<typeof Roof> {
|
|
937
939
|
}
|
|
938
940
|
|
|
941
|
+
declare function isSpaceSid(s: string): s is SpaceSid;
|
|
942
|
+
|
|
939
943
|
declare interface IStair extends Instance<typeof Stair> {
|
|
940
944
|
}
|
|
941
945
|
|
|
@@ -1086,19 +1090,21 @@ declare interface JsonWallSegment extends JsonAbstractSegment {
|
|
|
1086
1090
|
|
|
1087
1091
|
declare const key = "chair";
|
|
1088
1092
|
|
|
1089
|
-
declare const key_2 = "
|
|
1093
|
+
declare const key_2 = "sofa";
|
|
1094
|
+
|
|
1095
|
+
declare const key_3 = "cube";
|
|
1090
1096
|
|
|
1091
|
-
declare const
|
|
1097
|
+
declare const key_4 = "desk";
|
|
1092
1098
|
|
|
1093
|
-
declare const
|
|
1099
|
+
declare const key_5 = "screen";
|
|
1094
1100
|
|
|
1095
|
-
declare const
|
|
1101
|
+
declare const key_6 = "shelves";
|
|
1096
1102
|
|
|
1097
|
-
declare const
|
|
1103
|
+
declare const key_7 = "table";
|
|
1098
1104
|
|
|
1099
|
-
declare const
|
|
1105
|
+
declare const key_8 = "tableAndChairs";
|
|
1100
1106
|
|
|
1101
|
-
declare const
|
|
1107
|
+
declare const key_9 = "triangularDesk";
|
|
1102
1108
|
|
|
1103
1109
|
declare enum LayerType {
|
|
1104
1110
|
Point = "point",
|
|
@@ -1823,6 +1829,7 @@ export declare interface MapViewerOptions {
|
|
|
1823
1829
|
hideNavigationButtons?: boolean;
|
|
1824
1830
|
hideLevelPicker?: boolean;
|
|
1825
1831
|
cameraPlacement?: PartialMapCameraPlacement;
|
|
1832
|
+
protectScroll?: boolean;
|
|
1826
1833
|
}
|
|
1827
1834
|
|
|
1828
1835
|
declare interface Material {
|
|
@@ -2019,19 +2026,21 @@ declare type Options<C> = {
|
|
|
2019
2026
|
|
|
2020
2027
|
declare const options: Options<ChairConfiguration>[];
|
|
2021
2028
|
|
|
2022
|
-
declare const options_2: Options<
|
|
2029
|
+
declare const options_2: Options<SofaConfiguration>[];
|
|
2023
2030
|
|
|
2024
|
-
declare const options_3: Options<
|
|
2031
|
+
declare const options_3: Options<CubeConfiguration>[];
|
|
2025
2032
|
|
|
2026
|
-
declare const options_4: Options<
|
|
2033
|
+
declare const options_4: Options<DeskConfiguration>[];
|
|
2027
2034
|
|
|
2028
|
-
declare const options_5: Options<
|
|
2035
|
+
declare const options_5: Options<ScreenConfiguration>[];
|
|
2029
2036
|
|
|
2030
|
-
declare const options_6: Options<
|
|
2037
|
+
declare const options_6: Options<ShelvesConfiguration>[];
|
|
2031
2038
|
|
|
2032
|
-
declare const options_7: Options<
|
|
2039
|
+
declare const options_7: Options<TableConfiguration>[];
|
|
2033
2040
|
|
|
2034
|
-
declare const options_8: Options<
|
|
2041
|
+
declare const options_8: Options<TableAndChairsConfiguration>[];
|
|
2042
|
+
|
|
2043
|
+
declare const options_9: Options<TriangularDeskConfiguration>[];
|
|
2035
2044
|
|
|
2036
2045
|
declare interface OrbitCamera extends ArcRotateCamera {
|
|
2037
2046
|
smplrData: {
|
|
@@ -2082,7 +2091,7 @@ declare type ParametricObject2dRenderer<C> = (args: {
|
|
|
2082
2091
|
minimumLayerGap?: number;
|
|
2083
2092
|
defaults: SOSpaceDefaults;
|
|
2084
2093
|
}) => {
|
|
2085
|
-
stroke
|
|
2094
|
+
stroke: Mesh;
|
|
2086
2095
|
fill: Mesh;
|
|
2087
2096
|
};
|
|
2088
2097
|
|
|
@@ -2097,7 +2106,7 @@ declare type ParametricObject3dRenderer<C> = (args: {
|
|
|
2097
2106
|
minimumLayerGap?: number;
|
|
2098
2107
|
}) => Mesh;
|
|
2099
2108
|
|
|
2100
|
-
declare type ParametricObjectConfiguration = chair.ChairConfiguration | cube.CubeConfiguration | desk.DeskConfiguration | screen_2.ScreenConfiguration | shelves.ShelvesConfiguration | table.TableConfiguration | tableAndChairs.TableAndChairsConfiguration | triangularDesk.TriangularDeskConfiguration;
|
|
2109
|
+
declare type ParametricObjectConfiguration = chair.ChairConfiguration | sofa.SofaConfiguration | cube.CubeConfiguration | desk.DeskConfiguration | screen_2.ScreenConfiguration | shelves.ShelvesConfiguration | table.TableConfiguration | tableAndChairs.TableAndChairsConfiguration | triangularDesk.TriangularDeskConfiguration;
|
|
2101
2110
|
|
|
2102
2111
|
export declare interface PartialMapCameraPlacement {
|
|
2103
2112
|
pitch?: number;
|
|
@@ -2443,35 +2452,39 @@ declare const render2d: ParametricObject2dRenderer<ChairConfiguration & {
|
|
|
2443
2452
|
closed?: boolean;
|
|
2444
2453
|
}>;
|
|
2445
2454
|
|
|
2446
|
-
declare const render2d_2: ParametricObject2dRenderer<
|
|
2455
|
+
declare const render2d_2: ParametricObject2dRenderer<SofaConfiguration>;
|
|
2456
|
+
|
|
2457
|
+
declare const render2d_3: ParametricObject2dRenderer<CubeConfiguration>;
|
|
2447
2458
|
|
|
2448
|
-
declare const
|
|
2459
|
+
declare const render2d_4: ParametricObject2dRenderer<DeskConfiguration>;
|
|
2449
2460
|
|
|
2450
|
-
declare const
|
|
2461
|
+
declare const render2d_5: ParametricObject2dRenderer<ScreenConfiguration>;
|
|
2451
2462
|
|
|
2452
|
-
declare const
|
|
2463
|
+
declare const render2d_6: ParametricObject2dRenderer<ShelvesConfiguration>;
|
|
2453
2464
|
|
|
2454
|
-
declare const
|
|
2465
|
+
declare const render2d_7: ParametricObject2dRenderer<TableConfiguration>;
|
|
2455
2466
|
|
|
2456
|
-
declare const
|
|
2467
|
+
declare const render2d_8: ParametricObject2dRenderer<TableAndChairsConfiguration>;
|
|
2457
2468
|
|
|
2458
|
-
declare const
|
|
2469
|
+
declare const render2d_9: ParametricObject2dRenderer<TriangularDeskConfiguration>;
|
|
2459
2470
|
|
|
2460
2471
|
declare const render3d: ParametricObject3dRenderer<ChairConfiguration>;
|
|
2461
2472
|
|
|
2462
|
-
declare const render3d_2: ParametricObject3dRenderer<
|
|
2473
|
+
declare const render3d_2: ParametricObject3dRenderer<SofaConfiguration>;
|
|
2474
|
+
|
|
2475
|
+
declare const render3d_3: ParametricObject3dRenderer<CubeConfiguration>;
|
|
2463
2476
|
|
|
2464
|
-
declare const
|
|
2477
|
+
declare const render3d_4: ParametricObject3dRenderer<DeskConfiguration>;
|
|
2465
2478
|
|
|
2466
|
-
declare const
|
|
2479
|
+
declare const render3d_5: ParametricObject3dRenderer<ScreenConfiguration>;
|
|
2467
2480
|
|
|
2468
|
-
declare const
|
|
2481
|
+
declare const render3d_6: ParametricObject3dRenderer<ShelvesConfiguration>;
|
|
2469
2482
|
|
|
2470
|
-
declare const
|
|
2483
|
+
declare const render3d_7: ParametricObject3dRenderer<TableConfiguration>;
|
|
2471
2484
|
|
|
2472
|
-
declare const
|
|
2485
|
+
declare const render3d_8: ParametricObject3dRenderer<TableAndChairsConfiguration>;
|
|
2473
2486
|
|
|
2474
|
-
declare const
|
|
2487
|
+
declare const render3d_9: ParametricObject3dRenderer<TriangularDeskConfiguration>;
|
|
2475
2488
|
|
|
2476
2489
|
declare const Roof: IModelType< {
|
|
2477
2490
|
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
@@ -2597,12 +2610,12 @@ declare interface Rotation3d {
|
|
|
2597
2610
|
|
|
2598
2611
|
declare namespace screen_2 {
|
|
2599
2612
|
export {
|
|
2600
|
-
|
|
2613
|
+
key_5 as key,
|
|
2601
2614
|
ScreenConfiguration,
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2615
|
+
options_5 as options,
|
|
2616
|
+
render3d_5 as render3d,
|
|
2617
|
+
render2d_5 as render2d,
|
|
2618
|
+
getNominalDimensions_5 as getNominalDimensions
|
|
2606
2619
|
}
|
|
2607
2620
|
}
|
|
2608
2621
|
|
|
@@ -2631,12 +2644,12 @@ export declare interface SessionOptions {
|
|
|
2631
2644
|
|
|
2632
2645
|
declare namespace shelves {
|
|
2633
2646
|
export {
|
|
2634
|
-
|
|
2647
|
+
key_6 as key,
|
|
2635
2648
|
ShelvesConfiguration,
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2649
|
+
options_6 as options,
|
|
2650
|
+
render3d_6 as render3d,
|
|
2651
|
+
render2d_6 as render2d,
|
|
2652
|
+
getNominalDimensions_6 as getNominalDimensions
|
|
2640
2653
|
}
|
|
2641
2654
|
}
|
|
2642
2655
|
|
|
@@ -2741,9 +2754,24 @@ declare interface SOAbstractSegment extends SnapshotOut<typeof AbstractSegment>
|
|
|
2741
2754
|
declare interface SOCanvasPoint extends SnapshotOut<typeof CanvasPoint> {
|
|
2742
2755
|
}
|
|
2743
2756
|
|
|
2757
|
+
declare namespace sofa {
|
|
2758
|
+
export {
|
|
2759
|
+
key_2 as key,
|
|
2760
|
+
SofaConfiguration,
|
|
2761
|
+
options_2 as options,
|
|
2762
|
+
render3d_2 as render3d,
|
|
2763
|
+
render2d_2 as render2d,
|
|
2764
|
+
getNominalDimensions_2 as getNominalDimensions
|
|
2765
|
+
}
|
|
2766
|
+
}
|
|
2767
|
+
|
|
2744
2768
|
declare interface SOFacade extends SnapshotOut<typeof Facade> {
|
|
2745
2769
|
}
|
|
2746
2770
|
|
|
2771
|
+
declare type SofaConfiguration = {
|
|
2772
|
+
seats: number | undefined;
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2747
2775
|
declare interface SOFloorplan extends SnapshotOut<typeof Floorplan> {
|
|
2748
2776
|
}
|
|
2749
2777
|
|
|
@@ -3642,6 +3670,7 @@ export declare interface SpaceViewerOptions {
|
|
|
3642
3670
|
loadingMessage?: string;
|
|
3643
3671
|
renderingMessage?: string;
|
|
3644
3672
|
experimentalFacadeBasedPerformance?: boolean;
|
|
3673
|
+
protectScroll?: boolean;
|
|
3645
3674
|
}
|
|
3646
3675
|
|
|
3647
3676
|
declare interface SphereOptions<D> {
|
|
@@ -3706,31 +3735,31 @@ declare type Style = 'slope' | 'thin' | 'thick' | 'block';
|
|
|
3706
3735
|
|
|
3707
3736
|
declare namespace table {
|
|
3708
3737
|
export {
|
|
3709
|
-
|
|
3738
|
+
key_7 as key,
|
|
3710
3739
|
TableShape,
|
|
3711
3740
|
TableConfiguration,
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3741
|
+
options_7 as options,
|
|
3742
|
+
render3d_7 as render3d,
|
|
3743
|
+
render2d_7 as render2d,
|
|
3744
|
+
getNominalDimensions_7 as getNominalDimensions
|
|
3716
3745
|
}
|
|
3717
3746
|
}
|
|
3718
3747
|
|
|
3719
3748
|
declare namespace tableAndChairs {
|
|
3720
3749
|
export {
|
|
3721
|
-
|
|
3750
|
+
key_8 as key,
|
|
3722
3751
|
TableAndChairsConfiguration,
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3752
|
+
options_8 as options,
|
|
3753
|
+
render3d_8 as render3d,
|
|
3754
|
+
render2d_8 as render2d,
|
|
3755
|
+
getNominalDimensions_8 as getNominalDimensions
|
|
3727
3756
|
}
|
|
3728
3757
|
}
|
|
3729
3758
|
|
|
3730
3759
|
declare type TableAndChairsConfiguration = {
|
|
3731
3760
|
shape: table.TableShape;
|
|
3732
3761
|
seat: chair.ChairStyle;
|
|
3733
|
-
numberOfSeats: number;
|
|
3762
|
+
numberOfSeats: number | undefined;
|
|
3734
3763
|
seatsOnOneSide: boolean;
|
|
3735
3764
|
noEndSeat: boolean;
|
|
3736
3765
|
};
|
|
@@ -3753,12 +3782,12 @@ export { toString_2 as toString }
|
|
|
3753
3782
|
|
|
3754
3783
|
declare namespace triangularDesk {
|
|
3755
3784
|
export {
|
|
3756
|
-
|
|
3785
|
+
key_9 as key,
|
|
3757
3786
|
TriangularDeskConfiguration,
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3787
|
+
options_9 as options,
|
|
3788
|
+
render3d_9 as render3d,
|
|
3789
|
+
render2d_9 as render2d,
|
|
3790
|
+
getNominalDimensions_9 as getNominalDimensions
|
|
3762
3791
|
}
|
|
3763
3792
|
}
|
|
3764
3793
|
|
|
@@ -3795,6 +3824,14 @@ declare interface User extends Auth0UserWithClaims {
|
|
|
3795
3824
|
emailVerified: boolean
|
|
3796
3825
|
}
|
|
3797
3826
|
|
|
3827
|
+
declare namespace Utils {
|
|
3828
|
+
export {
|
|
3829
|
+
SpaceSid,
|
|
3830
|
+
isSpaceSid
|
|
3831
|
+
}
|
|
3832
|
+
}
|
|
3833
|
+
export { Utils }
|
|
3834
|
+
|
|
3798
3835
|
export declare interface ValidGeoSpace extends GeoSpace {
|
|
3799
3836
|
definition: SOSpace;
|
|
3800
3837
|
georeference: Georeference;
|
|
@@ -3810,7 +3847,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3810
3847
|
z: number;
|
|
3811
3848
|
}
|
|
3812
3849
|
|
|
3813
|
-
export declare const version = "2.47.1-beta.
|
|
3850
|
+
export declare const version = "2.47.1-beta.10";
|
|
3814
3851
|
|
|
3815
3852
|
declare interface ViewerRendererHandle {
|
|
3816
3853
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
package/dist/types.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
/* eslint-disable import/no-unresolved */
|
|
9
|
-
import { Color, Editor, Map, QueryClient, Space, toString, version } from './generated/smplr'
|
|
9
|
+
import { Color, Editor, Map, QueryClient, Space, toString, Utils, version } from './generated/smplr'
|
|
10
10
|
|
|
11
11
|
export * from './generated/smplr'
|
|
12
12
|
/* eslint-enable import/no-unresolved */
|
|
@@ -20,6 +20,7 @@ export interface Smplr {
|
|
|
20
20
|
Editor: typeof Editor
|
|
21
21
|
QueryClient: typeof QueryClient
|
|
22
22
|
Color: typeof Color
|
|
23
|
+
Utils: typeof Utils
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
declare global {
|