@smplrspace/smplr-loader 2.62.1-beta.1 → 2.62.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 +22 -13
- package/package.json +1 -1
|
@@ -522,7 +522,6 @@ declare interface Filter {
|
|
|
522
522
|
shellMaterial: Material;
|
|
523
523
|
shellGroundMaterial: Material;
|
|
524
524
|
metalMaterial: Material;
|
|
525
|
-
compassMaterial: Material;
|
|
526
525
|
placeholderMaterial: Material;
|
|
527
526
|
hoveredMaterial: Material;
|
|
528
527
|
selectedMaterial: Material;
|
|
@@ -1087,7 +1086,6 @@ declare interface Instance_2 extends SOObject {
|
|
|
1087
1086
|
}
|
|
1088
1087
|
|
|
1089
1088
|
declare interface InternalSpaceRenderOptions {
|
|
1090
|
-
compass?: boolean;
|
|
1091
1089
|
backgroundColor?: string;
|
|
1092
1090
|
filter: DeepPartial<Filter>;
|
|
1093
1091
|
walls: WallsRenderState;
|
|
@@ -1204,7 +1202,6 @@ declare interface JsonRoof {
|
|
|
1204
1202
|
|
|
1205
1203
|
declare interface JsonSpace {
|
|
1206
1204
|
levels: JsonLevel[];
|
|
1207
|
-
compassDirection?: number;
|
|
1208
1205
|
facade?: SOFacade;
|
|
1209
1206
|
defaults: SOSpaceDefaults;
|
|
1210
1207
|
}
|
|
@@ -2182,7 +2179,6 @@ declare enum MeshType {
|
|
|
2182
2179
|
Roof = "roof",
|
|
2183
2180
|
Stairs = "stairs",
|
|
2184
2181
|
Annotation = "annotation",
|
|
2185
|
-
Compass = "compass",
|
|
2186
2182
|
Facade = "facade",
|
|
2187
2183
|
Floorplan = "floorplan",
|
|
2188
2184
|
Object = "object",
|
|
@@ -2774,6 +2770,27 @@ export declare class QueryClient {
|
|
|
2774
2770
|
}): Promise<{
|
|
2775
2771
|
status: string;
|
|
2776
2772
|
}>;
|
|
2773
|
+
/**
|
|
2774
|
+
* Sets the definition of a space, and optionally publishes it.
|
|
2775
|
+
*
|
|
2776
|
+
* @beta The definition is not validated against a schema yet, only its floor area is checked. The
|
|
2777
|
+
* definition format may change before this method is considered stable.
|
|
2778
|
+
*/
|
|
2779
|
+
setSpaceDefinition({ spaceId, definition, publish, user, }: {
|
|
2780
|
+
spaceId: string;
|
|
2781
|
+
definition: Record<string, unknown>;
|
|
2782
|
+
publish?: boolean;
|
|
2783
|
+
user: EmbeddedEditorUser;
|
|
2784
|
+
}): Promise<{
|
|
2785
|
+
sid: string;
|
|
2786
|
+
published: boolean;
|
|
2787
|
+
}>;
|
|
2788
|
+
publishSpace({ spaceId, user }: {
|
|
2789
|
+
spaceId: string;
|
|
2790
|
+
user: EmbeddedEditorUser;
|
|
2791
|
+
}): Promise<{
|
|
2792
|
+
sid: string;
|
|
2793
|
+
}>;
|
|
2777
2794
|
deleteSpace(spaceId: string): Promise<void>;
|
|
2778
2795
|
listSpaces(options?: {
|
|
2779
2796
|
organizationId?: string;
|
|
@@ -4189,7 +4206,6 @@ removeDeskCluster(clusterId: string): void;
|
|
|
4189
4206
|
removeSeminarSeatingCluster(clusterId: string): void;
|
|
4190
4207
|
removeParkingCluster(clusterId: string): void;
|
|
4191
4208
|
}, _NotCustomized, _NotCustomized>>, [undefined]>;
|
|
4192
|
-
compassDirection: IMaybe<ISimpleType<number>>;
|
|
4193
4209
|
facade: IMaybe<IModelType< {
|
|
4194
4210
|
url: ISimpleType<string>;
|
|
4195
4211
|
levelIndex: IOptionalIType<ISimpleType<number>, [undefined]>;
|
|
@@ -4297,7 +4313,6 @@ addLevel(): void;
|
|
|
4297
4313
|
clearLevel(levelIndex: number): void;
|
|
4298
4314
|
removeLevel(levelIndex: number): void;
|
|
4299
4315
|
setLevels(levels: SILevel[]): void;
|
|
4300
|
-
setCompassDirection(direction: number): void;
|
|
4301
4316
|
regenerateIdsForLevel(levelIndex: number): void;
|
|
4302
4317
|
} & {
|
|
4303
4318
|
flip(): void;
|
|
@@ -4392,7 +4407,6 @@ declare type SpacePrefix = typeof spacePrefix;
|
|
|
4392
4407
|
declare const spacePrefix: "spc_";
|
|
4393
4408
|
|
|
4394
4409
|
export declare interface SpaceRenderOptions {
|
|
4395
|
-
compass?: boolean
|
|
4396
4410
|
backgroundColor?: string
|
|
4397
4411
|
filter?: DeepPartial<Filter>
|
|
4398
4412
|
walls?: {
|
|
@@ -4475,7 +4489,6 @@ export declare interface SpaceViewerOptions {
|
|
|
4475
4489
|
hideNavigationButtons?: boolean;
|
|
4476
4490
|
hideLevelPicker?: boolean;
|
|
4477
4491
|
legendPosition?: LegendPosition;
|
|
4478
|
-
compass?: boolean;
|
|
4479
4492
|
annotations?: boolean;
|
|
4480
4493
|
renderOptions?: SpaceRenderOptions;
|
|
4481
4494
|
includeLevels?: number[];
|
|
@@ -4685,7 +4698,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
4685
4698
|
z: number;
|
|
4686
4699
|
}
|
|
4687
4700
|
|
|
4688
|
-
export declare const version = "2.62.1-beta.
|
|
4701
|
+
export declare const version = "2.62.1-beta.10";
|
|
4689
4702
|
|
|
4690
4703
|
declare interface ViewerDataLayerRenderState<Definition = DataLayer<UnknownData>> {
|
|
4691
4704
|
definition: Definition;
|
|
@@ -4745,7 +4758,6 @@ hideLevelPicker: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
|
4745
4758
|
hideNavigationButtons: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4746
4759
|
showStructuralWalls: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4747
4760
|
showAnnotations: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4748
|
-
showCompass: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4749
4761
|
showFacade: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4750
4762
|
persistentTooltipsVisible: IOptionalIType<ISimpleType<boolean>, [undefined]>;
|
|
4751
4763
|
dataLayers: IMapType<ITypeUnion<ModelCreationType<ExtractCFromProps< {
|
|
@@ -5124,7 +5136,6 @@ shellGroundMaterial: PBRMetallicRoughnessMaterial | null;
|
|
|
5124
5136
|
metalMaterial: PBRMetallicRoughnessMaterial | null;
|
|
5125
5137
|
groundMaterials: GroundMaterials | null;
|
|
5126
5138
|
meshes: SmplrMesh[];
|
|
5127
|
-
compassMeshes: SmplrMesh[];
|
|
5128
5139
|
assetsManager: AssetsManager | null;
|
|
5129
5140
|
facadeAssetsManager: AssetsManager | null;
|
|
5130
5141
|
actionManager: ActionManager | null;
|
|
@@ -5203,7 +5214,6 @@ setHideLevelPicker(hide: boolean): void;
|
|
|
5203
5214
|
setHideNavigationButtons(hide: boolean): void;
|
|
5204
5215
|
toggleShowStructuralWalls(): void;
|
|
5205
5216
|
toggleShowAnnotations(): void;
|
|
5206
|
-
toggleShowCompass(): void;
|
|
5207
5217
|
toggleShowFacade(): void;
|
|
5208
5218
|
} & {
|
|
5209
5219
|
addDataLayer(layer: SIViewerDataLayer): void;
|
|
@@ -5231,7 +5241,6 @@ groundMaterials: GroundMaterials;
|
|
|
5231
5241
|
}): void;
|
|
5232
5242
|
enableCascadedShadowMapFallback(): void;
|
|
5233
5243
|
setMeshes(meshes: SmplrMesh[]): void;
|
|
5234
|
-
setCompassMeshes(compassMeshes: SmplrMesh[]): void;
|
|
5235
5244
|
bumpObjectMeshesTick(): void;
|
|
5236
5245
|
bumpFacadeTick(): void;
|
|
5237
5246
|
setAssetsManager(assetsManager: AssetsManager | null): void;
|