@realsee/dnalogel 2.0.0-alpha.29-beta → 2.0.0-alpha.30-beta

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.
Files changed (107) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/ItemLabelPlugin/Plugin.d.ts +4 -0
  3. package/dist/ItemLabelPlugin/events.type.d.ts +9 -0
  4. package/dist/ItemLabelPlugin/index.d.ts +9 -0
  5. package/dist/ItemLabelPlugin/index.js +703 -0
  6. package/dist/ItemLabelPlugin/typings.d.ts +54 -0
  7. package/dist/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  8. package/dist/index.d.ts +1 -0
  9. package/dist/index.es.js +829 -177
  10. package/dist/index.js +830 -176
  11. package/dist/index.umd.js +830 -176
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/ModelRoomLabelController.html +4 -4
  14. package/docs/classes/PanoFloorplanRadarPluginController.html +2 -2
  15. package/docs/enums/CameraMovementEffect.html +2 -2
  16. package/docs/enums/DIRECTION.html +1 -1
  17. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  18. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  19. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -0
  20. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  21. package/docs/enums/Rotation.html +2 -2
  22. package/docs/index.html +2 -2
  23. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  24. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  25. package/docs/interfaces/FloorplanBounding.html +4 -4
  26. package/docs/interfaces/FloorplanData.html +2 -2
  27. package/docs/interfaces/FloorplanEntrance.html +7 -7
  28. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  29. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  30. package/docs/interfaces/FloorplanFloorData.html +2 -2
  31. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  32. package/docs/interfaces/FloorplanObserver.html +2 -2
  33. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  34. package/docs/interfaces/FloorplanPosition.html +2 -2
  35. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  36. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  37. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  38. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  39. package/docs/interfaces/FloorplanServerData.html +2 -2
  40. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  41. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  42. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  43. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  44. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  45. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  46. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  47. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  48. package/docs/interfaces/ItemLabelPluginData.html +1 -0
  49. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -0
  50. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -0
  51. package/docs/interfaces/LineJson.html +1 -1
  52. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  53. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  54. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  55. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  56. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  57. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  58. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  59. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  60. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  61. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  62. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  63. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  64. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  65. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  66. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  67. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  68. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  69. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  70. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  71. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -1
  72. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  73. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  74. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  75. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  76. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  78. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  79. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  80. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  81. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  82. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  83. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  84. package/docs/interfaces/Point.html +1 -1
  85. package/docs/interfaces/PointJson.html +1 -1
  86. package/docs/interfaces/Room.html +1 -1
  87. package/docs/interfaces/RoomInfo.html +1 -1
  88. package/docs/interfaces/RoomLabel.html +7 -7
  89. package/docs/interfaces/RoomRules.html +1 -1
  90. package/docs/interfaces/Rooms.html +1 -1
  91. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +9 -9
  92. package/docs/modules.html +20 -20
  93. package/libs/ItemLabelPlugin/ItemLabelComponent.js +414 -0
  94. package/libs/ItemLabelPlugin/ItemLabelItem.js +173 -0
  95. package/libs/ItemLabelPlugin/Plugin.d.ts +4 -0
  96. package/libs/ItemLabelPlugin/Plugin.js +117 -0
  97. package/libs/ItemLabelPlugin/events.type.d.ts +9 -0
  98. package/libs/ItemLabelPlugin/events.type.js +1 -0
  99. package/libs/ItemLabelPlugin/index.d.ts +9 -0
  100. package/libs/ItemLabelPlugin/index.js +8 -0
  101. package/libs/ItemLabelPlugin/typings.d.ts +54 -0
  102. package/libs/ItemLabelPlugin/typings.js +7 -0
  103. package/libs/ItemLabelPlugin/utils/parseData.d.ts +3 -0
  104. package/libs/ItemLabelPlugin/utils/parseData.js +4 -0
  105. package/libs/index.d.ts +1 -0
  106. package/libs/index.js +2 -1
  107. package/package.json +2 -1
@@ -0,0 +1,54 @@
1
+ import type { Subscribe } from "@realsee/five";
2
+ import type { PluginEvent } from "./events.type";
3
+ import type ItemLabelComponent from './ItemLabelComponent.svelte';
4
+ export declare enum ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE {
5
+ SMALL = "small",
6
+ MIDLLE = "middle",
7
+ LARGE = "large",
8
+ EXTRA_LARGE = "x-large"
9
+ }
10
+ export interface ItemLabelPluginParametersType {
11
+ modelOcclusionEnable?: boolean;
12
+ displayStrategyType?: Partial<ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE>;
13
+ }
14
+ export interface ItemLabelPluginData {
15
+ item_labels: Readonly<{
16
+ id: string;
17
+ code: string;
18
+ name: string;
19
+ position: [number, number, number];
20
+ type?: string[];
21
+ icon?: string;
22
+ [key: string]: any;
23
+ }>[];
24
+ }
25
+ export interface ItemLabel {
26
+ id: string;
27
+ code: string;
28
+ name: string;
29
+ position: [number, number, number];
30
+ modelPosition: [number, number, number];
31
+ type?: string[];
32
+ icon?: string;
33
+ [key: string]: any;
34
+ }
35
+ export interface ItemLabelPluginExportReturnsType {
36
+ appendTo: (wrapper: Element) => void;
37
+ load: (data: ItemLabelPluginData) => void;
38
+ disable: () => void;
39
+ enable: () => void;
40
+ dispose: () => void;
41
+ hooks: Subscribe<PluginEvent>;
42
+ }
43
+ export interface ItemLabelPluginState {
44
+ container: HTMLDivElement;
45
+ data: ItemLabelPluginData | null;
46
+ enabled: boolean;
47
+ itemLabels: ItemLabel[];
48
+ wrapper: HTMLElement | null;
49
+ fiveModeEnabled: boolean;
50
+ app?: ItemLabelComponent | undefined;
51
+ hooks: Subscribe<PluginEvent>;
52
+ modelOcclusionEnable: boolean;
53
+ displayStrategyType: Partial<ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE>;
54
+ }
@@ -0,0 +1,3 @@
1
+ import type { ItemLabelPluginData, ItemLabel } from '../typings';
2
+ /** @description 转成内部所需数据 */
3
+ export declare function parseItemLabelPluginData(data: ItemLabelPluginData): ItemLabel[];
package/dist/index.d.ts CHANGED
@@ -12,3 +12,4 @@ export * from './PanoMeasurePlugin';
12
12
  export * from './PanoSpatialTagPlugin';
13
13
  export * from './ModelItemLabelPlugin';
14
14
  export * from './ModelTVVideoPlugin';
15
+ export * from './ItemLabelPlugin';