@realsee/dnalogel 2.21.0-dev.10 → 2.21.0-dev.11
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/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/area.d.ts +4 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +15 -11
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +5 -1
- package/dist/PanoTagPlugin/controller/index.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- package/dist/index.cjs.js +53 -53
- package/dist/index.js +3020 -2869
- package/dist/index.umd.js +41 -41
- package/dist/shared-utils/three/PointSelector.d.ts +17 -1
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +2 -11
- package/dist/typings/typings.d.ts +4 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +30 -31
- package/docs/classes/CruisePluginController.html +25 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -20
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -35
- package/docs/classes/Magnifier.html +19 -20
- package/docs/classes/ModelRoomLabelController.html +10 -11
- package/docs/classes/Object3DHelperController.html +24 -25
- package/docs/classes/PaintBrush.html +14 -15
- package/docs/classes/PanoMeasurePluginLine.html +26 -27
- package/docs/classes/PanoMeasurePluginModel.html +26 -27
- package/docs/classes/PanoMeasurePluginPoint.html +13 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -27
- package/docs/classes/PanoTagPluginController.html +50 -51
- package/docs/classes/Util.BetterTween.html +8 -9
- package/docs/classes/Util.Interval.html +11 -12
- package/docs/classes/Util.Magnifier.html +19 -20
- package/docs/classes/Util.PointDomHelper.html +10 -11
- package/docs/classes/Util.PointHelper.html +10 -11
- package/docs/classes/Util.PointSelectorHelper.html +21 -59
- package/docs/classes/Util.Rectangle.html +12 -13
- package/docs/enums/CameraMovementEffect.html +6 -7
- package/docs/enums/ContentType.html +19 -20
- package/docs/enums/DIRECTION.html +8 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -9
- package/docs/enums/DimensionType.html +6 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -9
- package/docs/enums/PaintBrushTypeEnum.html +7 -8
- package/docs/enums/PointType.html +6 -7
- package/docs/enums/Rotation.html +7 -8
- package/docs/functions/CSS3DRenderPlugin.html +3 -4
- package/docs/functions/CameraMovementPlugin.html +3 -4
- package/docs/functions/CruisePlugin.html +3 -4
- package/docs/functions/GuideLinePlugin.html +4 -5
- package/docs/functions/ItemLabelPlugin.html +3 -4
- package/docs/functions/MapviewFloorplanPlugin.html +3 -4
- package/docs/functions/ModelChassisCompassPlugin.html +3 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -4
- package/docs/functions/ModelFloorplanPlugin.html +3 -4
- package/docs/functions/ModelItemLabelPlugin.html +3 -4
- package/docs/functions/ModelRoomLabelPlugin.html +3 -4
- package/docs/functions/ModelTVVideoPlugin.html +3 -4
- package/docs/functions/ModelViewPlugin.html +3 -4
- package/docs/functions/Object3DHelperPlugin.html +3 -4
- package/docs/functions/PanoCompassPlugin.html +3 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -4
- package/docs/functions/PanoDoorLabelPlugin.html +3 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -4
- package/docs/functions/PanoMeasurePlugin.html +3 -4
- package/docs/functions/PanoRulerPlugin.html +3 -4
- package/docs/functions/PanoRulerProPlugin.html +3 -4
- package/docs/functions/PanoSpatialTagPlugin.html +3 -4
- package/docs/functions/PanoTagPlugin.html +3 -4
- package/docs/functions/PanoVideoPlugin.html +3 -4
- package/docs/functions/TopviewFloorplanPlugin.html +3 -4
- package/docs/functions/Util.absoluteUrl.html +4 -5
- package/docs/functions/Util.getCoordsFromClient.html +4 -5
- package/docs/functions/Util.getCoordsFromElement.html +4 -5
- package/docs/functions/Util.getFrameTime.html +4 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -5
- package/docs/functions/Util.isAbsoluteURL.html +4 -5
- package/docs/functions/Util.isModelLike.html +4 -5
- package/docs/functions/Util.isNil.html +4 -5
- package/docs/functions/Util.isPanoramaLike.html +4 -5
- package/docs/functions/Util.nextFrame.html +4 -5
- package/docs/functions/Util.notNil.html +4 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -5
- package/docs/functions/Util.tweenProgress.html +4 -5
- package/docs/functions/Util.uuid.html +4 -5
- package/docs/functions/pluginFlag.html +4 -5
- package/docs/index.html +4 -5
- package/docs/interfaces/AddTagConfig.html +5 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -11
- package/docs/interfaces/EventMap.html +14 -15
- package/docs/interfaces/FloorplanBounding.html +7 -8
- package/docs/interfaces/FloorplanData.html +9 -10
- package/docs/interfaces/FloorplanEntrance.html +10 -11
- package/docs/interfaces/FloorplanExtraObject.html +9 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -8
- package/docs/interfaces/FloorplanFloorData.html +8 -9
- package/docs/interfaces/FloorplanImagePosition.html +6 -7
- package/docs/interfaces/FloorplanObserver.html +8 -9
- package/docs/interfaces/FloorplanOutlineItem.html +8 -9
- package/docs/interfaces/FloorplanPosition.html +6 -7
- package/docs/interfaces/FloorplanRoomItem.html +12 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -7
- package/docs/interfaces/FloorplanServerBounding.html +7 -8
- package/docs/interfaces/FloorplanServerComputedData.html +9 -10
- package/docs/interfaces/FloorplanServerData.html +6 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -8
- package/docs/interfaces/FloorplanServerEntrance.html +10 -11
- package/docs/interfaces/FloorplanServerFloorData.html +8 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -7
- package/docs/interfaces/FloorplanServerObserver.html +8 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -9
- package/docs/interfaces/FloorplanServerPosition.html +6 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -13
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -7
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -5
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -8
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -11
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -9
- package/docs/interfaces/HelperOffset.html +7 -8
- package/docs/interfaces/ImagePlaneGroup.html +5 -6
- package/docs/interfaces/ItemLabelPluginData.html +5 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -9
- package/docs/interfaces/MinMax.html +6 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -6
- package/docs/interfaces/ModelViewPluginExportType.html +10 -11
- package/docs/interfaces/Object3DHelperState.html +7 -8
- package/docs/interfaces/ObjectHelperControllers.html +8 -9
- package/docs/interfaces/PaintBrushAction.html +11 -12
- package/docs/interfaces/PaintBrushConfigs.html +11 -12
- package/docs/interfaces/PaintBrushState.html +9 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -7
- package/docs/interfaces/PanoRulerProPluginState.html +7 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -10
- package/docs/interfaces/Point.html +7 -8
- package/docs/interfaces/Room.html +8 -9
- package/docs/interfaces/RoomInfo.html +6 -7
- package/docs/interfaces/RoomLabel.html +13 -14
- package/docs/interfaces/RoomRules.html +4 -5
- package/docs/interfaces/Rooms.html +4 -5
- package/docs/interfaces/Scissor.html +8 -9
- package/docs/interfaces/State.html +7 -8
- package/docs/interfaces/TagCacheInterface.html +11 -12
- package/docs/interfaces/TagConfig.html +13 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -6
- package/docs/interfaces/TagIconUrl.html +11 -12
- package/docs/interfaces/TagObjectGroup.html +5 -6
- package/docs/interfaces/TagStyle.html +5 -6
- package/docs/interfaces/Tags.html +8 -9
- package/docs/interfaces/TemporaryState.html +5 -6
- package/docs/interfaces/Util.MagnifierParameter.html +10 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -8
- package/docs/interfaces/Util.PointIntersection.html +7 -8
- package/docs/modules/CruisePluginTypes.html +4 -5
- package/docs/modules/GuideLineItem.html +4 -5
- package/docs/modules/GuideLineModeItem.html +4 -5
- package/docs/modules/GuideLinePluginType.html +4 -5
- package/docs/modules/PanoVideoPluginType.html +4 -5
- package/docs/modules/Util.html +4 -5
- package/docs/modules.html +4 -6
- package/docs/types/ArrayPosition.html +4 -5
- package/docs/types/AudioAppearance.html +4 -5
- package/docs/types/AudioTagTypeConfigKey.html +4 -5
- package/docs/types/CSS3DRenderExportType.html +4 -5
- package/docs/types/CSS3DRenderPluginExportType.html +4 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -5
- package/docs/types/ClassFunctionParameters.html +4 -5
- package/docs/types/Color.html +4 -5
- package/docs/types/ContentTypeConfigKey.html +4 -5
- package/docs/types/ContentTypeConfigKeySplit.html +4 -5
- package/docs/types/ContentTypeMap.html +4 -5
- package/docs/types/Create3DDomContainerReturnType.html +4 -5
- package/docs/types/Create3DElementReturnType.html +4 -5
- package/docs/types/CruisePluginExportType.html +4 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -5
- package/docs/types/DeprecatedTagProperty.html +4 -5
- package/docs/types/Direction-1.html +4 -5
- package/docs/types/Direction4.html +4 -5
- package/docs/types/ElementRenderer.html +4 -5
- package/docs/types/FloorplanRuleLabels.html +4 -5
- package/docs/types/FloorplanServerRuleLabels.html +4 -5
- package/docs/types/GuideLinePluginExportType.html +4 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -5
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -5
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -5
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -5
- package/docs/types/GuideLinePluginType.PathItem.html +4 -5
- package/docs/types/GuideLinePluginType.PluginData.html +4 -5
- package/docs/types/HelperEventMap.html +4 -5
- package/docs/types/LoadTagConfig.html +4 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -5
- package/docs/types/MediaData.html +4 -5
- package/docs/types/MediaStore.html +4 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -5
- package/docs/types/MoveArgs.html +4 -5
- package/docs/types/MoveOpts.html +4 -5
- package/docs/types/Object3DHelperEventMap.html +4 -5
- package/docs/types/ObjectFit.html +4 -5
- package/docs/types/PaintBrushEventMap.html +4 -5
- package/docs/types/PanoCompassPluginData.html +4 -5
- package/docs/types/PanoCompassPluginExportType.html +4 -5
- package/docs/types/PanoCompassPluginParameterType.html +4 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -5
- package/docs/types/PanoIndex.html +4 -5
- package/docs/types/PanoMeasurePluginEvent.html +4 -5
- package/docs/types/PanoMeasureReturnType.html +4 -5
- package/docs/types/PanoSpatialTagPluginId.html +4 -5
- package/docs/types/PanoTagPluginExportInterface.html +4 -5
- package/docs/types/PanoTagPluginParamsInterface.html +4 -5
- package/docs/types/PanoVideoPluginParameterType.html +4 -5
- package/docs/types/PanoVideoPluginReturnType.html +4 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -5
- package/docs/types/PlaneTag.html +4 -5
- package/docs/types/Point2DTag.html +4 -5
- package/docs/types/Point3DTag.html +4 -5
- package/docs/types/PointTag.html +4 -5
- package/docs/types/PointTagInstance.html +4 -5
- package/docs/types/Position.html +4 -5
- package/docs/types/RotateArgs.html +4 -5
- package/docs/types/RotateOpts.html +4 -5
- package/docs/types/RuleLabelsKey.html +4 -5
- package/docs/types/RuleLabelsValue.html +4 -5
- package/docs/types/StickType.html +4 -5
- package/docs/types/Tag.html +4 -5
- package/docs/types/Tag2D.html +4 -5
- package/docs/types/Tag3D.html +4 -5
- package/docs/types/TagContentType.html +4 -5
- package/docs/types/TagDimensionType.html +4 -5
- package/docs/types/TagElement.html +4 -5
- package/docs/types/TagEvents.html +4 -5
- package/docs/types/TagGLTFObject.html +4 -5
- package/docs/types/TagHooks.html +4 -5
- package/docs/types/TagId.html +4 -5
- package/docs/types/TagInstance.html +4 -5
- package/docs/types/TagPointType.html +4 -5
- package/docs/types/TagRendererMap.html +4 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -5
- package/docs/types/WorkCode.html +4 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -5
- package/docs/variables/PLUGIN.html +4 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -5
- package/docs/variables/ROOM_TYPE_MAP.html +4 -5
- package/docs/variables/itemLabelPluginServerParams.html +4 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -5
- package/libs/PanoMeasurePlugin/Components/Common/CircleButton.js +43 -43
- package/libs/PanoMeasurePlugin/Components/Controller0.js +1 -1
- package/libs/PanoMeasurePlugin/Components/Controller1.js +141 -139
- package/libs/PanoMeasurePlugin/Components/Tip.js +154 -0
- package/libs/PanoMeasurePlugin/Components/Tip.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/EditController.js +82 -76
- package/libs/PanoMeasurePlugin/Controller/index.js +23 -21
- package/libs/PanoMeasurePlugin/Model/area.d.ts +4 -0
- package/libs/PanoMeasurePlugin/Model/area.js +38 -31
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +15 -11
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +67 -40
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +16 -14
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +5 -1
- package/libs/PanoTagPlugin/controller/index.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +1 -1
- package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -4
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +111 -110
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector.d.ts +17 -1
- package/libs/shared-utils/three/PointSelector.js +90 -35
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +2 -11
- package/libs/shared-utils/three/PointSelectorHelper.js +32 -82
- package/libs/typings/typings.d.ts +4 -0
- package/package.json +1 -1
- package/docs/types/PartialObjectDeep.html +0 -361
|
@@ -1,25 +1,27 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var u = Object.defineProperty, v = Object.defineProperties;
|
|
2
|
+
var P = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var m = Object.getOwnPropertySymbols;
|
|
4
|
+
var S = Object.prototype.hasOwnProperty, w = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var d = (s, e, t) => e in s ? u(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, a = (s, e) => {
|
|
6
6
|
for (var t in e || (e = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
7
|
+
S.call(e, t) && d(s, t, e[t]);
|
|
8
|
+
if (m)
|
|
9
|
+
for (var t of m(e))
|
|
10
|
+
w.call(e, t) && d(s, t, e[t]);
|
|
11
11
|
return s;
|
|
12
|
-
},
|
|
13
|
-
var i = (s, e, t) => (
|
|
14
|
-
import { Subscribe as
|
|
15
|
-
import { PointSelectorHelper as
|
|
16
|
-
import { isTouchDevice as
|
|
17
|
-
import
|
|
18
|
-
import { getIntersectionFromEvent as
|
|
19
|
-
|
|
20
|
-
|
|
12
|
+
}, c = (s, e) => v(s, P(e));
|
|
13
|
+
var i = (s, e, t) => (d(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
import { Subscribe as y } from "@realsee/five";
|
|
15
|
+
import { PointSelectorHelper as H } from "./PointSelectorHelper.js";
|
|
16
|
+
import { isTouchDevice as b } from "../isTouchDevice.js";
|
|
17
|
+
import U from "hammerjs";
|
|
18
|
+
import { getIntersectionFromEvent as p } from "../getIntersectionFromEvent.js";
|
|
19
|
+
import { Vector3 as E, Object3D as F, Face3 as I, Vector2 as M, Raycaster as O } from "three";
|
|
20
|
+
import { getIntersectFromRelativePosition as k } from "./getIntersect.js";
|
|
21
|
+
const l = () => !1;
|
|
22
|
+
class W {
|
|
21
23
|
constructor(e, t) {
|
|
22
|
-
i(this, "hook", new
|
|
24
|
+
i(this, "hook", new y());
|
|
23
25
|
/**
|
|
24
26
|
* @description: 不在 five canvas 上时为 true
|
|
25
27
|
*/
|
|
@@ -31,12 +33,16 @@ class k {
|
|
|
31
33
|
i(this, "enabled", !1);
|
|
32
34
|
/** 长按屏幕的动作触发后为true,手指抬起后为false */
|
|
33
35
|
i(this, "pressDown", !1);
|
|
36
|
+
/** 一组吸附的点,光标靠近这些点时,会将helper以及放大镜的位置设置为这些点 */
|
|
37
|
+
i(this, "adherePoints", null);
|
|
38
|
+
/** 吸附点的半径 */
|
|
39
|
+
i(this, "adherePointsRadius", 0.1);
|
|
34
40
|
/**
|
|
35
41
|
* @description: 主动触发一次选点
|
|
36
42
|
* @return: select 是否成功
|
|
37
43
|
*/
|
|
38
44
|
i(this, "select", (e) => {
|
|
39
|
-
e && this.
|
|
45
|
+
e && this.updatePointSelectorHelperIntersect(e);
|
|
40
46
|
const t = this.hook.emit("wantsSelect", this.position);
|
|
41
47
|
return t || (this.pointSelectorHelper.hide(), this.hook.emit("select", this.position)), !t;
|
|
42
48
|
});
|
|
@@ -53,8 +59,8 @@ class k {
|
|
|
53
59
|
this.pointSelectorHelper.hide(), this.outOfFive = !0, this.hook.emit("intersectionUpdate", null);
|
|
54
60
|
});
|
|
55
61
|
i(this, "onTap", (e) => {
|
|
56
|
-
const [t] =
|
|
57
|
-
t != null && t.face &&
|
|
62
|
+
const [t] = p(this.five, e);
|
|
63
|
+
t != null && t.face && this.select(t);
|
|
58
64
|
});
|
|
59
65
|
/**
|
|
60
66
|
* 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
|
|
@@ -63,14 +69,14 @@ class k {
|
|
|
63
69
|
i(this, "onPan", (e) => {
|
|
64
70
|
if (!this.pressDown)
|
|
65
71
|
return;
|
|
66
|
-
const [t] =
|
|
72
|
+
const [t] = p(this.five, e);
|
|
67
73
|
t != null && t.face && this.intersectionOnModelUpdate(t);
|
|
68
74
|
});
|
|
69
75
|
/**
|
|
70
76
|
* @description: 长按屏幕后,更新长按点的位置
|
|
71
77
|
*/
|
|
72
78
|
i(this, "onPress", (e) => {
|
|
73
|
-
const [t] =
|
|
79
|
+
const [t] = p(this.five, e);
|
|
74
80
|
t != null && t.face && (this.pressDown = !0, this.intersectionOnModelUpdate(t));
|
|
75
81
|
});
|
|
76
82
|
/**
|
|
@@ -80,28 +86,61 @@ class k {
|
|
|
80
86
|
this.pressDown = !1, this.select();
|
|
81
87
|
});
|
|
82
88
|
i(this, "intersectionOnModelUpdate", (e) => {
|
|
83
|
-
this.pointSelectorHelper.show(), this.
|
|
89
|
+
this.pointSelectorHelper.show(), this.updatePointSelectorHelperIntersect(e);
|
|
90
|
+
});
|
|
91
|
+
i(this, "updateByMousePosition", (e) => {
|
|
92
|
+
const t = this.five.getElement();
|
|
93
|
+
if (!t)
|
|
94
|
+
return;
|
|
95
|
+
const { clientX: n, clientY: r } = e, o = {
|
|
96
|
+
x: n / t.clientWidth,
|
|
97
|
+
y: 1 - r / t.clientHeight
|
|
98
|
+
};
|
|
99
|
+
this.updateByNdcPosition(o);
|
|
100
|
+
});
|
|
101
|
+
/**
|
|
102
|
+
* @description: 根据鼠标位置更新helper位置
|
|
103
|
+
*/
|
|
104
|
+
i(this, "updateByNdcPosition", (e) => {
|
|
105
|
+
const t = k(this.five, e), n = (() => t ? c(a({}, t), { isVirtual: !1 }) : c(a({}, G(this.five, e)), { isVirtual: !0 }))();
|
|
106
|
+
this.updatePointSelectorHelperIntersect(n);
|
|
107
|
+
});
|
|
108
|
+
/**
|
|
109
|
+
* @description: 更新 pointSelectorHelper 的焦点位置
|
|
110
|
+
*/
|
|
111
|
+
i(this, "updatePointSelectorHelperIntersect", (e) => {
|
|
112
|
+
var r;
|
|
113
|
+
const t = a({}, e);
|
|
114
|
+
let n = !1;
|
|
115
|
+
if (((r = this.adherePoints) == null ? void 0 : r.length) > 0 && typeof this.adherePointsRadius == "number") {
|
|
116
|
+
for (const o of this.adherePoints)
|
|
117
|
+
if (o.distanceTo(e.point) < this.adherePointsRadius) {
|
|
118
|
+
t.point = o.clone(), n = !0;
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
this.pointSelectorHelper.updateWithIntersect(t, { emitEvent: !1 }), this.hook.emit("intersectionUpdate", t, n);
|
|
84
123
|
});
|
|
85
124
|
i(this, "onFiveWantsPanGesture", () => {
|
|
86
125
|
if (this.pressDown)
|
|
87
126
|
return !1;
|
|
88
127
|
});
|
|
89
128
|
i(this, "renderScreenCenter", () => {
|
|
90
|
-
this.
|
|
129
|
+
this.updateByNdcPosition({ x: 0.5, y: 0.5 });
|
|
91
130
|
});
|
|
92
131
|
i(this, "emitIntersectionUpdate", (e) => {
|
|
93
132
|
this.hook.emit("intersectionUpdate", e);
|
|
94
133
|
});
|
|
95
|
-
var
|
|
134
|
+
var o, h;
|
|
96
135
|
this.five = e;
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
const
|
|
136
|
+
const n = (o = t == null ? void 0 : t.mode) != null ? o : "auto";
|
|
137
|
+
n === "auto" ? this.mode = b ? "fixed" : "cursor" : this.mode = n;
|
|
138
|
+
const r = {
|
|
100
139
|
autoFixPCPosition: this.mode === "cursor",
|
|
101
140
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
102
141
|
};
|
|
103
|
-
this.pointSelectorHelper = new
|
|
104
|
-
magnifierParams:
|
|
142
|
+
this.pointSelectorHelper = new H(e, c(a({}, t == null ? void 0 : t.pointSelectorHelperParams), {
|
|
143
|
+
magnifierParams: a(a({}, r), (h = t == null ? void 0 : t.pointSelectorHelperParams) == null ? void 0 : h.magnifierParams)
|
|
105
144
|
}));
|
|
106
145
|
}
|
|
107
146
|
get position() {
|
|
@@ -114,19 +153,35 @@ class k {
|
|
|
114
153
|
const e = this.five.getElement();
|
|
115
154
|
if (!e)
|
|
116
155
|
throw new Error("five element not found");
|
|
117
|
-
this.hammer || (this.hammer = new
|
|
156
|
+
this.hammer || (this.hammer = new U(e)), this.mode === "cursor" ? (this.five.on("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.on("wantsPanGesture", this.onFiveWantsPanGesture), this.five.on("wantsMoveToPano", l), this.five.on("wantsTapGesture", l), e.addEventListener("mousemove", this.updateByMousePosition), e.addEventListener("mouseenter", this.onEnter), e.addEventListener("mouseout", this.onLeave), this.hammer.on("tap", this.onTap), this.hammer.on("pan", this.onPan), this.hammer.on("press", this.onPress), this.hammer.on("panend", this.onPanEnd)) : this.mode === "fixed" && (this.five.on("panGesture", this.renderScreenCenter), this.five.on("interiaPan", this.renderScreenCenter), this.renderScreenCenter()), this.pointSelectorHelper.hooks.on("intersectionUpdate", this.emitIntersectionUpdate);
|
|
118
157
|
}
|
|
119
158
|
disable() {
|
|
120
159
|
if (!this.enabled)
|
|
121
160
|
return;
|
|
122
161
|
this.enabled = !1, this.pointSelectorHelper.disable();
|
|
123
162
|
const e = this.five.getElement();
|
|
124
|
-
this.five.off("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano",
|
|
163
|
+
this.five.off("intersectionOnModelUpdate", this.intersectionOnModelUpdate), this.five.off("wantsPanGesture", this.onFiveWantsPanGesture), this.five.off("wantsMoveToPano", l), this.five.off("wantsTapGesture", l), e == null || e.removeEventListener("mousemove", this.updateByMousePosition), e == null || e.removeEventListener("mouseenter", this.onEnter), e == null || e.removeEventListener("mouseout", this.onLeave), this.hammer.off("tap", this.onTap), this.hammer.off("pan", this.onPan), this.hammer.off("press", this.onPress), this.hammer.off("panend", this.onPanEnd), this.five.off("panGesture", this.renderScreenCenter), this.five.off("interiaPan", this.renderScreenCenter), this.pointSelectorHelper.hooks.off("intersectionUpdate", this.emitIntersectionUpdate);
|
|
125
164
|
}
|
|
126
165
|
dispose() {
|
|
127
166
|
this.disable(), this.pointSelectorHelper.dispose();
|
|
128
167
|
}
|
|
168
|
+
setAdherePoints(e, t) {
|
|
169
|
+
e ? this.adherePoints = Array.isArray(e) ? e : [e] : this.adherePoints = null, typeof t == "number" && (this.adherePointsRadius = t);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function x(s, e) {
|
|
173
|
+
const { x: t, y: n } = e, r = t * 2 - 1, o = n * 2 - 1, h = new M().fromArray([r, o]), f = new O();
|
|
174
|
+
return f.setFromCamera(h, s.camera), f;
|
|
175
|
+
}
|
|
176
|
+
function G(s, e) {
|
|
177
|
+
const t = x(s, e), n = 3, r = new E().addVectors(t.ray.origin, t.ray.direction.clone().normalize().multiplyScalar(n)), o = t.ray.direction.clone().negate();
|
|
178
|
+
return {
|
|
179
|
+
distance: n,
|
|
180
|
+
point: r,
|
|
181
|
+
object: new F(),
|
|
182
|
+
face: new I(0, 0, 0, o)
|
|
183
|
+
};
|
|
129
184
|
}
|
|
130
185
|
export {
|
|
131
|
-
|
|
186
|
+
W as PointSelector
|
|
132
187
|
};
|
|
@@ -33,17 +33,8 @@ export declare class PointSelectorHelper {
|
|
|
33
33
|
enable(): void;
|
|
34
34
|
disable(): void;
|
|
35
35
|
dispose(): void;
|
|
36
|
-
updateWithIntersect: (intersect: Intersection
|
|
37
|
-
|
|
38
|
-
clientX: number;
|
|
39
|
-
clientY: number;
|
|
40
|
-
}) => void;
|
|
41
|
-
/**
|
|
42
|
-
* @description: 根据鼠标位置更新helper位置
|
|
43
|
-
*/
|
|
44
|
-
updateByNdcPosition: (ndcPosition: {
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
36
|
+
updateWithIntersect: (intersect: Intersection, config?: {
|
|
37
|
+
emitEvent: boolean;
|
|
47
38
|
}) => void;
|
|
48
39
|
private abortUpdateMagnifier;
|
|
49
40
|
}
|
|
@@ -1,100 +1,50 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class E {
|
|
21
|
-
constructor(t, e) {
|
|
22
|
-
r(this, "five");
|
|
23
|
-
r(this, "hooks", new H());
|
|
24
|
-
r(this, "position");
|
|
25
|
-
r(this, "magnifier", null);
|
|
26
|
-
r(this, "pointHelper", null);
|
|
27
|
-
r(this, "pointDomHelper", null);
|
|
28
|
-
r(this, "state", { enabled: !1, visible: !0 });
|
|
29
|
-
r(this, "group", new n.Group());
|
|
30
|
-
r(this, "show", () => {
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var l = (r, i, e) => i in r ? a(r, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[i] = e;
|
|
3
|
+
var t = (r, i, e) => (l(r, typeof i != "symbol" ? i + "" : i, e), e);
|
|
4
|
+
import * as h from "three";
|
|
5
|
+
import { Subscribe as p } from "@realsee/five";
|
|
6
|
+
import { Magnifier as o } from "./Magnifier.js";
|
|
7
|
+
import { PointHelper as d } from "./PointHelper.js";
|
|
8
|
+
import { PointDomHelper as f } from "./PointDomHelper.js";
|
|
9
|
+
class v {
|
|
10
|
+
constructor(i, e) {
|
|
11
|
+
t(this, "five");
|
|
12
|
+
t(this, "hooks", new p());
|
|
13
|
+
t(this, "position");
|
|
14
|
+
t(this, "magnifier", null);
|
|
15
|
+
t(this, "pointHelper", null);
|
|
16
|
+
t(this, "pointDomHelper", null);
|
|
17
|
+
t(this, "state", { enabled: !1, visible: !0 });
|
|
18
|
+
t(this, "group", new h.Group());
|
|
19
|
+
t(this, "show", () => {
|
|
31
20
|
this.state.visible || (this.state.visible = !0, this.pointHelper.visible = !0, this.pointDomHelper.enable(), this.magnifier.show(), this.five.needsRender = !0);
|
|
32
21
|
});
|
|
33
|
-
|
|
22
|
+
t(this, "hide", () => {
|
|
34
23
|
this.state.visible && (this.state.visible = !1, this.pointHelper.visible = !1, this.pointDomHelper.disable(), this.magnifier.hide(), this.five.needsRender = !0);
|
|
35
24
|
});
|
|
36
|
-
|
|
37
|
-
var
|
|
38
|
-
this.abortUpdateMagnifier(), this.position =
|
|
39
|
-
const
|
|
40
|
-
this.abortUpdateMagnifier = () => this.five.off("renderFrame",
|
|
25
|
+
t(this, "updateWithIntersect", (i, e = { emitEvent: !0 }) => {
|
|
26
|
+
var n;
|
|
27
|
+
this.abortUpdateMagnifier(), this.position = i, e.emitEvent && this.hooks.emit("intersectionUpdate", i), this.pointHelper.updateWithIntersect(i), (n = this.pointDomHelper) == null || n.updateWithIntersect(i);
|
|
28
|
+
const s = () => this.magnifier.renderWithPoint(i.point);
|
|
29
|
+
this.abortUpdateMagnifier = () => this.five.off("renderFrame", s), this.five.once("renderFrame", s), this.five.needsRender = !0;
|
|
41
30
|
});
|
|
42
|
-
|
|
43
|
-
const e = this.five.getElement();
|
|
44
|
-
if (!e)
|
|
45
|
-
return;
|
|
46
|
-
const { clientX: s, clientY: a } = t, o = {
|
|
47
|
-
x: s / e.clientWidth,
|
|
48
|
-
y: 1 - a / e.clientHeight
|
|
49
|
-
};
|
|
50
|
-
this.updateByNdcPosition(o);
|
|
51
|
-
});
|
|
52
|
-
/**
|
|
53
|
-
* @description: 根据鼠标位置更新helper位置
|
|
54
|
-
*/
|
|
55
|
-
r(this, "updateByNdcPosition", (t) => {
|
|
56
|
-
const e = D(this.five, t);
|
|
57
|
-
if (e)
|
|
58
|
-
this.position = p(h({}, e), { isVirtual: !1 });
|
|
59
|
-
else {
|
|
60
|
-
const s = R(this.five, t);
|
|
61
|
-
this.position = p(h({}, s), { isVirtual: !0 });
|
|
62
|
-
}
|
|
63
|
-
this.updateWithIntersect(this.position);
|
|
64
|
-
});
|
|
65
|
-
r(this, "abortUpdateMagnifier", () => {
|
|
31
|
+
t(this, "abortUpdateMagnifier", () => {
|
|
66
32
|
});
|
|
67
33
|
var s;
|
|
68
|
-
this.five =
|
|
34
|
+
this.five = i, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new o(i, (s = e == null ? void 0 : e.magnifierParams) != null ? s : { dragEnabled: !0 }), this.pointHelper = (e == null ? void 0 : e.pointHelper) !== void 0 ? e.pointHelper : new d(), this.pointDomHelper = (e == null ? void 0 : e.pointDomHelper) !== void 0 ? e.pointDomHelper : new f(i), this.group.name = "five-point-selector", this.five.scene.add(this.group), this.magnifier.appendTo(document.body);
|
|
69
35
|
}
|
|
70
36
|
enable() {
|
|
71
|
-
var
|
|
72
|
-
this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (
|
|
37
|
+
var i, e;
|
|
38
|
+
this.state.enabled || (this.state.enabled = !0, this.pointHelper && this.group.add(this.pointHelper), (i = this.magnifier) == null || i.enable(), (e = this.pointDomHelper) == null || e.enable(), this.five.needsRender = !0, this.hooks.emit("enabled"));
|
|
73
39
|
}
|
|
74
40
|
disable() {
|
|
75
|
-
var
|
|
76
|
-
this.state.enabled && (this.state.enabled = !1, this.pointHelper && this.group.remove(this.pointHelper), (
|
|
41
|
+
var i, e;
|
|
42
|
+
this.state.enabled && (this.state.enabled = !1, this.pointHelper && this.group.remove(this.pointHelper), (i = this.magnifier) == null || i.disable(), (e = this.pointDomHelper) == null || e.disable(), this.hooks.emit("disabled"));
|
|
77
43
|
}
|
|
78
44
|
dispose() {
|
|
79
45
|
this.hooks.off(), this.disable(), this.magnifier = null, this.pointHelper = null, this.pointDomHelper = null;
|
|
80
46
|
}
|
|
81
47
|
}
|
|
82
|
-
function I(i, t) {
|
|
83
|
-
const { x: e, y: s } = t, a = e * 2 - 1, o = s * 2 - 1, c = new n.Vector2().fromArray([a, o]), d = new n.Raycaster();
|
|
84
|
-
return d.setFromCamera(c, i.camera), d;
|
|
85
|
-
}
|
|
86
|
-
function R(i, t) {
|
|
87
|
-
const e = I(i, t), s = 3, a = new n.Vector3().addVectors(
|
|
88
|
-
e.ray.origin,
|
|
89
|
-
e.ray.direction.clone().normalize().multiplyScalar(s)
|
|
90
|
-
), o = e.ray.direction.clone().negate();
|
|
91
|
-
return {
|
|
92
|
-
distance: s,
|
|
93
|
-
point: a,
|
|
94
|
-
object: new n.Object3D(),
|
|
95
|
-
face: new n.Face3(0, 0, 0, o)
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
48
|
export {
|
|
99
|
-
|
|
49
|
+
v as PointSelectorHelper
|
|
100
50
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type * as THREE from 'three';
|
|
2
|
+
import type { PartialDeep } from 'type-fest';
|
|
2
3
|
export interface Intersection {
|
|
3
4
|
/** 焦点坐标 */
|
|
4
5
|
point: THREE.Vector3;
|
|
@@ -7,3 +8,6 @@ export interface Intersection {
|
|
|
7
8
|
normal: THREE.Vector3;
|
|
8
9
|
} | null;
|
|
9
10
|
}
|
|
11
|
+
export type PartialObjectDeep<ObjectType extends object> = {
|
|
12
|
+
[KeyType in keyof ObjectType]?: PartialDeep<ObjectType[KeyType]>;
|
|
13
|
+
};
|
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.21.0-dev.
|
|
10
|
+
"version": "2.21.0-dev.11",
|
|
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*",
|