@realsee/dnalogel 2.19.0-2 → 2.19.0
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 +7 -7
- package/dist/index.js +91 -89
- package/dist/index.umd.js +7 -7
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +30 -30
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +22 -22
- package/docs/classes/PanoMeasurePluginModel.html +21 -21
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +25 -25
- package/docs/classes/PanoTagPluginController.html +45 -45
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.FivePointSelector.html +11 -11
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +16 -16
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/Rotation.html +7 -7
- 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 +4 -4
- 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.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +13 -13
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelElement.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/PlaneTagElement.html +4 -4
- package/docs/types/Point2DElement.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DElement.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagElement.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagIconSize.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +26 -24
- package/libs/PanoTagPlugin/controller/TagRender.js +80 -80
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var F = (i, t, e) => new Promise((n, o) => {
|
|
|
29
29
|
});
|
|
30
30
|
import { Camera as Su, Subscribe as yt, Five as nt } from "@realsee/five";
|
|
31
31
|
import * as E from "three";
|
|
32
|
-
import { Vector3 as $, Group as Kn, Raycaster as xn, MeshBasicMaterial as Ji, CanvasTexture as Mu, AnimationMixer as Lu, Color as oo, TextureLoader as Sd, Vector2 as
|
|
32
|
+
import { Vector3 as $, Group as Kn, Raycaster as xn, MeshBasicMaterial as Ji, CanvasTexture as Mu, AnimationMixer as Lu, Color as oo, TextureLoader as Sd, Vector2 as bt, PlaneGeometry as Tu, sRGBEncoding as zu, LinearFilter as Vr, Mesh as Fi, CurvePath as ju, LineCurve3 as _u, TubeGeometry as Vu, ShaderMaterial as Md, SphereGeometry as Ou, DoubleSide as Ld, RingGeometry as Bu, Quaternion as aa, Euler as Ba, Matrix4 as Qi, Object3D as Ru, VideoTexture as Qu, Vector4 as Hu, SphereBufferGeometry as Gu } from "three";
|
|
33
33
|
import { CSS3DRenderer as Wu, CSS3DObject as Or } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
34
34
|
import so from "hammerjs";
|
|
35
35
|
import { Line as Td } from "@realsee/five/line";
|
|
@@ -38,7 +38,7 @@ import Ra from "animejs";
|
|
|
38
38
|
import { GLTFLoader as Nu } from "@realsee/five/gltf-loader";
|
|
39
39
|
function Fu() {
|
|
40
40
|
console.info(
|
|
41
|
-
"%c %c@realsee/dnalogel %cv2.19.0
|
|
41
|
+
"%c %c@realsee/dnalogel %cv2.19.0",
|
|
42
42
|
[
|
|
43
43
|
"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=')",
|
|
44
44
|
"background-repeat: no-repeat",
|
|
@@ -6762,7 +6762,7 @@ let ao = class {
|
|
|
6762
6762
|
/**
|
|
6763
6763
|
* @realsee/dnalogel 版本号
|
|
6764
6764
|
*/
|
|
6765
|
-
f(this, "VERSION", "2.19.0
|
|
6765
|
+
f(this, "VERSION", "2.19.0");
|
|
6766
6766
|
f(this, "five");
|
|
6767
6767
|
/**
|
|
6768
6768
|
* 插件事件钩子
|
|
@@ -6782,7 +6782,7 @@ let ao = class {
|
|
|
6782
6782
|
}
|
|
6783
6783
|
}, Mn = class extends ao {
|
|
6784
6784
|
};
|
|
6785
|
-
var
|
|
6785
|
+
var At = /* @__PURE__ */ ((i) => (i.UnknownError = "UnknownError", i.DataNotLoaded = "DataNotLoaded", i.BreakOffByHide = "BreakOffByHide", i.BreakOffByDisable = "BreakOffByDisable", i.ModelNotLoaded = "ModelNotLoaded", i.ChangeModeError = "ChangeModeError", i.UpdateCameraError = "UpdateCameraError", i))(At || {});
|
|
6786
6786
|
const Ih = 500, hg = 80;
|
|
6787
6787
|
function Xr(i, t, e = 4) {
|
|
6788
6788
|
return Math.floor(i * Math.pow(10, e)) === Math.floor(t * Math.pow(10, e));
|
|
@@ -6828,7 +6828,7 @@ function kh(i, t, e = !0) {
|
|
|
6828
6828
|
if (o.mode !== t.mode) {
|
|
6829
6829
|
const [d] = yield oi(ya(i, [t.mode, t, void 0, e]));
|
|
6830
6830
|
if (d)
|
|
6831
|
-
throw new Error(
|
|
6831
|
+
throw new Error(At.ChangeModeError);
|
|
6832
6832
|
return;
|
|
6833
6833
|
}
|
|
6834
6834
|
const { latitude: s, longitude: r, fov: a } = o, l = Math.min(
|
|
@@ -6841,7 +6841,7 @@ function kh(i, t, e = !0) {
|
|
|
6841
6841
|
)
|
|
6842
6842
|
), [c] = yield oi(i.updateCamera(t, l, e));
|
|
6843
6843
|
if (c)
|
|
6844
|
-
throw new Error(
|
|
6844
|
+
throw new Error(At.UpdateCameraError);
|
|
6845
6845
|
});
|
|
6846
6846
|
}
|
|
6847
6847
|
function ri(i, t, e = 300) {
|
|
@@ -6937,7 +6937,7 @@ let pg = class extends Mn {
|
|
|
6937
6937
|
f(this, "_disable", (e) => {
|
|
6938
6938
|
var o, s, r;
|
|
6939
6939
|
const { userAction: n } = e;
|
|
6940
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
6940
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, At.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
6941
6941
|
});
|
|
6942
6942
|
f(this, "_enable", (e) => {
|
|
6943
6943
|
const { userAction: n } = e;
|
|
@@ -6948,9 +6948,9 @@ let pg = class extends Mn {
|
|
|
6948
6948
|
if (!this.state.enabled)
|
|
6949
6949
|
return;
|
|
6950
6950
|
if (!((r = this.five.model) != null && r.loaded))
|
|
6951
|
-
throw new Error(
|
|
6951
|
+
throw new Error(At.ModelNotLoaded);
|
|
6952
6952
|
if (!this.data)
|
|
6953
|
-
throw new Error(
|
|
6953
|
+
throw new Error(At.DataNotLoaded);
|
|
6954
6954
|
this.isHiddenByHideFunc = !1;
|
|
6955
6955
|
const n = {
|
|
6956
6956
|
floorIndex: this.floorIndex,
|
|
@@ -6968,7 +6968,7 @@ let pg = class extends Mn {
|
|
|
6968
6968
|
if (c)
|
|
6969
6969
|
throw c;
|
|
6970
6970
|
if (a)
|
|
6971
|
-
throw l ? new Error(l) : new Error(
|
|
6971
|
+
throw l ? new Error(l) : new Error(At.UnknownError);
|
|
6972
6972
|
this.updateSize(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
6973
6973
|
const d = o.modelOpacity, h = o.immediately ? 0 : Ih;
|
|
6974
6974
|
ri(this.five, d, h), this.render(h);
|
|
@@ -6987,7 +6987,7 @@ let pg = class extends Mn {
|
|
|
6987
6987
|
}));
|
|
6988
6988
|
f(this, "_hide", (e) => {
|
|
6989
6989
|
var s;
|
|
6990
|
-
(s = this.showRejection) == null || s.call(this,
|
|
6990
|
+
(s = this.showRejection) == null || s.call(this, At.BreakOffByHide), this.showPromise = void 0;
|
|
6991
6991
|
const o = G(G({}, {
|
|
6992
6992
|
userAction: !0,
|
|
6993
6993
|
isAutoHide: !1
|
|
@@ -7266,7 +7266,7 @@ let Ag = class extends Mn {
|
|
|
7266
7266
|
f(this, "_disable", (e) => {
|
|
7267
7267
|
var o, s, r;
|
|
7268
7268
|
const { userAction: n } = e;
|
|
7269
|
-
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this,
|
|
7269
|
+
this.hooks.emit("disable", { userAction: n }), (o = this.showRejection) == null || o.call(this, At.BreakOffByDisable), this.showPromise = void 0, (s = this.app) == null || s.$destroy(), this.app = void 0, (r = this.container) == null || r.remove(), this.removeEventListener();
|
|
7270
7270
|
});
|
|
7271
7271
|
f(this, "_enable", (e) => {
|
|
7272
7272
|
const { userAction: n } = e;
|
|
@@ -7277,9 +7277,9 @@ let Ag = class extends Mn {
|
|
|
7277
7277
|
if (!this.state.enabled)
|
|
7278
7278
|
return;
|
|
7279
7279
|
if (!((r = this.five.model) != null && r.loaded))
|
|
7280
|
-
throw new Error(
|
|
7280
|
+
throw new Error(At.ModelNotLoaded);
|
|
7281
7281
|
if (!this.data)
|
|
7282
|
-
throw new Error(
|
|
7282
|
+
throw new Error(At.DataNotLoaded);
|
|
7283
7283
|
this.isHiddenByHideFunc = !1;
|
|
7284
7284
|
const n = {
|
|
7285
7285
|
floorIndex: this.floorIndex,
|
|
@@ -7297,7 +7297,7 @@ let Ag = class extends Mn {
|
|
|
7297
7297
|
if (c)
|
|
7298
7298
|
throw c;
|
|
7299
7299
|
if (a)
|
|
7300
|
-
throw l ? new Error(l) : new Error(
|
|
7300
|
+
throw l ? new Error(l) : new Error(At.UnknownError);
|
|
7301
7301
|
this.updateSize(), this.updatePosition(), this.floorIndex = o.floorIndex, this.five.model.show(this.floorIndex);
|
|
7302
7302
|
const d = o.modelOpacity, h = o.immediately ? 0 : Ih;
|
|
7303
7303
|
ri(this.five, d, h), this.render(h);
|
|
@@ -7316,7 +7316,7 @@ let Ag = class extends Mn {
|
|
|
7316
7316
|
}));
|
|
7317
7317
|
f(this, "_hide", (e) => {
|
|
7318
7318
|
var s;
|
|
7319
|
-
(s = this.showRejection) == null || s.call(this,
|
|
7319
|
+
(s = this.showRejection) == null || s.call(this, At.BreakOffByHide), this.showPromise = void 0;
|
|
7320
7320
|
const o = G(G({}, {
|
|
7321
7321
|
userAction: !0,
|
|
7322
7322
|
isAutoHide: !1
|
|
@@ -10238,7 +10238,7 @@ function Iv(i) {
|
|
|
10238
10238
|
const P = y.clientWidth, D = y.clientHeight, x = P / 2, I = D / 2;
|
|
10239
10239
|
if (e.points.length < 2)
|
|
10240
10240
|
return;
|
|
10241
|
-
const [T, S] = e.points, N = T.position.clone().project(b.camera), Y = S.position.clone().project(b.camera), H = N.clone().lerp(Y, 0.5), z = new
|
|
10241
|
+
const [T, S] = e.points, N = T.position.clone().project(b.camera), Y = S.position.clone().project(b.camera), H = N.clone().lerp(Y, 0.5), z = new bt(N.x * x, N.y * I), Q = new bt(Y.x * x, Y.y * I), R = z.distanceTo(Q);
|
|
10242
10242
|
if ((() => !(Math.abs(N.z) > 1 || Math.abs(Y.z) > 1 || !yr(N) && !yr(Y) || !yr(H) || R === 0))() === !1) {
|
|
10243
10243
|
s.style.opacity = "0", s.style.pointerEvents = "none";
|
|
10244
10244
|
return;
|
|
@@ -10536,7 +10536,7 @@ let bs = class {
|
|
|
10536
10536
|
}
|
|
10537
10537
|
};
|
|
10538
10538
|
function Ur(i) {
|
|
10539
|
-
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new
|
|
10539
|
+
const { x: t, y: e } = i.center, { clientWidth: n, clientHeight: o } = i.target, s = i.target.getBoundingClientRect(), r = new bt(t, e).sub(new bt(s.left, s.top)), a = new bt(r.x / n * 2 - 1, -(r.y / o) * 2 + 1);
|
|
10540
10540
|
return { point: r, ndcPoint: a };
|
|
10541
10541
|
}
|
|
10542
10542
|
function wr(i, t) {
|
|
@@ -10771,14 +10771,14 @@ class Th {
|
|
|
10771
10771
|
function zh(i, t) {
|
|
10772
10772
|
const e = i.x - t[0].x, n = i.y - t[0].y, o = t[1].x - t[0].x, s = t[1].y - t[0].y, r = e * o + n * s, a = o * o + s * s, l = r / a;
|
|
10773
10773
|
let c, d;
|
|
10774
|
-
return l < 0 || Sv(t[0], t[1]) ? (c = t[0].x, d = t[0].y) : l > 1 ? (c = t[1].x, d = t[1].y) : (c = t[0].x + l * o, d = t[0].y + l * s), new
|
|
10774
|
+
return l < 0 || Sv(t[0], t[1]) ? (c = t[0].x, d = t[0].y) : l > 1 ? (c = t[1].x, d = t[1].y) : (c = t[0].x + l * o, d = t[0].y + l * s), new bt(c, d);
|
|
10775
10775
|
}
|
|
10776
10776
|
function Sv(i, t) {
|
|
10777
10777
|
return i.x === t.x && i.y === t.y;
|
|
10778
10778
|
}
|
|
10779
10779
|
function Mv(i, t) {
|
|
10780
10780
|
const e = (i.x + 1) / 2 * t.width, n = -(i.y - 1) / 2 * t.height;
|
|
10781
|
-
return new
|
|
10781
|
+
return new bt(e, n);
|
|
10782
10782
|
}
|
|
10783
10783
|
function Lv(i, t, e, n) {
|
|
10784
10784
|
const o = i.getElement();
|
|
@@ -10862,11 +10862,11 @@ class Ql extends bs {
|
|
|
10862
10862
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
10863
10863
|
if (!n)
|
|
10864
10864
|
return;
|
|
10865
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new
|
|
10865
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new bt(s.x * r, s.y * a), c = this.model.getAllLines().map((m) => {
|
|
10866
10866
|
const [g, v] = m.points, A = g.position.clone().project(o), b = v.position.clone().project(o);
|
|
10867
10867
|
if (!no(A) && !no(b))
|
|
10868
10868
|
return null;
|
|
10869
|
-
const y = new
|
|
10869
|
+
const y = new bt(A.x * r, A.y * a), P = new bt(b.x * r, b.y * a);
|
|
10870
10870
|
return { id: m.id, points: [y, P] };
|
|
10871
10871
|
}).filter((m) => !!m);
|
|
10872
10872
|
if (c.length === 0)
|
|
@@ -11116,11 +11116,11 @@ class Vi extends bs {
|
|
|
11116
11116
|
const [n] = this.five.model.intersectRaycaster(e);
|
|
11117
11117
|
if (!n)
|
|
11118
11118
|
return;
|
|
11119
|
-
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new
|
|
11119
|
+
const o = this.five.camera, s = n.point.clone().project(o), r = this.container.clientWidth, a = this.container.clientHeight, l = new bt(s.x * r, s.y * a), c = this.model.getAllLines().map((m) => {
|
|
11120
11120
|
const [g, v] = m.points, A = g.position.clone().project(o), b = v.position.clone().project(o);
|
|
11121
11121
|
if (!no(A) && !no(b))
|
|
11122
11122
|
return null;
|
|
11123
|
-
const y = new
|
|
11123
|
+
const y = new bt(A.x * r, A.y * a), P = new bt(b.x * r, b.y * a);
|
|
11124
11124
|
return { id: m.id, points: [y, P] };
|
|
11125
11125
|
}).filter((m) => !!m);
|
|
11126
11126
|
if (c.length === 0)
|
|
@@ -11844,8 +11844,10 @@ class n0 {
|
|
|
11844
11844
|
var o;
|
|
11845
11845
|
if (!(this.controller instanceof Vo) && !(this.controller instanceof Vi))
|
|
11846
11846
|
return this;
|
|
11847
|
-
const e = (o = t == null ? void 0 : t.mode) != null ? o : "View"
|
|
11848
|
-
return this.model.
|
|
11847
|
+
const e = (o = t == null ? void 0 : t.mode) != null ? o : "View";
|
|
11848
|
+
return this.controller.model.polylines.forEach((s) => {
|
|
11849
|
+
this.model.addPolyline(s);
|
|
11850
|
+
}), this.changeMode(e), this;
|
|
11849
11851
|
}
|
|
11850
11852
|
/** Mixed 模式才有用,添加起点 */
|
|
11851
11853
|
addStartPoint() {
|
|
@@ -12455,17 +12457,17 @@ const Cr = 1e-3, ql = 0.01, g0 = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
12455
12457
|
const Ht = Be.position.clone().sub(me.position).setY(0);
|
|
12456
12458
|
if (Ht.angleTo(Be.normal) > Math.PI / 2 - r && Ht.angleTo(Be.normal) < Math.PI / 2 + r)
|
|
12457
12459
|
return Ie;
|
|
12458
|
-
const
|
|
12460
|
+
const gt = Be.position.clone().project(me);
|
|
12459
12461
|
if (!v.tags.every((Oe) => {
|
|
12460
12462
|
if (Oe.position.clone().sub(me.position).setY(0).angleTo(ke.setY(0)) > Math.PI / 2)
|
|
12461
12463
|
return !0;
|
|
12462
12464
|
const Fe = Oe.position.clone().project(me);
|
|
12463
12465
|
return Math.sqrt(
|
|
12464
|
-
Math.pow((
|
|
12466
|
+
Math.pow((gt.x - Fe.x) / 2 * ue, 2) + Math.pow((gt.y - Fe.y) / 2 * be, 2)
|
|
12465
12467
|
) > a;
|
|
12466
12468
|
}))
|
|
12467
12469
|
return Ie;
|
|
12468
|
-
const
|
|
12470
|
+
const vt = {
|
|
12469
12471
|
id: Be.id,
|
|
12470
12472
|
position: Be.position,
|
|
12471
12473
|
normal: Be.normal,
|
|
@@ -12476,16 +12478,16 @@ const Cr = 1e-3, ql = 0.01, g0 = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
12476
12478
|
let je;
|
|
12477
12479
|
for (let Oe = 0, Fe = Ie.length; Oe < Fe; Oe++) {
|
|
12478
12480
|
const Et = Ie[Oe];
|
|
12479
|
-
if (
|
|
12481
|
+
if (vt.weight > Et.weight) {
|
|
12480
12482
|
je = Oe;
|
|
12481
12483
|
break;
|
|
12482
12484
|
}
|
|
12483
|
-
if (
|
|
12485
|
+
if (vt.distance < Et.distance) {
|
|
12484
12486
|
je = Oe;
|
|
12485
12487
|
break;
|
|
12486
12488
|
}
|
|
12487
12489
|
}
|
|
12488
|
-
return je !== void 0 ? Ie.splice(je, 0,
|
|
12490
|
+
return je !== void 0 ? Ie.splice(je, 0, vt) : Ie.push(vt), Ie;
|
|
12489
12491
|
}, []);
|
|
12490
12492
|
for (let Ie = 0, Be = oe.length; Ie < Be && !(Ke + Me.length >= s); Ie++) {
|
|
12491
12493
|
const ht = oe[Ie];
|
|
@@ -12501,13 +12503,13 @@ const Cr = 1e-3, ql = 0.01, g0 = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
12501
12503
|
) > a;
|
|
12502
12504
|
}))
|
|
12503
12505
|
continue;
|
|
12504
|
-
const
|
|
12506
|
+
const gt = new E.Raycaster(
|
|
12505
12507
|
me.position.clone().setY(n),
|
|
12506
12508
|
ht.position.clone().sub(me.position.clone().setY(n)).normalize(),
|
|
12507
12509
|
0,
|
|
12508
12510
|
ht.distance + ql
|
|
12509
|
-
), [
|
|
12510
|
-
if (
|
|
12511
|
+
), [vt] = v.intersectObjects ? gt.intersectObjects(v.intersectObjects, !0) : i.model.bvhs.loaded ? i.model.intersectRaycaster(gt) : gt.intersectObjects(i.model.children, !0);
|
|
12512
|
+
if (vt && ht.distance - vt.distance < ql) {
|
|
12511
12513
|
const { position: je, normal: Oe, id: Fe, replacement: Et } = ht, wi = new E.Plane().setFromNormalAndCoplanarPoint(Oe, je), Tt = je.clone().sub(me.position).cross(new E.Vector3(0, 1, 0)).setLength(Cr), Zt = [
|
|
12512
12514
|
je.clone(),
|
|
12513
12515
|
je.clone().add(Tt),
|
|
@@ -14376,7 +14378,7 @@ function kA(i) {
|
|
|
14376
14378
|
function xA(i) {
|
|
14377
14379
|
return i.stickType === "3DPoint" || i.stickType === "Plane";
|
|
14378
14380
|
}
|
|
14379
|
-
function
|
|
14381
|
+
function pt(i) {
|
|
14380
14382
|
return i.stickType === "Model" && i.contentType === "MediaModel";
|
|
14381
14383
|
}
|
|
14382
14384
|
function DA(i) {
|
|
@@ -14397,7 +14399,7 @@ function ss(i) {
|
|
|
14397
14399
|
return Zi(i);
|
|
14398
14400
|
}
|
|
14399
14401
|
function Nh(i) {
|
|
14400
|
-
if (
|
|
14402
|
+
if (pt(i) && i.matrix) {
|
|
14401
14403
|
const t = new Qi().fromArray(i.matrix), e = i.data.mediaPosition.map((n) => new $().fromArray(n).applyMatrix4(t));
|
|
14402
14404
|
return Dn(e[0], e[2]);
|
|
14403
14405
|
} else
|
|
@@ -15377,7 +15379,7 @@ class UA extends QA {
|
|
|
15377
15379
|
if (MA(e)) {
|
|
15378
15380
|
if (s.length === 1 && (s[0].type === "Image" || s[0].type === "Video"))
|
|
15379
15381
|
return "Mesh";
|
|
15380
|
-
} else if (
|
|
15382
|
+
} else if (pt(e))
|
|
15381
15383
|
return s.length === 1 && s[0].type === "Image" ? "Mesh" : "BehindDom";
|
|
15382
15384
|
}
|
|
15383
15385
|
})();
|
|
@@ -15433,7 +15435,7 @@ class UA extends QA {
|
|
|
15433
15435
|
getPositions(e) {
|
|
15434
15436
|
if (kA(e))
|
|
15435
15437
|
return e.position;
|
|
15436
|
-
if (
|
|
15438
|
+
if (pt(e))
|
|
15437
15439
|
return e.data.mediaPosition;
|
|
15438
15440
|
const n = e;
|
|
15439
15441
|
return TA(
|
|
@@ -15446,7 +15448,7 @@ class UA extends QA {
|
|
|
15446
15448
|
if (!n || !this.domEvents)
|
|
15447
15449
|
return () => {
|
|
15448
15450
|
};
|
|
15449
|
-
const s = () => !(!e.state.visible || !this.state.visible ||
|
|
15451
|
+
const s = () => !(!e.state.visible || !this.state.visible || pt(e) && !e.mediaVisible), r = (d) => {
|
|
15450
15452
|
if (!s()) {
|
|
15451
15453
|
this.mouseInfo = void 0;
|
|
15452
15454
|
return;
|
|
@@ -15762,7 +15764,7 @@ class JA extends UA {
|
|
|
15762
15764
|
const e = this.five.getCurrentState().mode;
|
|
15763
15765
|
this.tags.forEach((n) => {
|
|
15764
15766
|
var s;
|
|
15765
|
-
if (!
|
|
15767
|
+
if (!pt(n))
|
|
15766
15768
|
return;
|
|
15767
15769
|
if (!((s = n.model) != null && s.object)) {
|
|
15768
15770
|
n.mediaVisible = !1;
|
|
@@ -15798,9 +15800,9 @@ class JA extends UA {
|
|
|
15798
15800
|
getTagEnableByIntersect(e, n) {
|
|
15799
15801
|
var d, h, u;
|
|
15800
15802
|
const o = (d = this.getTagConfig(e).visibleConfig) != null ? d : {}, s = this.getDistance(e), [r] = this.five.model.intersectRaycaster(n), a = (() => {
|
|
15801
|
-
if (!
|
|
15803
|
+
if (!pt(e))
|
|
15802
15804
|
return;
|
|
15803
|
-
const m = this.tags.filter(
|
|
15805
|
+
const m = this.tags.filter(pt).map((v) => {
|
|
15804
15806
|
var A;
|
|
15805
15807
|
return (A = v.model) == null ? void 0 : A.object;
|
|
15806
15808
|
}).filter(di);
|
|
@@ -18589,12 +18591,12 @@ var Bo = ky, rs = {}, xy = {
|
|
|
18589
18591
|
M[++C] = W;
|
|
18590
18592
|
}), M;
|
|
18591
18593
|
}
|
|
18592
|
-
var ht = Array.prototype, Ht = Function.prototype,
|
|
18593
|
-
var p = /[^.]+$/.exec(
|
|
18594
|
+
var ht = Array.prototype, Ht = Function.prototype, gt = Object.prototype, vt = ge["__core-js_shared__"], je = function() {
|
|
18595
|
+
var p = /[^.]+$/.exec(vt && vt.keys && vt.keys.IE_PROTO || "");
|
|
18594
18596
|
return p ? "Symbol(src)_1." + p : "";
|
|
18595
|
-
}(), Oe = Ht.toString, Fe =
|
|
18597
|
+
}(), Oe = Ht.toString, Fe = gt.hasOwnProperty, Et = gt.toString, wi = RegExp(
|
|
18596
18598
|
"^" + Oe.call(Fe).replace(U, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
18597
|
-
), Tt = He ? ge.Buffer : void 0, Zt = ge.Symbol, mn = ge.Uint8Array, ut = Ie(Object.getPrototypeOf, Object), Tn = Object.create, zn =
|
|
18599
|
+
), Tt = He ? ge.Buffer : void 0, Zt = ge.Symbol, mn = ge.Uint8Array, ut = Ie(Object.getPrototypeOf, Object), Tn = Object.create, zn = gt.propertyIsEnumerable, xs = ht.splice, Ci = Object.getOwnPropertySymbols, jn = Tt ? Tt.isBuffer : void 0, co = Ie(Object.keys, Object), _n = kt(ge, "DataView"), pn = kt(ge, "Map"), It = kt(ge, "Promise"), Vn = kt(ge, "Set"), Pi = kt(ge, "WeakMap"), gn = kt(Object, "create"), Ei = lt(_n), vn = lt(pn), Ii = lt(It), ki = lt(Vn), xi = lt(Pi), Kt = Zt ? Zt.prototype : void 0, ho = Kt ? Kt.valueOf : void 0;
|
|
18598
18600
|
function Gt(p) {
|
|
18599
18601
|
var C = -1, M = p ? p.length : 0;
|
|
18600
18602
|
for (this.clear(); ++C < M; ) {
|
|
@@ -18915,7 +18917,7 @@ var Bo = ky, rs = {}, xy = {
|
|
|
18915
18917
|
return !!je && je in p;
|
|
18916
18918
|
}
|
|
18917
18919
|
function go(p) {
|
|
18918
|
-
var C = p && p.constructor, M = typeof C == "function" && C.prototype ||
|
|
18920
|
+
var C = p && p.constructor, M = typeof C == "function" && C.prototype || gt;
|
|
18919
18921
|
return p === M;
|
|
18920
18922
|
}
|
|
18921
18923
|
function lt(p) {
|
|
@@ -19019,10 +19021,10 @@ var as = {}, Sy = {
|
|
|
19019
19021
|
return p(C);
|
|
19020
19022
|
};
|
|
19021
19023
|
}
|
|
19022
|
-
function
|
|
19024
|
+
function gt(p, C) {
|
|
19023
19025
|
return p.has(C);
|
|
19024
19026
|
}
|
|
19025
|
-
function
|
|
19027
|
+
function vt(p, C) {
|
|
19026
19028
|
return p == null ? void 0 : p[C];
|
|
19027
19029
|
}
|
|
19028
19030
|
function je(p) {
|
|
@@ -19263,7 +19265,7 @@ var as = {}, Sy = {
|
|
|
19263
19265
|
}
|
|
19264
19266
|
if (Ne) {
|
|
19265
19267
|
if (!Be(C, function(Ft, yn) {
|
|
19266
|
-
if (!
|
|
19268
|
+
if (!gt(Ne, yn) && (tt === Ft || Ce(tt, Ft, M, W, pe)))
|
|
19267
19269
|
return Ne.push(yn);
|
|
19268
19270
|
})) {
|
|
19269
19271
|
mt = !1;
|
|
@@ -19350,7 +19352,7 @@ var as = {}, Sy = {
|
|
|
19350
19352
|
return sr(C) ? M[typeof C == "string" ? "string" : "hash"] : M.map;
|
|
19351
19353
|
}
|
|
19352
19354
|
function Wt(p, C) {
|
|
19353
|
-
var M =
|
|
19355
|
+
var M = vt(p, C);
|
|
19354
19356
|
return Ks(M) ? M : void 0;
|
|
19355
19357
|
}
|
|
19356
19358
|
function Nt(p) {
|
|
@@ -24485,7 +24487,7 @@ function kC(i, t, e) {
|
|
|
24485
24487
|
}
|
|
24486
24488
|
function y(x, I, T) {
|
|
24487
24489
|
var S, N;
|
|
24488
|
-
return !(!I.visible || !I.enabled || !T.visible || !((S = x.state) != null && S.visible) || ((N = x.temporaryState) == null ? void 0 : N.visible) === !1 ||
|
|
24490
|
+
return !(!I.visible || !I.enabled || !T.visible || !((S = x.state) != null && S.visible) || ((N = x.temporaryState) == null ? void 0 : N.visible) === !1 || pt(x) && !x.mediaVisible);
|
|
24489
24491
|
}
|
|
24490
24492
|
const P = (x) => h.emit("click", { event: x, target: "TagContent", tag: d }), D = (x) => h.emit("click", { event: x, target: "TagContent", tag: d });
|
|
24491
24493
|
return i.$$set = (x) => {
|
|
@@ -25293,7 +25295,7 @@ class YC extends JA {
|
|
|
25293
25295
|
customID: e.id,
|
|
25294
25296
|
isTagModel: !0,
|
|
25295
25297
|
removeEventListener: this.addObjectClickHandler(e, l.scene, (A) => {
|
|
25296
|
-
this.hooks.emit("click", { target: "TagModel", tag: e, event: A });
|
|
25298
|
+
console.log("🐶 ==> tag:", e), this.hooks.emit("click", { target: "TagModel", tag: e, event: A });
|
|
25297
25299
|
})
|
|
25298
25300
|
});
|
|
25299
25301
|
return c.visible = this.getCurrentVisibleState(e), new Qi().fromArray(e.matrix).decompose(c.position, c.quaternion, c.scale), c.updateWorldMatrix(!0, !0), c.visible = this.getVisibleByFiveMode(e), (m = (u = (h = this.config) == null ? void 0 : h.globalConfig) == null ? void 0 : u.modelConfig) != null && m.autoLookAtEnabled && ((v = (g = e.config) == null ? void 0 : g.modelConfig) != null && v.autoLookAtEnabled) && c.lookAt(this.five.camera.position.clone().setY(c.position.y)), c;
|
|
@@ -25304,7 +25306,7 @@ class YC extends JA {
|
|
|
25304
25306
|
return;
|
|
25305
25307
|
e.model.object = s;
|
|
25306
25308
|
const r = this.gltfObjectGroup.children.find((l) => l.customID === e.id);
|
|
25307
|
-
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(),
|
|
25309
|
+
if (r && (this.gltfObjectGroup.remove(r), r.removeEventListener()), this.updateRender3DDomTag(), pt(e)) {
|
|
25308
25310
|
if (this.getRenderType(e) === "Mesh" && !e.mediaPlane) {
|
|
25309
25311
|
const l = e.data.mediaPosition.map(St);
|
|
25310
25312
|
e.mediaPlane = new cc(e.data.mediaData[0].url, e.data.mediaPosition.map(St), {
|
|
@@ -25371,45 +25373,45 @@ class YC extends JA {
|
|
|
25371
25373
|
*/
|
|
25372
25374
|
updateRender3DDomTag() {
|
|
25373
25375
|
this.sort([...this.filterCSS3DTag]).forEach((n) => {
|
|
25374
|
-
var o, s, r;
|
|
25376
|
+
var o, s, r, a;
|
|
25375
25377
|
if (n.tag3DContentSvelte) {
|
|
25376
|
-
const { svelteApp:
|
|
25377
|
-
if (
|
|
25378
|
-
const
|
|
25379
|
-
|
|
25378
|
+
const { svelteApp: l, css3DInstance: c, initialNormal: d, currentNormal: h } = n.tag3DContentSvelte;
|
|
25379
|
+
if (l.$set({ tag: n, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !d.equals(h)) {
|
|
25380
|
+
const u = new aa().setFromUnitVectors(d, h);
|
|
25381
|
+
c.css3DObject.setRotationFromQuaternion(u);
|
|
25380
25382
|
}
|
|
25381
25383
|
return;
|
|
25382
25384
|
} else {
|
|
25383
|
-
if (
|
|
25385
|
+
if (pt(n) && !((o = n.model) != null && o.object) || ((s = n.state) == null ? void 0 : s.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
25384
25386
|
return;
|
|
25385
25387
|
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Ud(this.five)), n.stickType === "3DPoint" && !n.normal)
|
|
25386
25388
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
25387
|
-
const
|
|
25388
|
-
if (!a)
|
|
25389
|
-
return;
|
|
25390
|
-
const l = this.getTagNormal(n);
|
|
25389
|
+
const l = this.getPositions(n);
|
|
25391
25390
|
if (!l)
|
|
25392
25391
|
return;
|
|
25393
|
-
const
|
|
25392
|
+
const c = this.getTagNormal(n);
|
|
25393
|
+
if (!c)
|
|
25394
|
+
return;
|
|
25395
|
+
const h = (r = this.getTagConfig(n).tag3DConfig) != null ? r : {};
|
|
25394
25396
|
if (this.getRenderType(n) === "BehindDom") {
|
|
25395
|
-
|
|
25396
|
-
const
|
|
25397
|
-
|
|
25398
|
-
var
|
|
25399
|
-
if (
|
|
25400
|
-
const
|
|
25401
|
-
this.hooks.emit("click", { event:
|
|
25397
|
+
h.mode = "behind", h.container = document.createElement("div");
|
|
25398
|
+
const g = "black";
|
|
25399
|
+
h.container.style.backgroundColor = g, h.container.style.border = `3px solid ${g}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
25400
|
+
var v;
|
|
25401
|
+
if (u.css3DObject.opacityMesh) {
|
|
25402
|
+
const A = this.addObjectClickHandler(n, u.css3DObject.opacityMesh, (b) => {
|
|
25403
|
+
this.hooks.emit("click", { event: b, target: "TagContent", tag: n });
|
|
25402
25404
|
});
|
|
25403
|
-
(
|
|
25405
|
+
(v = this.store.css3DRenderDisposer.get(n.id)) == null || v.push(A);
|
|
25404
25406
|
}
|
|
25405
25407
|
});
|
|
25406
25408
|
}
|
|
25407
|
-
const
|
|
25408
|
-
if (!
|
|
25409
|
+
const u = this.css3DRenderPlugin.create3DDomContainer(l, h);
|
|
25410
|
+
if (!u)
|
|
25409
25411
|
return;
|
|
25410
|
-
this.store.css3DRenderDisposer.set(n.id, [
|
|
25411
|
-
const
|
|
25412
|
-
target:
|
|
25412
|
+
this.store.css3DRenderDisposer.set(n.id, [u.dispose]);
|
|
25413
|
+
const m = new pu({
|
|
25414
|
+
target: u.container,
|
|
25413
25415
|
props: {
|
|
25414
25416
|
tag: n,
|
|
25415
25417
|
hooks: this.hooks,
|
|
@@ -25420,15 +25422,15 @@ class YC extends JA {
|
|
|
25420
25422
|
}
|
|
25421
25423
|
});
|
|
25422
25424
|
n.tag3DContentSvelte = {
|
|
25423
|
-
svelteApp:
|
|
25424
|
-
domContainer:
|
|
25425
|
-
css3DInstance:
|
|
25426
|
-
initialNormal:
|
|
25427
|
-
currentNormal:
|
|
25425
|
+
svelteApp: m,
|
|
25426
|
+
domContainer: u,
|
|
25427
|
+
css3DInstance: u,
|
|
25428
|
+
initialNormal: c,
|
|
25429
|
+
currentNormal: c,
|
|
25428
25430
|
dispose: () => {
|
|
25429
|
-
|
|
25431
|
+
m.$destroy(), u.dispose();
|
|
25430
25432
|
}
|
|
25431
|
-
};
|
|
25433
|
+
}, pt(n) && ((a = n.model) != null && a.object) && this.updateTagCss3DObjectMatrix(n, n.model.object);
|
|
25432
25434
|
}
|
|
25433
25435
|
}), this.clearUnusedPanelTag();
|
|
25434
25436
|
}
|
|
@@ -25463,7 +25465,7 @@ class YC extends JA {
|
|
|
25463
25465
|
const o = (b = (A = (v = e.mergedConfig) == null ? void 0 : v.tag3DConfig) == null ? void 0 : A.ratio) != null ? b : 216e-5, s = (y = e.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
|
|
25464
25466
|
if (!s)
|
|
25465
25467
|
return;
|
|
25466
|
-
const r =
|
|
25468
|
+
const r = pt(e) ? e.data.mediaPosition : e.position;
|
|
25467
25469
|
n.updateWorldMatrix(!1, !1);
|
|
25468
25470
|
const a = n.matrixWorld, l = new $().fromArray(r[0]), c = new $().fromArray(r[2]), d = Dn(l, c).add(new $(0, 0, 5e-4)), h = new Qi().setPosition(d), u = new Qi().makeScale(o, o, o), m = new Qi().multiply(a).multiply(h).multiply(u);
|
|
25469
25471
|
m.decompose(s.position, s.quaternion, s.scale);
|
|
@@ -25546,7 +25548,7 @@ class ia extends YC {
|
|
|
25546
25548
|
f(this, "handleFiveInitAnimationEnded", () => {
|
|
25547
25549
|
const e = this.five.getCurrentState().mode;
|
|
25548
25550
|
this.tags.forEach((n) => {
|
|
25549
|
-
|
|
25551
|
+
pt(n) && e === "Panorama" && this.changeTagMode(n, "front"), n.state.visible = this.getVisible(n);
|
|
25550
25552
|
}), this.updateRenderAllTags();
|
|
25551
25553
|
});
|
|
25552
25554
|
/** 楼层切换时,需要更新标签可见性 */
|
|
@@ -25803,7 +25805,7 @@ class ia extends YC {
|
|
|
25803
25805
|
*/
|
|
25804
25806
|
handleFiveModeChange(e) {
|
|
25805
25807
|
this.setModelMedialVisible(), this.tags.forEach((n) => {
|
|
25806
|
-
|
|
25808
|
+
pt(n) && e !== "Panorama" && this.changeTagMode(n, "behind"), n.state.visible = this.getVisible(n);
|
|
25807
25809
|
}), this.updateRenderAllTags();
|
|
25808
25810
|
}
|
|
25809
25811
|
handleFiveWantsMoveToPano() {
|