@smplrspace/smplr-loader 2.56.1-beta.2 → 2.56.1-beta.20
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 +65 -1
- package/package.json +1 -1
|
@@ -736,6 +736,7 @@ clearInEditor(id: string): void;
|
|
|
736
736
|
regenerateIds(randomizer: string): void;
|
|
737
737
|
} & {
|
|
738
738
|
rename(name: string): void;
|
|
739
|
+
ensureName(): void;
|
|
739
740
|
addHole(hole?: Omit<SIHole, 'segments'> & {
|
|
740
741
|
segments: SOGroundSegment[];
|
|
741
742
|
}): void;
|
|
@@ -1266,6 +1267,7 @@ clearInEditor(id: string): void;
|
|
|
1266
1267
|
regenerateIds(randomizer: string): void;
|
|
1267
1268
|
} & {
|
|
1268
1269
|
rename(name: string): void;
|
|
1270
|
+
ensureName(): void;
|
|
1269
1271
|
addHole(hole?: (Omit<SIHole, "segments"> & {
|
|
1270
1272
|
segments: SOGroundSegment[];
|
|
1271
1273
|
}) | undefined): void;
|
|
@@ -1350,6 +1352,7 @@ options: IOptionalIType<IModelType< {
|
|
|
1350
1352
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
1351
1353
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1352
1354
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
1355
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
1353
1356
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1354
1357
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
1355
1358
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -1367,6 +1370,7 @@ readonly maxPanelsOpened: number;
|
|
|
1367
1370
|
setStyle(style: string): void;
|
|
1368
1371
|
setNbOfPanels(nbOfPanels: number): void;
|
|
1369
1372
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
1373
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
1370
1374
|
setCenterSplit(centerSplit: boolean): void;
|
|
1371
1375
|
setSwapKnob(swapKnob: boolean): void;
|
|
1372
1376
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -1392,13 +1396,19 @@ readonly orientation: "horizontal" | "vertical";
|
|
|
1392
1396
|
} & {
|
|
1393
1397
|
verifyOpeningPosition(): void;
|
|
1394
1398
|
regenerateId(randomizer: string): void;
|
|
1399
|
+
applyTargetPanelWidth(): void;
|
|
1395
1400
|
} & {
|
|
1396
1401
|
rename(name: string): void;
|
|
1402
|
+
ensureName(): void;
|
|
1397
1403
|
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
1404
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
1398
1405
|
moveTo(position: SIWallOpeningPosition): void;
|
|
1399
1406
|
moveInDirection(direction: URDL, distance?: number): void;
|
|
1400
1407
|
remove(): void;
|
|
1401
1408
|
setLayers(layers: string[]): void;
|
|
1409
|
+
} & {
|
|
1410
|
+
expandToFullSegment(): void;
|
|
1411
|
+
addToAllSegmentsInWall(): void;
|
|
1402
1412
|
}, _NotCustomized, _NotCustomized>>;
|
|
1403
1413
|
}, {
|
|
1404
1414
|
readonly superJson: JsonAbstractSegment;
|
|
@@ -1423,6 +1433,7 @@ clearInEditor(id: string): void;
|
|
|
1423
1433
|
regenerateIds(randomizer: string): void;
|
|
1424
1434
|
} & {
|
|
1425
1435
|
rename(name: string): void;
|
|
1436
|
+
ensureName(): void;
|
|
1426
1437
|
setLayers(layers: string[]): void;
|
|
1427
1438
|
splitWallAtPoint({ pointId }: {
|
|
1428
1439
|
pointId: string;
|
|
@@ -1493,6 +1504,7 @@ clearInEditor(id: string): void;
|
|
|
1493
1504
|
regenerateIds(randomizer: string): void;
|
|
1494
1505
|
} & {
|
|
1495
1506
|
rename(name: string): void;
|
|
1507
|
+
ensureName(): void;
|
|
1496
1508
|
setBaseSegmentById(id: string): void;
|
|
1497
1509
|
} & {
|
|
1498
1510
|
readonly points: SOCanvasPoint[];
|
|
@@ -1539,6 +1551,7 @@ layers: IArrayType<ISimpleType<string>>;
|
|
|
1539
1551
|
readonly json: JsonStair;
|
|
1540
1552
|
} & {
|
|
1541
1553
|
rename(name: string): void;
|
|
1554
|
+
ensureName(): void;
|
|
1542
1555
|
setBaseHeight(baseHeight: number | undefined): void;
|
|
1543
1556
|
setHeight(height: number | undefined): void;
|
|
1544
1557
|
setStyle(style: "slope" | "thin" | "thick" | "block"): void;
|
|
@@ -1663,6 +1676,11 @@ readonly openings: IWallOpening[];
|
|
|
1663
1676
|
} & {
|
|
1664
1677
|
readonly doors: IWallOpening[];
|
|
1665
1678
|
readonly windows: IWallOpening[];
|
|
1679
|
+
nextGroundName(excludeId?: string): string;
|
|
1680
|
+
nextWallName(excludeId?: string): string;
|
|
1681
|
+
nextRoofName(excludeId?: string): string;
|
|
1682
|
+
nextStairsName(excludeId?: string): string;
|
|
1683
|
+
nextOpeningName(type: string, excludeId?: string): string;
|
|
1666
1684
|
readonly initialsFromName: string;
|
|
1667
1685
|
} & {
|
|
1668
1686
|
rename(name: string): void;
|
|
@@ -2656,6 +2674,7 @@ clearInEditor(id: string): void;
|
|
|
2656
2674
|
regenerateIds(randomizer: string): void;
|
|
2657
2675
|
} & {
|
|
2658
2676
|
rename(name: string): void;
|
|
2677
|
+
ensureName(): void;
|
|
2659
2678
|
setBaseSegmentById(id: string): void;
|
|
2660
2679
|
} & {
|
|
2661
2680
|
readonly points: SOCanvasPoint[];
|
|
@@ -3107,6 +3126,7 @@ clearInEditor(id: string): void;
|
|
|
3107
3126
|
regenerateIds(randomizer: string): void;
|
|
3108
3127
|
} & {
|
|
3109
3128
|
rename(name: string): void;
|
|
3129
|
+
ensureName(): void;
|
|
3110
3130
|
addHole(hole?: (Omit<SIHole, "segments"> & {
|
|
3111
3131
|
segments: SOGroundSegment[];
|
|
3112
3132
|
}) | undefined): void;
|
|
@@ -3191,6 +3211,7 @@ options: IOptionalIType<IModelType< {
|
|
|
3191
3211
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
3192
3212
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3193
3213
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
3214
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
3194
3215
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3195
3216
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
3196
3217
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -3208,6 +3229,7 @@ readonly maxPanelsOpened: number;
|
|
|
3208
3229
|
setStyle(style: string): void;
|
|
3209
3230
|
setNbOfPanels(nbOfPanels: number): void;
|
|
3210
3231
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
3232
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
3211
3233
|
setCenterSplit(centerSplit: boolean): void;
|
|
3212
3234
|
setSwapKnob(swapKnob: boolean): void;
|
|
3213
3235
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -3233,13 +3255,19 @@ readonly orientation: "horizontal" | "vertical";
|
|
|
3233
3255
|
} & {
|
|
3234
3256
|
verifyOpeningPosition(): void;
|
|
3235
3257
|
regenerateId(randomizer: string): void;
|
|
3258
|
+
applyTargetPanelWidth(): void;
|
|
3236
3259
|
} & {
|
|
3237
3260
|
rename(name: string): void;
|
|
3261
|
+
ensureName(): void;
|
|
3238
3262
|
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
3263
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
3239
3264
|
moveTo(position: SIWallOpeningPosition): void;
|
|
3240
3265
|
moveInDirection(direction: URDL, distance?: number): void;
|
|
3241
3266
|
remove(): void;
|
|
3242
3267
|
setLayers(layers: string[]): void;
|
|
3268
|
+
} & {
|
|
3269
|
+
expandToFullSegment(): void;
|
|
3270
|
+
addToAllSegmentsInWall(): void;
|
|
3243
3271
|
}, _NotCustomized, _NotCustomized>>;
|
|
3244
3272
|
}, {
|
|
3245
3273
|
readonly superJson: JsonAbstractSegment;
|
|
@@ -3264,6 +3292,7 @@ clearInEditor(id: string): void;
|
|
|
3264
3292
|
regenerateIds(randomizer: string): void;
|
|
3265
3293
|
} & {
|
|
3266
3294
|
rename(name: string): void;
|
|
3295
|
+
ensureName(): void;
|
|
3267
3296
|
setLayers(layers: string[]): void;
|
|
3268
3297
|
splitWallAtPoint({ pointId }: {
|
|
3269
3298
|
pointId: string;
|
|
@@ -3334,6 +3363,7 @@ clearInEditor(id: string): void;
|
|
|
3334
3363
|
regenerateIds(randomizer: string): void;
|
|
3335
3364
|
} & {
|
|
3336
3365
|
rename(name: string): void;
|
|
3366
|
+
ensureName(): void;
|
|
3337
3367
|
setBaseSegmentById(id: string): void;
|
|
3338
3368
|
} & {
|
|
3339
3369
|
readonly points: SOCanvasPoint[];
|
|
@@ -3380,6 +3410,7 @@ layers: IArrayType<ISimpleType<string>>;
|
|
|
3380
3410
|
readonly json: JsonStair;
|
|
3381
3411
|
} & {
|
|
3382
3412
|
rename(name: string): void;
|
|
3413
|
+
ensureName(): void;
|
|
3383
3414
|
setBaseHeight(baseHeight: number | undefined): void;
|
|
3384
3415
|
setHeight(height: number | undefined): void;
|
|
3385
3416
|
setStyle(style: "slope" | "thin" | "thick" | "block"): void;
|
|
@@ -3504,6 +3535,11 @@ readonly openings: IWallOpening[];
|
|
|
3504
3535
|
} & {
|
|
3505
3536
|
readonly doors: IWallOpening[];
|
|
3506
3537
|
readonly windows: IWallOpening[];
|
|
3538
|
+
nextGroundName(excludeId?: string | undefined): string;
|
|
3539
|
+
nextWallName(excludeId?: string | undefined): string;
|
|
3540
|
+
nextRoofName(excludeId?: string | undefined): string;
|
|
3541
|
+
nextStairsName(excludeId?: string | undefined): string;
|
|
3542
|
+
nextOpeningName(type: string, excludeId?: string | undefined): string;
|
|
3507
3543
|
readonly initialsFromName: string;
|
|
3508
3544
|
} & {
|
|
3509
3545
|
rename(name: string): void;
|
|
@@ -3891,6 +3927,7 @@ layers: IArrayType<ISimpleType<string>>;
|
|
|
3891
3927
|
readonly json: JsonStair;
|
|
3892
3928
|
} & {
|
|
3893
3929
|
rename(name: string): void;
|
|
3930
|
+
ensureName(): void;
|
|
3894
3931
|
setBaseHeight(baseHeight: number | undefined): void;
|
|
3895
3932
|
setHeight(height: number | undefined): void;
|
|
3896
3933
|
setStyle(style: Style): void;
|
|
@@ -4021,7 +4058,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
4021
4058
|
z: number;
|
|
4022
4059
|
}
|
|
4023
4060
|
|
|
4024
|
-
export declare const version = "2.56.1-beta.
|
|
4061
|
+
export declare const version = "2.56.1-beta.20";
|
|
4025
4062
|
|
|
4026
4063
|
declare interface ViewerRendererHandle {
|
|
4027
4064
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -4120,6 +4157,7 @@ options: IOptionalIType<IModelType< {
|
|
|
4120
4157
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
4121
4158
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4122
4159
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4160
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
4123
4161
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4124
4162
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4125
4163
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -4137,6 +4175,7 @@ readonly maxPanelsOpened: number;
|
|
|
4137
4175
|
setStyle(style: string): void;
|
|
4138
4176
|
setNbOfPanels(nbOfPanels: number): void;
|
|
4139
4177
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
4178
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4140
4179
|
setCenterSplit(centerSplit: boolean): void;
|
|
4141
4180
|
setSwapKnob(swapKnob: boolean): void;
|
|
4142
4181
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -4162,13 +4201,19 @@ readonly orientation: "horizontal" | "vertical";
|
|
|
4162
4201
|
} & {
|
|
4163
4202
|
verifyOpeningPosition(): void;
|
|
4164
4203
|
regenerateId(randomizer: string): void;
|
|
4204
|
+
applyTargetPanelWidth(): void;
|
|
4165
4205
|
} & {
|
|
4166
4206
|
rename(name: string): void;
|
|
4207
|
+
ensureName(): void;
|
|
4167
4208
|
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
4209
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4168
4210
|
moveTo(position: SIWallOpeningPosition): void;
|
|
4169
4211
|
moveInDirection(direction: URDL, distance?: number): void;
|
|
4170
4212
|
remove(): void;
|
|
4171
4213
|
setLayers(layers: string[]): void;
|
|
4214
|
+
} & {
|
|
4215
|
+
expandToFullSegment(): void;
|
|
4216
|
+
addToAllSegmentsInWall(): void;
|
|
4172
4217
|
}, _NotCustomized, _NotCustomized>>;
|
|
4173
4218
|
}, {
|
|
4174
4219
|
readonly superJson: JsonAbstractSegment;
|
|
@@ -4193,6 +4238,7 @@ clearInEditor(id: string): void;
|
|
|
4193
4238
|
regenerateIds(randomizer: string): void;
|
|
4194
4239
|
} & {
|
|
4195
4240
|
rename(name: string): void;
|
|
4241
|
+
ensureName(): void;
|
|
4196
4242
|
setLayers(layers: string[]): void;
|
|
4197
4243
|
splitWallAtPoint({ pointId }: {
|
|
4198
4244
|
pointId: string;
|
|
@@ -4232,6 +4278,7 @@ options: IOptionalIType<IModelType< {
|
|
|
4232
4278
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
4233
4279
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4234
4280
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4281
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
4235
4282
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4236
4283
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4237
4284
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -4249,6 +4296,7 @@ readonly maxPanelsOpened: number;
|
|
|
4249
4296
|
setStyle(style: string): void;
|
|
4250
4297
|
setNbOfPanels(nbOfPanels: number): void;
|
|
4251
4298
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
4299
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4252
4300
|
setCenterSplit(centerSplit: boolean): void;
|
|
4253
4301
|
setSwapKnob(swapKnob: boolean): void;
|
|
4254
4302
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -4274,13 +4322,19 @@ readonly orientation: "horizontal" | "vertical";
|
|
|
4274
4322
|
} & {
|
|
4275
4323
|
verifyOpeningPosition(): void;
|
|
4276
4324
|
regenerateId(randomizer: string): void;
|
|
4325
|
+
applyTargetPanelWidth(): void;
|
|
4277
4326
|
} & {
|
|
4278
4327
|
rename(name: string): void;
|
|
4328
|
+
ensureName(): void;
|
|
4279
4329
|
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
4330
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4280
4331
|
moveTo(position: SIWallOpeningPosition): void;
|
|
4281
4332
|
moveInDirection(direction: URDL, distance?: number): void;
|
|
4282
4333
|
remove(): void;
|
|
4283
4334
|
setLayers(layers: string[]): void;
|
|
4335
|
+
} & {
|
|
4336
|
+
expandToFullSegment(): void;
|
|
4337
|
+
addToAllSegmentsInWall(): void;
|
|
4284
4338
|
}, _NotCustomized, _NotCustomized>;
|
|
4285
4339
|
|
|
4286
4340
|
declare const WallOpeningDimensions: IModelType< {
|
|
@@ -4295,6 +4349,7 @@ declare const WallOpeningOptions: IModelType< {
|
|
|
4295
4349
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
4296
4350
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4297
4351
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4352
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
4298
4353
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4299
4354
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4300
4355
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -4312,6 +4367,7 @@ readonly maxPanelsOpened: number;
|
|
|
4312
4367
|
setStyle(style: string): void;
|
|
4313
4368
|
setNbOfPanels(nbOfPanels: number): void;
|
|
4314
4369
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
4370
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4315
4371
|
setCenterSplit(centerSplit: boolean): void;
|
|
4316
4372
|
setSwapKnob(swapKnob: boolean): void;
|
|
4317
4373
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -4377,6 +4433,7 @@ options: IOptionalIType<IModelType< {
|
|
|
4377
4433
|
style: IOptionalIType<ISimpleType<string>, [undefined]>;
|
|
4378
4434
|
nbOfPanels: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4379
4435
|
nbOfPanelsVertically: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
4436
|
+
targetPanelWidth: IMaybe<ISimpleType<number>>;
|
|
4380
4437
|
twoPanels: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4381
4438
|
centerSplit: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4382
4439
|
swapKnob: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
@@ -4394,6 +4451,7 @@ readonly maxPanelsOpened: number;
|
|
|
4394
4451
|
setStyle(style: string): void;
|
|
4395
4452
|
setNbOfPanels(nbOfPanels: number): void;
|
|
4396
4453
|
setNbOfPanelsVertically(nbOfPanelsVertically: number): void;
|
|
4454
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4397
4455
|
setCenterSplit(centerSplit: boolean): void;
|
|
4398
4456
|
setSwapKnob(swapKnob: boolean): void;
|
|
4399
4457
|
setSwapInOut(swapInOut: boolean): void;
|
|
@@ -4419,13 +4477,19 @@ readonly orientation: "horizontal" | "vertical";
|
|
|
4419
4477
|
} & {
|
|
4420
4478
|
verifyOpeningPosition(): void;
|
|
4421
4479
|
regenerateId(randomizer: string): void;
|
|
4480
|
+
applyTargetPanelWidth(): void;
|
|
4422
4481
|
} & {
|
|
4423
4482
|
rename(name: string): void;
|
|
4483
|
+
ensureName(): void;
|
|
4424
4484
|
resize(dimensions: Partial<SIWallOpeningDimensions>): void;
|
|
4485
|
+
setTargetPanelWidth(targetPanelWidth: number | undefined): void;
|
|
4425
4486
|
moveTo(position: SIWallOpeningPosition): void;
|
|
4426
4487
|
moveInDirection(direction: URDL, distance?: number): void;
|
|
4427
4488
|
remove(): void;
|
|
4428
4489
|
setLayers(layers: string[]): void;
|
|
4490
|
+
} & {
|
|
4491
|
+
expandToFullSegment(): void;
|
|
4492
|
+
addToAllSegmentsInWall(): void;
|
|
4429
4493
|
}, _NotCustomized, _NotCustomized>>;
|
|
4430
4494
|
}, {
|
|
4431
4495
|
readonly superJson: JsonAbstractSegment;
|