@realsee/dnalogel 3.1.2 → 3.2.0-dev.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 +10 -10
- package/dist/index.js +90 -93
- package/dist/index.umd.js +16 -16
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
- package/docs/classes/CSS3DRender.html +773 -0
- package/docs/classes/CruisePluginController.html +672 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +491 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +792 -0
- package/docs/classes/Magnifier.html +480 -0
- package/docs/classes/ModelRoomLabelController.html +398 -0
- package/docs/classes/Object3DHelperController.html +640 -0
- package/docs/classes/PaintBrush.html +502 -0
- package/docs/classes/PanoMeasurePluginLine.html +522 -0
- package/docs/classes/PanoMeasurePluginModel.html +571 -0
- package/docs/classes/PanoMeasurePluginPoint.html +362 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
- package/docs/classes/PanoTagPluginController.html +1050 -0
- package/docs/classes/Util.BetterTween.html +416 -0
- package/docs/classes/Util.Interval.html +432 -0
- package/docs/classes/Util.LineSegments.html +384 -0
- package/docs/classes/Util.Magnifier.html +503 -0
- package/docs/classes/Util.Object3D.html +406 -0
- package/docs/classes/Util.PointDomHelper.html +407 -0
- package/docs/classes/Util.PointHelper.html +398 -0
- package/docs/classes/Util.PointSelectorHelper.html +454 -0
- package/docs/classes/Util.Rectangle.html +455 -0
- package/docs/enums/CameraMovementEffect.html +310 -0
- package/docs/enums/ContentType.html +446 -0
- package/docs/enums/DIRECTION.html +320 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/DimensionType.html +310 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
- package/docs/enums/PaintBrushTypeEnum.html +313 -0
- package/docs/enums/PointType.html +310 -0
- package/docs/enums/Rotation.html +317 -0
- package/docs/functions/AreaMakerPlugin.html +290 -0
- package/docs/functions/CSS3DRenderPlugin.html +288 -0
- package/docs/functions/CameraMovementPlugin.html +293 -0
- package/docs/functions/CruisePlugin.html +290 -0
- package/docs/functions/CurrentPanoImagePlugin.html +290 -0
- package/docs/functions/GuideLinePlugin.html +290 -0
- package/docs/functions/ItemLabelPlugin.html +290 -0
- package/docs/functions/MapviewFloorplanPlugin.html +290 -0
- package/docs/functions/ModelChassisCompassPlugin.html +293 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
- package/docs/functions/ModelFloorplanPlugin.html +290 -0
- package/docs/functions/ModelItemLabelPlugin.html +290 -0
- package/docs/functions/ModelRoomLabelPlugin.html +288 -0
- package/docs/functions/ModelTVVideoPlugin.html +290 -0
- package/docs/functions/ModelViewPlugin.html +293 -0
- package/docs/functions/Object3DHelperPlugin.html +288 -0
- package/docs/functions/PanoCompassPlugin.html +290 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
- package/docs/functions/PanoDoorLabelPlugin.html +290 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
- package/docs/functions/PanoMeasurePlugin.html +290 -0
- package/docs/functions/PanoRulerPlugin.html +293 -0
- package/docs/functions/PanoRulerProPlugin.html +293 -0
- package/docs/functions/PanoSpatialTagPlugin.html +293 -0
- package/docs/functions/PanoTagPlugin.html +295 -0
- package/docs/functions/PanoVideoPlugin.html +299 -0
- package/docs/functions/PipelinePlugin.html +288 -0
- package/docs/functions/TopviewFloorplanPlugin.html +290 -0
- package/docs/functions/Util.absoluteUrl.html +326 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
- package/docs/functions/Util.equal.html +338 -0
- package/docs/functions/Util.getCoordsFromClient.html +328 -0
- package/docs/functions/Util.getCoordsFromElement.html +328 -0
- package/docs/functions/Util.getFrameTime.html +320 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
- package/docs/functions/Util.isAbsoluteURL.html +321 -0
- package/docs/functions/Util.isModelLike.html +321 -0
- package/docs/functions/Util.isNil.html +329 -0
- package/docs/functions/Util.isPanoramaLike.html +321 -0
- package/docs/functions/Util.nextFrame.html +334 -0
- package/docs/functions/Util.notNil.html +329 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
- package/docs/functions/Util.tweenProgress.html +323 -0
- package/docs/functions/Util.uuid.html +319 -0
- package/docs/functions/pluginFlag.html +288 -0
- package/docs/index.html +354 -0
- package/docs/interfaces/AddTagConfig.html +303 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
- package/docs/interfaces/EventMap.html +542 -0
- package/docs/interfaces/FloorplanBounding.html +332 -0
- package/docs/interfaces/FloorplanData.html +335 -0
- package/docs/interfaces/FloorplanEntrance.html +360 -0
- package/docs/interfaces/FloorplanExtraObject.html +350 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
- package/docs/interfaces/FloorplanFloorData.html +328 -0
- package/docs/interfaces/FloorplanImagePosition.html +314 -0
- package/docs/interfaces/FloorplanObserver.html +332 -0
- package/docs/interfaces/FloorplanOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanPosition.html +314 -0
- package/docs/interfaces/FloorplanRoomItem.html +379 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
- package/docs/interfaces/FloorplanServerBounding.html +332 -0
- package/docs/interfaces/FloorplanServerComputedData.html +331 -0
- package/docs/interfaces/FloorplanServerData.html +314 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
- package/docs/interfaces/FloorplanServerEntrance.html +360 -0
- package/docs/interfaces/FloorplanServerFloorData.html +328 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
- package/docs/interfaces/FloorplanServerObserver.html +332 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
- package/docs/interfaces/FloorplanServerPosition.html +314 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +361 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +525 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +356 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +347 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +414 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +346 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +471 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +343 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +471 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +308 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +329 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +354 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +370 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +352 -0
- package/docs/interfaces/HelperOffset.html +332 -0
- package/docs/interfaces/ImagePlaneGroup.html +306 -0
- package/docs/interfaces/ItemLabelPluginData.html +303 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
- package/docs/interfaces/MinMax.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
- package/docs/interfaces/ModelViewPluginExportType.html +416 -0
- package/docs/interfaces/Object3DHelperState.html +317 -0
- package/docs/interfaces/ObjectHelperControllers.html +324 -0
- package/docs/interfaces/PaintBrushAction.html +363 -0
- package/docs/interfaces/PaintBrushConfigs.html +361 -0
- package/docs/interfaces/PaintBrushState.html +345 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
- package/docs/interfaces/PanoMeasureParameterType.html +449 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
- package/docs/interfaces/PanoRulerProPluginState.html +317 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
- package/docs/interfaces/Point.html +317 -0
- package/docs/interfaces/Room.html +324 -0
- package/docs/interfaces/RoomInfo.html +310 -0
- package/docs/interfaces/RoomLabel.html +386 -0
- package/docs/interfaces/RoomRules.html +285 -0
- package/docs/interfaces/Rooms.html +285 -0
- package/docs/interfaces/Scissor.html +344 -0
- package/docs/interfaces/State.html +331 -0
- package/docs/interfaces/TagCacheInterface.html +362 -0
- package/docs/interfaces/TagConfig.html +565 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
- package/docs/interfaces/TagIconUrl.html +363 -0
- package/docs/interfaces/TagObjectGroup.html +306 -0
- package/docs/interfaces/TagStyle.html +316 -0
- package/docs/interfaces/Tags.html +2688 -0
- package/docs/interfaces/TemporaryState.html +303 -0
- package/docs/interfaces/Util.MagnifierParameter.html +391 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
- package/docs/interfaces/Util.PointIntersection.html +365 -0
- package/docs/modules/AreaMakerPluginType.html +323 -0
- package/docs/modules/CruisePluginTypes.html +328 -0
- package/docs/modules/CurrentPanoImagePluginType.html +297 -0
- package/docs/modules/GuideLineItem.html +289 -0
- package/docs/modules/GuideLineModeItem.html +294 -0
- package/docs/modules/GuideLinePluginType.html +348 -0
- package/docs/modules/PanoVideoPluginType.html +301 -0
- package/docs/modules/Util.html +351 -0
- package/docs/modules.html +540 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
- package/docs/types/ArrayPosition.html +279 -0
- package/docs/types/AudioAppearance.html +279 -0
- package/docs/types/AudioTagTypeConfigKey.html +279 -0
- package/docs/types/CSS3DRenderExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginExportType.html +279 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
- package/docs/types/ClassFunctionParameters.html +286 -0
- package/docs/types/Color.html +279 -0
- package/docs/types/ContentTypeConfigKey.html +279 -0
- package/docs/types/ContentTypeConfigKeySplit.html +279 -0
- package/docs/types/ContentTypeMap.html +279 -0
- package/docs/types/Create3DDomContainerReturnType.html +279 -0
- package/docs/types/Create3DElementReturnType.html +279 -0
- package/docs/types/CruisePluginExportType.html +279 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
- package/docs/types/DeprecatedTagProperty.html +294 -0
- package/docs/types/Direction-1.html +279 -0
- package/docs/types/Direction4.html +279 -0
- package/docs/types/ElementRenderer.html +303 -0
- package/docs/types/FloorplanRuleLabels.html +282 -0
- package/docs/types/FloorplanServerRuleLabels.html +279 -0
- package/docs/types/GuideLinePluginExportType.html +279 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +351 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +372 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +305 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +308 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +308 -0
- package/docs/types/GuideLinePluginType.PathItem.html +308 -0
- package/docs/types/GuideLinePluginType.PluginData.html +317 -0
- package/docs/types/HelperEventMap.html +517 -0
- package/docs/types/LoadTagConfig.html +279 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/MediaData.html +295 -0
- package/docs/types/MediaStore.html +284 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
- package/docs/types/ModelId.html +279 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
- package/docs/types/MoveArgs.html +289 -0
- package/docs/types/MoveOpts.html +287 -0
- package/docs/types/Object3DHelperEventMap.html +372 -0
- package/docs/types/ObjectFit.html +279 -0
- package/docs/types/PaintBrushEventMap.html +310 -0
- package/docs/types/PanoCompassPluginData.html +279 -0
- package/docs/types/PanoCompassPluginExportType.html +279 -0
- package/docs/types/PanoCompassPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
- package/docs/types/PanoIndex.html +279 -0
- package/docs/types/PanoMeasurePluginEvent.html +279 -0
- package/docs/types/PanoMeasureReturnType.html +279 -0
- package/docs/types/PanoSpatialTagPluginId.html +279 -0
- package/docs/types/PanoTagPluginExportInterface.html +279 -0
- package/docs/types/PanoTagPluginParamsInterface.html +279 -0
- package/docs/types/PanoVideoPluginParameterType.html +279 -0
- package/docs/types/PanoVideoPluginReturnType.html +279 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
- package/docs/types/PipelinePluginParameterType.html +279 -0
- package/docs/types/PipelinePluginReturnType.html +279 -0
- package/docs/types/PlaneTag.html +287 -0
- package/docs/types/Point2DTag.html +287 -0
- package/docs/types/Point3DTag.html +287 -0
- package/docs/types/PointTag.html +284 -0
- package/docs/types/PointTagInstance.html +284 -0
- package/docs/types/Position.html +279 -0
- package/docs/types/RotateArgs.html +291 -0
- package/docs/types/RotateOpts.html +287 -0
- package/docs/types/RuleLabelsKey.html +279 -0
- package/docs/types/RuleLabelsValue.html +279 -0
- package/docs/types/StickType.html +279 -0
- package/docs/types/Tag.html +345 -0
- package/docs/types/Tag2D.html +287 -0
- package/docs/types/Tag3D.html +287 -0
- package/docs/types/TagConfigByKey.html +284 -0
- package/docs/types/TagContentType.html +279 -0
- package/docs/types/TagDimensionType.html +281 -0
- package/docs/types/TagElement.html +289 -0
- package/docs/types/TagEvents.html +332 -0
- package/docs/types/TagGLTFObject.html +302 -0
- package/docs/types/TagHooks.html +279 -0
- package/docs/types/TagId.html +279 -0
- package/docs/types/TagInstance.html +353 -0
- package/docs/types/TagPointType.html +282 -0
- package/docs/types/TagRendererMap.html +284 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
- package/docs/types/WorkCode.html +279 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
- package/docs/variables/PLUGIN.html +279 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
- package/docs/variables/ROOM_TYPE_MAP.html +289 -0
- package/docs/variables/defaultGlobalConfig.html +279 -0
- package/docs/variables/itemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
- package/libs/PanoTagPlugin/controller/TagComputer.js +73 -77
- package/libs/PanoTagPlugin/controller/TagRender.js +81 -82
- package/libs/PanoTagPlugin/controller/index.js +32 -30
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var w = Object.defineProperty, E = Object.defineProperties;
|
|
2
|
+
var $ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var k = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var M = (
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (m, e, i) => e in m ? w(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, y = (m, e) => {
|
|
6
6
|
for (var i in e || (e = {}))
|
|
7
|
-
|
|
7
|
+
L.call(e, i) && M(m, i, e[i]);
|
|
8
8
|
if (k)
|
|
9
9
|
for (var i of k(e))
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
}, D = (
|
|
13
|
-
import * as
|
|
14
|
-
import { is3DTag as
|
|
10
|
+
O.call(e, i) && M(m, i, e[i]);
|
|
11
|
+
return m;
|
|
12
|
+
}, D = (m, e) => E(m, $(e));
|
|
13
|
+
import * as U from "three";
|
|
14
|
+
import { is3DTag as z, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
|
|
15
15
|
import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
|
|
16
|
-
import { checkRange as
|
|
17
|
-
import { isPanoramaLike as
|
|
16
|
+
import { checkRange as b } from "../utils/checkRange.js";
|
|
17
|
+
import { isPanoramaLike as h, isModelLike as H } from "../../shared-utils/five/mode.js";
|
|
18
18
|
import "hammerjs";
|
|
19
19
|
import "@realsee/five";
|
|
20
20
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
@@ -23,7 +23,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
23
23
|
import { notNil as N } from "../../shared-utils/isNil.js";
|
|
24
24
|
import { TagUtil as q } from "./TagUtil.js";
|
|
25
25
|
import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
|
|
26
|
-
import { safeObj as
|
|
26
|
+
import { safeObj as j } from "../../shared-utils/safeObj.js";
|
|
27
27
|
import { toArray as X } from "../../shared-utils/util.js";
|
|
28
28
|
import "../../shared-utils/three/centerPoint.js";
|
|
29
29
|
import "../../shared-utils/positionToVector3.js";
|
|
@@ -63,7 +63,7 @@ import "../../shared-utils/five/calculateThreeMouse.js";
|
|
|
63
63
|
import "../utils/tag/adaptConfig.js";
|
|
64
64
|
import "../../shared-utils/typescript/entries.js";
|
|
65
65
|
import "../../shared-utils/url/getUrl.js";
|
|
66
|
-
const T = new
|
|
66
|
+
const T = new U.Raycaster();
|
|
67
67
|
class Je extends q {
|
|
68
68
|
constructor(e) {
|
|
69
69
|
super(e);
|
|
@@ -72,12 +72,12 @@ class Je extends q {
|
|
|
72
72
|
* @description: 获取是否可见
|
|
73
73
|
*/
|
|
74
74
|
getVisible(e, i) {
|
|
75
|
-
const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l,
|
|
76
|
-
if ((
|
|
77
|
-
return
|
|
75
|
+
const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, f = h(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
76
|
+
if ((f == null ? void 0 : f.visible) !== void 0)
|
|
77
|
+
return f.visible;
|
|
78
78
|
{
|
|
79
|
-
const s = [],
|
|
80
|
-
var r,
|
|
79
|
+
const s = [], d = (() => {
|
|
80
|
+
var r, c, u;
|
|
81
81
|
const o = (r = e.config.visibleConfig) != null ? r : {};
|
|
82
82
|
if (typeof o == "function")
|
|
83
83
|
return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
|
|
@@ -88,7 +88,7 @@ class Je extends q {
|
|
|
88
88
|
if (o.visibleFiveMode !== void 0) {
|
|
89
89
|
const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
|
|
90
90
|
let v = !1;
|
|
91
|
-
if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !
|
|
91
|
+
if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !h(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
|
|
92
92
|
return {
|
|
93
93
|
value: !1,
|
|
94
94
|
checkedList: s,
|
|
@@ -99,33 +99,33 @@ class Je extends q {
|
|
|
99
99
|
}
|
|
100
100
|
if (o.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
|
|
101
101
|
return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
|
|
102
|
-
if (
|
|
102
|
+
if (h(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
|
|
103
103
|
if (s.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
|
|
104
104
|
return {
|
|
105
105
|
value: !1,
|
|
106
106
|
checkedList: s,
|
|
107
107
|
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
|
|
108
108
|
};
|
|
109
|
-
if (o.visiblePanoIndex === "current" && t !== ((
|
|
109
|
+
if (o.visiblePanoIndex === "current" && t !== ((c = e.fiveState) == null ? void 0 : c.panoIndex))
|
|
110
110
|
return {
|
|
111
111
|
value: !1,
|
|
112
112
|
checkedList: s,
|
|
113
113
|
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
116
|
+
if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
|
|
117
117
|
const a = this.getDistance(e);
|
|
118
|
-
if (
|
|
118
|
+
if (b(a, o.visibleDistance) === !1)
|
|
119
119
|
return {
|
|
120
120
|
value: !1,
|
|
121
121
|
checkedList: s,
|
|
122
122
|
reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
if (
|
|
125
|
+
if (h(n) && o.angleRange && z(e)) {
|
|
126
126
|
s.push("angleRange");
|
|
127
127
|
const a = this.getAngle(e);
|
|
128
|
-
if (
|
|
128
|
+
if (b(a, o.angleRange) === !1)
|
|
129
129
|
return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
|
|
130
130
|
}
|
|
131
131
|
if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
|
|
@@ -145,7 +145,7 @@ class Je extends q {
|
|
|
145
145
|
reason: "all check passed"
|
|
146
146
|
};
|
|
147
147
|
})();
|
|
148
|
-
return
|
|
148
|
+
return f && (f.visible = d.value, f.__debug_visible_reason__ = d), d.value;
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
@@ -161,17 +161,17 @@ class Je extends q {
|
|
|
161
161
|
const n = this.getTagConfig(e).unfoldedConfig;
|
|
162
162
|
if (!n)
|
|
163
163
|
return;
|
|
164
|
-
const
|
|
164
|
+
const f = (() => {
|
|
165
165
|
if (typeof n == "function")
|
|
166
166
|
return n(this.five, { tag: e, distance: this.getDistance(e) });
|
|
167
167
|
if (n.keep === "folded")
|
|
168
168
|
return !1;
|
|
169
169
|
if (n.keep === "unfolded")
|
|
170
170
|
return !0;
|
|
171
|
-
if (n.unfoldDistance &&
|
|
171
|
+
if (n.unfoldDistance && b(this.getDistance(e), n.unfoldDistance) === !1)
|
|
172
172
|
return !1;
|
|
173
173
|
})();
|
|
174
|
-
t.unfolded =
|
|
174
|
+
t.unfolded = f;
|
|
175
175
|
const s = this.getUnfoldedByCamera(e);
|
|
176
176
|
return s !== void 0 ? s : t.unfolded;
|
|
177
177
|
}
|
|
@@ -193,25 +193,25 @@ class Je extends q {
|
|
|
193
193
|
if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
|
|
194
194
|
return;
|
|
195
195
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
196
|
-
const
|
|
197
|
-
if (
|
|
196
|
+
const f = this.getTagProject(e);
|
|
197
|
+
if (f && b(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
198
198
|
return !1;
|
|
199
199
|
}
|
|
200
200
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
201
|
-
const
|
|
202
|
-
const
|
|
203
|
-
if (!
|
|
201
|
+
const d = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
|
|
202
|
+
const c = this.getTagProject(r);
|
|
203
|
+
if (!c)
|
|
204
204
|
return !1;
|
|
205
|
-
const { x: u, y: a, z: v } =
|
|
205
|
+
const { x: u, y: a, z: v } = c;
|
|
206
206
|
return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
|
|
207
|
-
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig:
|
|
207
|
+
}).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
|
|
208
208
|
var u, a;
|
|
209
|
-
return !(typeof
|
|
210
|
-
}).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig:
|
|
211
|
-
const u =
|
|
212
|
-
return !(u &&
|
|
213
|
-
}).sort((r,
|
|
214
|
-
if (
|
|
209
|
+
return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((u = c.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
|
|
210
|
+
}).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
|
|
211
|
+
const u = c.autoUnfold.distance;
|
|
212
|
+
return !(u && b(r, u) === !1);
|
|
213
|
+
}).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
|
|
214
|
+
if (d === -1 || d <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
|
|
215
215
|
return !1;
|
|
216
216
|
}
|
|
217
217
|
return !0;
|
|
@@ -233,21 +233,17 @@ class Je extends q {
|
|
|
233
233
|
setPointTagPosition() {
|
|
234
234
|
const e = this.filterPointTag;
|
|
235
235
|
e.length !== 0 && e.forEach((i) => {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
236
|
+
var f;
|
|
237
|
+
const l = this.getCurrentVisibleState(i), t = (f = i.__Object__) != null ? f : {
|
|
238
|
+
timeoutId: void 0,
|
|
239
|
+
inAnimation: !0
|
|
240
|
+
};
|
|
241
|
+
if (i.__Object__ = t, !l && i.screenPosition ? (t.inAnimation = !0, t.timeoutId = setTimeout(() => {
|
|
242
|
+
this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
|
|
243
|
+
}, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
|
|
242
244
|
return;
|
|
243
|
-
}
|
|
244
|
-
clearTimeout(t);
|
|
245
245
|
const n = this.getTagProject(i);
|
|
246
|
-
|
|
247
|
-
i.screenPosition = null;
|
|
248
|
-
return;
|
|
249
|
-
}
|
|
250
|
-
i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
|
|
246
|
+
n ? i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : i.screenPosition = null;
|
|
251
247
|
});
|
|
252
248
|
}
|
|
253
249
|
setVisible(e) {
|
|
@@ -278,36 +274,36 @@ class Je extends q {
|
|
|
278
274
|
}
|
|
279
275
|
/** 通过射线检测标签可用性 */
|
|
280
276
|
getTagEnableByIntersect(e, i) {
|
|
281
|
-
var o, r,
|
|
282
|
-
const l =
|
|
277
|
+
var o, r, c, u, a, v;
|
|
278
|
+
const l = j(j((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = h(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
|
|
283
279
|
if (n === void 0)
|
|
284
280
|
return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
|
|
285
|
-
const
|
|
281
|
+
const f = X(
|
|
286
282
|
(() => {
|
|
287
283
|
var g;
|
|
288
|
-
const
|
|
289
|
-
return
|
|
284
|
+
const p = (g = l.checkPoints) != null ? g : "center";
|
|
285
|
+
return p === "center" ? I(e) : p === "corner" ? Z(e) : Array.isArray(p) ? p : [];
|
|
290
286
|
})()
|
|
291
287
|
);
|
|
292
|
-
let s = 0,
|
|
293
|
-
for (const
|
|
294
|
-
const g = new
|
|
288
|
+
let s = 0, d = 0;
|
|
289
|
+
for (const p of f) {
|
|
290
|
+
const g = new U.Vector3().subVectors(p, n).normalize();
|
|
295
291
|
T.set(n, g);
|
|
296
|
-
const
|
|
292
|
+
const _ = n.distanceTo(p), [P] = this.five.model.intersectRaycaster(T), x = (() => {
|
|
297
293
|
if (!R(e))
|
|
298
294
|
return;
|
|
299
|
-
const
|
|
295
|
+
const S = this.tags.filter(R).map((B) => {
|
|
300
296
|
var C;
|
|
301
|
-
return (C =
|
|
302
|
-
}).filter(N), [
|
|
303
|
-
return
|
|
304
|
-
})(),
|
|
305
|
-
Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) +
|
|
306
|
-
const
|
|
307
|
-
if (s >=
|
|
297
|
+
return (C = B.model) == null ? void 0 : C.object;
|
|
298
|
+
}).filter(N), [V] = T.intersectObjects(S, !0);
|
|
299
|
+
return V;
|
|
300
|
+
})(), F = (c = l.distanceAccuracy) != null ? c : 0.01;
|
|
301
|
+
Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + F >= _ ? s++ : d++;
|
|
302
|
+
const A = (v = l.needPassed) != null ? v : 1;
|
|
303
|
+
if (s >= A)
|
|
308
304
|
return { value: !0 };
|
|
309
305
|
}
|
|
310
|
-
return
|
|
306
|
+
return d === 0 ? { value: !0 } : {
|
|
311
307
|
value: !1,
|
|
312
308
|
reason: {
|
|
313
309
|
type: "intersectRaycaster check failed",
|
|
@@ -318,12 +314,12 @@ class Je extends q {
|
|
|
318
314
|
}
|
|
319
315
|
/** 检测是否匹配当前楼层 */
|
|
320
316
|
getVisibleByFloorIndex(e) {
|
|
321
|
-
var n,
|
|
317
|
+
var n, f, s, d, o, r, c;
|
|
322
318
|
let i = 0;
|
|
323
319
|
const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
|
|
324
|
-
l !== void 0 ? i = (
|
|
320
|
+
l !== void 0 ? i = (f = this.five.work.observers[l]) == null ? void 0 : f.floorIndex : i = W(
|
|
325
321
|
this.five.work.observers,
|
|
326
|
-
(
|
|
322
|
+
(c = (r = (d = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : d.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : I(e)
|
|
327
323
|
);
|
|
328
324
|
const t = this.five.model.shownFloor;
|
|
329
325
|
return t === null || t === i;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var t in
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var R = Object.getOwnPropertySymbols;
|
|
3
|
+
var V = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var S = (c, l, t) => l in c ? E(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t, j = (c, l) => {
|
|
5
|
+
for (var t in l || (l = {}))
|
|
6
|
+
V.call(l, t) && S(c, t, l[t]);
|
|
7
|
+
if (R)
|
|
8
|
+
for (var t of R(l))
|
|
9
|
+
A.call(l, t) && S(c, t, l[t]);
|
|
10
|
+
return c;
|
|
11
11
|
};
|
|
12
|
-
var P = (
|
|
13
|
-
var
|
|
12
|
+
var P = (c, l, t) => (S(c, typeof l != "symbol" ? l + "" : l, t), t);
|
|
13
|
+
var C = (c, l, t) => new Promise((e, o) => {
|
|
14
14
|
var i = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(r));
|
|
@@ -24,18 +24,18 @@ var M = (d, p, t) => new Promise((e, o) => {
|
|
|
24
24
|
o(n);
|
|
25
25
|
}
|
|
26
26
|
}, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
|
|
27
|
-
a((t = t.apply(
|
|
27
|
+
a((t = t.apply(c, l)).next());
|
|
28
28
|
});
|
|
29
|
-
import { TagComputer as
|
|
30
|
-
import { Group as
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import { CSS3DRenderPlugin as
|
|
34
|
-
import { loadGLTF as
|
|
35
|
-
import { isMediaModelTag as
|
|
36
|
-
import { VideoPlane as
|
|
37
|
-
import { centerPoint as
|
|
38
|
-
import { arrayPositionToVector3 as
|
|
29
|
+
import { TagComputer as x } from "./TagComputer.js";
|
|
30
|
+
import { Group as y, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
|
|
31
|
+
import I from "../Components/TagContainer.js";
|
|
32
|
+
import G from "../Components/Tag/index.js";
|
|
33
|
+
import { CSS3DRenderPlugin as F } from "../../CSS3DRenderPlugin/index.js";
|
|
34
|
+
import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
|
|
35
|
+
import { isMediaModelTag as D, isStickModelTag as W } from "../utils/tag/tagCheck.js";
|
|
36
|
+
import { VideoPlane as w, ImagePlane as k } from "../utils/model/mediaPlane.js";
|
|
37
|
+
import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
|
|
38
|
+
import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
|
|
39
39
|
import "../utils/tagPosition.js";
|
|
40
40
|
import "../utils/checkRange.js";
|
|
41
41
|
import "../../shared-utils/five/mode.js";
|
|
@@ -157,14 +157,14 @@ import "../Components/Tag/CustomTag.js";
|
|
|
157
157
|
import "../../CSS3DRenderPlugin/Controller.js";
|
|
158
158
|
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
159
159
|
import "@realsee/five/gltf-loader";
|
|
160
|
-
const
|
|
161
|
-
class
|
|
160
|
+
const q = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
|
|
161
|
+
class hi extends x {
|
|
162
162
|
constructor(t) {
|
|
163
163
|
super(t);
|
|
164
|
-
P(this, "group", new
|
|
164
|
+
P(this, "group", new y());
|
|
165
165
|
P(this, "renderMap", /* @__PURE__ */ new Map());
|
|
166
|
-
P(this, "imagePlaneGroup", new
|
|
167
|
-
P(this, "gltfObjectGroup", new
|
|
166
|
+
P(this, "imagePlaneGroup", new y());
|
|
167
|
+
P(this, "gltfObjectGroup", new y());
|
|
168
168
|
/** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
|
|
169
169
|
P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
|
|
170
170
|
/** 临时状态 */
|
|
@@ -172,23 +172,23 @@ class ui extends O {
|
|
|
172
172
|
/** 点标签 */
|
|
173
173
|
P(this, "TagContainerSvelte");
|
|
174
174
|
/** 加载外部模型 */
|
|
175
|
-
P(this, "loadModel", (t) =>
|
|
175
|
+
P(this, "loadModel", (t) => C(this, null, function* () {
|
|
176
176
|
var a;
|
|
177
177
|
const e = t.data.modelUrl;
|
|
178
178
|
if (!e)
|
|
179
179
|
return;
|
|
180
180
|
t.loading = !0;
|
|
181
|
-
const o =
|
|
182
|
-
var m,
|
|
181
|
+
const o = L(e).then((r) => {
|
|
182
|
+
var m, h;
|
|
183
183
|
const n = Object.assign(r.scene, {
|
|
184
184
|
customID: t.id,
|
|
185
185
|
isTagModel: !0,
|
|
186
186
|
removeEventListener: t.config.clickable === !1 ? () => {
|
|
187
|
-
} : this.addObjectClickHandler(t, r.scene, (
|
|
188
|
-
this.hooks.emit("click", { target: "TagModel", tag: t, event:
|
|
187
|
+
} : this.addObjectClickHandler(t, r.scene, (u) => {
|
|
188
|
+
this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
|
|
189
189
|
})
|
|
190
190
|
});
|
|
191
|
-
return n.visible = this.getCurrentVisibleState(t), new
|
|
191
|
+
return n.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (h = (m = t.config) == null ? void 0 : m.modelConfig) != null && h.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
|
|
192
192
|
});
|
|
193
193
|
t.model = { promise: o };
|
|
194
194
|
const i = yield o;
|
|
@@ -196,13 +196,13 @@ class ui extends O {
|
|
|
196
196
|
return;
|
|
197
197
|
t.model.object = i;
|
|
198
198
|
const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
|
|
199
|
-
if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(),
|
|
199
|
+
if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
|
|
200
200
|
if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
|
|
201
|
-
const r = t.data.mediaPosition.map(
|
|
202
|
-
t.mediaPlane = new
|
|
201
|
+
const r = t.data.mediaPosition.map(g);
|
|
202
|
+
t.mediaPlane = new k(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
|
|
203
203
|
objectFit: t.data.objectFit
|
|
204
204
|
});
|
|
205
|
-
const n = new
|
|
205
|
+
const n = new v().addVectors(r[0], r[2]).divideScalar(2);
|
|
206
206
|
t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
|
|
207
207
|
}
|
|
208
208
|
this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
|
|
@@ -239,30 +239,30 @@ class ui extends O {
|
|
|
239
239
|
var o, i;
|
|
240
240
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
|
|
241
241
|
}).forEach((e) => {
|
|
242
|
-
var m,
|
|
242
|
+
var m, h, u;
|
|
243
243
|
const o = e.data.mediaData[0];
|
|
244
244
|
if (!o)
|
|
245
245
|
return;
|
|
246
246
|
const { url: i } = o;
|
|
247
247
|
if (!i)
|
|
248
248
|
return;
|
|
249
|
-
e.mediaPlane && !((
|
|
250
|
-
const s = e.position.map(
|
|
251
|
-
if ((r ||
|
|
252
|
-
const
|
|
249
|
+
e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof w && e.mediaPlane.pause();
|
|
250
|
+
const s = e.position.map(g), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), p = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
|
|
251
|
+
if ((r || p) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), n || p) {
|
|
252
|
+
const d = new w(i, s, {
|
|
253
253
|
videoCoverSrc: o.videoCoverUrl,
|
|
254
254
|
playButton: e.data.playIcon,
|
|
255
|
-
paused: !((
|
|
255
|
+
paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
|
|
256
256
|
objectFit: e.data.objectFit,
|
|
257
|
-
videoTextureMap:
|
|
258
|
-
ImageTextureMap:
|
|
257
|
+
videoTextureMap: q,
|
|
258
|
+
ImageTextureMap: B,
|
|
259
259
|
domEvents: this.domEvents
|
|
260
260
|
});
|
|
261
|
-
|
|
262
|
-
|
|
261
|
+
d.onVideoReady = (f) => {
|
|
262
|
+
f.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
|
|
263
263
|
};
|
|
264
|
-
const
|
|
265
|
-
|
|
264
|
+
const b = (f) => (this.five.on("renderFrame", f), () => this.five.off("renderFrame", f));
|
|
265
|
+
d.initialRenderHooks(b), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
|
|
266
266
|
}
|
|
267
267
|
});
|
|
268
268
|
}
|
|
@@ -274,13 +274,12 @@ class ui extends O {
|
|
|
274
274
|
var o, i;
|
|
275
275
|
return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
|
|
276
276
|
}).forEach((e) => {
|
|
277
|
-
var l, m;
|
|
278
277
|
const { url: o } = e.data.mediaData[0];
|
|
279
278
|
if (!o)
|
|
280
279
|
return;
|
|
281
|
-
const i = e.position.map(
|
|
282
|
-
(a || n) &&
|
|
283
|
-
this.hooks.emit("click", { tag: e, target: "TagContent", event:
|
|
280
|
+
const i = e.position.map(g), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
|
|
281
|
+
(a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new k(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
|
|
282
|
+
this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
|
|
284
283
|
}), this.imagePlaneGroup.add(e.mediaPlane));
|
|
285
284
|
});
|
|
286
285
|
}
|
|
@@ -291,16 +290,16 @@ class ui extends O {
|
|
|
291
290
|
this.filterCSS3DTag.forEach((e) => {
|
|
292
291
|
var o, i, s;
|
|
293
292
|
if (e.tag3DContentSvelte) {
|
|
294
|
-
const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal:
|
|
295
|
-
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(
|
|
296
|
-
const m = new
|
|
293
|
+
const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: p } = e.tag3DContentSvelte;
|
|
294
|
+
if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(p)) {
|
|
295
|
+
const m = new O().setFromUnitVectors(n, p);
|
|
297
296
|
r.css3DObject.setRotationFromQuaternion(m);
|
|
298
297
|
}
|
|
299
298
|
return;
|
|
300
299
|
} else {
|
|
301
|
-
if (
|
|
300
|
+
if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
|
|
302
301
|
return;
|
|
303
|
-
if (this.css3DRenderPlugin || (this.css3DRenderPlugin =
|
|
302
|
+
if (this.css3DRenderPlugin || (this.css3DRenderPlugin = F(this.five)), e.stickType === "3DPoint" && !e.normal)
|
|
304
303
|
return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
|
|
305
304
|
const a = this.getPositions(e);
|
|
306
305
|
if (!a)
|
|
@@ -308,25 +307,25 @@ class ui extends O {
|
|
|
308
307
|
const r = this.getTagNormal(e);
|
|
309
308
|
if (!r)
|
|
310
309
|
return;
|
|
311
|
-
const n = this.getTagConfig(e),
|
|
312
|
-
if (this.getRenderType(e) === "BehindDom" ||
|
|
313
|
-
|
|
314
|
-
const
|
|
315
|
-
|
|
316
|
-
var
|
|
310
|
+
const n = this.getTagConfig(e), p = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
|
|
311
|
+
if (this.getRenderType(e) === "BehindDom" || p.mode === "behind") {
|
|
312
|
+
p.mode = "behind", p.container = document.createElement("div");
|
|
313
|
+
const u = "black";
|
|
314
|
+
p.container.style.backgroundColor = u, p.container.style.border = `3px solid ${u}`, this.css3DRenderPlugin.hooks.on("render", () => {
|
|
315
|
+
var d;
|
|
317
316
|
if (m.css3DObject.opacityMesh && n.clickable !== !1) {
|
|
318
317
|
const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
|
|
319
318
|
this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
|
|
320
319
|
});
|
|
321
|
-
(
|
|
320
|
+
(d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(b);
|
|
322
321
|
}
|
|
323
322
|
});
|
|
324
323
|
}
|
|
325
|
-
const m = this.css3DRenderPlugin.create3DDomContainer(a,
|
|
324
|
+
const m = this.css3DRenderPlugin.create3DDomContainer(a, p);
|
|
326
325
|
if (!m)
|
|
327
326
|
return;
|
|
328
327
|
this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
|
|
329
|
-
const
|
|
328
|
+
const h = new G({
|
|
330
329
|
target: m.container,
|
|
331
330
|
props: {
|
|
332
331
|
tag: e,
|
|
@@ -338,15 +337,15 @@ class ui extends O {
|
|
|
338
337
|
}
|
|
339
338
|
});
|
|
340
339
|
e.tag3DContentSvelte = {
|
|
341
|
-
svelteApp:
|
|
340
|
+
svelteApp: h,
|
|
342
341
|
domContainer: m,
|
|
343
342
|
css3DInstance: m,
|
|
344
343
|
initialNormal: r,
|
|
345
344
|
currentNormal: r,
|
|
346
345
|
dispose: () => {
|
|
347
|
-
|
|
346
|
+
h.$destroy(), m.dispose();
|
|
348
347
|
}
|
|
349
|
-
},
|
|
348
|
+
}, D(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
|
|
350
349
|
}
|
|
351
350
|
}), this.clearUnusedPanelTag();
|
|
352
351
|
}
|
|
@@ -377,23 +376,23 @@ class ui extends O {
|
|
|
377
376
|
* @param model 模型
|
|
378
377
|
*/
|
|
379
378
|
updateTagCss3DObjectMatrix(t, e) {
|
|
380
|
-
var b, f,
|
|
381
|
-
const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (
|
|
379
|
+
var b, f, M;
|
|
380
|
+
const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
|
|
382
381
|
if (!i)
|
|
383
382
|
return;
|
|
384
|
-
const s =
|
|
383
|
+
const s = D(t) ? t.data.mediaPosition : t.position;
|
|
385
384
|
if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
|
|
386
385
|
return;
|
|
387
386
|
e.updateWorldMatrix(!1, !1);
|
|
388
|
-
const a = e.matrixWorld, r = new
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
|
|
387
|
+
const a = e.matrixWorld, r = new v().fromArray(s[0]), n = new v().fromArray(s[2]), p = $(r, n).add(new v(0, 0, 5e-4)), m = new T().setPosition(p), h = new T().makeScale(o, o, o), u = new T().multiply(a).multiply(m).multiply(h);
|
|
388
|
+
u.decompose(i.position, i.quaternion, i.scale);
|
|
389
|
+
const d = i.opacityMesh;
|
|
390
|
+
d && u.decompose(d.position, d.quaternion, d.scale);
|
|
392
391
|
}
|
|
393
392
|
/** 添加模型标签 */
|
|
394
393
|
addMediaModelTag(t) {
|
|
395
|
-
return
|
|
396
|
-
const e = t.filter(
|
|
394
|
+
return C(this, null, function* () {
|
|
395
|
+
const e = t.filter(W).map((o) => this.loadModel(o));
|
|
397
396
|
yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
|
|
398
397
|
});
|
|
399
398
|
}
|
|
@@ -449,7 +448,7 @@ class ui extends O {
|
|
|
449
448
|
const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
|
|
450
449
|
if (!s)
|
|
451
450
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
452
|
-
this.TagContainerSvelte = new
|
|
451
|
+
this.TagContainerSvelte = new I({
|
|
453
452
|
target: s,
|
|
454
453
|
props: {
|
|
455
454
|
hooks: this.hooks,
|
|
@@ -465,5 +464,5 @@ class ui extends O {
|
|
|
465
464
|
}
|
|
466
465
|
}
|
|
467
466
|
export {
|
|
468
|
-
|
|
467
|
+
hi as TagRender
|
|
469
468
|
};
|