@realsee/dnalogel 2.0.0-alpha.27 → 2.0.0-alpha.28-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 (136) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  3. package/dist/CSS3DRenderPlugin/index.d.ts +3 -48
  4. package/dist/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  5. package/dist/CameraMovementPlugin/index.d.ts +4 -6
  6. package/dist/CameraMovementPlugin/index.js +12 -12
  7. package/dist/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  8. package/dist/ModelChassisCompassPlugin/index.d.ts +3 -18
  9. package/dist/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  10. package/dist/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
  11. package/dist/ModelEntryDoorGuidePlugin/index.js +0 -5
  12. package/dist/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  13. package/dist/ModelItemLabelPlugin/index.d.ts +8 -3
  14. package/dist/ModelItemLabelPlugin/index.js +13 -7
  15. package/dist/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  16. package/dist/ModelTVVideoPlugin/index.d.ts +4 -3
  17. package/dist/ModelTVVideoPlugin/index.js +3 -3
  18. package/dist/ModelViewPlugin/Plugin.d.ts +17 -0
  19. package/dist/ModelViewPlugin/index.d.ts +3 -16
  20. package/dist/PanoCompassPlugin/Plugin.d.ts +47 -0
  21. package/dist/PanoCompassPlugin/index.d.ts +4 -47
  22. package/dist/PanoCompassPlugin/index.js +5 -4
  23. package/dist/PanoMeasurePlugin/index.d.ts +1 -1
  24. package/dist/PanoMeasurePlugin/index.js +4 -1
  25. package/dist/PanoRulerPlugin/Plugin.d.ts +31 -0
  26. package/dist/PanoRulerPlugin/index.d.ts +4 -30
  27. package/dist/PanoRulerPlugin/index.js +0 -5
  28. package/dist/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
  29. package/dist/PanoSpatialTagPlugin/index.d.ts +4 -32
  30. package/dist/PanoSpatialTagPlugin/index.js +19 -19
  31. package/dist/_index.d.ts +30 -0
  32. package/dist/index.d.ts +16 -29
  33. package/dist/index.es.js +34 -20
  34. package/dist/index.js +58 -41
  35. package/dist/index.umd.js +58 -41
  36. package/docs/assets/search.js +1 -1
  37. package/docs/classes/ModelRoomLabelController.html +6 -6
  38. package/docs/classes/PanoFloorplanRadarPluginController.html +3 -0
  39. package/docs/enums/CameraMovementEffect.html +3 -0
  40. package/docs/enums/DIRECTION.html +1 -0
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -0
  42. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  43. package/docs/enums/ModelFloorplanErrorType.html +1 -1
  44. package/docs/enums/Rotation.html +3 -0
  45. package/docs/index.html +1 -1
  46. package/docs/interfaces/CSS3DRenderPluginExportType.html +4 -0
  47. package/docs/interfaces/CameraMovementPluginExportType.html +17 -0
  48. package/docs/interfaces/LineJson.html +1 -1
  49. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  50. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  51. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  52. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  53. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  54. package/docs/interfaces/ModelFloorplanParameterType.html +1 -1
  55. package/docs/interfaces/ModelFloorplanViewEvent.html +2 -2
  56. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  57. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  58. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  59. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  60. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  61. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  62. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  63. package/docs/interfaces/ModelViewPluginExportType.html +1 -0
  64. package/docs/interfaces/PanoCompassPluginData.html +1 -1
  65. package/docs/interfaces/PanoCompassPluginParameterType.html +1 -1
  66. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  67. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -0
  68. package/docs/interfaces/PanoFloorplanRadarPluginControllerParameter.html +1 -0
  69. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  70. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  71. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  72. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -0
  73. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -0
  74. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  75. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -0
  76. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -0
  78. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  79. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -0
  80. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -0
  81. package/docs/interfaces/Point.html +1 -0
  82. package/docs/interfaces/PointJson.html +1 -1
  83. package/docs/interfaces/Room.html +1 -0
  84. package/docs/interfaces/RoomInfo.html +1 -0
  85. package/docs/interfaces/RoomLabel.html +7 -7
  86. package/docs/interfaces/RoomRules.html +1 -0
  87. package/docs/interfaces/Rooms.html +1 -0
  88. package/docs/interfaces/TopviewFloorplanPluginParameterType.html +8 -8
  89. package/docs/modules.html +20 -12
  90. package/libs/CSS3DRenderPlugin/Plugin.d.ts +49 -0
  91. package/libs/CSS3DRenderPlugin/Plugin.js +182 -0
  92. package/libs/CSS3DRenderPlugin/index.d.ts +3 -48
  93. package/libs/CSS3DRenderPlugin/index.js +2 -181
  94. package/libs/CameraMovementPlugin/CameraMovementPlugin.d.ts +7 -0
  95. package/libs/CameraMovementPlugin/CameraMovementPlugin.js +159 -0
  96. package/libs/CameraMovementPlugin/index.d.ts +4 -6
  97. package/libs/CameraMovementPlugin/index.js +3 -158
  98. package/libs/ModelChassisCompassPlugin/Plugin.d.ts +19 -0
  99. package/libs/ModelChassisCompassPlugin/Plugin.js +75 -0
  100. package/libs/ModelChassisCompassPlugin/index.d.ts +3 -18
  101. package/libs/ModelChassisCompassPlugin/index.js +2 -74
  102. package/libs/ModelEntryDoorGuidePlugin/Plugin.d.ts +26 -0
  103. package/libs/ModelEntryDoorGuidePlugin/Plugin.js +140 -0
  104. package/libs/ModelEntryDoorGuidePlugin/index.d.ts +3 -25
  105. package/libs/ModelEntryDoorGuidePlugin/index.js +2 -139
  106. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.d.ts +4 -0
  107. package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +120 -0
  108. package/libs/ModelItemLabelPlugin/index.d.ts +8 -3
  109. package/libs/ModelItemLabelPlugin/index.js +7 -119
  110. package/libs/ModelTVVideoPlugin/Plugin.d.ts +4 -0
  111. package/libs/ModelTVVideoPlugin/Plugin.js +254 -0
  112. package/libs/ModelTVVideoPlugin/index.d.ts +4 -3
  113. package/libs/ModelTVVideoPlugin/index.js +3 -253
  114. package/libs/ModelViewPlugin/Plugin.d.ts +17 -0
  115. package/libs/ModelViewPlugin/Plugin.js +160 -0
  116. package/libs/ModelViewPlugin/index.d.ts +3 -16
  117. package/libs/ModelViewPlugin/index.js +2 -159
  118. package/libs/PanoCompassPlugin/Plugin.d.ts +47 -0
  119. package/libs/PanoCompassPlugin/Plugin.js +249 -0
  120. package/libs/PanoCompassPlugin/index.d.ts +4 -47
  121. package/libs/PanoCompassPlugin/index.js +3 -249
  122. package/libs/PanoMeasurePlugin/index.d.ts +1 -1
  123. package/libs/PanoMeasurePlugin/index.js +1 -1
  124. package/libs/PanoRulerPlugin/Plugin.d.ts +31 -0
  125. package/libs/PanoRulerPlugin/Plugin.js +402 -0
  126. package/libs/PanoRulerPlugin/index.d.ts +4 -30
  127. package/libs/PanoRulerPlugin/index.js +2 -401
  128. package/libs/PanoSpatialTagPlugin/Plugin.d.ts +33 -0
  129. package/libs/PanoSpatialTagPlugin/Plugin.js +415 -0
  130. package/libs/PanoSpatialTagPlugin/index.d.ts +4 -32
  131. package/libs/PanoSpatialTagPlugin/index.js +4 -414
  132. package/libs/_index.d.ts +30 -0
  133. package/libs/_index.js +18 -0
  134. package/libs/index.d.ts +16 -29
  135. package/libs/index.js +25 -16
  136. package/package.json +5 -4
package/dist/index.umd.js CHANGED
@@ -999,6 +999,10 @@
999
999
  const ModelRoomLabelPlugin = (five) => {
1000
1000
  return new ModelRoomLabelController(five);
1001
1001
  };
1002
+ const modelRoomLabelPluginServerParams = {
1003
+ name: 'ModelRoomLabelPlugin',
1004
+ version: 0,
1005
+ };
1002
1006
 
1003
1007
  exports.FLOOR_PLAN_ATTACHED_TO = void 0;
1004
1008
  (function (FLOOR_PLAN_ATTACHED_TO) {
@@ -6687,20 +6691,20 @@
6687
6691
  /**
6688
6692
  * 运镜效果
6689
6693
  */
6690
- var CameraMovementEffect;
6694
+ exports.CameraMovementEffect = void 0;
6691
6695
  (function (CameraMovementEffect) {
6692
6696
  CameraMovementEffect["Move"] = "Move";
6693
6697
  CameraMovementEffect["Rotate"] = "Rotate";
6694
- })(CameraMovementEffect || (CameraMovementEffect = {}));
6698
+ })(exports.CameraMovementEffect || (exports.CameraMovementEffect = {}));
6695
6699
  /**
6696
6700
  * 旋转类型
6697
6701
  */
6698
- var Rotation;
6702
+ exports.Rotation = void 0;
6699
6703
  (function (Rotation) {
6700
6704
  Rotation["Clockwise"] = "Clockwise";
6701
6705
  Rotation["Anticlockwise"] = "Anticlockwise";
6702
6706
  Rotation["Loop"] = "Loop";
6703
- })(Rotation || (Rotation = {}));
6707
+ })(exports.Rotation || (exports.Rotation = {}));
6704
6708
 
6705
6709
  const PI_2 = Math.PI * 2;
6706
6710
  /**
@@ -6731,18 +6735,18 @@
6731
6735
  from = formatLongitude(from);
6732
6736
  to = formatLongitude(to);
6733
6737
  // 逆时针旋转,初始值必须是较大的值
6734
- if (rotation === Rotation.Anticlockwise && from < to)
6738
+ if (rotation === exports.Rotation.Anticlockwise && from < to)
6735
6739
  from += PI_2;
6736
6740
  // 顺时针旋转,结束值必须是较大值
6737
- if (rotation === Rotation.Clockwise && to < from)
6741
+ if (rotation === exports.Rotation.Clockwise && to < from)
6738
6742
  to += PI_2;
6739
6743
  // Loop 旋转,找锐角旋转
6740
6744
  // 如果 to 比 from 大 180°,逆时针转
6741
6745
  // 如果 from 比 to 大 180°,顺时针转
6742
- if (rotation === Rotation.Loop && to - from > PI)
6743
- return getLongitudeParams(from, to, Rotation.Anticlockwise);
6744
- if (rotation === Rotation.Loop && from - to > PI)
6745
- return getLongitudeParams(from, to, Rotation.Clockwise);
6746
+ if (rotation === exports.Rotation.Loop && to - from > PI)
6747
+ return getLongitudeParams(from, to, exports.Rotation.Anticlockwise);
6748
+ if (rotation === exports.Rotation.Loop && from - to > PI)
6749
+ return getLongitudeParams(from, to, exports.Rotation.Clockwise);
6746
6750
  return { from, to };
6747
6751
  };
6748
6752
  /**
@@ -6792,7 +6796,7 @@
6792
6796
  const fromLatitude = formatLatitude(currentFiveState.latitude);
6793
6797
  const toLatitude = formatLatitude(args.latitude);
6794
6798
  // longitude
6795
- const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || Rotation.Loop);
6799
+ const { from: fromLongitude, to: toLongitude } = getLongitudeParams(currentFiveState.longitude, args.longitude, args.rotation || exports.Rotation.Loop);
6796
6800
  // fov
6797
6801
  const fromFov = currentFiveState.fov;
6798
6802
  const toFov = args.fov;
@@ -6850,7 +6854,7 @@
6850
6854
  .onUpdate(onUpdate)
6851
6855
  .onComplete(onComplete)
6852
6856
  .onDestroy(onDestroy);
6853
- if (args.rotation === Rotation.Loop) {
6857
+ if (args.rotation === exports.Rotation.Loop) {
6854
6858
  tween.repeat(Infinity).yoyo(true);
6855
6859
  }
6856
6860
  /**
@@ -7821,6 +7825,11 @@
7821
7825
  }
7822
7826
  }
7823
7827
 
7828
+ const panoCompassPluginServerParams = {
7829
+ name: 'PanoCompassPlugin',
7830
+ version: 0,
7831
+ };
7832
+
7824
7833
  /** 交换数组元素 */
7825
7834
  function exchange(array, index1, index2) {
7826
7835
  const value = array[index1];
@@ -14153,10 +14162,10 @@
14153
14162
  return newTags;
14154
14163
  };
14155
14164
  /** 标签数据加载
14156
- * @param data.points {Array} 标签数据
14157
- * @param data.enabled {Boolean} 插件是否启用
14158
- * @param data.folded {Boolean} 标签是否默认展开
14159
- */
14165
+ * @param data.points {Array} 标签数据
14166
+ * @param data.enabled {Boolean} 插件是否启用
14167
+ * @param data.folded {Boolean} 标签是否默认展开
14168
+ */
14160
14169
  const load = (data) => {
14161
14170
  state.points = data.points.map(point => {
14162
14171
  var _a, _b;
@@ -14180,16 +14189,16 @@
14180
14189
  state.folded = data.folded;
14181
14190
  };
14182
14191
  /** 标签启用
14183
- * 启用插件并重新计算展示标签
14184
- */
14192
+ * 启用插件并重新计算展示标签
14193
+ */
14185
14194
  const enable = () => {
14186
14195
  state.enabled = true;
14187
14196
  updateTags();
14188
14197
  };
14189
14198
  /** 插件禁用
14190
- * 1. 禁用同时会清除已展示的标签
14191
- * 2. 再次启用时会重新计算展示标签
14192
- */
14199
+ * 1. 禁用同时会清除已展示的标签
14200
+ * 2. 再次启用时会重新计算展示标签
14201
+ */
14193
14202
  const disable = () => {
14194
14203
  state.enabled = false;
14195
14204
  origins.$set({ origins: [] });
@@ -14201,9 +14210,9 @@
14201
14210
  state.tags = [];
14202
14211
  };
14203
14212
  /** 展开所有标签
14204
- * 1. 展开所有收起的标签
14205
- * 2. 新标签会默认展开
14206
- */
14213
+ * 1. 展开所有收起的标签
14214
+ * 2. 新标签会默认展开
14215
+ */
14207
14216
  const unfoldAll = () => {
14208
14217
  state.folded = false;
14209
14218
  state.tags.forEach(tag => {
@@ -14211,9 +14220,9 @@
14211
14220
  });
14212
14221
  };
14213
14222
  /** 收起所有标签
14214
- * 1. 收起所有展开的标签
14215
- * 2. 新标签会默认收起
14216
- */
14223
+ * 1. 收起所有展开的标签
14224
+ * 2. 新标签会默认收起
14225
+ */
14217
14226
  const foldAll = () => {
14218
14227
  state.folded = true;
14219
14228
  state.tags.forEach(tag => {
@@ -14221,8 +14230,8 @@
14221
14230
  });
14222
14231
  };
14223
14232
  /** 展开单个标签
14224
- * @param id {Number | String} 标签ID
14225
- */
14233
+ * @param id {Number | String} 标签ID
14234
+ */
14226
14235
  const unfold = (id) => {
14227
14236
  state.tags.forEach(tag => {
14228
14237
  if (tag.id === id)
@@ -14230,8 +14239,8 @@
14230
14239
  });
14231
14240
  };
14232
14241
  /** 收起单个标签
14233
- * @param id {Number | String} 标签ID
14234
- */
14242
+ * @param id {Number | String} 标签ID
14243
+ */
14235
14244
  const fold = (id) => {
14236
14245
  state.tags.forEach(tag => {
14237
14246
  if (tag.id === id)
@@ -14291,13 +14300,13 @@
14291
14300
  };
14292
14301
  };
14293
14302
 
14294
- var DISPLAY_STRATEGY_TYPE;
14303
+ exports.DISPLAY_STRATEGY_TYPE = void 0;
14295
14304
  (function (DISPLAY_STRATEGY_TYPE) {
14296
14305
  DISPLAY_STRATEGY_TYPE["SMALL"] = "small";
14297
14306
  DISPLAY_STRATEGY_TYPE["MIDLLE"] = "middle";
14298
14307
  DISPLAY_STRATEGY_TYPE["LARGE"] = "large";
14299
14308
  DISPLAY_STRATEGY_TYPE["EXTRA_LARGE"] = "x-large";
14300
- })(DISPLAY_STRATEGY_TYPE || (DISPLAY_STRATEGY_TYPE = {}));
14309
+ })(exports.DISPLAY_STRATEGY_TYPE || (exports.DISPLAY_STRATEGY_TYPE = {}));
14301
14310
 
14302
14311
  /* src/ModelItemLabelPlugin/ItemLabelItem.svelte generated by Svelte v3.47.0 */
14303
14312
 
@@ -14638,13 +14647,13 @@
14638
14647
 
14639
14648
  function getStrokeLength(itemSpaceHeight, type) {
14640
14649
  switch (type) {
14641
- case DISPLAY_STRATEGY_TYPE.SMALL:
14650
+ case exports.DISPLAY_STRATEGY_TYPE.SMALL:
14642
14651
  return Math.ceil(-27.78 * itemSpaceHeight + 85);
14643
- case DISPLAY_STRATEGY_TYPE.MIDLLE:
14652
+ case exports.DISPLAY_STRATEGY_TYPE.MIDLLE:
14644
14653
  return Math.ceil(-38.9 * itemSpaceHeight + 130);
14645
- case DISPLAY_STRATEGY_TYPE.LARGE:
14654
+ case exports.DISPLAY_STRATEGY_TYPE.LARGE:
14646
14655
  return Math.ceil(-44.44 * itemSpaceHeight + 140);
14647
- case DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14656
+ case exports.DISPLAY_STRATEGY_TYPE.EXTRA_LARGE:
14648
14657
  return Math.ceil(-92.59 * itemSpaceHeight + 300);
14649
14658
  }
14650
14659
  }
@@ -14820,7 +14829,7 @@
14820
14829
  app: undefined,
14821
14830
  hooks: new five.Subscribe(),
14822
14831
  modelOcclusionEnable: (_a = params === null || params === void 0 ? void 0 : params.modelOcclusionEnable) !== null && _a !== void 0 ? _a : true,
14823
- displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : DISPLAY_STRATEGY_TYPE.SMALL,
14832
+ displayStrategyType: (_b = params === null || params === void 0 ? void 0 : params.displayStrategyType) !== null && _b !== void 0 ? _b : exports.DISPLAY_STRATEGY_TYPE.SMALL,
14824
14833
  };
14825
14834
  pluginState.container.setAttribute('class', 'model-item-label-plugin-container');
14826
14835
  pluginState.container.style.cssText = `
@@ -14924,13 +14933,18 @@
14924
14933
  };
14925
14934
  };
14926
14935
 
14927
- var DIRECTION;
14936
+ const modelItemLabelPluginServerParams = {
14937
+ name: 'ModelItemLabelPlugin',
14938
+ version: 0,
14939
+ };
14940
+
14941
+ exports.DIRECTION = void 0;
14928
14942
  (function (DIRECTION) {
14929
14943
  DIRECTION["TOP_LEFT"] = "topLeft";
14930
14944
  DIRECTION["TOP_RIGHT"] = "topRight";
14931
14945
  DIRECTION["BOTTOM_LEFT"] = "bottomLeft";
14932
14946
  DIRECTION["BOTTOM_RIGHT"] = "bottomRight";
14933
- })(DIRECTION || (DIRECTION = {}));
14947
+ })(exports.DIRECTION || (exports.DIRECTION = {}));
14934
14948
 
14935
14949
  function parseModelTVVideoPoints(points) {
14936
14950
  if (points.length === 0)
@@ -14939,7 +14953,7 @@
14939
14953
  return points;
14940
14954
  let newPoints = [];
14941
14955
  points.map(point => {
14942
- const newPoint = [point[DIRECTION.TOP_LEFT], point[DIRECTION.BOTTOM_LEFT], point[DIRECTION.BOTTOM_RIGHT], point[DIRECTION.TOP_RIGHT]];
14956
+ const newPoint = [point[exports.DIRECTION.TOP_LEFT], point[exports.DIRECTION.BOTTOM_LEFT], point[exports.DIRECTION.BOTTOM_RIGHT], point[exports.DIRECTION.TOP_RIGHT]];
14943
14957
  newPoints.push(newPoint);
14944
14958
  });
14945
14959
  return newPoints;
@@ -15213,6 +15227,9 @@
15213
15227
  exports.PanoRulerPlugin = PanoRulerPlugin;
15214
15228
  exports.PanoSpatialTagPlugin = PanoSpatialTagPlugin;
15215
15229
  exports.TopviewFloorplanPlugin = TopviewFloorplanPlugin;
15230
+ exports.modelItemLabelPluginServerParams = modelItemLabelPluginServerParams;
15231
+ exports.modelRoomLabelPluginServerParams = modelRoomLabelPluginServerParams;
15232
+ exports.panoCompassPluginServerParams = panoCompassPluginServerParams;
15216
15233
 
15217
15234
  Object.defineProperty(exports, '__esModule', { value: true });
15218
15235