@smplrspace/smplr-loader 2.37.1-beta.5 → 2.37.1-beta.6
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.
|
@@ -768,11 +768,7 @@ export declare interface IconDataLayer<D extends UnknownData = NoData> extends B
|
|
|
768
768
|
id: string;
|
|
769
769
|
type: 'icon';
|
|
770
770
|
data: (IconData & D)[];
|
|
771
|
-
icon:
|
|
772
|
-
url: string;
|
|
773
|
-
width: number;
|
|
774
|
-
height: number;
|
|
775
|
-
};
|
|
771
|
+
icon: IconSource | ((dataElement: IconData & D) => IconSource);
|
|
776
772
|
width?: number | ((dataElement: IconData & D) => number);
|
|
777
773
|
onDrag?: (dragged: {
|
|
778
774
|
data: IconData & D;
|
|
@@ -788,6 +784,12 @@ declare interface IconLegend extends Pick<IconsSwatchesProps, 'icons'> {
|
|
|
788
784
|
type: 'icons';
|
|
789
785
|
}
|
|
790
786
|
|
|
787
|
+
export declare interface IconSource {
|
|
788
|
+
url: string;
|
|
789
|
+
width: number;
|
|
790
|
+
height: number;
|
|
791
|
+
}
|
|
792
|
+
|
|
791
793
|
declare interface IconsSwatchesProps {
|
|
792
794
|
icons: {
|
|
793
795
|
url: string;
|
|
@@ -3300,7 +3302,7 @@ declare interface Vector3Coord extends Vector2Coord {
|
|
|
3300
3302
|
z: number;
|
|
3301
3303
|
}
|
|
3302
3304
|
|
|
3303
|
-
export declare const version = "2.37.1-beta.
|
|
3305
|
+
export declare const version = "2.37.1-beta.6";
|
|
3304
3306
|
|
|
3305
3307
|
declare interface ViewerRendererHandle {
|
|
3306
3308
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|