@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.
- package/dist/PanoRulerPlugin/index.js +9 -31
- package/dist/index.d.ts +1 -1
- package/dist/index.es.js +11 -13
- package/dist/index.js +11 -13
- package/dist/index.umd.js +11 -13
- package/docs/classes/Magnifier.html +4 -4
- package/docs/classes/ModelRoomLabelController.html +4 -4
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/DIRECTION.html +1 -1
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +1 -1
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +1 -1
- package/docs/enums/Rotation.html +2 -2
- package/docs/index.html +1 -1
- package/docs/interfaces/CSS3DRenderPluginExportType.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +4 -4
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +7 -7
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +6 -6
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +4 -4
- package/docs/interfaces/FloorplanServerComputedData.html +1 -1
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +1 -1
- package/docs/interfaces/FloorplanServerDoorPosition.html +1 -1
- package/docs/interfaces/FloorplanServerEntrance.html +7 -7
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +7 -7
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +1 -1
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/LineJson.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginData.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +1 -1
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +1 -1
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginData.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +1 -1
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +1 -1
- package/docs/interfaces/ModelRoomLabelPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginData.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginExportType.html +1 -1
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +1 -1
- package/docs/interfaces/ModelViewPluginExportType.html +1 -1
- package/docs/interfaces/OpenParameter.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +6 -6
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +1 -1
- package/docs/interfaces/PanoRulerPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginExportType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginOptions.html +1 -1
- package/docs/interfaces/PanoRulerProPluginParameterType.html +1 -1
- package/docs/interfaces/PanoRulerProPluginState.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +1 -1
- package/docs/interfaces/Point.html +1 -1
- package/docs/interfaces/PointJson.html +1 -1
- package/docs/interfaces/Room.html +1 -1
- package/docs/interfaces/RoomInfo.html +1 -1
- package/docs/interfaces/RoomLabel.html +7 -7
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/modules.html +18 -18
- package/libs/PanoRulerPlugin/Plugin.js +9 -11
- package/libs/index.d.ts +1 -1
- package/libs/index.js +2 -1
- 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('
|
|
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('
|
|
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.
|
|
18
|
+
export declare const DnalogelVersion = "2.0.0-alpha.57";
|
package/libs/index.js
CHANGED
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.
|
|
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",
|