@smplrspace/smplr-loader 2.47.1-beta.6 → 2.47.1-beta.7
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 +99 -74
- 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
592
|
|
|
593
|
-
declare const getNominalDimensions_3: NominalDimensionsGetter<
|
|
593
|
+
declare const getNominalDimensions_3: NominalDimensionsGetter<CubeConfiguration>;
|
|
594
594
|
|
|
595
|
-
declare const getNominalDimensions_4: NominalDimensionsGetter<
|
|
595
|
+
declare const getNominalDimensions_4: NominalDimensionsGetter<DeskConfiguration>;
|
|
596
596
|
|
|
597
|
-
declare const getNominalDimensions_5: NominalDimensionsGetter<
|
|
597
|
+
declare const getNominalDimensions_5: NominalDimensionsGetter<ScreenConfiguration>;
|
|
598
598
|
|
|
599
|
-
declare const getNominalDimensions_6: NominalDimensionsGetter<
|
|
599
|
+
declare const getNominalDimensions_6: NominalDimensionsGetter<ShelvesConfiguration>;
|
|
600
600
|
|
|
601
|
-
declare const getNominalDimensions_7: NominalDimensionsGetter<
|
|
601
|
+
declare const getNominalDimensions_7: NominalDimensionsGetter<TableConfiguration>;
|
|
602
602
|
|
|
603
|
-
declare const getNominalDimensions_8: NominalDimensionsGetter<
|
|
603
|
+
declare const getNominalDimensions_8: NominalDimensionsGetter<TableAndChairsConfiguration>;
|
|
604
|
+
|
|
605
|
+
declare const getNominalDimensions_9: NominalDimensionsGetter<TriangularDeskConfiguration>;
|
|
604
606
|
|
|
605
607
|
declare const Ground: IModelType< {
|
|
606
608
|
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
@@ -1088,19 +1090,21 @@ declare interface JsonWallSegment extends JsonAbstractSegment {
|
|
|
1088
1090
|
|
|
1089
1091
|
declare const key = "chair";
|
|
1090
1092
|
|
|
1091
|
-
declare const key_2 = "
|
|
1093
|
+
declare const key_2 = "sofa";
|
|
1094
|
+
|
|
1095
|
+
declare const key_3 = "cube";
|
|
1092
1096
|
|
|
1093
|
-
declare const
|
|
1097
|
+
declare const key_4 = "desk";
|
|
1094
1098
|
|
|
1095
|
-
declare const
|
|
1099
|
+
declare const key_5 = "screen";
|
|
1096
1100
|
|
|
1097
|
-
declare const
|
|
1101
|
+
declare const key_6 = "shelves";
|
|
1098
1102
|
|
|
1099
|
-
declare const
|
|
1103
|
+
declare const key_7 = "table";
|
|
1100
1104
|
|
|
1101
|
-
declare const
|
|
1105
|
+
declare const key_8 = "tableAndChairs";
|
|
1102
1106
|
|
|
1103
|
-
declare const
|
|
1107
|
+
declare const key_9 = "triangularDesk";
|
|
1104
1108
|
|
|
1105
1109
|
declare enum LayerType {
|
|
1106
1110
|
Point = "point",
|
|
@@ -2022,19 +2026,21 @@ declare type Options<C> = {
|
|
|
2022
2026
|
|
|
2023
2027
|
declare const options: Options<ChairConfiguration>[];
|
|
2024
2028
|
|
|
2025
|
-
declare const options_2: Options<
|
|
2029
|
+
declare const options_2: Options<SofaConfiguration>[];
|
|
2026
2030
|
|
|
2027
|
-
declare const options_3: Options<
|
|
2031
|
+
declare const options_3: Options<CubeConfiguration>[];
|
|
2028
2032
|
|
|
2029
|
-
declare const options_4: Options<
|
|
2033
|
+
declare const options_4: Options<DeskConfiguration>[];
|
|
2030
2034
|
|
|
2031
|
-
declare const options_5: Options<
|
|
2035
|
+
declare const options_5: Options<ScreenConfiguration>[];
|
|
2032
2036
|
|
|
2033
|
-
declare const options_6: Options<
|
|
2037
|
+
declare const options_6: Options<ShelvesConfiguration>[];
|
|
2034
2038
|
|
|
2035
|
-
declare const options_7: Options<
|
|
2039
|
+
declare const options_7: Options<TableConfiguration>[];
|
|
2036
2040
|
|
|
2037
|
-
declare const options_8: Options<
|
|
2041
|
+
declare const options_8: Options<TableAndChairsConfiguration>[];
|
|
2042
|
+
|
|
2043
|
+
declare const options_9: Options<TriangularDeskConfiguration>[];
|
|
2038
2044
|
|
|
2039
2045
|
declare interface OrbitCamera extends ArcRotateCamera {
|
|
2040
2046
|
smplrData: {
|
|
@@ -2085,7 +2091,7 @@ declare type ParametricObject2dRenderer<C> = (args: {
|
|
|
2085
2091
|
minimumLayerGap?: number;
|
|
2086
2092
|
defaults: SOSpaceDefaults;
|
|
2087
2093
|
}) => {
|
|
2088
|
-
stroke
|
|
2094
|
+
stroke: Mesh;
|
|
2089
2095
|
fill: Mesh;
|
|
2090
2096
|
};
|
|
2091
2097
|
|
|
@@ -2100,7 +2106,7 @@ declare type ParametricObject3dRenderer<C> = (args: {
|
|
|
2100
2106
|
minimumLayerGap?: number;
|
|
2101
2107
|
}) => Mesh;
|
|
2102
2108
|
|
|
2103
|
-
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;
|
|
2104
2110
|
|
|
2105
2111
|
export declare interface PartialMapCameraPlacement {
|
|
2106
2112
|
pitch?: number;
|
|
@@ -2446,35 +2452,39 @@ declare const render2d: ParametricObject2dRenderer<ChairConfiguration & {
|
|
|
2446
2452
|
closed?: boolean;
|
|
2447
2453
|
}>;
|
|
2448
2454
|
|
|
2449
|
-
declare const render2d_2: ParametricObject2dRenderer<
|
|
2455
|
+
declare const render2d_2: ParametricObject2dRenderer<SofaConfiguration>;
|
|
2456
|
+
|
|
2457
|
+
declare const render2d_3: ParametricObject2dRenderer<CubeConfiguration>;
|
|
2450
2458
|
|
|
2451
|
-
declare const
|
|
2459
|
+
declare const render2d_4: ParametricObject2dRenderer<DeskConfiguration>;
|
|
2452
2460
|
|
|
2453
|
-
declare const
|
|
2461
|
+
declare const render2d_5: ParametricObject2dRenderer<ScreenConfiguration>;
|
|
2454
2462
|
|
|
2455
|
-
declare const
|
|
2463
|
+
declare const render2d_6: ParametricObject2dRenderer<ShelvesConfiguration>;
|
|
2456
2464
|
|
|
2457
|
-
declare const
|
|
2465
|
+
declare const render2d_7: ParametricObject2dRenderer<TableConfiguration>;
|
|
2458
2466
|
|
|
2459
|
-
declare const
|
|
2467
|
+
declare const render2d_8: ParametricObject2dRenderer<TableAndChairsConfiguration>;
|
|
2460
2468
|
|
|
2461
|
-
declare const
|
|
2469
|
+
declare const render2d_9: ParametricObject2dRenderer<TriangularDeskConfiguration>;
|
|
2462
2470
|
|
|
2463
2471
|
declare const render3d: ParametricObject3dRenderer<ChairConfiguration>;
|
|
2464
2472
|
|
|
2465
|
-
declare const render3d_2: ParametricObject3dRenderer<
|
|
2473
|
+
declare const render3d_2: ParametricObject3dRenderer<SofaConfiguration>;
|
|
2474
|
+
|
|
2475
|
+
declare const render3d_3: ParametricObject3dRenderer<CubeConfiguration>;
|
|
2466
2476
|
|
|
2467
|
-
declare const
|
|
2477
|
+
declare const render3d_4: ParametricObject3dRenderer<DeskConfiguration>;
|
|
2468
2478
|
|
|
2469
|
-
declare const
|
|
2479
|
+
declare const render3d_5: ParametricObject3dRenderer<ScreenConfiguration>;
|
|
2470
2480
|
|
|
2471
|
-
declare const
|
|
2481
|
+
declare const render3d_6: ParametricObject3dRenderer<ShelvesConfiguration>;
|
|
2472
2482
|
|
|
2473
|
-
declare const
|
|
2483
|
+
declare const render3d_7: ParametricObject3dRenderer<TableConfiguration>;
|
|
2474
2484
|
|
|
2475
|
-
declare const
|
|
2485
|
+
declare const render3d_8: ParametricObject3dRenderer<TableAndChairsConfiguration>;
|
|
2476
2486
|
|
|
2477
|
-
declare const
|
|
2487
|
+
declare const render3d_9: ParametricObject3dRenderer<TriangularDeskConfiguration>;
|
|
2478
2488
|
|
|
2479
2489
|
declare const Roof: IModelType< {
|
|
2480
2490
|
id: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
@@ -2600,12 +2610,12 @@ declare interface Rotation3d {
|
|
|
2600
2610
|
|
|
2601
2611
|
declare namespace screen_2 {
|
|
2602
2612
|
export {
|
|
2603
|
-
|
|
2613
|
+
key_5 as key,
|
|
2604
2614
|
ScreenConfiguration,
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2615
|
+
options_5 as options,
|
|
2616
|
+
render3d_5 as render3d,
|
|
2617
|
+
render2d_5 as render2d,
|
|
2618
|
+
getNominalDimensions_5 as getNominalDimensions
|
|
2609
2619
|
}
|
|
2610
2620
|
}
|
|
2611
2621
|
|
|
@@ -2634,12 +2644,12 @@ export declare interface SessionOptions {
|
|
|
2634
2644
|
|
|
2635
2645
|
declare namespace shelves {
|
|
2636
2646
|
export {
|
|
2637
|
-
|
|
2647
|
+
key_6 as key,
|
|
2638
2648
|
ShelvesConfiguration,
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2649
|
+
options_6 as options,
|
|
2650
|
+
render3d_6 as render3d,
|
|
2651
|
+
render2d_6 as render2d,
|
|
2652
|
+
getNominalDimensions_6 as getNominalDimensions
|
|
2643
2653
|
}
|
|
2644
2654
|
}
|
|
2645
2655
|
|
|
@@ -2744,9 +2754,24 @@ declare interface SOAbstractSegment extends SnapshotOut<typeof AbstractSegment>
|
|
|
2744
2754
|
declare interface SOCanvasPoint extends SnapshotOut<typeof CanvasPoint> {
|
|
2745
2755
|
}
|
|
2746
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
|
+
|
|
2747
2768
|
declare interface SOFacade extends SnapshotOut<typeof Facade> {
|
|
2748
2769
|
}
|
|
2749
2770
|
|
|
2771
|
+
declare type SofaConfiguration = {
|
|
2772
|
+
seats: number | undefined;
|
|
2773
|
+
};
|
|
2774
|
+
|
|
2750
2775
|
declare interface SOFloorplan extends SnapshotOut<typeof Floorplan> {
|
|
2751
2776
|
}
|
|
2752
2777
|
|
|
@@ -3710,31 +3735,31 @@ declare type Style = 'slope' | 'thin' | 'thick' | 'block';
|
|
|
3710
3735
|
|
|
3711
3736
|
declare namespace table {
|
|
3712
3737
|
export {
|
|
3713
|
-
|
|
3738
|
+
key_7 as key,
|
|
3714
3739
|
TableShape,
|
|
3715
3740
|
TableConfiguration,
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3741
|
+
options_7 as options,
|
|
3742
|
+
render3d_7 as render3d,
|
|
3743
|
+
render2d_7 as render2d,
|
|
3744
|
+
getNominalDimensions_7 as getNominalDimensions
|
|
3720
3745
|
}
|
|
3721
3746
|
}
|
|
3722
3747
|
|
|
3723
3748
|
declare namespace tableAndChairs {
|
|
3724
3749
|
export {
|
|
3725
|
-
|
|
3750
|
+
key_8 as key,
|
|
3726
3751
|
TableAndChairsConfiguration,
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3752
|
+
options_8 as options,
|
|
3753
|
+
render3d_8 as render3d,
|
|
3754
|
+
render2d_8 as render2d,
|
|
3755
|
+
getNominalDimensions_8 as getNominalDimensions
|
|
3731
3756
|
}
|
|
3732
3757
|
}
|
|
3733
3758
|
|
|
3734
3759
|
declare type TableAndChairsConfiguration = {
|
|
3735
3760
|
shape: table.TableShape;
|
|
3736
3761
|
seat: chair.ChairStyle;
|
|
3737
|
-
numberOfSeats: number;
|
|
3762
|
+
numberOfSeats: number | undefined;
|
|
3738
3763
|
seatsOnOneSide: boolean;
|
|
3739
3764
|
noEndSeat: boolean;
|
|
3740
3765
|
};
|
|
@@ -3757,12 +3782,12 @@ export { toString_2 as toString }
|
|
|
3757
3782
|
|
|
3758
3783
|
declare namespace triangularDesk {
|
|
3759
3784
|
export {
|
|
3760
|
-
|
|
3785
|
+
key_9 as key,
|
|
3761
3786
|
TriangularDeskConfiguration,
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3787
|
+
options_9 as options,
|
|
3788
|
+
render3d_9 as render3d,
|
|
3789
|
+
render2d_9 as render2d,
|
|
3790
|
+
getNominalDimensions_9 as getNominalDimensions
|
|
3766
3791
|
}
|
|
3767
3792
|
}
|
|
3768
3793
|
|
|
@@ -3822,7 +3847,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3822
3847
|
z: number;
|
|
3823
3848
|
}
|
|
3824
3849
|
|
|
3825
|
-
export declare const version = "2.47.1-beta.
|
|
3850
|
+
export declare const version = "2.47.1-beta.7";
|
|
3826
3851
|
|
|
3827
3852
|
declare interface ViewerRendererHandle {
|
|
3828
3853
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|