@realsee/dnalogel 2.0.0-alpha.56 → 2.0.0-alpha.57

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 (90) hide show
  1. package/dist/PanoRulerPlugin/index.js +9 -31
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.es.js +11 -13
  4. package/dist/index.js +11 -13
  5. package/dist/index.umd.js +11 -13
  6. package/docs/classes/Magnifier.html +4 -4
  7. package/docs/classes/ModelRoomLabelController.html +4 -4
  8. package/docs/enums/CameraMovementEffect.html +2 -2
  9. package/docs/enums/DIRECTION.html +1 -1
  10. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
  11. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
  12. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
  13. package/docs/enums/Rotation.html +2 -2
  14. package/docs/index.html +1 -1
  15. package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
  16. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  17. package/docs/interfaces/FloorplanBounding.html +4 -4
  18. package/docs/interfaces/FloorplanData.html +2 -2
  19. package/docs/interfaces/FloorplanEntrance.html +7 -7
  20. package/docs/interfaces/FloorplanExtraObject.html +3 -3
  21. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  22. package/docs/interfaces/FloorplanFloorData.html +2 -2
  23. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  24. package/docs/interfaces/FloorplanObserver.html +2 -2
  25. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  26. package/docs/interfaces/FloorplanPosition.html +2 -2
  27. package/docs/interfaces/FloorplanRoomItem.html +6 -6
  28. package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
  29. package/docs/interfaces/FloorplanServerBounding.html +4 -4
  30. package/docs/interfaces/FloorplanServerComputedData.html +1 -1
  31. package/docs/interfaces/FloorplanServerData.html +2 -2
  32. package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
  33. package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
  34. package/docs/interfaces/FloorplanServerEntrance.html +7 -7
  35. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  36. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  37. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  38. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  39. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  40. package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
  41. package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
  42. package/docs/interfaces/ItemLabelPluginData.html +1 -1
  43. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
  44. package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
  45. package/docs/interfaces/LineJson.html +1 -1
  46. package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
  47. package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
  48. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
  49. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
  50. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
  51. package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
  52. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
  53. package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
  54. package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
  55. package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
  56. package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
  57. package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
  58. package/docs/interfaces/ModelViewPluginExportType.html +1 -1
  59. package/docs/interfaces/OpenParameter.html +2 -2
  60. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
  61. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  62. package/docs/interfaces/PanoMeasureParameterType.html +1 -1
  63. package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
  64. package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
  65. package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
  66. package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
  67. package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
  68. package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
  69. package/docs/interfaces/PanoRulerProPluginState.html +1 -1
  70. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  71. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  72. package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
  73. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
  74. package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
  75. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
  76. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
  77. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
  78. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
  79. package/docs/interfaces/Point.html +1 -1
  80. package/docs/interfaces/PointJson.html +1 -1
  81. package/docs/interfaces/Room.html +1 -1
  82. package/docs/interfaces/RoomInfo.html +1 -1
  83. package/docs/interfaces/RoomLabel.html +7 -7
  84. package/docs/interfaces/RoomRules.html +1 -1
  85. package/docs/interfaces/Rooms.html +1 -1
  86. package/docs/modules.html +18 -18
  87. package/libs/PanoRulerPlugin/Plugin.js +9 -11
  88. package/libs/index.d.ts +1 -1
  89. package/libs/index.js +2 -1
  90. package/package.json +1 -1
@@ -228,8 +228,14 @@ export const PanoRulerPlugin = (five, params) => {
228
228
  if (_name.split(',').indexOf(panoIndex.toString()) >= 0)
229
229
  name = _name;
230
230
  }
231
- if (!name)
231
+ if (!name) {
232
+ for (const _name in __rule) {
233
+ for (const { $element } of __rule[_name].rules) {
234
+ $element.style.display = 'none';
235
+ }
236
+ }
232
237
  return;
238
+ }
233
239
  const cameraPosition = camera.position;
234
240
  const cameraDirection = camera.getWorldDirection(new Vector3());
235
241
  const width = element.clientWidth;
@@ -365,24 +371,16 @@ export const PanoRulerPlugin = (five, params) => {
365
371
  $rule.setAttribute('class', 'PanoRulerPlugin' + (state.options.className ? ' ' + state.options.className : ''));
366
372
  (_b = (_a = five.getElement()) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.append($rule);
367
373
  freshRule();
368
- five.on('panoArrived', freshRule);
369
374
  five.on('modeChange', freshRule);
370
- five.on('cameraDirectionUpdate', nextFrameFreshRule);
371
- five.on('movingToPano', nextFrameFreshRule);
372
- five.on('mouseWheel', throttleFreshRule);
373
- five.on('pinchGesture', throttleFreshRule);
375
+ five.on('cameraUpdate', nextFrameFreshRule);
374
376
  state.enable = true;
375
377
  return true;
376
378
  };
377
379
  const disable = () => {
378
380
  if (!state.enable)
379
381
  return true;
380
- five.off('panoArrived', freshRule);
381
382
  five.off('modeChange', freshRule);
382
- five.off('cameraDirectionUpdate', nextFrameFreshRule);
383
- five.off('movingToPano', nextFrameFreshRule);
384
- five.off('mouseWheel', throttleFreshRule);
385
- five.off('pinchGesture', throttleFreshRule);
383
+ five.off('cameraUpdate', nextFrameFreshRule);
386
384
  if ($rule) {
387
385
  $rule.remove();
388
386
  }
package/libs/index.d.ts CHANGED
@@ -15,4 +15,4 @@ export * from './ModelItemLabelPlugin';
15
15
  export * from './ModelTVVideoPlugin';
16
16
  export * from './ItemLabelPlugin';
17
17
  export * from './PanoDoorLabelPlugin';
18
- export declare const DnalogelVersion = "2.0.0-alpha.49";
18
+ export declare const DnalogelVersion = "2.0.0-alpha.57";
package/libs/index.js CHANGED
@@ -28,4 +28,5 @@ export * from './ModelTVVideoPlugin';
28
28
  export * from './ItemLabelPlugin';
29
29
  // 分间标签
30
30
  export * from './PanoDoorLabelPlugin';
31
- export const DnalogelVersion = '2.0.0-alpha.49';
31
+ // TODO build 时自动化输出当前版本
32
+ export const DnalogelVersion = '2.0.0-alpha.57';
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "repository": "https://github.com/realsee-developer/dnalogel.git",
9
9
  "description": "如视 VR 看房插件合集",
10
10
  "private": false,
11
- "version": "2.0.0-alpha.56",
11
+ "version": "2.0.0-alpha.57",
12
12
  "license": "SEE LICENSE IN TERMS.txt",
13
13
  "scripts": {
14
14
  "build": "yarn run tsb && yarn run build:rollup && yarn run build:components && yarn build:docs",