@smplrspace/smplr-loader 2.48.1-beta.9 → 2.49.1-beta.0
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 +29 -9
- package/package.json +1 -1
|
@@ -1406,6 +1406,9 @@ regenerateIds(randomizer: string): void;
|
|
|
1406
1406
|
} & {
|
|
1407
1407
|
rename(name: string): void;
|
|
1408
1408
|
setLayers(layers: string[]): void;
|
|
1409
|
+
splitWallAtPoint({ pointId }: {
|
|
1410
|
+
pointId: string;
|
|
1411
|
+
}): void;
|
|
1409
1412
|
} & {
|
|
1410
1413
|
readonly points: SOCanvasPoint[];
|
|
1411
1414
|
readonly geometry: SegmentGeometry;
|
|
@@ -2179,18 +2182,14 @@ export declare type PolylineData = BaseData & {
|
|
|
2179
2182
|
coordinates: SmplrCoord3d[];
|
|
2180
2183
|
};
|
|
2181
2184
|
|
|
2182
|
-
export declare
|
|
2185
|
+
export declare type PolylineDataLayer<D extends UnknownData = NoData> = PolylineDataLayerScale<D> | PolylineDataLayerMiter<D>;
|
|
2186
|
+
|
|
2187
|
+
declare type PolylineDataLayerBase<D extends UnknownData = NoData> = BaseDataLayer<PolylineData, D> & {
|
|
2183
2188
|
id: string;
|
|
2184
2189
|
type: LayerType.Polyline;
|
|
2185
2190
|
data: (PolylineData & D)[];
|
|
2186
2191
|
shape?: 'circle' | 'triangle' | 'square' | 'pentagon' | 'hexagon' | [number, number][];
|
|
2187
2192
|
cap?: boolean;
|
|
2188
|
-
scale?: number | ((scaled: {
|
|
2189
|
-
data: PolylineData & D;
|
|
2190
|
-
stepIndex: number;
|
|
2191
|
-
distance: number;
|
|
2192
|
-
}) => number);
|
|
2193
|
-
stepSize?: number;
|
|
2194
2193
|
color?: string | ((dataElement: PolylineData & D) => string);
|
|
2195
2194
|
alpha?: number;
|
|
2196
2195
|
onDrag?: (dragged: {
|
|
@@ -2203,7 +2202,22 @@ export declare interface PolylineDataLayer<D extends UnknownData = NoData> exten
|
|
|
2203
2202
|
disableReshape?: boolean;
|
|
2204
2203
|
reshapeBoxColor?: string;
|
|
2205
2204
|
disableElevationCorrection?: boolean;
|
|
2206
|
-
}
|
|
2205
|
+
};
|
|
2206
|
+
|
|
2207
|
+
declare type PolylineDataLayerMiter<D extends UnknownData = NoData> = PolylineDataLayerBase<D> & {
|
|
2208
|
+
mode: 'miter';
|
|
2209
|
+
scale?: number;
|
|
2210
|
+
};
|
|
2211
|
+
|
|
2212
|
+
declare type PolylineDataLayerScale<D extends UnknownData = NoData> = PolylineDataLayerBase<D> & {
|
|
2213
|
+
mode?: 'scale';
|
|
2214
|
+
scale?: number | ((scaled: {
|
|
2215
|
+
data: PolylineData & D;
|
|
2216
|
+
stepIndex: number;
|
|
2217
|
+
distance: number;
|
|
2218
|
+
}) => number);
|
|
2219
|
+
stepSize?: number;
|
|
2220
|
+
};
|
|
2207
2221
|
|
|
2208
2222
|
export declare type PosterData = PosterDataByPosition | PosterDataByCoordinate;
|
|
2209
2223
|
|
|
@@ -3194,6 +3208,9 @@ regenerateIds(randomizer: string): void;
|
|
|
3194
3208
|
} & {
|
|
3195
3209
|
rename(name: string): void;
|
|
3196
3210
|
setLayers(layers: string[]): void;
|
|
3211
|
+
splitWallAtPoint({ pointId }: {
|
|
3212
|
+
pointId: string;
|
|
3213
|
+
}): void;
|
|
3197
3214
|
} & {
|
|
3198
3215
|
readonly points: SOCanvasPoint[];
|
|
3199
3216
|
readonly geometry: SegmentGeometry;
|
|
@@ -3897,7 +3914,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3897
3914
|
z: number;
|
|
3898
3915
|
}
|
|
3899
3916
|
|
|
3900
|
-
export declare const version = "2.
|
|
3917
|
+
export declare const version = "2.49.1-beta.0";
|
|
3901
3918
|
|
|
3902
3919
|
declare interface ViewerRendererHandle {
|
|
3903
3920
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -4066,6 +4083,9 @@ regenerateIds(randomizer: string): void;
|
|
|
4066
4083
|
} & {
|
|
4067
4084
|
rename(name: string): void;
|
|
4068
4085
|
setLayers(layers: string[]): void;
|
|
4086
|
+
splitWallAtPoint({ pointId }: {
|
|
4087
|
+
pointId: string;
|
|
4088
|
+
}): void;
|
|
4069
4089
|
} & {
|
|
4070
4090
|
readonly points: SOCanvasPoint[];
|
|
4071
4091
|
readonly geometry: SegmentGeometry;
|