@realsee/dnalogel 2.22.0-dev.3 → 2.22.0-dev.4
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/index.cjs.js +53 -53
- package/dist/index.js +2503 -2502
- package/dist/index.umd.js +45 -45
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/CruisePluginController.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoMeasurePlugin/Controller/EditController.js +25 -25
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +25 -24
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -2,17 +2,17 @@ var R = Object.defineProperty;
|
|
|
2
2
|
var b = (m, c, e) => c in m ? R(m, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[c] = e;
|
|
3
3
|
var o = (m, c, e) => (b(m, typeof c != "symbol" ? c + "" : c, e), e);
|
|
4
4
|
import H from "../Model/line.js";
|
|
5
|
-
import
|
|
5
|
+
import S from "../Model/point.js";
|
|
6
6
|
import { throttle as U } from "../../shared-utils/throttle.js";
|
|
7
7
|
import j from "./BaseController.js";
|
|
8
|
-
import { Polyline as
|
|
9
|
-
import
|
|
8
|
+
import { Polyline as D } from "../Model/polyline.js";
|
|
9
|
+
import w from "../Model/area.js";
|
|
10
10
|
import T from "../utils/isIntersecting.js";
|
|
11
11
|
import { PointSelector as x } from "../../shared-utils/three/PointSelector.js";
|
|
12
12
|
import G from "../Modules/DeleteDom/index.js";
|
|
13
13
|
import { findAssociatedLines as B } from "../utils/findAssociatedLines.js";
|
|
14
|
-
import { Vector2 as
|
|
15
|
-
import
|
|
14
|
+
import { Vector2 as P } from "three";
|
|
15
|
+
import E from "../utils/isNDCPointInScreen.js";
|
|
16
16
|
import { closestPointOnLine as W } from "../utils/math.js";
|
|
17
17
|
import "../../shared-utils/uuid.js";
|
|
18
18
|
import "../utils/line.js";
|
|
@@ -64,7 +64,7 @@ import "../../shared-utils/three/getIntersect.js";
|
|
|
64
64
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
65
65
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
66
66
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
67
|
-
const
|
|
67
|
+
const v = () => !1;
|
|
68
68
|
class Xe extends j {
|
|
69
69
|
constructor(e) {
|
|
70
70
|
var t;
|
|
@@ -96,7 +96,7 @@ class Xe extends j {
|
|
|
96
96
|
this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.five.needsRender = !0, this.hook.emit("revoke", { isEmpty: !0 });
|
|
97
97
|
return;
|
|
98
98
|
} else
|
|
99
|
-
this.lastPoint = new
|
|
99
|
+
this.lastPoint = new S(this.area.points[this.area.points.length - 1]), this.updateDashed();
|
|
100
100
|
this.five.needsRender = !0;
|
|
101
101
|
}
|
|
102
102
|
});
|
|
@@ -145,7 +145,7 @@ class Xe extends j {
|
|
|
145
145
|
})();
|
|
146
146
|
if (!e)
|
|
147
147
|
return;
|
|
148
|
-
const t = new
|
|
148
|
+
const t = new S(e), i = this.lastPoint;
|
|
149
149
|
if (!(i != null && i.position && t.position.equals(i == null ? void 0 : i.position))) {
|
|
150
150
|
if (this.lastPoint = t, this.currentMeasureType === "line") {
|
|
151
151
|
if (t && i) {
|
|
@@ -209,38 +209,38 @@ class Xe extends j {
|
|
|
209
209
|
// ====================================================================================================================================
|
|
210
210
|
// 下面一堆高亮相关
|
|
211
211
|
o(this, "wantsTapGesture", (e) => {
|
|
212
|
-
var
|
|
212
|
+
var C, k;
|
|
213
213
|
if (this.editParams.pointSelectorMode === "cursor" || this.lastPoint)
|
|
214
214
|
return !1;
|
|
215
|
-
const t = this.model.areas.map((h) => e.intersectObject(h.polygon, !0)[0]).sort((h, p) => h.distance - p.distance), i = (k = (
|
|
215
|
+
const t = this.model.areas.map((h) => e.intersectObject(h.polygon, !0)[0]).sort((h, p) => h.distance - p.distance), i = (k = (C = t[0]) == null ? void 0 : C.object) == null ? void 0 : k.parent;
|
|
216
216
|
if (i != null && i.isPolygonMesh) {
|
|
217
217
|
const h = this.model.areas.find((p) => p.polygon === i);
|
|
218
218
|
if (h) {
|
|
219
|
-
const { x: p, y
|
|
219
|
+
const { x: p, y } = t[0].point.clone().project(this.five.camera), f = `${(p + 1) / 2 * 100}%`, u = `${(-y + 1) / 2 * 100}%`;
|
|
220
220
|
return this.chooseArea(h, { left: f, top: u }), !1;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
const [s] = this.five.model.intersectRaycaster(e);
|
|
224
224
|
if (!s)
|
|
225
225
|
return;
|
|
226
|
-
const r = this.five.camera, l = s.point.clone().project(r), d = this.container.clientWidth, a = this.container.clientHeight, n = new
|
|
227
|
-
const [p,
|
|
228
|
-
if (!
|
|
226
|
+
const r = this.five.camera, l = s.point.clone().project(r), d = this.container.clientWidth, a = this.container.clientHeight, n = new P(l.x * d, l.y * a), g = this.model.getAllLines().map((h) => {
|
|
227
|
+
const [p, y] = h.points, f = p.position.clone().project(r), u = y.position.clone().project(r);
|
|
228
|
+
if (!E(f) && !E(u))
|
|
229
229
|
return null;
|
|
230
|
-
const I = new
|
|
230
|
+
const I = new P(f.x * d, f.y * a), M = new P(u.x * d, u.y * a);
|
|
231
231
|
return { id: h.id, points: [I, M] };
|
|
232
232
|
}).filter((h) => !!h);
|
|
233
233
|
if (g.length === 0)
|
|
234
234
|
return;
|
|
235
|
-
const
|
|
235
|
+
const L = g.map((h) => {
|
|
236
236
|
const p = W(n, h.points);
|
|
237
237
|
return { id: h.id, distance: p.distanceTo(n) };
|
|
238
238
|
}).sort((h, p) => h.distance - p.distance)[0];
|
|
239
|
-
if (
|
|
239
|
+
if (L.distance > 20)
|
|
240
240
|
return;
|
|
241
|
-
const
|
|
242
|
-
if (
|
|
243
|
-
return this.chooseLine(
|
|
241
|
+
const A = this.model.getAllLines().find(({ id: h }) => h === L.id);
|
|
242
|
+
if (A)
|
|
243
|
+
return this.chooseLine(A), !1;
|
|
244
244
|
});
|
|
245
245
|
o(this, "chooseLine", (e) => {
|
|
246
246
|
console.log(e);
|
|
@@ -273,7 +273,7 @@ class Xe extends j {
|
|
|
273
273
|
}).appendTo(this.container), this.pointSelector = new x(this.five, {
|
|
274
274
|
mode: this.editParams.pointSelectorMode,
|
|
275
275
|
pointSelectorHelperParams: { magnifierParams: this.magnifierParams }
|
|
276
|
-
}), this.pointSelector.enable(), this.polyline = new
|
|
276
|
+
}), this.pointSelector.enable(), this.polyline = new D({ model: this.model }), this.area = new w(void 0, {
|
|
277
277
|
five: this.five,
|
|
278
278
|
model: this.model,
|
|
279
279
|
meshContainer: this.group,
|
|
@@ -284,13 +284,13 @@ class Xe extends j {
|
|
|
284
284
|
i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), i.hook.on("selected", this.chooseArea), this.group.add(i.polygon), i.polyline.lines.forEach((s) => {
|
|
285
285
|
s.distanceItem.appendTo(this.container), s.distanceItem.update(this.five), this.group.add(s.mesh);
|
|
286
286
|
});
|
|
287
|
-
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano",
|
|
287
|
+
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano", v), this.five.on("wantsChangeMode", v), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.on("select", this.onSelect), this.pointSelector.hook.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, (t = this.fiveElement) == null || t.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
|
|
288
288
|
}
|
|
289
289
|
dispose() {
|
|
290
290
|
var e;
|
|
291
291
|
super.dispose(), this.model.areas.forEach((t) => {
|
|
292
292
|
(t.points.length < 2 || t.polygon.isBlank) && this.model.removeArea(t);
|
|
293
|
-
}), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano",
|
|
293
|
+
}), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano", v), this.five.off("wantsChangeMode", v), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.off("select", this.onSelect), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
294
294
|
}
|
|
295
295
|
getEditingLines() {
|
|
296
296
|
return this.polyline.lines;
|
|
@@ -299,9 +299,9 @@ class Xe extends j {
|
|
|
299
299
|
this.onSelect();
|
|
300
300
|
}
|
|
301
301
|
complete() {
|
|
302
|
-
this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete(), this.area.hook.on("selected", this.chooseArea)), this.area = new
|
|
302
|
+
this.hook.emit("complete"), this.currentMeasureType === "area" ? (this.area.points.length < 3 ? this.deleteArea(this.area) : (this.area.showArea(), this.area.complete(), this.area.hook.on("selected", this.chooseArea)), this.area = new w(void 0, { five: this.five, model: this.model, meshContainer: this.group, domContainer: this.container }), this.model.addArea(this.area)) : this.currentMeasureType === "line" && (this.polyline.lines.forEach((e) => {
|
|
303
303
|
e.hook.on("selected", this.chooseLine), e.distanceItem.setCanSelect(!0);
|
|
304
|
-
}), this.polyline = new
|
|
304
|
+
}), this.polyline = new D({ model: this.model }), this.model.addPolyline(this.polyline)), this.pointSelector.setAdherePoints(null), this.dashed.hide(), this.perpendicularDashed.hide(), this.lastPoint = void 0;
|
|
305
305
|
}
|
|
306
306
|
highlightArea(e) {
|
|
307
307
|
this.highlightLines(e.polyline.lines), this.five.needsRender = !0;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var s = (c, r, e) => (
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
var k = Object.defineProperty;
|
|
2
|
+
var I = (c, r, e) => r in c ? k(c, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[r] = e;
|
|
3
|
+
var s = (c, r, e) => (I(c, typeof r != "symbol" ? r + "" : r, e), e);
|
|
4
|
+
import R from "hammerjs";
|
|
5
|
+
import G from "../Modules/DeleteDom/index.js";
|
|
6
6
|
import S from "../utils/isNDCPointInScreen.js";
|
|
7
|
-
import
|
|
8
|
-
import { Raycaster as
|
|
9
|
-
import { closestPointOnLine as
|
|
10
|
-
import { findClosestPoint as
|
|
11
|
-
import { findAssociatedLines as
|
|
12
|
-
import { getPointFromHammerEvent as
|
|
7
|
+
import T from "./BaseController.js";
|
|
8
|
+
import { Raycaster as U, Vector2 as u } from "three";
|
|
9
|
+
import { closestPointOnLine as b } from "../utils/math.js";
|
|
10
|
+
import { findClosestPoint as M } from "../utils/findClosestPoint.js";
|
|
11
|
+
import { findAssociatedLines as w } from "../utils/findAssociatedLines.js";
|
|
12
|
+
import { getPointFromHammerEvent as C } from "../../shared-utils/getPointFromHammerEvent.js";
|
|
13
13
|
import j from "../Model/area.js";
|
|
14
14
|
import x from "../Model/polygon.js";
|
|
15
15
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
@@ -34,7 +34,8 @@ import "../utils/geometryUtil.js";
|
|
|
34
34
|
import "../../shared-utils/three/IObject3D.js";
|
|
35
35
|
import "../utils/generatePolygonGeometry.js";
|
|
36
36
|
import "earcut";
|
|
37
|
-
|
|
37
|
+
const D = () => !1;
|
|
38
|
+
class ve extends T {
|
|
38
39
|
constructor(e) {
|
|
39
40
|
super(e);
|
|
40
41
|
s(this, "type", "watch");
|
|
@@ -50,14 +51,14 @@ class Pe extends G {
|
|
|
50
51
|
var a;
|
|
51
52
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
52
53
|
return;
|
|
53
|
-
const i =
|
|
54
|
+
const i = C(e).point, t = (a = M(this.five, this.model.getAllPoints(), i, 20)) == null ? void 0 : a.point;
|
|
54
55
|
if (!t) {
|
|
55
56
|
this.editPointState = void 0;
|
|
56
57
|
return;
|
|
57
58
|
}
|
|
58
59
|
const n = {
|
|
59
60
|
point: t,
|
|
60
|
-
associatedLines:
|
|
61
|
+
associatedLines: w(t.lines[0])
|
|
61
62
|
};
|
|
62
63
|
this.hook.emit("wantsDragLine", {
|
|
63
64
|
point: t.id,
|
|
@@ -70,7 +71,7 @@ class Pe extends G {
|
|
|
70
71
|
s(this, "onPan", (e) => {
|
|
71
72
|
if (!this.editPointState || !this.fiveElement)
|
|
72
73
|
return;
|
|
73
|
-
const i =
|
|
74
|
+
const i = C(e).ndcPoint, t = new U();
|
|
74
75
|
t.setFromCamera(i, this.five.camera);
|
|
75
76
|
const [n] = this.five.model.intersectRaycaster(t);
|
|
76
77
|
n && this.onIntersectionUpdate(n);
|
|
@@ -112,13 +113,13 @@ class Pe extends G {
|
|
|
112
113
|
const [h, f] = o.points, p = h.position.clone().project(l), m = f.position.clone().project(l);
|
|
113
114
|
if (!S(p) && !S(m))
|
|
114
115
|
return null;
|
|
115
|
-
const
|
|
116
|
-
return { id: o.id, points: [
|
|
116
|
+
const E = new u(p.x * d, p.y * g), H = new u(m.x * d, m.y * g);
|
|
117
|
+
return { id: o.id, points: [E, H] };
|
|
117
118
|
}).filter((o) => !!o);
|
|
118
119
|
if (P.length === 0)
|
|
119
120
|
return;
|
|
120
121
|
const v = P.map((o) => {
|
|
121
|
-
const h =
|
|
122
|
+
const h = b(L, o.points);
|
|
122
123
|
return { id: o.id, distance: h.distanceTo(L) };
|
|
123
124
|
}).sort((o, h) => o.distance - h.distance)[0];
|
|
124
125
|
if (v.distance > 20)
|
|
@@ -129,7 +130,7 @@ class Pe extends G {
|
|
|
129
130
|
});
|
|
130
131
|
s(this, "chooseLine", (e) => {
|
|
131
132
|
this.choose = "line";
|
|
132
|
-
const i =
|
|
133
|
+
const i = w(e);
|
|
133
134
|
this.deleteDom.setLines(i).updatePosition().show(), console.log(this.deleteDom), this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
134
135
|
"selectedChange",
|
|
135
136
|
i.map((t) => t)
|
|
@@ -157,7 +158,7 @@ class Pe extends G {
|
|
|
157
158
|
s(this, "cancelDeleteClickCallback", () => {
|
|
158
159
|
this.deleteDom.hide(), this.clearHighlightLines(), this.unHighlightArea();
|
|
159
160
|
});
|
|
160
|
-
this.deleteDom = new
|
|
161
|
+
this.deleteDom = new G(this.five, {
|
|
161
162
|
i18n: this.config.i18n,
|
|
162
163
|
onClick: () => {
|
|
163
164
|
console.log(this.choose), this.choose === "line" ? this.deleteLine() : this.choose instanceof j && this.deleteArea(this.choose);
|
|
@@ -173,14 +174,14 @@ class Pe extends G {
|
|
|
173
174
|
const i = this.five.getElement();
|
|
174
175
|
if (i) {
|
|
175
176
|
this.fiveElement = i;
|
|
176
|
-
const t = new
|
|
177
|
+
const t = new R(i);
|
|
177
178
|
this.hammer = t, t.on("pan", this.onPan), t.on("panstart", this.onPanStart), t.on("panend", this.onPanEnd);
|
|
178
179
|
}
|
|
179
|
-
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
180
|
+
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.five.on("wantsChangeMode", D), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
180
181
|
}
|
|
181
182
|
dispose() {
|
|
182
183
|
var e;
|
|
183
|
-
super.dispose(), this.deleteDom.dispose(), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.model.getAllLines().forEach((i) => i.hook.off("selected", this.chooseLine)), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.wantsPanGesture), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (e = this.hammer) == null || e.destroy();
|
|
184
|
+
super.dispose(), this.deleteDom.dispose(), this.model.hook.off("polylineRemoved", this.polylineRemoved), this.model.getAllLines().forEach((i) => i.hook.off("selected", this.chooseLine)), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsPanGesture", this.wantsPanGesture), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsChangeMode", D), this.five.needsRender = !0, this.hook.emit("selectedChange", []), (e = this.hammer) == null || e.destroy();
|
|
184
185
|
}
|
|
185
186
|
highlightLine(e) {
|
|
186
187
|
e.selected || (e.selected = !0, this.group.add(e.lightMesh), e.distanceItem.highlight(), this.five.needsRender = !0);
|
|
@@ -207,5 +208,5 @@ class Pe extends G {
|
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
210
|
export {
|
|
210
|
-
|
|
211
|
+
ve as default
|
|
211
212
|
};
|
package/libs/base/BasePlugin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function A() {
|
|
2
2
|
console.debug(
|
|
3
|
-
"%c %c@realsee/dnalogel %cv2.22.0-dev.
|
|
3
|
+
"%c %c@realsee/dnalogel %cv2.22.0-dev.4",
|
|
4
4
|
[
|
|
5
5
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
6
6
|
"background-repeat: no-repeat",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"repository": "https://github.com/realsee-developer/dnalogel.git",
|
|
8
8
|
"description": "如视 VR 看房插件合集",
|
|
9
9
|
"private": false,
|
|
10
|
-
"version": "2.22.0-dev.
|
|
10
|
+
"version": "2.22.0-dev.4",
|
|
11
11
|
"license": "SEE LICENSE IN TERMS.txt",
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",
|