@smplrspace/smplr-loader 2.25.2 → 2.25.3-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.
@@ -1,7 +1,6 @@
1
1
  import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera';
2
2
  import { CSSProperties } from 'react';
3
3
  import { Dispatch } from 'react';
4
- import { FC } from 'react';
5
4
  import { IMaybe } from 'mobx-state-tree';
6
5
  import { IModelType } from 'mobx-state-tree';
7
6
  import { IOptionalIType } from 'mobx-state-tree';
@@ -57,9 +56,6 @@ declare namespace Color {
57
56
  drawColorSwatches,
58
57
  drawIconsSwatches,
59
58
  drawLegend,
60
- ColorSwatches_2 as ColorSwatches,
61
- IconsSwatches,
62
- Legend,
63
59
  cssToSmplrColor,
64
60
  smplrToCssColor,
65
61
  NumericScale,
@@ -76,8 +72,6 @@ declare interface ColorSwatches extends Pick<ColorSwatchesProps, 'swatches'> {
76
72
  type: 'swatches';
77
73
  }
78
74
 
79
- declare const ColorSwatches_2: FC<ColorSwatchesProps>;
80
-
81
75
  declare interface ColorSwatchesProps {
82
76
  swatches: {
83
77
  color: string;
@@ -349,8 +343,6 @@ declare interface IconLegend extends Pick<IconsSwatchesProps, 'icons'> {
349
343
  type: 'icons';
350
344
  }
351
345
 
352
- declare const IconsSwatches: FC<IconsSwatchesProps>;
353
-
354
346
  declare interface IconsSwatchesProps {
355
347
  icons: {
356
348
  url: string;
@@ -361,8 +353,6 @@ declare interface IconsSwatchesProps {
361
353
  noLabels?: boolean;
362
354
  }
363
355
 
364
- declare const Legend: FC<LegendProps>;
365
-
366
356
  declare type LegendConfig = NumericLegend | ColorSwatches | IconLegend;
367
357
 
368
358
  declare interface LegendProps {
@@ -447,6 +437,7 @@ declare interface Material {
447
437
  declare type NoData = Record<string, never>;
448
438
 
449
439
  declare interface NonInteractiveDataLayer<T, D extends UnknownData> {
440
+ legend?: LegendConfig;
450
441
  }
451
442
 
452
443
  declare interface NumericLegend extends Pick<LegendProps, 'colorScale' | 'domain' | 'ticks'> {
@@ -984,7 +975,7 @@ declare interface Vector3Coord extends Vector2Coord {
984
975
  z: number;
985
976
  }
986
977
 
987
- export declare const version = "2.25.2";
978
+ export declare const version = "2.25.3-beta.0";
988
979
 
989
980
  declare interface ViewerOptions {
990
981
  mode?: CameraMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smplrspace/smplr-loader",
3
- "version": "2.25.2",
3
+ "version": "2.25.3-beta.0",
4
4
  "description": "NPM package to load a typed Smplr.js from CDN easily",
5
5
  "type": "module",
6
6
  "files": [