@archilogic/floor-plan-sdk 5.1.3 → 5.1.4
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/fpe.d.ts +65 -32
- package/dist/fpe.js +634 -826
- package/dist/fpe.umd.cjs +3 -3
- package/package.json +1 -1
package/dist/fpe.d.ts
CHANGED
|
@@ -158,6 +158,11 @@ declare interface CommonParameters {
|
|
|
158
158
|
materials: LayoutWindowMaterials;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
+
declare type CommonStairsParameters = {
|
|
162
|
+
railing: 'none' | 'left' | 'right' | 'both';
|
|
163
|
+
materials: LayoutStairsMaterials;
|
|
164
|
+
};
|
|
165
|
+
|
|
161
166
|
export declare interface CompositeCurve extends BaseShape {
|
|
162
167
|
type: 'curve:composite';
|
|
163
168
|
segments: OpenCurves[];
|
|
@@ -202,35 +207,68 @@ declare interface CurveBase {
|
|
|
202
207
|
|
|
203
208
|
declare type CurveType = ClosedCurveType | OpenCurveType;
|
|
204
209
|
|
|
210
|
+
declare type CustomAttributeInputType = 'Text' | 'Number' | 'Boolean' | 'Integer' | 'Select';
|
|
211
|
+
|
|
205
212
|
declare type CustomAttributeResourceType = 'building' | 'element' | 'floor' | 'layout' | 'product' | 'space';
|
|
206
213
|
|
|
207
|
-
declare type
|
|
214
|
+
declare type CustomAttributeSchema = CustomAttributeSchemaText | CustomAttributeSchemaSelect | CustomAttributeSchemaNumber | CustomAttributeSchemaInteger | CustomAttributeSchemaBoolean;
|
|
208
215
|
|
|
209
|
-
declare
|
|
216
|
+
declare type CustomAttributeSchemaBoolean = {
|
|
217
|
+
type: 'boolean';
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
declare type CustomAttributeSchemaInteger = {
|
|
221
|
+
type: 'integer';
|
|
222
|
+
};
|
|
223
|
+
|
|
224
|
+
declare type CustomAttributeSchemaNumber = {
|
|
225
|
+
type: 'number';
|
|
226
|
+
};
|
|
227
|
+
|
|
228
|
+
declare type CustomAttributeSchemaSelect = {
|
|
229
|
+
type: 'string';
|
|
230
|
+
enum: string[];
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
declare type CustomAttributeSchemaText = {
|
|
234
|
+
type: 'string';
|
|
235
|
+
};
|
|
236
|
+
|
|
237
|
+
/** @deprecated */
|
|
238
|
+
declare type CustomAttributeValueType = 'Text' | 'Number' | 'Boolean' | 'Schema';
|
|
239
|
+
|
|
240
|
+
declare type CustomStairsParameters = {
|
|
210
241
|
stairsType: CustomStairsType;
|
|
242
|
+
/** @minimum 0.01 */
|
|
211
243
|
height: number;
|
|
244
|
+
/** @minimum 0.01 */
|
|
212
245
|
stepWidth: number;
|
|
213
|
-
|
|
214
|
-
materials: LayoutStairsMaterials;
|
|
215
|
-
}
|
|
246
|
+
} & CommonStairsParameters;
|
|
216
247
|
|
|
217
248
|
declare type CustomStairsParametersJson = Partial<CustomStairsParameters>;
|
|
218
249
|
|
|
219
250
|
declare type CustomStairsType = 'custom';
|
|
220
251
|
|
|
221
252
|
declare interface DimensionParameters$1 {
|
|
253
|
+
/** @minimum 0.01 */
|
|
222
254
|
length: number;
|
|
255
|
+
/** @minimum 0.01 */
|
|
223
256
|
height: number;
|
|
224
257
|
}
|
|
225
258
|
|
|
226
259
|
declare interface DimensionParameters$2 {
|
|
260
|
+
/** @minimum 0.01 */
|
|
227
261
|
length: number;
|
|
262
|
+
/** @minimum 0.01 */
|
|
228
263
|
height: number;
|
|
229
264
|
}
|
|
230
265
|
|
|
231
266
|
declare type DimensionParameters = {
|
|
267
|
+
/** @minimum 0.01 */
|
|
232
268
|
length: number;
|
|
269
|
+
/** @minimum 0.01 */
|
|
233
270
|
width: number;
|
|
271
|
+
/** @minimum 0.01 */
|
|
234
272
|
height: number;
|
|
235
273
|
};
|
|
236
274
|
|
|
@@ -1331,6 +1369,7 @@ declare interface LayoutColumnMaterials {
|
|
|
1331
1369
|
|
|
1332
1370
|
declare interface LayoutColumnParameters {
|
|
1333
1371
|
profile: LayoutColumnProfile;
|
|
1372
|
+
/** @minimum 0.01 */
|
|
1334
1373
|
height: number;
|
|
1335
1374
|
materials: LayoutColumnMaterials;
|
|
1336
1375
|
}
|
|
@@ -2050,7 +2089,9 @@ declare interface LayoutWallMaterials {
|
|
|
2050
2089
|
}
|
|
2051
2090
|
|
|
2052
2091
|
declare interface LayoutWallParameters {
|
|
2092
|
+
/** @minimum 0.01 */
|
|
2053
2093
|
width: number;
|
|
2094
|
+
/** @minimum 0.01 */
|
|
2054
2095
|
height: number;
|
|
2055
2096
|
offset: number;
|
|
2056
2097
|
elevation: number;
|
|
@@ -2188,16 +2229,12 @@ declare type OpenCurves = LineCurve | ArcCurve | PolylineCurve | BezierCurve;
|
|
|
2188
2229
|
|
|
2189
2230
|
declare type OpenCurveType = LineCurveType | PolylineCurveType | ArcCurveType;
|
|
2190
2231
|
|
|
2191
|
-
declare
|
|
2232
|
+
declare type OrthogonalStairsParameters = {
|
|
2192
2233
|
stairsType: OrthogonalStairsType;
|
|
2193
|
-
|
|
2194
|
-
width: number;
|
|
2195
|
-
height: number;
|
|
2234
|
+
/** @minimum 0.01 */
|
|
2196
2235
|
stepWidth: number;
|
|
2197
2236
|
circulation: 'left' | 'right';
|
|
2198
|
-
|
|
2199
|
-
materials: LayoutStairsMaterials;
|
|
2200
|
-
}
|
|
2237
|
+
} & DimensionParameters & CommonStairsParameters;
|
|
2201
2238
|
|
|
2202
2239
|
declare type OrthogonalStairsParametersJson = Partial<OrthogonalStairsParameters>;
|
|
2203
2240
|
|
|
@@ -2619,6 +2656,7 @@ declare class SpaceGraphCustomAttribute extends SpaceGraphNodeBase {
|
|
|
2619
2656
|
type: SpaceGraphCustomAttributeType;
|
|
2620
2657
|
attributes: SpaceGraphCustomAttributeAttributes;
|
|
2621
2658
|
constructor(id: string, attributesJson?: SpaceGraphCustomAttributeAttributesJson);
|
|
2659
|
+
getInputType(): CustomAttributeInputType;
|
|
2622
2660
|
setAttributes(attributesJson: SpaceGraphCustomAttributeAttributesJson): void;
|
|
2623
2661
|
copyForClone(customAttribute: SpaceGraphCustomAttribute): void;
|
|
2624
2662
|
toJSON(): SpaceGraphCustomAttributeJson;
|
|
@@ -2626,14 +2664,15 @@ declare class SpaceGraphCustomAttribute extends SpaceGraphNodeBase {
|
|
|
2626
2664
|
|
|
2627
2665
|
declare type SpaceGraphCustomAttributeAttributes = {
|
|
2628
2666
|
resourceType: CustomAttributeResourceType;
|
|
2629
|
-
|
|
2667
|
+
schema: CustomAttributeSchema;
|
|
2630
2668
|
updatedAt?: string;
|
|
2631
2669
|
description?: string;
|
|
2632
2670
|
};
|
|
2633
2671
|
|
|
2634
2672
|
declare type SpaceGraphCustomAttributeAttributesJson = {
|
|
2635
2673
|
resourceType: CustomAttributeResourceType;
|
|
2636
|
-
valueType
|
|
2674
|
+
valueType?: CustomAttributeValueType;
|
|
2675
|
+
schema?: CustomAttributeSchema;
|
|
2637
2676
|
updatedAt?: string;
|
|
2638
2677
|
/** @minLength 3 @maxLength 200 @type string */
|
|
2639
2678
|
description?: string;
|
|
@@ -2652,9 +2691,9 @@ declare type SpaceGraphCustomAttributeType = typeof SpaceGraphCustomAttributeTyp
|
|
|
2652
2691
|
|
|
2653
2692
|
declare const SpaceGraphCustomAttributeTypeValue = "customAttribute:definition";
|
|
2654
2693
|
|
|
2655
|
-
declare type SpaceGraphCustomAttributeValue = Record<string, string>;
|
|
2694
|
+
declare type SpaceGraphCustomAttributeValue = Record<string, string | boolean | number>;
|
|
2656
2695
|
|
|
2657
|
-
declare type SpaceGraphCustomAttributeValueJson = Record<string, string | null>;
|
|
2696
|
+
declare type SpaceGraphCustomAttributeValueJson = Record<string, string | boolean | number | null>;
|
|
2658
2697
|
|
|
2659
2698
|
declare class SpaceGraphEmbeddedMaterial extends SpaceGraphNodeBase {
|
|
2660
2699
|
type: SpaceGraphEmbeddedMaterialType;
|
|
@@ -3081,7 +3120,9 @@ declare interface SpiralStairFlightParameters {
|
|
|
3081
3120
|
stairFlightType: 'spiral';
|
|
3082
3121
|
angle: number;
|
|
3083
3122
|
radius: number;
|
|
3123
|
+
/** @minimum 0.01 */
|
|
3084
3124
|
width: number;
|
|
3125
|
+
/** @minimum 0.01 */
|
|
3085
3126
|
height: number;
|
|
3086
3127
|
circulation: 'left' | 'right';
|
|
3087
3128
|
materials: LayoutStairFlightMaterials;
|
|
@@ -3089,16 +3130,16 @@ declare interface SpiralStairFlightParameters {
|
|
|
3089
3130
|
|
|
3090
3131
|
declare type SpiralStairFlightParametersJson = Partial<SpiralStairFlightParameters>;
|
|
3091
3132
|
|
|
3092
|
-
declare
|
|
3133
|
+
declare type SpiralStairsParameters = {
|
|
3093
3134
|
stairsType: SpiralStairsType;
|
|
3094
3135
|
radius: number;
|
|
3095
3136
|
angle: number;
|
|
3137
|
+
/** @minimum 0.01 */
|
|
3096
3138
|
height: number;
|
|
3139
|
+
/** @minimum 0.01 */
|
|
3097
3140
|
stepWidth: number;
|
|
3098
3141
|
circulation: 'left' | 'right';
|
|
3099
|
-
|
|
3100
|
-
materials: LayoutStairsMaterials;
|
|
3101
|
-
}
|
|
3142
|
+
} & CommonStairsParameters;
|
|
3102
3143
|
|
|
3103
3144
|
declare type SpiralStairsParametersJson = Partial<SpiralStairsParameters>;
|
|
3104
3145
|
|
|
@@ -3128,24 +3169,16 @@ declare interface StartupOptions {
|
|
|
3128
3169
|
zoomRange?: [number, number];
|
|
3129
3170
|
}
|
|
3130
3171
|
|
|
3131
|
-
declare
|
|
3172
|
+
declare type StraightStairFlightParameters = {
|
|
3132
3173
|
stairFlightType: 'straight';
|
|
3133
|
-
length: number;
|
|
3134
|
-
width: number;
|
|
3135
|
-
height: number;
|
|
3136
3174
|
materials: LayoutStairFlightMaterials;
|
|
3137
|
-
}
|
|
3175
|
+
} & DimensionParameters;
|
|
3138
3176
|
|
|
3139
3177
|
declare type StraightStairFlightParametersJson = Partial<StraightStairFlightParameters>;
|
|
3140
3178
|
|
|
3141
|
-
declare
|
|
3179
|
+
declare type StraightStairsParameters = {
|
|
3142
3180
|
stairsType: StraightStairsType;
|
|
3143
|
-
|
|
3144
|
-
width: number;
|
|
3145
|
-
height: number;
|
|
3146
|
-
railing: 'none' | 'left' | 'right' | 'both';
|
|
3147
|
-
materials: LayoutStairsMaterials;
|
|
3148
|
-
}
|
|
3181
|
+
} & DimensionParameters & CommonStairsParameters;
|
|
3149
3182
|
|
|
3150
3183
|
declare type StraightStairsParametersJson = Partial<StraightStairsParameters>;
|
|
3151
3184
|
|