@realsee/dnalogel 3.26.0 → 3.27.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/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +11 -1
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -4
- package/dist/index.cjs.js +19 -19
- package/dist/index.js +511 -500
- package/dist/index.umd.js +19 -19
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -4
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -4
- package/docs/classes/CSS3DRender.html +3 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -4
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -4
- package/docs/classes/ModelMakerPluginType.ModelMakerController.html +3 -4
- package/docs/classes/ModelRoomLabelController.html +3 -4
- package/docs/classes/MoveController.html +3 -4
- package/docs/classes/Object3DHelperController.html +3 -4
- package/docs/classes/PaintBrush.html +3 -4
- package/docs/classes/PanoMeasurePluginLine.html +3 -4
- package/docs/classes/PanoMeasurePluginModel.html +3 -4
- package/docs/classes/PanoMeasurePluginPoint.html +3 -4
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -4
- package/docs/classes/PanoTagPluginController.html +7 -8
- package/docs/classes/Sculpt.html +3 -4
- package/docs/classes/Util.BetterTween.html +3 -4
- package/docs/classes/Util.Interval.html +3 -4
- package/docs/classes/Util.LineSegments.html +3 -4
- package/docs/classes/Util.Magnifier.html +3 -4
- package/docs/classes/Util.Object3D.html +3 -4
- package/docs/classes/Util.PointDomHelper.html +3 -4
- package/docs/classes/Util.PointHelper.html +3 -4
- package/docs/classes/Util.PointSelectorHelper.html +3 -4
- package/docs/classes/Util.Rectangle.html +3 -4
- package/docs/classes/WalkController.html +3 -4
- package/docs/enums/CameraMovementEffect.html +3 -4
- package/docs/enums/ContentType.html +3 -4
- package/docs/enums/DIRECTION.html +3 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -4
- package/docs/enums/DimensionType.html +3 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -4
- package/docs/enums/PaintBrushTypeEnum.html +3 -4
- package/docs/enums/PointType.html +3 -4
- package/docs/enums/Rotation.html +3 -4
- package/docs/functions/AreaMakerPlugin.html +3 -4
- package/docs/functions/CSS3DRenderPlugin.html +3 -4
- package/docs/functions/CameraMovementPlugin.html +3 -4
- package/docs/functions/CruisePlugin.html +3 -4
- package/docs/functions/CurrentPanoImagePlugin.html +3 -4
- package/docs/functions/GuideLinePlugin.html +3 -4
- package/docs/functions/ItemLabelPlugin.html +3 -4
- package/docs/functions/MapviewFloorplanPlugin.html +3 -4
- package/docs/functions/ModelChassisCompassPlugin.html +3 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -4
- package/docs/functions/ModelFloorplanPlugin.html +3 -4
- package/docs/functions/ModelItemLabelPlugin.html +3 -4
- package/docs/functions/ModelMakerPlugin.html +3 -4
- package/docs/functions/ModelRoomLabelPlugin.html +3 -4
- package/docs/functions/ModelTVVideoPlugin.html +3 -4
- package/docs/functions/ModelViewPlugin.html +3 -4
- package/docs/functions/MovePlugin.html +3 -4
- package/docs/functions/Object3DHelperPlugin.html +3 -4
- package/docs/functions/PanoCompassPlugin.html +3 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -4
- package/docs/functions/PanoDoorLabelPlugin.html +3 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -4
- package/docs/functions/PanoMeasurePlugin.html +3 -4
- package/docs/functions/PanoRulerPlugin.html +3 -4
- package/docs/functions/PanoRulerProPlugin.html +3 -4
- package/docs/functions/PanoSpatialTagPlugin.html +3 -4
- package/docs/functions/PanoTagPlugin.html +3 -4
- package/docs/functions/PanoVideoPlugin.html +3 -4
- package/docs/functions/PipelinePlugin.html +3 -4
- package/docs/functions/SculptPlugin.html +3 -4
- package/docs/functions/TopviewFloorplanPlugin.html +3 -4
- package/docs/functions/Util.absoluteUrl.html +3 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -4
- package/docs/functions/Util.equal.html +3 -4
- package/docs/functions/Util.getCoordsFromClient.html +3 -4
- package/docs/functions/Util.getCoordsFromElement.html +3 -4
- package/docs/functions/Util.getFrameTime.html +3 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -4
- package/docs/functions/Util.isAbsoluteURL.html +3 -4
- package/docs/functions/Util.isModelLike.html +3 -4
- package/docs/functions/Util.isNil.html +3 -4
- package/docs/functions/Util.isPanoramaLike.html +3 -4
- package/docs/functions/Util.nextFrame.html +3 -4
- package/docs/functions/Util.notNil.html +3 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -4
- package/docs/functions/Util.tweenProgress.html +3 -4
- package/docs/functions/Util.uuid.html +3 -4
- package/docs/functions/pluginFlag.html +3 -4
- package/docs/index.html +4 -5
- package/docs/interfaces/AddTagConfig.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -4
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -4
- package/docs/interfaces/ContentTypeMapInterface.html +3 -4
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -4
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -4
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -4
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -4
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -4
- package/docs/interfaces/EventMap.html +3 -4
- package/docs/interfaces/FloorplanBounding.html +3 -4
- package/docs/interfaces/FloorplanData.html +3 -4
- package/docs/interfaces/FloorplanEntrance.html +3 -4
- package/docs/interfaces/FloorplanExtraObject.html +3 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -4
- package/docs/interfaces/FloorplanFloorData.html +3 -4
- package/docs/interfaces/FloorplanImagePosition.html +3 -4
- package/docs/interfaces/FloorplanObserver.html +3 -4
- package/docs/interfaces/FloorplanOutlineItem.html +3 -4
- package/docs/interfaces/FloorplanPosition.html +3 -4
- package/docs/interfaces/FloorplanRoomItem.html +3 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -4
- package/docs/interfaces/FloorplanServerBounding.html +3 -4
- package/docs/interfaces/FloorplanServerComputedData.html +3 -4
- package/docs/interfaces/FloorplanServerData.html +3 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -4
- package/docs/interfaces/FloorplanServerEntrance.html +3 -4
- package/docs/interfaces/FloorplanServerFloorData.html +3 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -4
- package/docs/interfaces/FloorplanServerObserver.html +3 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -4
- package/docs/interfaces/FloorplanServerPosition.html +3 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -4
- package/docs/interfaces/HelperOffset.html +3 -4
- package/docs/interfaces/ImagePlaneGroup.html +3 -4
- package/docs/interfaces/ItemLabelPluginData.html +3 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -4
- package/docs/interfaces/MinMax.html +3 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -4
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -4
- package/docs/interfaces/ModelViewPluginExportType.html +3 -4
- package/docs/interfaces/Object3DHelperState.html +3 -4
- package/docs/interfaces/ObjectHelperControllers.html +3 -4
- package/docs/interfaces/PaintBrushAction.html +3 -4
- package/docs/interfaces/PaintBrushConfigs.html +3 -4
- package/docs/interfaces/PaintBrushState.html +3 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -4
- package/docs/interfaces/PanoMeasureParameterType.html +3 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -4
- package/docs/interfaces/PanoRulerProPluginState.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -4
- package/docs/interfaces/Point.html +3 -4
- package/docs/interfaces/Room.html +3 -4
- package/docs/interfaces/RoomInfo.html +3 -4
- package/docs/interfaces/RoomLabel.html +3 -4
- package/docs/interfaces/RoomRules.html +3 -4
- package/docs/interfaces/Rooms.html +3 -4
- package/docs/interfaces/Scissor.html +3 -4
- package/docs/interfaces/State.html +3 -4
- package/docs/interfaces/TagCacheInterface.html +3 -4
- package/docs/interfaces/TagConfig.html +21 -16
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -4
- package/docs/interfaces/TagIconUrl.html +3 -4
- package/docs/interfaces/TagObjectGroup.html +3 -4
- package/docs/interfaces/TagStyle.html +3 -4
- package/docs/interfaces/Tags.html +24 -411
- package/docs/interfaces/TemporaryState.html +3 -4
- package/docs/interfaces/Util.MagnifierParameter.html +3 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -4
- package/docs/interfaces/Util.PointIntersection.html +3 -4
- package/docs/modules/AreaMakerPluginType.html +3 -4
- package/docs/modules/CruisePluginTypes.html +3 -4
- package/docs/modules/CurrentPanoImagePluginType.html +3 -4
- package/docs/modules/GuideLineItem.html +3 -4
- package/docs/modules/GuideLineModeItem.html +3 -4
- package/docs/modules/GuideLinePluginType.html +3 -4
- package/docs/modules/ModelMakerPluginType.html +3 -4
- package/docs/modules/PanoVideoPluginType.html +3 -4
- package/docs/modules/SculptData.html +3 -4
- package/docs/modules/Util.html +3 -4
- package/docs/modules.html +4 -6
- package/docs/types/AddObject3DHelperConfig.html +3 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -4
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -4
- package/docs/types/ArrayPosition.html +3 -4
- package/docs/types/AudioAppearance.html +3 -4
- package/docs/types/CSS3DRenderExportType.html +3 -4
- package/docs/types/CSS3DRenderPluginExportType.html +3 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -4
- package/docs/types/ClassFunctionParameters.html +3 -4
- package/docs/types/Color.html +3 -4
- package/docs/types/ContentTypeConfigKey.html +4 -5
- package/docs/types/ContentTypeConfigKeySplit.html +4 -5
- package/docs/types/ContentTypeMap.html +3 -4
- package/docs/types/Create3DDomContainerReturnType.html +3 -4
- package/docs/types/Create3DElementReturnType.html +3 -4
- package/docs/types/CruisePluginExportType.html +3 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -4
- package/docs/types/DeprecatedTagProperty.html +3 -4
- package/docs/types/Direction-1.html +3 -4
- package/docs/types/Direction4.html +3 -4
- package/docs/types/ElementRenderer.html +3 -4
- package/docs/types/FloorplanRuleLabels.html +3 -4
- package/docs/types/FloorplanServerRuleLabels.html +3 -4
- package/docs/types/GuideLinePluginExportType.html +3 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -4
- package/docs/types/GuideLinePluginType.PathItem.html +3 -4
- package/docs/types/GuideLinePluginType.PluginData.html +3 -4
- package/docs/types/HelperEventMap.html +3 -4
- package/docs/types/InternalHelperEventMap.html +3 -4
- package/docs/types/LoadTagConfig.html +3 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -4
- package/docs/types/MediaData.html +3 -4
- package/docs/types/MediaStore.html +3 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -4
- package/docs/types/ModelId.html +3 -4
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -4
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -4
- package/docs/types/MoveArgs.html +3 -4
- package/docs/types/MoveOpts.html +3 -4
- package/docs/types/Object3DHelperEventMap.html +3 -4
- package/docs/types/ObjectFit.html +3 -4
- package/docs/types/PaintBrushEventMap.html +3 -4
- package/docs/types/PanoCompassPluginData.html +3 -4
- package/docs/types/PanoCompassPluginExportType.html +3 -4
- package/docs/types/PanoCompassPluginParameterType.html +3 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -4
- package/docs/types/PanoIndex.html +3 -4
- package/docs/types/PanoMeasurePluginEvent.html +3 -4
- package/docs/types/PanoMeasureReturnType.html +3 -4
- package/docs/types/PanoSpatialTagPluginId.html +3 -4
- package/docs/types/PanoTagPluginExportInterface.html +3 -4
- package/docs/types/PanoTagPluginParamsInterface.html +3 -4
- package/docs/types/PanoVideoPluginParameterType.html +3 -4
- package/docs/types/PanoVideoPluginReturnType.html +3 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -6
- package/docs/types/PipelinePluginParameterType.html +3 -4
- package/docs/types/PipelinePluginReturnType.html +3 -4
- package/docs/types/PlaneTag.html +4 -5
- package/docs/types/Point2DTag.html +4 -5
- package/docs/types/Point3DTag.html +4 -5
- package/docs/types/PointTag.html +4 -5
- package/docs/types/PointTagInstance.html +3 -4
- package/docs/types/Position.html +3 -4
- package/docs/types/PositionFrom.html +3 -4
- package/docs/types/RotateArgs.html +3 -4
- package/docs/types/RotateOpts.html +3 -4
- package/docs/types/RuleLabelsKey.html +3 -4
- package/docs/types/RuleLabelsValue.html +3 -4
- package/docs/types/ScaleCallback.html +3 -4
- package/docs/types/ScalePosition.html +3 -4
- package/docs/types/SculptData.BoxData.html +3 -4
- package/docs/types/SculptData.CircleData.html +3 -4
- package/docs/types/SculptData.CylinderData.html +3 -4
- package/docs/types/SculptData.PointData.html +3 -4
- package/docs/types/SculptData.PolygonData.html +3 -4
- package/docs/types/SculptData.PolylineData.html +3 -4
- package/docs/types/SculptData.PrismData.html +3 -4
- package/docs/types/SculptData.RectangleData.html +3 -4
- package/docs/types/StickType.html +3 -4
- package/docs/types/Tag.html +3 -4
- package/docs/types/Tag2D.html +3 -4
- package/docs/types/Tag3D.html +3 -4
- package/docs/types/TagConfigByKey.html +4 -5
- package/docs/types/TagContentType.html +3 -4
- package/docs/types/TagContentTypeMapping.html +3 -4
- package/docs/types/TagDimensionType.html +3 -4
- package/docs/types/TagElement.html +3 -4
- package/docs/types/TagEvents.html +3 -4
- package/docs/types/TagGLTFObject.html +3 -4
- package/docs/types/TagHooks.html +3 -4
- package/docs/types/TagId.html +3 -4
- package/docs/types/TagInstance.html +3 -4
- package/docs/types/TagPointType.html +3 -4
- package/docs/types/TagRendererMap.html +3 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -4
- package/docs/types/WorkCode.html +3 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -4
- package/docs/variables/PLUGIN.html +3 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -4
- package/docs/variables/ROOM_TYPE_MAP.html +3 -4
- package/docs/variables/defaultGlobalConfig.html +4 -5
- package/docs/variables/itemLabelPluginServerParams.html +3 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -4
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +134 -123
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +11 -1
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -4
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
- package/docs/types/AudioTagTypeConfigKey.html +0 -294
package/dist/index.js
CHANGED
|
@@ -48,7 +48,7 @@ import Qa from "animejs";
|
|
|
48
48
|
import { GLTFLoader as Nm } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Qm() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.27.0",
|
|
52
52
|
[
|
|
53
53
|
"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=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -975,10 +975,10 @@ let ip = class extends ep {
|
|
|
975
975
|
if (!A.find((E) => E === v)) {
|
|
976
976
|
if (A.push(v), g.push(ca(l[v], p.clientWidth, p.clientHeight)), g.length < 3)
|
|
977
977
|
return;
|
|
978
|
-
const { control: E, end:
|
|
979
|
-
if (!E || !
|
|
978
|
+
const { control: E, end: P } = po(g);
|
|
979
|
+
if (!E || !P)
|
|
980
980
|
return;
|
|
981
|
-
a.quadraticCurveTo(E.x, E.y,
|
|
981
|
+
a.quadraticCurveTo(E.x, E.y, P.x, P.y), a.stroke();
|
|
982
982
|
}
|
|
983
983
|
}).onComplete((m) => {
|
|
984
984
|
p.tween = void 0, p.tweening = !1, A = [], g = [], o && o(), r();
|
|
@@ -1124,10 +1124,10 @@ const T3 = (n, t) => {
|
|
|
1124
1124
|
const X = A();
|
|
1125
1125
|
if (!X)
|
|
1126
1126
|
return;
|
|
1127
|
-
F.appendChild(X.domElement),
|
|
1127
|
+
F.appendChild(X.domElement), P(U);
|
|
1128
1128
|
const J = window.getComputedStyle(F).position;
|
|
1129
1129
|
J !== "relative" && J !== "absolute" && J !== "fixed" && J !== "sticky" && (F.style.position = "relative");
|
|
1130
|
-
},
|
|
1130
|
+
}, P = (F = {}) => {
|
|
1131
1131
|
if (!o)
|
|
1132
1132
|
return;
|
|
1133
1133
|
const X = o.domElement.parentNode;
|
|
@@ -1145,14 +1145,14 @@ const T3 = (n, t) => {
|
|
|
1145
1145
|
let de = $ / 2 / Math.tan(Math.PI * U / 360);
|
|
1146
1146
|
return X < 1 && (de = de / X), isNaN(de) ? $ : de;
|
|
1147
1147
|
}
|
|
1148
|
-
function
|
|
1148
|
+
function I(F) {
|
|
1149
1149
|
return n.work.observers[F].standingPosition.clone();
|
|
1150
1150
|
}
|
|
1151
1151
|
const j = () => {
|
|
1152
1152
|
if (!e || !u || !f)
|
|
1153
1153
|
return;
|
|
1154
1154
|
const F = n.getPose();
|
|
1155
|
-
F.fov = c.fov, F.offset = f, F.distance = u, typeof a.lockedLatitude == "number" && (F.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (F.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (F.offset =
|
|
1155
|
+
F.fov = c.fov, F.offset = f, F.distance = u, typeof a.lockedLatitude == "number" && (F.latitude = a.lockedLatitude), typeof a.lockedLongitude == "number" && (F.longitude = a.lockedLongitude), typeof a.lockedPanoIndex == "number" && (F.offset = I(a.lockedPanoIndex)), a.lookAtCurrentCamera && (F.offset = n.camera.position.clone().setY(n.camera.position.y + 1)), c.setFromPose(F), s = !0;
|
|
1156
1156
|
}, V = () => {
|
|
1157
1157
|
!e || s !== !0 || !o || !o.domElement.parentNode || o.domElement.parentNode.offsetWidth === 0 || (o.render(l, c), s = !1);
|
|
1158
1158
|
}, W = () => {
|
|
@@ -1162,7 +1162,7 @@ const T3 = (n, t) => {
|
|
|
1162
1162
|
}, N = () => ({
|
|
1163
1163
|
enabled: e
|
|
1164
1164
|
});
|
|
1165
|
-
return Object.assign(window, { camera: c }), n.on("modelLoaded", m), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", j), n.on("dispose", W), n.on("renderFrame", V), n.on("cameraPositionUpdate", j), { appendTo: E, refresh:
|
|
1165
|
+
return Object.assign(window, { camera: c }), n.on("modelLoaded", m), n.on("modelWillLoad", p), n.on("cameraDirectionUpdate", j), n.on("dispose", W), n.on("renderFrame", V), n.on("cameraPositionUpdate", j), { appendTo: E, refresh: P, changeConfigs: _, enable: v, disable: y, getCurrentState: N };
|
|
1166
1166
|
}, np = ({ x: n, y: t, z: e }) => new oe(n, t, e), fi = (n) => new oe().fromArray(n), Be = (n) => {
|
|
1167
1167
|
if (n)
|
|
1168
1168
|
return n instanceof oe ? n : Array.isArray(n) ? fi(n) : np(n);
|
|
@@ -1343,8 +1343,8 @@ function Di(...n) {
|
|
|
1343
1343
|
const fl = (n) => n ? n.visible === !1 ? !1 : fl(n.parent) : !0, nf = 1, cp = `CSS3DObjectPlus@${nf}`, hp = 216e-5, dp = 3e-3;
|
|
1344
1344
|
class up extends Na {
|
|
1345
1345
|
constructor(e) {
|
|
1346
|
-
var k,
|
|
1347
|
-
const i = e.container, s = e.cornerPoints, o = (k = e.ratio) != null ? k : dp, r = (
|
|
1346
|
+
var k, I, j;
|
|
1347
|
+
const i = e.container, s = e.cornerPoints, o = (k = e.ratio) != null ? k : dp, r = (I = e.dpr) != null ? I : 1, a = (j = e.pointerEvents) != null ? j : "auto", l = Math.max(hp, o), c = s[0].distanceTo(s[1]), h = s[1].distanceTo(s[2]), u = Go(c / o * r), f = Go(h / o * r), g = Di(...s);
|
|
1348
1348
|
let A;
|
|
1349
1349
|
if (l === o)
|
|
1350
1350
|
i.style.width = `${u}px`, i.style.height = `${f}px`, A = i;
|
|
@@ -1391,8 +1391,8 @@ class up extends Na {
|
|
|
1391
1391
|
i.classList.add(`${cp}__container`);
|
|
1392
1392
|
const p = new oe().subVectors(s[1], s[0]), m = new oe().subVectors(s[3], s[0]), v = new oe().crossVectors(p, m).normalize();
|
|
1393
1393
|
this.lookAt(v);
|
|
1394
|
-
const y = this.up.clone().applyQuaternion(this.quaternion), E = m.clone(),
|
|
1395
|
-
this.rotateOnWorldAxis(
|
|
1394
|
+
const y = this.up.clone().applyQuaternion(this.quaternion), E = m.clone(), P = new oe().crossVectors(y, E).normalize();
|
|
1395
|
+
this.rotateOnWorldAxis(P, y.angleTo(E)), this.position.copy(g), this.addEventListener("added", () => {
|
|
1396
1396
|
var V;
|
|
1397
1397
|
this.mode === "front" && ((V = this.opacityMesh) == null || V.removeFromParent());
|
|
1398
1398
|
}), this.addEventListener("removed", () => {
|
|
@@ -1603,7 +1603,7 @@ class Rs {
|
|
|
1603
1603
|
k && k.add(A);
|
|
1604
1604
|
}, m = () => {
|
|
1605
1605
|
g || (p(), this.render(t), this.hooks.emit("render"));
|
|
1606
|
-
}, v = (k) => this.setVisibleById(A.id, k), y = (k) => this.setEnabledById(A.id, k), E = () => (g = !0, A.removeFromParent(), !0),
|
|
1606
|
+
}, v = (k) => this.setVisibleById(A.id, k), y = (k) => this.setEnabledById(A.id, k), E = () => (g = !0, A.removeFromParent(), !0), P = l === "front" ? Ke.frontModeStore.css3DRenderer : Ke.behindModeStore.css3DRenderer;
|
|
1607
1607
|
return c && m(), {
|
|
1608
1608
|
id: A.uuid,
|
|
1609
1609
|
container: h,
|
|
@@ -1616,7 +1616,7 @@ class Rs {
|
|
|
1616
1616
|
disable: () => y(!1),
|
|
1617
1617
|
setEnabled: y,
|
|
1618
1618
|
dispose: E,
|
|
1619
|
-
appendToElement: (k) =>
|
|
1619
|
+
appendToElement: (k) => P.setWrapper(k)
|
|
1620
1620
|
};
|
|
1621
1621
|
});
|
|
1622
1622
|
d(this, "setVisibleById", (t, e) => {
|
|
@@ -2986,8 +2986,8 @@ function tn(n, t, e) {
|
|
|
2986
2986
|
if (E >= y)
|
|
2987
2987
|
return p(1, 0), _i(n, !0, "end"), c(), o = !1;
|
|
2988
2988
|
if (E >= v) {
|
|
2989
|
-
const
|
|
2990
|
-
p(
|
|
2989
|
+
const P = A((E - v) / g);
|
|
2990
|
+
p(P, 1 - P);
|
|
2991
2991
|
}
|
|
2992
2992
|
}
|
|
2993
2993
|
return o;
|
|
@@ -3058,12 +3058,12 @@ function ni(n, t, e, i) {
|
|
|
3058
3058
|
start: Al() + A,
|
|
3059
3059
|
b: g
|
|
3060
3060
|
};
|
|
3061
|
-
g || (E.group = Kt, Kt.r += 1), a || l ? l = E : (y && (h(), c = Yo(n, r, g, p, A, m, y)), g && v(0, 1), a = u(E, p), Xe(() => _i(n, g, "start")), bl((
|
|
3062
|
-
if (l &&
|
|
3063
|
-
if (
|
|
3061
|
+
g || (E.group = Kt, Kt.r += 1), a || l ? l = E : (y && (h(), c = Yo(n, r, g, p, A, m, y)), g && v(0, 1), a = u(E, p), Xe(() => _i(n, g, "start")), bl((P) => {
|
|
3062
|
+
if (l && P > l.start && (a = u(l, p), l = null, _i(n, a.b, "start"), y && (h(), c = Yo(n, r, a.b, a.duration, 0, m, o.css))), a) {
|
|
3063
|
+
if (P >= a.end)
|
|
3064
3064
|
v(r = a.b, 1 - r), _i(n, a.b, "end"), l || (a.b ? h() : --a.group.r || et(a.group.c)), a = null;
|
|
3065
|
-
else if (
|
|
3066
|
-
const k =
|
|
3065
|
+
else if (P >= a.start) {
|
|
3066
|
+
const k = P - a.start;
|
|
3067
3067
|
r = a.a + a.d * m(k / a.duration), v(r, 1 - r);
|
|
3068
3068
|
}
|
|
3069
3069
|
}
|
|
@@ -3136,20 +3136,20 @@ function Ut(n, t, e, i, s, o, r, a, l, c, h, u) {
|
|
|
3136
3136
|
let W = r.get(V);
|
|
3137
3137
|
W ? i && E.push(() => W.p(j, t)) : (W = c(V, j), W.c()), v.set(V, m[A] = W), V in p && y.set(V, Math.abs(A - p[V]));
|
|
3138
3138
|
}
|
|
3139
|
-
const
|
|
3140
|
-
function
|
|
3139
|
+
const P = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ new Set();
|
|
3140
|
+
function I(j) {
|
|
3141
3141
|
x(j, 1), j.m(a, h), r.set(j.key, j), h = j.first, g--;
|
|
3142
3142
|
}
|
|
3143
3143
|
for (; f && g; ) {
|
|
3144
3144
|
const j = m[g - 1], V = n[f - 1], W = j.key, _ = V.key;
|
|
3145
|
-
j === V ? (h = j.first, f--, g--) : v.has(_) ? !r.has(W) ||
|
|
3145
|
+
j === V ? (h = j.first, f--, g--) : v.has(_) ? !r.has(W) || P.has(W) ? I(j) : k.has(_) ? f-- : y.get(W) > y.get(_) ? (k.add(W), I(j)) : (P.add(_), f--) : (l(V, r), f--);
|
|
3146
3146
|
}
|
|
3147
3147
|
for (; f--; ) {
|
|
3148
3148
|
const j = n[f];
|
|
3149
3149
|
v.has(j.key) || l(j, r);
|
|
3150
3150
|
}
|
|
3151
3151
|
for (; g; )
|
|
3152
|
-
|
|
3152
|
+
I(m[g - 1]);
|
|
3153
3153
|
return et(E), m;
|
|
3154
3154
|
}
|
|
3155
3155
|
function wt(n, t) {
|
|
@@ -3763,27 +3763,27 @@ function MA(n, t, e) {
|
|
|
3763
3763
|
function c(v) {
|
|
3764
3764
|
if (!(l === null || v.floorIndex === l))
|
|
3765
3765
|
return !1;
|
|
3766
|
-
const E = new Wn(),
|
|
3767
|
-
E.set(
|
|
3766
|
+
const E = new Wn(), P = s.camera.position.clone(), k = new oe(v.position.x, v.position.y, v.position.z), I = k.distanceTo(P);
|
|
3767
|
+
E.set(P.clone(), k.clone().sub(P).normalize());
|
|
3768
3768
|
const [j] = s.model.intersectRaycaster(E);
|
|
3769
|
-
return !(j && j.distance + 1 <
|
|
3769
|
+
return !(j && j.distance + 1 < I);
|
|
3770
3770
|
}
|
|
3771
3771
|
function h(v, y) {
|
|
3772
|
-
const
|
|
3773
|
-
return `translate(${k}px, ${
|
|
3772
|
+
const P = new oe(v.position.x, v.position.y, v.position.z).clone().project(s.camera), k = Math.ceil((P.x + 1) / 2 * y.x), I = Math.ceil((-P.y + 1) / 2 * y.y);
|
|
3773
|
+
return `translate(${k}px, ${I}px)`;
|
|
3774
3774
|
}
|
|
3775
3775
|
function u(v) {
|
|
3776
3776
|
const { rendererSize: y } = v, E = /* @__PURE__ */ new Map();
|
|
3777
|
-
function I
|
|
3778
|
-
const j = E.get(
|
|
3777
|
+
function P(I) {
|
|
3778
|
+
const j = E.get(I.id);
|
|
3779
3779
|
if (j)
|
|
3780
3780
|
return j;
|
|
3781
|
-
const { x: V, y: W, z: _ } =
|
|
3782
|
-
return E.set(
|
|
3781
|
+
const { x: V, y: W, z: _ } = I.position, N = new oe(V, W, _).clone().distanceTo(s.camera.position);
|
|
3782
|
+
return E.set(I.id, N), N;
|
|
3783
3783
|
}
|
|
3784
|
-
return o.map((
|
|
3785
|
-
const j = c(
|
|
3786
|
-
return se(D({},
|
|
3784
|
+
return o.map((I) => {
|
|
3785
|
+
const j = c(I), V = j ? h(I, y) : I.transform, W = P(I), N = o.filter((G) => G.visible && P(G) < W).length * 10;
|
|
3786
|
+
return se(D({}, I), { visible: j, transform: V, zIndex: N });
|
|
3787
3787
|
});
|
|
3788
3788
|
}
|
|
3789
3789
|
function f() {
|
|
@@ -4461,7 +4461,7 @@ function YA(n, t) {
|
|
|
4461
4461
|
return s;
|
|
4462
4462
|
}
|
|
4463
4463
|
function XA(n, t, e) {
|
|
4464
|
-
let i, s, o, r, a, l, c, h, u, f, g, A, p, { pxmm: m } = t, { roomAreaEnable: v } = t, { roomNameEnable: y } = t, { roomDimensionEnable: E } = t, { room:
|
|
4464
|
+
let i, s, o, r, a, l, c, h, u, f, g, A, p, { pxmm: m } = t, { roomAreaEnable: v } = t, { roomNameEnable: y } = t, { roomDimensionEnable: E } = t, { room: P } = t, { hoveredRoom: k } = t, { getRoomAreaText: I } = t, { getRoomDimensionText: j } = t, { getLabelElement: V } = t, { adaptiveRoomLabelVisibleEnable: W } = t;
|
|
4465
4465
|
function _(ee, ve) {
|
|
4466
4466
|
if (ve.width === 0 || ve.height === 0)
|
|
4467
4467
|
return () => !1;
|
|
@@ -4476,10 +4476,10 @@ function XA(n, t, e) {
|
|
|
4476
4476
|
].every((He) => YA(He, Ct));
|
|
4477
4477
|
};
|
|
4478
4478
|
}
|
|
4479
|
-
const N = document.body.clientWidth, G = document.body.clientHeight, H =
|
|
4479
|
+
const N = document.body.clientWidth, G = document.body.clientHeight, H = P.roomLabel, F = H.positionInImage.x * 100 + "%", U = H.positionInImage.y * 100 + "%", X = (N < 500 || G < 500 ? 10 : 14) + "px", J = (N < 500 || G < 500 ? 8 : 12) + "px";
|
|
4480
4480
|
let $ = 0, de = 0, he = 0, Pe = 0, Ce = !1;
|
|
4481
4481
|
k.subscribe(function(ve) {
|
|
4482
|
-
e(25, Ce = !!ve && ve.id ===
|
|
4482
|
+
e(25, Ce = !!ve && ve.id === P.id);
|
|
4483
4483
|
});
|
|
4484
4484
|
const be = (ee) => {
|
|
4485
4485
|
e(7, he = ee.detail);
|
|
@@ -4491,22 +4491,22 @@ function XA(n, t, e) {
|
|
|
4491
4491
|
e(6, de = ee.detail);
|
|
4492
4492
|
};
|
|
4493
4493
|
return n.$$set = (ee) => {
|
|
4494
|
-
"pxmm" in ee && e(20, m = ee.pxmm), "roomAreaEnable" in ee && e(0, v = ee.roomAreaEnable), "roomNameEnable" in ee && e(1, y = ee.roomNameEnable), "roomDimensionEnable" in ee && e(2, E = ee.roomDimensionEnable), "room" in ee && e(3,
|
|
4494
|
+
"pxmm" in ee && e(20, m = ee.pxmm), "roomAreaEnable" in ee && e(0, v = ee.roomAreaEnable), "roomNameEnable" in ee && e(1, y = ee.roomNameEnable), "roomDimensionEnable" in ee && e(2, E = ee.roomDimensionEnable), "room" in ee && e(3, P = ee.room), "hoveredRoom" in ee && e(21, k = ee.hoveredRoom), "getRoomAreaText" in ee && e(22, I = ee.getRoomAreaText), "getRoomDimensionText" in ee && e(23, j = ee.getRoomDimensionText), "getLabelElement" in ee && e(4, V = ee.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ee && e(24, W = ee.adaptiveRoomLabelVisibleEnable);
|
|
4495
4495
|
}, n.$$.update = () => {
|
|
4496
4496
|
var ee, ve;
|
|
4497
4497
|
n.$$.dirty[0] & /*getLabelElement, room*/
|
|
4498
|
-
24 && e(15, i = V == null ? void 0 : V(
|
|
4499
|
-
4194312 && e(14, s =
|
|
4500
|
-
8388616 && e(13, o =
|
|
4498
|
+
24 && e(15, i = V == null ? void 0 : V(P)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
4499
|
+
4194312 && e(14, s = P.size ? I(P.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
4500
|
+
8388616 && e(13, o = P != null && P.dimension ? j((ee = P.dimension) == null ? void 0 : ee.width, (ve = P.dimension) == null ? void 0 : ve.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
4501
4501
|
384 && e(31, r = { width: he, height: Pe }), n.$$.dirty[0] & /*room*/
|
|
4502
4502
|
8 | n.$$.dirty[1] & /*labelElementSize*/
|
|
4503
|
-
1 && e(30, a = r ? _(
|
|
4503
|
+
1 && e(30, a = r ? _(P, r) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, isLabelInRoom, pxmm*/
|
|
4504
4504
|
1091567616 && e(27, l = W ? !!(a != null && a(m)) : !0), n.$$.dirty[0] & /*wrapperClientWidth, wrapperClientHeight*/
|
|
4505
4505
|
96 && e(29, c = {
|
|
4506
4506
|
width: $,
|
|
4507
4507
|
height: de
|
|
4508
4508
|
}), n.$$.dirty[0] & /*wrapperLabelElementSize, room*/
|
|
4509
|
-
536870920 && e(28, h = c ? _(
|
|
4509
|
+
536870920 && e(28, h = c ? _(P, c) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, isAllLabelInRoom, pxmm*/
|
|
4510
4510
|
286261248 && e(26, u = W ? !!(h != null && h(m)) : !0), n.$$.dirty[0] & /*wrapperLabelVisible, mainLabelVisible, isHovered*/
|
|
4511
4511
|
234881024 && e(12, f = u || l || Ce), n.$$.dirty[0] & /*mainLabelVisible, isHovered*/
|
|
4512
4512
|
167772160 && e(11, g = l || Ce), n.$$.dirty[0] & /*wrapperLabelVisible, isHovered*/
|
|
@@ -4516,7 +4516,7 @@ function XA(n, t, e) {
|
|
|
4516
4516
|
v,
|
|
4517
4517
|
y,
|
|
4518
4518
|
E,
|
|
4519
|
-
|
|
4519
|
+
P,
|
|
4520
4520
|
V,
|
|
4521
4521
|
$,
|
|
4522
4522
|
de,
|
|
@@ -4535,7 +4535,7 @@ function XA(n, t, e) {
|
|
|
4535
4535
|
J,
|
|
4536
4536
|
m,
|
|
4537
4537
|
k,
|
|
4538
|
-
|
|
4538
|
+
I,
|
|
4539
4539
|
j,
|
|
4540
4540
|
W,
|
|
4541
4541
|
Ce,
|
|
@@ -5024,8 +5024,8 @@ function iv(n, t, e) {
|
|
|
5024
5024
|
});
|
|
5025
5025
|
u.unshift({ left: 0, bottom: 0 }), u.push(a ? { left: 1, bottom: 0 } : { left: 0, bottom: 1 });
|
|
5026
5026
|
const f = h[h.length - 1] - h[0], g = h.map((A, p, m) => {
|
|
5027
|
-
const v = p === 0 ? 0 : A - m[p - 1], y = p === 0 ? 0 : (A + m[p - 1]) / 2, E = a ? (y - o.min.x - vn + bn) / l : 0,
|
|
5028
|
-
return { left: E, bottom:
|
|
5027
|
+
const v = p === 0 ? 0 : A - m[p - 1], y = p === 0 ? 0 : (A + m[p - 1]) / 2, E = a ? (y - o.min.x - vn + bn) / l : 0, P = a ? 0 : (y - o.min.y - vn + bn) / c;
|
|
5028
|
+
return { left: E, bottom: P, distance: v };
|
|
5029
5029
|
}).filter(({ distance: A }) => A / f > 0.1);
|
|
5030
5030
|
return n.$$set = (A) => {
|
|
5031
5031
|
"type" in A && e(0, i = A.type), "data" in A && e(5, s = A.data), "bounding" in A && e(6, o = A.bounding), "getRuleDistanceText" in A && e(1, r = A.getRuleDistanceText);
|
|
@@ -6235,8 +6235,8 @@ function Jv(n) {
|
|
|
6235
6235
|
}
|
|
6236
6236
|
];
|
|
6237
6237
|
let f = {};
|
|
6238
|
-
for (let
|
|
6239
|
-
f = ft(f, u[
|
|
6238
|
+
for (let P = 0; P < u.length; P += 1)
|
|
6239
|
+
f = ft(f, u[P]);
|
|
6240
6240
|
t = new Mv({ props: f });
|
|
6241
6241
|
let g = (
|
|
6242
6242
|
/*highlightEnable*/
|
|
@@ -6256,8 +6256,8 @@ function Jv(n) {
|
|
|
6256
6256
|
}
|
|
6257
6257
|
];
|
|
6258
6258
|
let p = {};
|
|
6259
|
-
for (let
|
|
6260
|
-
p = ft(p, A[
|
|
6259
|
+
for (let P = 0; P < A.length; P += 1)
|
|
6260
|
+
p = ft(p, A[P]);
|
|
6261
6261
|
s = new Rf({ props: p });
|
|
6262
6262
|
let m = (
|
|
6263
6263
|
/*roomLabelsEnable*/
|
|
@@ -6276,27 +6276,27 @@ function Jv(n) {
|
|
|
6276
6276
|
c() {
|
|
6277
6277
|
ne(t.$$.fragment), e = K(), g && g.c(), i = K(), ne(s.$$.fragment), o = K(), m && m.c(), r = K(), v && v.c(), a = K(), y && y.c(), l = K(), E && E.c(), c = we();
|
|
6278
6278
|
},
|
|
6279
|
-
m(
|
|
6280
|
-
te(t,
|
|
6279
|
+
m(P, k) {
|
|
6280
|
+
te(t, P, k), B(P, e, k), g && g.m(P, k), B(P, i, k), te(s, P, k), B(P, o, k), m && m.m(P, k), B(P, r, k), v && v.m(P, k), B(P, a, k), y && y.m(P, k), B(P, l, k), E && E.m(P, k), B(P, c, k), h = !0;
|
|
6281
6281
|
},
|
|
6282
|
-
p(
|
|
6283
|
-
const
|
|
6282
|
+
p(P, k) {
|
|
6283
|
+
const I = k & /*floorIndex, floorplanData*/
|
|
6284
6284
|
2052 ? wt(u, [
|
|
6285
6285
|
{
|
|
6286
6286
|
floorIndex: (
|
|
6287
6287
|
/*floorIndex*/
|
|
6288
|
-
|
|
6288
|
+
P[2]
|
|
6289
6289
|
),
|
|
6290
6290
|
floorplanData: (
|
|
6291
6291
|
/*floorplanData*/
|
|
6292
|
-
|
|
6292
|
+
P[11]
|
|
6293
6293
|
)
|
|
6294
6294
|
}
|
|
6295
6295
|
]) : {};
|
|
6296
|
-
t.$set(
|
|
6297
|
-
|
|
6298
|
-
|
|
6299
|
-
40 && x(g, 1)) : (g = Nc(
|
|
6296
|
+
t.$set(I), /*highlightEnable*/
|
|
6297
|
+
P[3] || /*hoverEnable*/
|
|
6298
|
+
P[5] ? g ? (g.p(P, k), k & /*highlightEnable, hoverEnable*/
|
|
6299
|
+
40 && x(g, 1)) : (g = Nc(P), g.c(), x(g, 1), g.m(i.parentNode, i)) : g && (ue(), O(g, 1, 1, () => {
|
|
6300
6300
|
g = null;
|
|
6301
6301
|
}), fe());
|
|
6302
6302
|
const j = k & /*floorplanData, floorIndex*/
|
|
@@ -6304,40 +6304,40 @@ function Jv(n) {
|
|
|
6304
6304
|
{
|
|
6305
6305
|
floorplanData: (
|
|
6306
6306
|
/*floorplanData*/
|
|
6307
|
-
|
|
6307
|
+
P[11]
|
|
6308
6308
|
),
|
|
6309
6309
|
floorIndex: (
|
|
6310
6310
|
/*floorIndex*/
|
|
6311
|
-
|
|
6311
|
+
P[2]
|
|
6312
6312
|
)
|
|
6313
6313
|
}
|
|
6314
6314
|
]) : {};
|
|
6315
6315
|
s.$set(j), /*roomLabelsEnable*/
|
|
6316
|
-
|
|
6317
|
-
64 && x(m, 1)) : (m = Qc(
|
|
6316
|
+
P[6] ? m ? (m.p(P, k), k & /*roomLabelsEnable*/
|
|
6317
|
+
64 && x(m, 1)) : (m = Qc(P), m.c(), x(m, 1), m.m(r.parentNode, r)) : m && (ue(), O(m, 1, 1, () => {
|
|
6318
6318
|
m = null;
|
|
6319
6319
|
}), fe()), /*ruleLabelsEnable*/
|
|
6320
|
-
|
|
6321
|
-
1024 && x(v, 1)) : (v = Gc(
|
|
6320
|
+
P[10] ? v ? (v.p(P, k), k & /*ruleLabelsEnable*/
|
|
6321
|
+
1024 && x(v, 1)) : (v = Gc(P), v.c(), x(v, 1), v.m(a.parentNode, a)) : v && (ue(), O(v, 1, 1, () => {
|
|
6322
6322
|
v = null;
|
|
6323
6323
|
}), fe()), /*cameraEnable*/
|
|
6324
|
-
|
|
6325
|
-
16 && x(y, 1)) : (y = Fc(
|
|
6324
|
+
P[4] ? y ? (y.p(P, k), k & /*cameraEnable*/
|
|
6325
|
+
16 && x(y, 1)) : (y = Fc(P), y.c(), x(y, 1), y.m(l.parentNode, l)) : y && (ue(), O(y, 1, 1, () => {
|
|
6326
6326
|
y = null;
|
|
6327
6327
|
}), fe()), /*compassEnable*/
|
|
6328
|
-
|
|
6329
|
-
4194304 && x(E, 1)) : (E = _c(
|
|
6328
|
+
P[22] ? E ? (E.p(P, k), k & /*compassEnable*/
|
|
6329
|
+
4194304 && x(E, 1)) : (E = _c(P), E.c(), x(E, 1), E.m(c.parentNode, c)) : E && (ue(), O(E, 1, 1, () => {
|
|
6330
6330
|
E = null;
|
|
6331
6331
|
}), fe());
|
|
6332
6332
|
},
|
|
6333
|
-
i(
|
|
6334
|
-
h || (x(t.$$.fragment,
|
|
6333
|
+
i(P) {
|
|
6334
|
+
h || (x(t.$$.fragment, P), x(g), x(s.$$.fragment, P), x(m), x(v), x(y), x(E), h = !0);
|
|
6335
6335
|
},
|
|
6336
|
-
o(
|
|
6337
|
-
O(t.$$.fragment,
|
|
6336
|
+
o(P) {
|
|
6337
|
+
O(t.$$.fragment, P), O(g), O(s.$$.fragment, P), O(m), O(v), O(y), O(E), h = !1;
|
|
6338
6338
|
},
|
|
6339
|
-
d(
|
|
6340
|
-
ie(t,
|
|
6339
|
+
d(P) {
|
|
6340
|
+
ie(t, P), P && z(e), g && g.d(P), P && z(i), ie(s, P), P && z(o), m && m.d(P), P && z(r), v && v.d(P), P && z(a), y && y.d(P), P && z(l), E && E.d(P), P && z(c);
|
|
6341
6341
|
}
|
|
6342
6342
|
};
|
|
6343
6343
|
}
|
|
@@ -6758,10 +6758,10 @@ function Kv(n) {
|
|
|
6758
6758
|
};
|
|
6759
6759
|
}
|
|
6760
6760
|
function $v(n, t, e) {
|
|
6761
|
-
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: g } = t, { roomDimensionEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: m } = t, { getRoomAreaText: v } = t, { getRoomDimensionText: y } = t, { getLabelElement: E } = t, { getRuleDistanceText:
|
|
6761
|
+
let i, s, { panoIndex: o } = t, { isCurrent: r } = t, { floorIndex: a } = t, { highlightEnable: l } = t, { cameraEnable: c } = t, { hoverEnable: h } = t, { roomLabelsEnable: u } = t, { roomAreaEnable: f } = t, { roomNameEnable: g } = t, { roomDimensionEnable: A } = t, { ruleLabelsEnable: p } = t, { floorplanData: m } = t, { getRoomAreaText: v } = t, { getRoomDimensionText: y } = t, { getLabelElement: E } = t, { getRuleDistanceText: P } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { highlightData: I } = t, { missingFloorConfig: j } = t, { lastPanoramaLongitude: V } = t, { cameraImageUrl: W } = t, { northDesc: _ } = t, { compassEnable: N } = t;
|
|
6762
6762
|
const G = xl(void 0);
|
|
6763
6763
|
return n.$$set = (H) => {
|
|
6764
|
-
"panoIndex" in H && e(0, o = H.panoIndex), "isCurrent" in H && e(1, r = H.isCurrent), "floorIndex" in H && e(2, a = H.floorIndex), "highlightEnable" in H && e(3, l = H.highlightEnable), "cameraEnable" in H && e(4, c = H.cameraEnable), "hoverEnable" in H && e(5, h = H.hoverEnable), "roomLabelsEnable" in H && e(6, u = H.roomLabelsEnable), "roomAreaEnable" in H && e(7, f = H.roomAreaEnable), "roomNameEnable" in H && e(8, g = H.roomNameEnable), "roomDimensionEnable" in H && e(9, A = H.roomDimensionEnable), "ruleLabelsEnable" in H && e(10, p = H.ruleLabelsEnable), "floorplanData" in H && e(11, m = H.floorplanData), "getRoomAreaText" in H && e(12, v = H.getRoomAreaText), "getRoomDimensionText" in H && e(13, y = H.getRoomDimensionText), "getLabelElement" in H && e(14, E = H.getLabelElement), "getRuleDistanceText" in H && e(15,
|
|
6764
|
+
"panoIndex" in H && e(0, o = H.panoIndex), "isCurrent" in H && e(1, r = H.isCurrent), "floorIndex" in H && e(2, a = H.floorIndex), "highlightEnable" in H && e(3, l = H.highlightEnable), "cameraEnable" in H && e(4, c = H.cameraEnable), "hoverEnable" in H && e(5, h = H.hoverEnable), "roomLabelsEnable" in H && e(6, u = H.roomLabelsEnable), "roomAreaEnable" in H && e(7, f = H.roomAreaEnable), "roomNameEnable" in H && e(8, g = H.roomNameEnable), "roomDimensionEnable" in H && e(9, A = H.roomDimensionEnable), "ruleLabelsEnable" in H && e(10, p = H.ruleLabelsEnable), "floorplanData" in H && e(11, m = H.floorplanData), "getRoomAreaText" in H && e(12, v = H.getRoomAreaText), "getRoomDimensionText" in H && e(13, y = H.getRoomDimensionText), "getLabelElement" in H && e(14, E = H.getLabelElement), "getRuleDistanceText" in H && e(15, P = H.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in H && e(16, k = H.adaptiveRoomLabelVisibleEnable), "highlightData" in H && e(17, I = H.highlightData), "missingFloorConfig" in H && e(18, j = H.missingFloorConfig), "lastPanoramaLongitude" in H && e(19, V = H.lastPanoramaLongitude), "cameraImageUrl" in H && e(20, W = H.cameraImageUrl), "northDesc" in H && e(21, _ = H.northDesc), "compassEnable" in H && e(22, N = H.compassEnable);
|
|
6765
6765
|
}, n.$$.update = () => {
|
|
6766
6766
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
6767
6767
|
2052 && e(25, i = m.floorDatas[a]), n.$$.dirty & /*floorData*/
|
|
@@ -6782,9 +6782,9 @@ function $v(n, t, e) {
|
|
|
6782
6782
|
v,
|
|
6783
6783
|
y,
|
|
6784
6784
|
E,
|
|
6785
|
-
I,
|
|
6786
|
-
k,
|
|
6787
6785
|
P,
|
|
6786
|
+
k,
|
|
6787
|
+
I,
|
|
6788
6788
|
j,
|
|
6789
6789
|
V,
|
|
6790
6790
|
W,
|
|
@@ -7166,9 +7166,9 @@ function i0(n) {
|
|
|
7166
7166
|
};
|
|
7167
7167
|
}
|
|
7168
7168
|
function n0(n, t, e) {
|
|
7169
|
-
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: g } = t, { roomNameEnable: A } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: m } = t, { floorplanData: v } = t, { lastPanoramaLongitude: y } = t, { cameraImageUrl: E } = t, { getRoomAreaText:
|
|
7169
|
+
let { duration: i = 0 } = t, { visible: s } = t, { northDesc: o } = t, { panoIndex: r } = t, { floorIndex: a } = t, { cameraEnable: l } = t, { hoverEnable: c } = t, { highlightEnable: h } = t, { compassEnable: u } = t, { roomLabelsEnable: f } = t, { roomAreaEnable: g } = t, { roomNameEnable: A } = t, { roomDimensionEnable: p } = t, { ruleLabelsEnable: m } = t, { floorplanData: v } = t, { lastPanoramaLongitude: y } = t, { cameraImageUrl: E } = t, { getRoomAreaText: P } = t, { getRoomDimensionText: k } = t, { getLabelElement: I } = t, { getRuleDistanceText: j } = t, { adaptiveRoomLabelVisibleEnable: V } = t, { highlightData: W } = t, { missingFloorConfig: _ } = t;
|
|
7170
7170
|
return n.$$set = (N) => {
|
|
7171
|
-
"duration" in N && e(0, i = N.duration), "visible" in N && e(1, s = N.visible), "northDesc" in N && e(2, o = N.northDesc), "panoIndex" in N && e(3, r = N.panoIndex), "floorIndex" in N && e(4, a = N.floorIndex), "cameraEnable" in N && e(5, l = N.cameraEnable), "hoverEnable" in N && e(6, c = N.hoverEnable), "highlightEnable" in N && e(7, h = N.highlightEnable), "compassEnable" in N && e(8, u = N.compassEnable), "roomLabelsEnable" in N && e(9, f = N.roomLabelsEnable), "roomAreaEnable" in N && e(10, g = N.roomAreaEnable), "roomNameEnable" in N && e(11, A = N.roomNameEnable), "roomDimensionEnable" in N && e(12, p = N.roomDimensionEnable), "ruleLabelsEnable" in N && e(13, m = N.ruleLabelsEnable), "floorplanData" in N && e(14, v = N.floorplanData), "lastPanoramaLongitude" in N && e(15, y = N.lastPanoramaLongitude), "cameraImageUrl" in N && e(16, E = N.cameraImageUrl), "getRoomAreaText" in N && e(17,
|
|
7171
|
+
"duration" in N && e(0, i = N.duration), "visible" in N && e(1, s = N.visible), "northDesc" in N && e(2, o = N.northDesc), "panoIndex" in N && e(3, r = N.panoIndex), "floorIndex" in N && e(4, a = N.floorIndex), "cameraEnable" in N && e(5, l = N.cameraEnable), "hoverEnable" in N && e(6, c = N.hoverEnable), "highlightEnable" in N && e(7, h = N.highlightEnable), "compassEnable" in N && e(8, u = N.compassEnable), "roomLabelsEnable" in N && e(9, f = N.roomLabelsEnable), "roomAreaEnable" in N && e(10, g = N.roomAreaEnable), "roomNameEnable" in N && e(11, A = N.roomNameEnable), "roomDimensionEnable" in N && e(12, p = N.roomDimensionEnable), "ruleLabelsEnable" in N && e(13, m = N.ruleLabelsEnable), "floorplanData" in N && e(14, v = N.floorplanData), "lastPanoramaLongitude" in N && e(15, y = N.lastPanoramaLongitude), "cameraImageUrl" in N && e(16, E = N.cameraImageUrl), "getRoomAreaText" in N && e(17, P = N.getRoomAreaText), "getRoomDimensionText" in N && e(18, k = N.getRoomDimensionText), "getLabelElement" in N && e(19, I = N.getLabelElement), "getRuleDistanceText" in N && e(20, j = N.getRuleDistanceText), "adaptiveRoomLabelVisibleEnable" in N && e(21, V = N.adaptiveRoomLabelVisibleEnable), "highlightData" in N && e(22, W = N.highlightData), "missingFloorConfig" in N && e(23, _ = N.missingFloorConfig);
|
|
7172
7172
|
}, [
|
|
7173
7173
|
i,
|
|
7174
7174
|
s,
|
|
@@ -7187,9 +7187,9 @@ function n0(n, t, e) {
|
|
|
7187
7187
|
v,
|
|
7188
7188
|
y,
|
|
7189
7189
|
E,
|
|
7190
|
-
I,
|
|
7191
|
-
k,
|
|
7192
7190
|
P,
|
|
7191
|
+
k,
|
|
7192
|
+
I,
|
|
7193
7193
|
j,
|
|
7194
7194
|
V,
|
|
7195
7195
|
W,
|
|
@@ -7344,7 +7344,7 @@ let nn = class {
|
|
|
7344
7344
|
/**
|
|
7345
7345
|
* @realsee/dnalogel 版本号
|
|
7346
7346
|
*/
|
|
7347
|
-
d(this, "VERSION", "3.
|
|
7347
|
+
d(this, "VERSION", "3.27.0");
|
|
7348
7348
|
d(this, "five");
|
|
7349
7349
|
/**
|
|
7350
7350
|
* @description: 插件事件钩子
|
|
@@ -8473,29 +8473,29 @@ function E0(n) {
|
|
|
8473
8473
|
function M0(n, t, e) {
|
|
8474
8474
|
var y, E;
|
|
8475
8475
|
let i, s, o, r, { five: a } = t, { pxmm: l } = t, { floorplanData: c } = t, { cameraImageUrl: h } = t, u = a.getCurrentState().panoIndex, f = a.getCurrentState().longitude, g = (E = (y = a.work.observers[a.getCurrentState().panoIndex]) == null ? void 0 : y.floorIndex) != null ? E : 0;
|
|
8476
|
-
function A(
|
|
8477
|
-
const
|
|
8476
|
+
function A(P, k) {
|
|
8477
|
+
const I = P.bounding, j = P.observers[k];
|
|
8478
8478
|
if (!j)
|
|
8479
8479
|
return "";
|
|
8480
|
-
const V = (
|
|
8480
|
+
const V = (I.max.x - I.min.x) * l, W = (I.max.y - I.min.y) * l, _ = Math.floor(j.positionInImage.x * V), N = Math.floor(j.positionInImage.y * W);
|
|
8481
8481
|
return `translate(${_}px, ${N}px)`;
|
|
8482
8482
|
}
|
|
8483
|
-
function p(
|
|
8484
|
-
e(7, u =
|
|
8483
|
+
function p(P) {
|
|
8484
|
+
e(7, u = P);
|
|
8485
8485
|
}
|
|
8486
|
-
function m(
|
|
8487
|
-
e(9, g = a.work.observers[
|
|
8486
|
+
function m(P) {
|
|
8487
|
+
e(9, g = a.work.observers[P].floorIndex);
|
|
8488
8488
|
}
|
|
8489
8489
|
const v = jl(
|
|
8490
|
-
(
|
|
8491
|
-
e(8, f =
|
|
8490
|
+
(P) => {
|
|
8491
|
+
e(8, f = P.longitude);
|
|
8492
8492
|
},
|
|
8493
8493
|
1e3 / 60
|
|
8494
8494
|
);
|
|
8495
8495
|
return Et(() => (a.on("panoWillArrive", p), a.on("panoArrived", m), a.on("cameraDirectionUpdate", v), function() {
|
|
8496
8496
|
a.off("panoWillArrive", p), a.off("panoArrived", m), a.off("cameraDirectionUpdate", v);
|
|
8497
|
-
})), n.$$set = (
|
|
8498
|
-
"five" in
|
|
8497
|
+
})), n.$$set = (P) => {
|
|
8498
|
+
"five" in P && e(4, a = P.five), "pxmm" in P && e(5, l = P.pxmm), "floorplanData" in P && e(6, c = P.floorplanData), "cameraImageUrl" in P && e(0, h = P.cameraImageUrl);
|
|
8499
8499
|
}, n.$$.update = () => {
|
|
8500
8500
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
8501
8501
|
576 && e(10, i = c.floorDatas[g]), n.$$.dirty & /*floorData*/
|
|
@@ -9114,26 +9114,26 @@ function H0(n) {
|
|
|
9114
9114
|
};
|
|
9115
9115
|
}
|
|
9116
9116
|
function N0(n, t, e) {
|
|
9117
|
-
var
|
|
9118
|
-
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, u = 0, f = (k = (
|
|
9119
|
-
function v(
|
|
9120
|
-
e(12, f = i.work.observers[
|
|
9117
|
+
var P, k;
|
|
9118
|
+
let { five: i } = t, { visible: s } = t, { hoverEnable: o } = t, { floorplanData: r } = t, { cameraImageUrl: a } = t, { extraObjects: l = [] } = t, { highlightData: c } = t, { missingFloorImageUrl: h } = t, u = 0, f = (k = (P = i.work.observers[i.getCurrentState().panoIndex]) == null ? void 0 : P.floorIndex) != null ? k : 0, g = 0, A = 0, p = 0, m = 0;
|
|
9119
|
+
function v(I) {
|
|
9120
|
+
e(12, f = i.work.observers[I].floorIndex);
|
|
9121
9121
|
}
|
|
9122
9122
|
Et(() => (i.on("panoArrived", v), () => {
|
|
9123
9123
|
i.off("panoArrived", v);
|
|
9124
9124
|
}));
|
|
9125
|
-
const y = (
|
|
9126
|
-
e(8, g =
|
|
9127
|
-
}, E = (
|
|
9128
|
-
e(9, A =
|
|
9125
|
+
const y = (I) => {
|
|
9126
|
+
e(8, g = I.detail);
|
|
9127
|
+
}, E = (I) => {
|
|
9128
|
+
e(9, A = I.detail);
|
|
9129
9129
|
};
|
|
9130
|
-
return n.$$set = (
|
|
9131
|
-
"five" in
|
|
9130
|
+
return n.$$set = (I) => {
|
|
9131
|
+
"five" in I && e(0, i = I.five), "visible" in I && e(1, s = I.visible), "hoverEnable" in I && e(2, o = I.hoverEnable), "floorplanData" in I && e(3, r = I.floorplanData), "cameraImageUrl" in I && e(4, a = I.cameraImageUrl), "extraObjects" in I && e(5, l = I.extraObjects), "highlightData" in I && e(6, c = I.highlightData), "missingFloorImageUrl" in I && e(7, h = I.missingFloorImageUrl);
|
|
9132
9132
|
}, n.$$.update = () => {
|
|
9133
9133
|
if (n.$$.dirty & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
9134
9134
|
1800) {
|
|
9135
|
-
const
|
|
9136
|
-
return W > _ ? [
|
|
9135
|
+
const I = Math.min(g, A), { max: j, min: V } = r.bounding, W = j.x - V.x, _ = j.y - V.y, N = function() {
|
|
9136
|
+
return W > _ ? [I, I / W * _] : [I / _ * W, I];
|
|
9137
9137
|
}();
|
|
9138
9138
|
e(10, p = N[0]), e(13, m = N[1]), e(11, u = p / W);
|
|
9139
9139
|
}
|
|
@@ -9444,9 +9444,9 @@ const ex = (n, t) => {
|
|
|
9444
9444
|
let o = { x: 0, y: 0, z: 0 }, r = [0, 0, 0], a = 1, l = i;
|
|
9445
9445
|
n.on("modelLoaded", A);
|
|
9446
9446
|
const c = (m) => Q(void 0, null, function* () {
|
|
9447
|
-
var
|
|
9447
|
+
var P;
|
|
9448
9448
|
const v = (m == null ? void 0 : m.fbx_url) || e;
|
|
9449
|
-
if (l = (
|
|
9449
|
+
if (l = (P = m == null ? void 0 : m.north_rad) != null ? P : i, typeof l != "number")
|
|
9450
9450
|
throw new Error('"northRad"配置参数缺失:未配置指南针指向!');
|
|
9451
9451
|
const E = yield new Ku().loadAsync(v);
|
|
9452
9452
|
return _f(E, {
|
|
@@ -9479,11 +9479,11 @@ const ex = (n, t) => {
|
|
|
9479
9479
|
const m = s.object;
|
|
9480
9480
|
if (!m)
|
|
9481
9481
|
return;
|
|
9482
|
-
const v = n.model.bounding, y = v.max.x - v.min.x, E = v.max.z - v.min.z,
|
|
9483
|
-
max: { x: k, z:
|
|
9482
|
+
const v = n.model.bounding, y = v.max.x - v.min.x, E = v.max.z - v.min.z, P = Math.max(y, E), {
|
|
9483
|
+
max: { x: k, z: I },
|
|
9484
9484
|
min: { x: j, y: V, z: W }
|
|
9485
9485
|
} = v;
|
|
9486
|
-
s.yBase = V, o = { x: (k + j) / 2, y: V - 1.6, z: (
|
|
9486
|
+
s.yBase = V, o = { x: (k + j) / 2, y: V - 1.6, z: (I + W) / 2 }, r = [0, l - Math.PI / 2, 0], a = 45e-4 * P, F0(m, { position: o, rotation: r, scale: a });
|
|
9487
9487
|
}
|
|
9488
9488
|
return { load: c, disable: g, enable: f };
|
|
9489
9489
|
};
|
|
@@ -9501,11 +9501,11 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9501
9501
|
const E = (_ = y == null ? void 0 : y.position) != null ? _ : s;
|
|
9502
9502
|
if (!E)
|
|
9503
9503
|
return Promise.reject(new Error("ModelEntryDoorGuidePlugin.load(): position is undefined"));
|
|
9504
|
-
const
|
|
9504
|
+
const P = W0(E), k = (N = y == null ? void 0 : y.rad) != null ? N : o, I = (G = y == null ? void 0 : y.fbx_url) != null ? G : r;
|
|
9505
9505
|
if (e.rad = k, k === void 0)
|
|
9506
9506
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): rad is ${k}`));
|
|
9507
|
-
const j = yield new Ku().loadAsync(
|
|
9508
|
-
j.position.copy(
|
|
9507
|
+
const j = yield new Ku().loadAsync(I);
|
|
9508
|
+
j.position.copy(P), j.rotation.z = k, j.scale.set(0.8, 0.8, 0.8), _f(j, { transparent: !0, side: w.DoubleSide });
|
|
9509
9509
|
const V = (X = (U = (F = (H = j.children) == null ? void 0 : H[0]) == null ? void 0 : F.children) == null ? void 0 : U[3]) == null ? void 0 : X.clone();
|
|
9510
9510
|
if (!V)
|
|
9511
9511
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${V}`));
|
|
@@ -9518,10 +9518,10 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9518
9518
|
return console.error("ModelEntryDoorGuidePlugin.initAnimation(): state.object is ", e.object);
|
|
9519
9519
|
const y = 1, E = new Pm(e.object);
|
|
9520
9520
|
a.push(E);
|
|
9521
|
-
const
|
|
9522
|
-
|
|
9521
|
+
const P = E.clipAction(e.object.animations[0]);
|
|
9522
|
+
P.timeScale = y;
|
|
9523
9523
|
let k;
|
|
9524
|
-
const
|
|
9524
|
+
const I = () => {
|
|
9525
9525
|
let _ = 0, N = 0;
|
|
9526
9526
|
const G = 1e3 / 30, H = (F) => {
|
|
9527
9527
|
_ = requestAnimationFrame(H);
|
|
@@ -9532,18 +9532,18 @@ const W0 = ({ x: n, y: t, z: e }) => new oe(n, t, e), tx = (n, t) => {
|
|
|
9532
9532
|
cancelAnimationFrame(_);
|
|
9533
9533
|
};
|
|
9534
9534
|
}, W = { play: () => {
|
|
9535
|
-
k || (
|
|
9535
|
+
k || (P.play(), k = I(), requestAnimationFrame(() => {
|
|
9536
9536
|
e.object && e.object.rotation.z !== e.rad && (e.object.rotation.z = e.rad);
|
|
9537
9537
|
}));
|
|
9538
9538
|
}, stop: () => {
|
|
9539
|
-
|
|
9539
|
+
P.stop(), k == null || k(), k = void 0;
|
|
9540
9540
|
} };
|
|
9541
9541
|
e.animation = W;
|
|
9542
9542
|
}, h = (y) => {
|
|
9543
|
-
var
|
|
9543
|
+
var P;
|
|
9544
9544
|
if (!e.object)
|
|
9545
9545
|
return console.error("ModelEntryDoorGuidePlugin.enable(): object is ", e.object);
|
|
9546
|
-
((
|
|
9546
|
+
((P = y == null ? void 0 : y.animationEnable) != null ? P : i) && (e.animation || c(), e.animation.play()), n.scene.add(e.object), n.needsRender = !0;
|
|
9547
9547
|
}, u = () => {
|
|
9548
9548
|
e.object && (e.animation && e.animation.stop(), n.scene.remove(e.object), n.needsRender = !0);
|
|
9549
9549
|
}, f = (y) => y === "Floorplan" ? h() : u();
|
|
@@ -9627,8 +9627,8 @@ const Za = (n, t, e) => {
|
|
|
9627
9627
|
const { from: u, to: f } = i(o);
|
|
9628
9628
|
return yield new Promise((g) => {
|
|
9629
9629
|
const A = ({ progress: E }) => {
|
|
9630
|
-
const
|
|
9631
|
-
|
|
9630
|
+
const P = {};
|
|
9631
|
+
P.longitude = pa(u.longitude, f.longitude, E), P.latitude = pa(u.latitude, f.latitude, E), P.fov = pa(u.fov, f.fov, E), n.setState(P, !0);
|
|
9632
9632
|
}, p = () => {
|
|
9633
9633
|
g(!0);
|
|
9634
9634
|
}, m = () => {
|
|
@@ -9831,7 +9831,7 @@ const K0 = `<style type="text/css">
|
|
|
9831
9831
|
if (!y)
|
|
9832
9832
|
return !1;
|
|
9833
9833
|
for (const E in m) {
|
|
9834
|
-
const
|
|
9834
|
+
const P = m[E], { standingPosition: k } = y.observers[0], I = P.map(({ x: j, z: V, observers: W }) => {
|
|
9835
9835
|
const _ = W.length > 0 ? p.rooms[p.observers[W[0]]].name : "", N = v[_] ? v[_].floor : null;
|
|
9836
9836
|
let G = 1 / 0, H = {
|
|
9837
9837
|
index: 0,
|
|
@@ -9856,19 +9856,19 @@ const K0 = `<style type="text/css">
|
|
|
9856
9856
|
return X && Object.assign(X, { observers: W }), { origin: F, vertical: X };
|
|
9857
9857
|
});
|
|
9858
9858
|
r[E] = {
|
|
9859
|
-
origins:
|
|
9859
|
+
origins: I.map((j) => j.origin),
|
|
9860
9860
|
rules: []
|
|
9861
9861
|
};
|
|
9862
|
-
for (const { origin: j, vertical: V } of
|
|
9862
|
+
for (const { origin: j, vertical: V } of I) {
|
|
9863
9863
|
if (!V)
|
|
9864
9864
|
continue;
|
|
9865
9865
|
const W = i(E, j.distanceTo(V));
|
|
9866
9866
|
s.append(W), r[E].rules.push({ vertical: !0, rule: [j, V], $element: W });
|
|
9867
9867
|
}
|
|
9868
|
-
for (let j = 0; j <
|
|
9868
|
+
for (let j = 0; j < I.length; j++) {
|
|
9869
9869
|
let V = j + 1;
|
|
9870
|
-
V >=
|
|
9871
|
-
const { origin: W } =
|
|
9870
|
+
V >= I.length && (V = 0);
|
|
9871
|
+
const { origin: W } = I[j], { origin: _ } = I[V], N = i(E, W.distanceTo(_));
|
|
9872
9872
|
s.append(N), r[E].rules.push({ vertical: !1, rule: [W, _], $element: N });
|
|
9873
9873
|
}
|
|
9874
9874
|
}
|
|
@@ -9878,7 +9878,7 @@ const K0 = `<style type="text/css">
|
|
|
9878
9878
|
if (!y || !E)
|
|
9879
9879
|
throw new Error("标尺数据依赖不齐全!");
|
|
9880
9880
|
return e.loaded = !1, e.options = D(D({}, e.options), v || {}), n.model.loaded ? a(y, E) : yield new Promise(
|
|
9881
|
-
(
|
|
9881
|
+
(P) => n.once("modelLoaded", () => P(a(y, E)))
|
|
9882
9882
|
);
|
|
9883
9883
|
});
|
|
9884
9884
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
@@ -9900,12 +9900,12 @@ const K0 = `<style type="text/css">
|
|
|
9900
9900
|
{ x: 0, y },
|
|
9901
9901
|
{ x: v, y }
|
|
9902
9902
|
]
|
|
9903
|
-
],
|
|
9903
|
+
], P = [];
|
|
9904
9904
|
for (let k = 0; k < E.length; k++) {
|
|
9905
|
-
const
|
|
9906
|
-
|
|
9905
|
+
const I = Uf([p, m], [E[k][0], E[k][1]], !0);
|
|
9906
|
+
I && P.push(I);
|
|
9907
9907
|
}
|
|
9908
|
-
return
|
|
9908
|
+
return P.length === 0 ? !1 : P;
|
|
9909
9909
|
}, h = () => {
|
|
9910
9910
|
var W;
|
|
9911
9911
|
const p = (W = n.getElement()) == null ? void 0 : W.parentElement;
|
|
@@ -9923,7 +9923,7 @@ const K0 = `<style type="text/css">
|
|
|
9923
9923
|
N.style.display = "none";
|
|
9924
9924
|
return;
|
|
9925
9925
|
}
|
|
9926
|
-
const
|
|
9926
|
+
const P = v.position, k = v.getWorldDirection(new oe()), I = p.clientWidth, j = p.clientHeight;
|
|
9927
9927
|
if (y !== dt.Mode.Panorama) {
|
|
9928
9928
|
for (const _ in r)
|
|
9929
9929
|
for (const { $element: N } of r[_].rules)
|
|
@@ -9934,7 +9934,7 @@ const K0 = `<style type="text/css">
|
|
|
9934
9934
|
for (const { $element: N } of r[_].rules)
|
|
9935
9935
|
N.style.display = _ === E ? "block" : "none";
|
|
9936
9936
|
const [V] = r[E].origins.slice().filter((_) => _.observers.indexOf(m) >= 0).sort((_, N) => {
|
|
9937
|
-
const G = _.clone().setY(0).sub(
|
|
9937
|
+
const G = _.clone().setY(0).sub(P).normalize().angleTo(k.clone().setY(0)), H = N.clone().setY(0).sub(P).normalize().angleTo(k.clone().setY(0));
|
|
9938
9938
|
return G - H;
|
|
9939
9939
|
});
|
|
9940
9940
|
for (const { rule: _, vertical: N, $element: G } of r[E].rules) {
|
|
@@ -9957,25 +9957,25 @@ const K0 = `<style type="text/css">
|
|
|
9957
9957
|
G.style.display = "none";
|
|
9958
9958
|
continue;
|
|
9959
9959
|
}
|
|
9960
|
-
if (H.clone().sub(
|
|
9960
|
+
if (H.clone().sub(P).normalize().angleTo(k) > Math.PI / 2) {
|
|
9961
9961
|
G.style.display = "none";
|
|
9962
9962
|
continue;
|
|
9963
9963
|
}
|
|
9964
|
-
if (F.clone().sub(
|
|
9964
|
+
if (F.clone().sub(P).normalize().angleTo(k) > Math.PI / 2) {
|
|
9965
9965
|
G.style.display = "none";
|
|
9966
9966
|
continue;
|
|
9967
9967
|
}
|
|
9968
9968
|
const $ = H.distanceTo(F);
|
|
9969
|
-
if (F.clone().sub(F.clone().sub(H).divide(new oe(2, 2, 2))).distanceTo(
|
|
9969
|
+
if (F.clone().sub(F.clone().sub(H).divide(new oe(2, 2, 2))).distanceTo(P) / $ > 8) {
|
|
9970
9970
|
G.style.display = "none";
|
|
9971
9971
|
continue;
|
|
9972
9972
|
}
|
|
9973
|
-
const Pe = H.clone().project(v), Ce = (Pe.x + 1) / 2 *
|
|
9973
|
+
const Pe = H.clone().project(v), Ce = (Pe.x + 1) / 2 * I, be = (-Pe.y + 1) / 2 * j, Qe = F.clone().project(v), ye = (Qe.x + 1) / 2 * I, Ze = (-Qe.y + 1) / 2 * j, ee = Math.sqrt(Math.pow(ye - Ce, 2) + Math.pow(Ze - be, 2));
|
|
9974
9974
|
let ve = ee, je = 50;
|
|
9975
9975
|
const me = c({ x: ~~Ce, y: ~~be }, {
|
|
9976
9976
|
x: ~~ye,
|
|
9977
9977
|
y: ~~Ze
|
|
9978
|
-
},
|
|
9978
|
+
}, I, j);
|
|
9979
9979
|
if (me && me.length === 1 && (V === H ? (ve = Math.sqrt(Math.pow(me[0].x - Ce, 2) + Math.pow(me[0].y - be, 2)), je = ve / ee * 50) : V === F && (ve = Math.sqrt(Math.pow(me[0].x - ye, 2) + Math.pow(me[0].y - Ze, 2)), je = 100 - ve / ee * 50)), me && me.length === 2) {
|
|
9980
9980
|
const re = {
|
|
9981
9981
|
x: (me[0].x + me[1].x) / 2,
|
|
@@ -9997,8 +9997,8 @@ const K0 = `<style type="text/css">
|
|
|
9997
9997
|
const m = p.distanceText;
|
|
9998
9998
|
e.options.distanceText = m, Object.values(r).forEach((v) => {
|
|
9999
9999
|
v.rules.forEach((y) => {
|
|
10000
|
-
const [E,
|
|
10001
|
-
|
|
10000
|
+
const [E, P] = y.rule, k = E.distanceTo(P), I = y.$element.querySelector(".PanoRulerPlugin-rule-label-name");
|
|
10001
|
+
I && (I.innerText = m(k));
|
|
10002
10002
|
});
|
|
10003
10003
|
});
|
|
10004
10004
|
}
|
|
@@ -10307,34 +10307,34 @@ function ab(n) {
|
|
|
10307
10307
|
function lb(n, t, e) {
|
|
10308
10308
|
var p, m, v, y;
|
|
10309
10309
|
let { five: i } = t, { rulerDatas: s } = t, { options: o } = t, r = [];
|
|
10310
|
-
const a = ((m = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (E,
|
|
10310
|
+
const a = ((m = (p = i.getElement()) == null ? void 0 : p.parentElement) == null ? void 0 : m.clientWidth) || 0, l = ((y = (v = i.getElement()) == null ? void 0 : v.parentElement) == null ? void 0 : y.clientHeight) || 0, c = (E, P) => {
|
|
10311
10311
|
const k = [
|
|
10312
10312
|
[{ x: 0, y: 0 }, { x: a, y: 0 }],
|
|
10313
10313
|
[{ x: 0, y: 0 }, { x: 0, y: l }],
|
|
10314
10314
|
[{ x: a, y: 0 }, { x: a, y: l }],
|
|
10315
10315
|
[{ x: 0, y: l }, { x: a, y: l }]
|
|
10316
|
-
],
|
|
10316
|
+
], I = [];
|
|
10317
10317
|
for (let j = 0; j < k.length; j++) {
|
|
10318
|
-
const V = Uf([E,
|
|
10319
|
-
V &&
|
|
10318
|
+
const V = Uf([E, P], [k[j][0], k[j][1]], !0);
|
|
10319
|
+
V && I.push(V);
|
|
10320
10320
|
}
|
|
10321
|
-
return
|
|
10322
|
-
}, h = (E,
|
|
10323
|
-
const k = E.clone().project(i.camera),
|
|
10321
|
+
return I.length === 0 ? !1 : I;
|
|
10322
|
+
}, h = (E, P) => {
|
|
10323
|
+
const k = E.clone().project(i.camera), I = (k.x + 1) / 2 * a, j = (-k.y + 1) / 2 * l, V = P.clone().project(i.camera), W = (V.x + 1) / 2 * a, _ = (-V.y + 1) / 2 * l, N = Math.sqrt(Math.pow(W - I, 2) + Math.pow(_ - j, 2));
|
|
10324
10324
|
return {
|
|
10325
|
-
startLeft:
|
|
10325
|
+
startLeft: I,
|
|
10326
10326
|
startTop: j,
|
|
10327
10327
|
endLeft: W,
|
|
10328
10328
|
endTop: _,
|
|
10329
10329
|
distance: N
|
|
10330
10330
|
};
|
|
10331
|
-
}, u = (E,
|
|
10332
|
-
const
|
|
10331
|
+
}, u = (E, P, k) => {
|
|
10332
|
+
const I = i.camera.position, j = i.camera.getWorldDirection(new oe()), V = E.clone().sub(I).normalize().angleTo(j), W = P.clone().sub(I).normalize().angleTo(j), _ = E.distanceTo(P), G = P.clone().sub(P.clone().sub(E).divide(new oe(2, 2, 2))).distanceTo(I), { startLeft: H, startTop: F, endLeft: U, endTop: X, distance: J } = h(E, P), de = -((Math.PI / 2 - Math.atan2(U - H, F - X)) / Math.PI) * 180;
|
|
10333
10333
|
let he = !0;
|
|
10334
|
-
k || (he = !1), !bt(E, k) && !bt(
|
|
10334
|
+
k || (he = !1), !bt(E, k) && !bt(P, k) && (he = !1), _ < 0.3 && (he = !1), V > Math.PI / 2 && (he = !1), W > Math.PI / 2 && (he = !1), G / _ > 8 && (he = !1);
|
|
10335
10335
|
let Pe = 50, Ce = J;
|
|
10336
10336
|
const be = c({ x: ~~H, y: ~~F }, { x: ~~U, y: ~~X });
|
|
10337
|
-
if (be && be.length === 1 && (bt(E, k) ? (Ce = Math.sqrt(Math.pow(be[0].x - H, 2) + Math.pow(be[0].y - F, 2)), Pe = Ce / J * 50) : bt(
|
|
10337
|
+
if (be && be.length === 1 && (bt(E, k) ? (Ce = Math.sqrt(Math.pow(be[0].x - H, 2) + Math.pow(be[0].y - F, 2)), Pe = Ce / J * 50) : bt(P, k) && (Ce = Math.sqrt(Math.pow(be[0].x - U, 2) + Math.pow(be[0].y - X, 2)), Pe = 100 - Ce / J * 50)), be && be.length === 2) {
|
|
10338
10338
|
const Qe = {
|
|
10339
10339
|
x: (be[0].x + be[1].x) / 2,
|
|
10340
10340
|
y: (be[0].y + be[1].y) / 2
|
|
@@ -10351,15 +10351,15 @@ function lb(n, t, e) {
|
|
|
10351
10351
|
ruleLength: _
|
|
10352
10352
|
};
|
|
10353
10353
|
}, f = () => {
|
|
10354
|
-
const E = i.panoIndex,
|
|
10355
|
-
if (!
|
|
10354
|
+
const E = i.panoIndex, P = s.find((N) => N.panoIndex === E);
|
|
10355
|
+
if (!P)
|
|
10356
10356
|
return e(0, r = []);
|
|
10357
10357
|
if (i.currentMode !== dt.Mode.Panorama)
|
|
10358
10358
|
return e(0, r = []);
|
|
10359
|
-
const k = i.camera.position,
|
|
10360
|
-
const H = N.clone().setY(0).sub(k).normalize().angleTo(
|
|
10359
|
+
const k = i.camera.position, I = i.camera.getWorldDirection(new oe()), j = P.lines.map((N) => new oe(N.start[0], -N.start[1], -N.start[2])), V = P.lines.map((N) => new oe(N.end[0], -N.end[1], -N.end[2])), [W] = j.concat(V).sort((N, G) => {
|
|
10360
|
+
const H = N.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0)), F = G.clone().setY(0).sub(k).normalize().angleTo(I.clone().setY(0));
|
|
10361
10361
|
return H - F;
|
|
10362
|
-
}), _ =
|
|
10362
|
+
}), _ = P.lines.map((N) => {
|
|
10363
10363
|
var Ce, be;
|
|
10364
10364
|
const G = N.start, H = N.end, { startLeft: F, startTop: U, distance: X, deg: J, visible: $, labelOffset: de, ruleLength: he } = u(new oe(G[0], -G[1], -G[2]), new oe(H[0], -H[1], -H[2]), W), Pe = [];
|
|
10365
10365
|
return N.children && ((Ce = N.children) == null ? void 0 : Ce.length) > 0 && ((be = N.children) == null || be.forEach((Qe) => {
|
|
@@ -10882,10 +10882,10 @@ class Db extends Jf {
|
|
|
10882
10882
|
this.hide();
|
|
10883
10883
|
return;
|
|
10884
10884
|
}
|
|
10885
|
-
const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o,
|
|
10886
|
-
this.containerDom.style.transform = `translate(${v}px, ${y}px) rotate(${
|
|
10887
|
-
const
|
|
10888
|
-
this.contentDom.innerText =
|
|
10885
|
+
const v = (f.x + 1) / 2 * s, y = -(f.y - 1) / 2 * o, P = -(Math.atan((g.y - A.y) / (g.x - A.x)) * 180) / Math.PI, k = this.containerDom.parentElement && this.contentDom.clientWidth > p ? -20 : 0;
|
|
10886
|
+
this.containerDom.style.transform = `translate(${v}px, ${y}px) rotate(${P}deg) translateY(${k}px)`, this.show(), (j = this.params.userDistanceItem) == null || j.update({ line: this.line, polyline: this.line.getPolyline() });
|
|
10887
|
+
const I = this.getCurrentContent();
|
|
10888
|
+
this.contentDom.innerText = I;
|
|
10889
10889
|
}
|
|
10890
10890
|
/** 获取内容文本 */
|
|
10891
10891
|
getCurrentContent() {
|
|
@@ -11852,19 +11852,19 @@ class Pi extends Ar {
|
|
|
11852
11852
|
if (s != null && s.isPolygonMesh) {
|
|
11853
11853
|
const v = this.model.areas.find((y) => y.polygon === s);
|
|
11854
11854
|
if (v) {
|
|
11855
|
-
const { x: y, y: E } = i[0].point.clone().project(this.five.camera),
|
|
11856
|
-
return this.chooseArea(v, { left:
|
|
11855
|
+
const { x: y, y: E } = i[0].point.clone().project(this.five.camera), P = `${(y + 1) / 2 * 100}%`, k = `${(-E + 1) / 2 * 100}%`;
|
|
11856
|
+
return this.chooseArea(v, { left: P, top: k }), !1;
|
|
11857
11857
|
}
|
|
11858
11858
|
}
|
|
11859
11859
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
11860
11860
|
if (!o)
|
|
11861
11861
|
return;
|
|
11862
11862
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new yt(a.x * l, a.y * c), u = this.model.getAllLines().map((v) => {
|
|
11863
|
-
const [y, E] = v.points,
|
|
11864
|
-
if (!Ki(
|
|
11863
|
+
const [y, E] = v.points, P = y.position.clone().project(r), k = E.position.clone().project(r);
|
|
11864
|
+
if (!Ki(P) && !Ki(k))
|
|
11865
11865
|
return null;
|
|
11866
|
-
const
|
|
11867
|
-
return { id: v.id, points: [
|
|
11866
|
+
const I = new yt(P.x * l, P.y * c), j = new yt(k.x * l, k.y * c);
|
|
11867
|
+
return { id: v.id, points: [I, j] };
|
|
11868
11868
|
}).filter((v) => !!v);
|
|
11869
11869
|
if (u.length === 0)
|
|
11870
11870
|
return;
|
|
@@ -12091,19 +12091,19 @@ class mh extends Ar {
|
|
|
12091
12091
|
if (s instanceof $f) {
|
|
12092
12092
|
const m = this.model.areas.find((v) => v.polygon === s);
|
|
12093
12093
|
if (m) {
|
|
12094
|
-
const { x: v, y } = i[0].point.clone().project(this.five.camera), E = `${(v + 1) / 2 * 100}%`,
|
|
12095
|
-
return this.chooseArea(m, { left: E, top:
|
|
12094
|
+
const { x: v, y } = i[0].point.clone().project(this.five.camera), E = `${(v + 1) / 2 * 100}%`, P = `${(-y + 1) / 2 * 100}%`;
|
|
12095
|
+
return this.chooseArea(m, { left: E, top: P }), !1;
|
|
12096
12096
|
}
|
|
12097
12097
|
}
|
|
12098
12098
|
const [o] = this.five.model.intersectRaycaster(e);
|
|
12099
12099
|
if (!o)
|
|
12100
12100
|
return;
|
|
12101
12101
|
const r = this.five.camera, a = o.point.clone().project(r), l = this.container.clientWidth, c = this.container.clientHeight, h = new yt(a.x * l, a.y * c), u = this.model.getAllLines().map((m) => {
|
|
12102
|
-
const [v, y] = m.points, E = v.position.clone().project(r),
|
|
12103
|
-
if (!Ki(E) && !Ki(
|
|
12102
|
+
const [v, y] = m.points, E = v.position.clone().project(r), P = y.position.clone().project(r);
|
|
12103
|
+
if (!Ki(E) && !Ki(P))
|
|
12104
12104
|
return null;
|
|
12105
|
-
const k = new yt(E.x * l, E.y * c),
|
|
12106
|
-
return { id: m.id, points: [k,
|
|
12105
|
+
const k = new yt(E.x * l, E.y * c), I = new yt(P.x * l, P.y * c);
|
|
12106
|
+
return { id: m.id, points: [k, I] };
|
|
12107
12107
|
}).filter((m) => !!m);
|
|
12108
12108
|
if (u.length === 0)
|
|
12109
12109
|
return;
|
|
@@ -13998,20 +13998,20 @@ function T1(n) {
|
|
|
13998
13998
|
16 && x(m, 1)) : (m = Sh(y), m.c(), x(m, 1), m.m(l, c)) : m && (ue(), O(m, 1, 1, () => {
|
|
13999
13999
|
m = null;
|
|
14000
14000
|
}), fe());
|
|
14001
|
-
const
|
|
14001
|
+
const P = {};
|
|
14002
14002
|
E & /*buttonState*/
|
|
14003
|
-
8 && (
|
|
14003
|
+
8 && (P.onClick = /*func*/
|
|
14004
14004
|
y[14]), E & /*buttonState*/
|
|
14005
|
-
8 && (
|
|
14005
|
+
8 && (P.text = /*buttonTextMap*/
|
|
14006
14006
|
y[6][
|
|
14007
14007
|
/*buttonState*/
|
|
14008
14008
|
y[3]
|
|
14009
14009
|
]), E & /*buttonState*/
|
|
14010
|
-
8 && (
|
|
14010
|
+
8 && (P.color = /*buttonColorMap*/
|
|
14011
14011
|
y[7][
|
|
14012
14012
|
/*buttonState*/
|
|
14013
14013
|
y[3]
|
|
14014
|
-
]), u.$set(
|
|
14014
|
+
]), u.$set(P), (!g || E & /*allowAddPoint*/
|
|
14015
14015
|
32) && q(h, "forbid", !/*allowAddPoint*/
|
|
14016
14016
|
y[5]), /*showButton*/
|
|
14017
14017
|
y[4] ? v ? (v.p(y, E), E & /*showButton*/
|
|
@@ -14061,19 +14061,19 @@ function L1(n, t, e) {
|
|
|
14061
14061
|
i.currentMeasureType === "area" && h === "complete" && p("add");
|
|
14062
14062
|
}, E = (_) => {
|
|
14063
14063
|
_.length;
|
|
14064
|
-
},
|
|
14064
|
+
}, P = () => {
|
|
14065
14065
|
p("start"), k("allow");
|
|
14066
14066
|
}, k = (_) => {
|
|
14067
14067
|
e(5, c = _ === "allow");
|
|
14068
|
-
},
|
|
14068
|
+
}, I = (_) => {
|
|
14069
14069
|
e(12, u = _);
|
|
14070
14070
|
}, j = (_) => {
|
|
14071
14071
|
_.isEmpty && p("start");
|
|
14072
14072
|
};
|
|
14073
14073
|
Et(() => {
|
|
14074
|
-
i.hook.on("revoke", j), i.hook.on("measureTypeChange",
|
|
14074
|
+
i.hook.on("revoke", j), i.hook.on("measureTypeChange", I), i.hook.on("modeChange", P), i.hook.on("pointsChange", E), i.hook.on("allowAddPointStateChange", k), i.hook.on("readyComplete", v), i.hook.on("notReadyComplete", y), i.hook.on("complete", P);
|
|
14075
14075
|
}), Bt(() => {
|
|
14076
|
-
i.hook.off("measureTypeChange",
|
|
14076
|
+
i.hook.off("measureTypeChange", I), i.hook.off("modeChange", P), i.hook.off("allowAddPointStateChange", k), i.hook.off("readyComplete", v), i.hook.off("pointsChange", E), i.hook.off("notReadyComplete", y), i.hook.off("complete", P);
|
|
14077
14077
|
});
|
|
14078
14078
|
const V = () => i.revoke(), W = () => {
|
|
14079
14079
|
h === "start" ? f() : h === "add" ? g() : (h === "end" || h === "complete") && m();
|
|
@@ -14300,8 +14300,8 @@ function V1(n, t, e) {
|
|
|
14300
14300
|
let { measureController: i } = t, { i18n: s = (y) => y } = t, { tips: o } = t, { tipStyle: r = {} } = t, { visible: a = !0 } = t, l = null;
|
|
14301
14301
|
const c = (y) => {
|
|
14302
14302
|
const E = i.currentMeasureType;
|
|
14303
|
-
let
|
|
14304
|
-
return
|
|
14303
|
+
let P = "";
|
|
14304
|
+
return P = o[y], P === void 0 && (P = o[E][y]), P;
|
|
14305
14305
|
}, h = (y) => {
|
|
14306
14306
|
e(2, f = s(c(y)));
|
|
14307
14307
|
}, u = () => {
|
|
@@ -14854,9 +14854,9 @@ function q1(n, t, e) {
|
|
|
14854
14854
|
},
|
|
14855
14855
|
100
|
|
14856
14856
|
);
|
|
14857
|
-
const E = (
|
|
14857
|
+
const E = (I) => {
|
|
14858
14858
|
const j = Object.keys(f);
|
|
14859
|
-
let V =
|
|
14859
|
+
let V = I.target;
|
|
14860
14860
|
for (; V; ) {
|
|
14861
14861
|
const W = V.getAttribute("class");
|
|
14862
14862
|
if (!W) {
|
|
@@ -14875,10 +14875,10 @@ function q1(n, t, e) {
|
|
|
14875
14875
|
Et(() => {
|
|
14876
14876
|
g.emit("initTag", { id: i });
|
|
14877
14877
|
});
|
|
14878
|
-
const
|
|
14879
|
-
if (
|
|
14878
|
+
const P = ug.subscribe((I) => {
|
|
14879
|
+
if (I === null)
|
|
14880
14880
|
return;
|
|
14881
|
-
const [j, V] =
|
|
14881
|
+
const [j, V] = I.split("-PanoSpatialTagPlugin-");
|
|
14882
14882
|
i === j && (g.emit("clickOrigin", { id: i, show: v }), y || (e(10, v = h), e(12, h = !h), y = setTimeout(
|
|
14883
14883
|
() => {
|
|
14884
14884
|
y = void 0;
|
|
@@ -14889,15 +14889,15 @@ function q1(n, t, e) {
|
|
|
14889
14889
|
Mf(() => {
|
|
14890
14890
|
e(7, A = m.offsetWidth), e(8, p = m.offsetHeight), !y && e(10, v = !h);
|
|
14891
14891
|
}), Bt(() => {
|
|
14892
|
-
g.emit("destroyTag", { id: i }),
|
|
14892
|
+
g.emit("destroyTag", { id: i }), P(), u();
|
|
14893
14893
|
});
|
|
14894
|
-
function k(
|
|
14895
|
-
_e[
|
|
14896
|
-
m =
|
|
14894
|
+
function k(I) {
|
|
14895
|
+
_e[I ? "unshift" : "push"](() => {
|
|
14896
|
+
m = I, e(9, m);
|
|
14897
14897
|
});
|
|
14898
14898
|
}
|
|
14899
|
-
return n.$$set = (
|
|
14900
|
-
"id" in
|
|
14899
|
+
return n.$$set = (I) => {
|
|
14900
|
+
"id" in I && e(0, i = I.id), "upsideDown" in I && e(1, s = I.upsideDown), "content" in I && e(2, o = I.content), "contentZoom" in I && e(3, r = I.contentZoom), "lineWidthZoom" in I && e(4, a = I.lineWidthZoom), "lineHeightZoom" in I && e(5, l = I.lineHeightZoom), "destroying" in I && e(6, c = I.destroying), "folded" in I && e(12, h = I.folded), "dispose" in I && e(13, u = I.dispose), "events" in I && e(14, f = I.events), "hooks" in I && e(15, g = I.hooks);
|
|
14901
14901
|
}, [
|
|
14902
14902
|
i,
|
|
14903
14903
|
s,
|
|
@@ -15106,9 +15106,9 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15106
15106
|
target: f,
|
|
15107
15107
|
props: { origins: p.origins }
|
|
15108
15108
|
}), v = (ee, ve) => {
|
|
15109
|
-
k(), ve &&
|
|
15109
|
+
k(), ve && I();
|
|
15110
15110
|
}, y = () => {
|
|
15111
|
-
p.forbidden && (p.forbidden = !1,
|
|
15111
|
+
p.forbidden && (p.forbidden = !1, I());
|
|
15112
15112
|
}, E = (ee, ve) => {
|
|
15113
15113
|
if (p.tags.length === 0)
|
|
15114
15114
|
return;
|
|
@@ -15137,7 +15137,7 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15137
15137
|
xe.destroying && (xe.app.$destroy(), xe = null);
|
|
15138
15138
|
}), p.tags = p.tags.filter((xe) => !xe.destroying), k();
|
|
15139
15139
|
}, 1900);
|
|
15140
|
-
},
|
|
15140
|
+
}, P = (ee) => {
|
|
15141
15141
|
ee !== dt.Mode.Panorama && !p.forbidden && (m.$set({ origins: [] }), p.tags.forEach((ve) => {
|
|
15142
15142
|
ve.app.$destroy(), ve = null;
|
|
15143
15143
|
}), p.origins = [], p.tags = [], p.forbidden = !0);
|
|
@@ -15155,7 +15155,7 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15155
15155
|
destroying: je.destroying
|
|
15156
15156
|
};
|
|
15157
15157
|
}), m.$set({ origins: p.origins });
|
|
15158
|
-
},
|
|
15158
|
+
}, I = () => {
|
|
15159
15159
|
p.forbidden || !p.enabled || (p.timeoutId && clearTimeout(p.timeoutId), p.timeoutId = setTimeout(() => {
|
|
15160
15160
|
p.timeoutId = void 0;
|
|
15161
15161
|
const ee = j();
|
|
@@ -15263,9 +15263,9 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15263
15263
|
};
|
|
15264
15264
|
}), ee.render && (p.render = ee.render), ee.template && (p.template = ee.template), ee.events && (p.events = ee.events), ee.enabled === !1 && (p.enabled = ee.enabled), ee.folded === !0 && (p.folded = ee.folded);
|
|
15265
15265
|
}, W = (ee) => {
|
|
15266
|
-
p.intersectObjects = ee,
|
|
15266
|
+
p.intersectObjects = ee, I();
|
|
15267
15267
|
}, _ = () => {
|
|
15268
|
-
p.enabled = !0,
|
|
15268
|
+
p.enabled = !0, I();
|
|
15269
15269
|
}, N = () => {
|
|
15270
15270
|
p.enabled = !1, m.$set({ origins: [] }), p.tags.forEach((ee) => {
|
|
15271
15271
|
ee.app.$destroy(), ee = null;
|
|
@@ -15289,11 +15289,11 @@ const Aa = 1e-3, Nh = 0.01, sy = "https://vrlab-image4.ljcdn.com/release/web/Pan
|
|
|
15289
15289
|
}, X = () => {
|
|
15290
15290
|
n.once("renderFrame", k);
|
|
15291
15291
|
}, J = () => {
|
|
15292
|
-
e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new w.Vector3()).y,
|
|
15292
|
+
e || (e = n.getElement().parentElement), e && e.appendChild(f), p.forbidden = !1, i = n.model.bounding.getCenter(new w.Vector3()).y, I(), n.on("panoWillArrive", E), n.on("panoArrived", y), n.on("modeChange", P), n.on("cameraUpdate", v);
|
|
15293
15293
|
}, $ = () => {
|
|
15294
15294
|
A = null, u.disposeAll(), m.$destroy(), p.tags.forEach((ee) => {
|
|
15295
15295
|
ee.app.$destroy(), ee = null;
|
|
15296
|
-
}), p.origins = [], p.tags = [], n.off("modelLoaded", J), n.off("renderFrame", k), n.off("panoWillArrive", E), n.off("panoArrived", y), n.off("modeChange",
|
|
15296
|
+
}), p.origins = [], p.tags = [], n.off("modelLoaded", J), n.off("renderFrame", k), n.off("panoWillArrive", E), n.off("panoArrived", y), n.off("modeChange", P), n.off("cameraUpdate", v), n.off("dispose", $), window.removeEventListener("resize", X, !1);
|
|
15297
15297
|
};
|
|
15298
15298
|
return window.addEventListener("resize", X, !1), (Ze = n == null ? void 0 : n.model) != null && Ze.loaded ? J() : n.once("modelLoaded", J), n.on("dispose", $), {
|
|
15299
15299
|
load: V,
|
|
@@ -15580,7 +15580,7 @@ function fy(n, t, e) {
|
|
|
15580
15580
|
const U = new s(F.modelPosition[0], F.modelPosition[1], F.modelPosition[2]), X = H.project2d(U), J = X == null ? void 0 : X.x, $ = X == null ? void 0 : X.y;
|
|
15581
15581
|
return [J, $];
|
|
15582
15582
|
}, y = (H) => `translate(${H[0]}px, ${H[1]}px)`, E = (H, F) => A.length === 0 ? !1 : !!A.find((X) => H[0] >= X[0] - F && H[0] <= X[0] + F || H[1] >= X[1] - Fh && H[1] <= X[1] + Fh);
|
|
15583
|
-
function
|
|
15583
|
+
function P(H, F) {
|
|
15584
15584
|
switch (F) {
|
|
15585
15585
|
case Pn.SMALL:
|
|
15586
15586
|
return Math.ceil(-27.78 * H + 85);
|
|
@@ -15594,7 +15594,7 @@ function fy(n, t, e) {
|
|
|
15594
15594
|
}
|
|
15595
15595
|
const k = (H, F) => {
|
|
15596
15596
|
const U = F.map((J) => {
|
|
15597
|
-
const $ = v(H, J), de = J.name.length * uy, he =
|
|
15597
|
+
const $ = v(H, J), de = J.name.length * uy, he = P(J.modelPosition[1], c), Ce = (r ? m(H, J) : !0) && !E([$[0], $[1] + he], de);
|
|
15598
15598
|
if (!Ce)
|
|
15599
15599
|
return se(D({}, J), { visible: Ce });
|
|
15600
15600
|
A.push($);
|
|
@@ -15612,7 +15612,7 @@ function fy(n, t, e) {
|
|
|
15612
15612
|
const $ = X.findIndex((de) => de.itemLabelItem.id === J.id);
|
|
15613
15613
|
return $ !== void 0 ? se(D({}, J), { zIndex: $ * 10 }) : J;
|
|
15614
15614
|
});
|
|
15615
|
-
},
|
|
15615
|
+
}, I = () => {
|
|
15616
15616
|
A = [], e(1, u = k(o, u));
|
|
15617
15617
|
};
|
|
15618
15618
|
Ef(() => {
|
|
@@ -15622,19 +15622,19 @@ function fy(n, t, e) {
|
|
|
15622
15622
|
e(4, p = !1), V();
|
|
15623
15623
|
};
|
|
15624
15624
|
Et(() => {
|
|
15625
|
-
e(1, u = a), h = a,
|
|
15625
|
+
e(1, u = a), h = a, I(), W(), o.on("cameraUpdate", j);
|
|
15626
15626
|
});
|
|
15627
15627
|
const V = fg(
|
|
15628
15628
|
() => {
|
|
15629
|
-
e(4, p = !0),
|
|
15629
|
+
e(4, p = !0), I();
|
|
15630
15630
|
},
|
|
15631
15631
|
300
|
|
15632
15632
|
), W = () => {
|
|
15633
15633
|
window.addEventListener("resize", N, !1);
|
|
15634
15634
|
}, _ = () => {
|
|
15635
|
-
h !== a && (e(1, u = a), h = a,
|
|
15635
|
+
h !== a && (e(1, u = a), h = a, I());
|
|
15636
15636
|
}, N = () => {
|
|
15637
|
-
o.once("renderFrame",
|
|
15637
|
+
o.once("renderFrame", I);
|
|
15638
15638
|
};
|
|
15639
15639
|
Bt(() => {
|
|
15640
15640
|
o.off("cameraUpdate", j), window.removeEventListener("resize", N, !1);
|
|
@@ -15791,8 +15791,8 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15791
15791
|
return;
|
|
15792
15792
|
const y = () => {
|
|
15793
15793
|
var E;
|
|
15794
|
-
e.videoTexture && ((E = e.videoTexture) == null || E.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((
|
|
15795
|
-
|
|
15794
|
+
e.videoTexture && ((E = e.videoTexture) == null || E.image.removeEventListener("timeupdate", y), e.videoTextureEnabled = !0, e.videoMeshes.forEach((P) => {
|
|
15795
|
+
P.material.map !== e.videoTexture && (P.material.map = e.videoTexture);
|
|
15796
15796
|
}), n.needsRender = !0);
|
|
15797
15797
|
};
|
|
15798
15798
|
e.videoTexture.image.addEventListener("timeupdate", y), e.videoTexture && e.videoMeshes.length && (e.videoTexture.image.play(), e.videoTexture.image.onplay = () => {
|
|
@@ -15812,34 +15812,34 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15812
15812
|
v.geometry.dispose(), v.material.dispose(), n.scene.remove(v), e.videoTexture && e.videoTexture.image.pause();
|
|
15813
15813
|
}), e.videoMeshes = [], n.needsRender = !0);
|
|
15814
15814
|
}, c = () => e.rectPoints.map((v, y) => {
|
|
15815
|
-
const E = new w.BufferGeometry(),
|
|
15815
|
+
const E = new w.BufferGeometry(), P = 128, k = [];
|
|
15816
15816
|
k.push(...v[0].toArray());
|
|
15817
|
-
for (let G = 1; G <
|
|
15817
|
+
for (let G = 1; G < P; G++)
|
|
15818
15818
|
k.push(
|
|
15819
|
-
v[0].x + (v[1].x - v[0].x) * G /
|
|
15820
|
-
v[0].y + (v[1].y - v[0].y) * G /
|
|
15821
|
-
v[0].z + (v[1].z - v[0].z) * G /
|
|
15819
|
+
v[0].x + (v[1].x - v[0].x) * G / P,
|
|
15820
|
+
v[0].y + (v[1].y - v[0].y) * G / P,
|
|
15821
|
+
v[0].z + (v[1].z - v[0].z) * G / P
|
|
15822
15822
|
);
|
|
15823
15823
|
k.push(...v[1].toArray()), k.push(...v[2].toArray());
|
|
15824
|
-
for (let G = 1; G <
|
|
15824
|
+
for (let G = 1; G < P; G++)
|
|
15825
15825
|
k.push(
|
|
15826
|
-
v[2].x + (v[3].x - v[2].x) * G /
|
|
15827
|
-
v[2].y + (v[3].y - v[2].y) * G /
|
|
15828
|
-
v[2].z + (v[3].z - v[2].z) * G /
|
|
15826
|
+
v[2].x + (v[3].x - v[2].x) * G / P,
|
|
15827
|
+
v[2].y + (v[3].y - v[2].y) * G / P,
|
|
15828
|
+
v[2].z + (v[3].z - v[2].z) * G / P
|
|
15829
15829
|
);
|
|
15830
15830
|
k.push(...v[3].toArray());
|
|
15831
|
-
const
|
|
15832
|
-
|
|
15833
|
-
for (let G = 1; G <
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
for (let G = 1; G <
|
|
15837
|
-
|
|
15838
|
-
|
|
15831
|
+
const I = [];
|
|
15832
|
+
I.push(0, 1);
|
|
15833
|
+
for (let G = 1; G < P; G++)
|
|
15834
|
+
I.push(0, 1 - G / P);
|
|
15835
|
+
I.push(0, 0), I.push(1, 0);
|
|
15836
|
+
for (let G = 1; G < P; G++)
|
|
15837
|
+
I.push(1, G / P);
|
|
15838
|
+
I.push(1, 1);
|
|
15839
15839
|
const j = [];
|
|
15840
|
-
for (let G = 0; G <
|
|
15841
|
-
j.push(G, G + 1,
|
|
15842
|
-
E.setAttribute("position", new w.BufferAttribute(new Float32Array(k), 3)), E.setAttribute("uv", new w.BufferAttribute(new Float32Array(
|
|
15840
|
+
for (let G = 0; G < P; G++)
|
|
15841
|
+
j.push(G, G + 1, P * 2 - G, G, P * 2 - G, P * 2 + 1 - G);
|
|
15842
|
+
E.setAttribute("position", new w.BufferAttribute(new Float32Array(k), 3)), E.setAttribute("uv", new w.BufferAttribute(new Float32Array(I), 2)), E.setIndex(new w.BufferAttribute(new Uint32Array(j), 1));
|
|
15843
15843
|
const V = new w.MeshBasicMaterial({
|
|
15844
15844
|
map: e.videoTextureEnabled ? e.videoTexture : e.imageTexture,
|
|
15845
15845
|
side: w.DoubleSide
|
|
@@ -15860,22 +15860,22 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15860
15860
|
return y.minFilter = w.LinearFilter, y.magFilter = w.LinearFilter, y.format = w.RGBFormat, y;
|
|
15861
15861
|
}, u = (v, y) => {
|
|
15862
15862
|
let E = y;
|
|
15863
|
-
return new Promise((
|
|
15864
|
-
const
|
|
15865
|
-
|
|
15866
|
-
if (
|
|
15867
|
-
if (
|
|
15863
|
+
return new Promise((P, k) => {
|
|
15864
|
+
const I = new XMLHttpRequest();
|
|
15865
|
+
I.onreadystatechange = () => {
|
|
15866
|
+
if (I.readyState === 4)
|
|
15867
|
+
if (I.status === 200) {
|
|
15868
15868
|
const j = window.URL || window.webkitURL;
|
|
15869
|
-
E = E || document.createElement("video"), E.crossOrigin = "anonymous", E.muted = !0, E.loop = !0, E.playsInline = !0, E.src = j.createObjectURL(
|
|
15869
|
+
E = E || document.createElement("video"), E.crossOrigin = "anonymous", E.muted = !0, E.loop = !0, E.playsInline = !0, E.src = j.createObjectURL(I.response);
|
|
15870
15870
|
const V = new w.VideoTexture(E);
|
|
15871
|
-
V.minFilter = w.LinearFilter, V.magFilter = w.LinearFilter, V.format = w.RGBFormat,
|
|
15871
|
+
V.minFilter = w.LinearFilter, V.magFilter = w.LinearFilter, V.format = w.RGBFormat, P(Object.assign(V, { videoSource: v }));
|
|
15872
15872
|
} else
|
|
15873
|
-
k(new Error("Video download Error: " +
|
|
15874
|
-
},
|
|
15873
|
+
k(new Error("Video download Error: " + I.status));
|
|
15874
|
+
}, I.onerror = (j) => k(j), I.open("GET", v), I.responseType = "blob", I.send();
|
|
15875
15875
|
});
|
|
15876
15876
|
}, f = (v, y) => Q(void 0, null, function* () {
|
|
15877
|
-
const { video_src: E, video_poster_src:
|
|
15878
|
-
e.videoSource = E, e.rectPoints = py(k).map((
|
|
15877
|
+
const { video_src: E, video_poster_src: P, points: k } = v;
|
|
15878
|
+
e.videoSource = E, e.rectPoints = py(k).map((I) => I.map(({ x: j, y: V, z: W }) => new w.Vector3(j, V, W))), e.imageTexture = h(P), y && (e.videoElement = y), e.videoTexture = yield u(e.videoSource, e.videoElement), e.enabled = !!v.enable, e.enabled && a();
|
|
15879
15879
|
}), g = (v) => {
|
|
15880
15880
|
if (!e.enabled)
|
|
15881
15881
|
return;
|
|
@@ -15889,14 +15889,14 @@ const Ay = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAqCAYAAADFw8lbAA
|
|
|
15889
15889
|
return;
|
|
15890
15890
|
const v = n.camera.position;
|
|
15891
15891
|
if (s.forEach((y, E) => {
|
|
15892
|
-
const
|
|
15892
|
+
const P = y.css3DObject.position.clone(), k = P.clone().sub(v).normalize(), I = new w.Raycaster(v, k), j = n.model.intersectRaycaster(I)[0], V = P.distanceTo(v), W = 0.01;
|
|
15893
15893
|
j && j.distance + W < V ? y.hide() : y.show();
|
|
15894
15894
|
}), !r()) {
|
|
15895
15895
|
const y = e.rectPoints.find((E) => {
|
|
15896
|
-
const
|
|
15897
|
-
return E.map((k) => k.clone().add(
|
|
15898
|
-
const
|
|
15899
|
-
return !(V && V.distance + W <
|
|
15896
|
+
const P = E[0].clone().add(E[1]).add(E[2]).add(E[3]).divideScalar(4);
|
|
15897
|
+
return E.map((k) => k.clone().add(P).divideScalar(2)).filter((k) => {
|
|
15898
|
+
const I = k.distanceTo(v), j = new w.Raycaster(v, k.clone().sub(v).normalize()), V = n.model.intersectRaycaster(j)[0], W = 0.01;
|
|
15899
|
+
return !(V && V.distance + W < I);
|
|
15900
15900
|
}).length >= 2;
|
|
15901
15901
|
});
|
|
15902
15902
|
(!y || y.length === 0) && o(!0);
|
|
@@ -16315,7 +16315,7 @@ function Ty(n, t, e) {
|
|
|
16315
16315
|
}, E = (F, U) => {
|
|
16316
16316
|
const X = new i(U.modelPosition[0], U.modelPosition[1], U.modelPosition[2]), J = F.project2d(X), $ = J == null ? void 0 : J.x, de = J == null ? void 0 : J.y;
|
|
16317
16317
|
return [$, de];
|
|
16318
|
-
},
|
|
16318
|
+
}, P = (F, U) => {
|
|
16319
16319
|
const X = U.map(($) => {
|
|
16320
16320
|
if (F.state.panoIndex !== $.panoIndex)
|
|
16321
16321
|
return se(D({}, $), { visible: !1 });
|
|
@@ -16340,8 +16340,8 @@ function Ty(n, t, e) {
|
|
|
16340
16340
|
return de !== void 0 ? se(D({}, $), { zIndex: de * 10 }) : $;
|
|
16341
16341
|
});
|
|
16342
16342
|
}, k = () => {
|
|
16343
|
-
p = [], e(1, u =
|
|
16344
|
-
},
|
|
16343
|
+
p = [], e(1, u = P(s, u));
|
|
16344
|
+
}, I = () => {
|
|
16345
16345
|
e(5, m = !1), j();
|
|
16346
16346
|
}, j = fg(
|
|
16347
16347
|
() => {
|
|
@@ -16394,9 +16394,9 @@ function Ty(n, t, e) {
|
|
|
16394
16394
|
Ef(() => {
|
|
16395
16395
|
_();
|
|
16396
16396
|
}), Et(() => {
|
|
16397
|
-
e(1, u = Uh(r)), h = r, k(), W(), s.on("cameraUpdate",
|
|
16397
|
+
e(1, u = Uh(r)), h = r, k(), W(), s.on("cameraUpdate", I);
|
|
16398
16398
|
}), Bt(() => {
|
|
16399
|
-
s.off("cameraUpdate",
|
|
16399
|
+
s.off("cameraUpdate", I), window.removeEventListener("resize", V, !1);
|
|
16400
16400
|
});
|
|
16401
16401
|
function H() {
|
|
16402
16402
|
g = this.clientWidth, A = this.clientHeight, e(3, g), e(4, A);
|
|
@@ -16760,21 +16760,21 @@ class Wy extends Oy {
|
|
|
16760
16760
|
}), this.fixDoorPosition();
|
|
16761
16761
|
});
|
|
16762
16762
|
d(this, "fixDoorPosition", () => {
|
|
16763
|
-
var h, u, f, g, A, p, m, v, y, E,
|
|
16763
|
+
var h, u, f, g, A, p, m, v, y, E, P, k;
|
|
16764
16764
|
const { panoIndex: e, camera: i } = this.five;
|
|
16765
16765
|
if (e === null)
|
|
16766
16766
|
return;
|
|
16767
16767
|
if (this.five.currentMode !== "Panorama")
|
|
16768
16768
|
return this.hideAllLabels();
|
|
16769
16769
|
const s = this.five.getElement(), o = s.clientWidth, r = s.clientHeight, a = i.getWorldDirection(new oe()), l = [], c = [...this.labelItems];
|
|
16770
|
-
if (c.forEach((
|
|
16771
|
-
if (
|
|
16772
|
-
const V = i.position.distanceTo(
|
|
16773
|
-
|
|
16770
|
+
if (c.forEach((I, j) => {
|
|
16771
|
+
if (I.visible) {
|
|
16772
|
+
const V = i.position.distanceTo(I.position), W = I.position.clone().add(new oe(0, this.OffsetHeight, 0)), N = W.clone().sub(i.position).normalize().angleTo(a), G = W.clone().project(i), H = (G.x + 1) / 2.2 * 100, F = (-G.y + 1) / 2.2 * 100, U = H >= 0 && H <= 100 && F >= 0 && F <= 100 && V > this.MinVisibledistance && V <= this.MaxVisibledistance;
|
|
16773
|
+
I.left = H, I.top = F, I.inSight = U && N < Math.PI / 2, I.cameraToward = Qy(this.five), U ? l.push({ disFromCameraToLabel: V, left: H, top: F, index: j }) : I.transform = "translate(-50%, -50%)";
|
|
16774
16774
|
} else
|
|
16775
|
-
|
|
16775
|
+
I.inSight = !1;
|
|
16776
16776
|
}), l.length > 1) {
|
|
16777
|
-
let
|
|
16777
|
+
let I = 0;
|
|
16778
16778
|
l.sort((j, V) => V.disFromCameraToLabel - j.disFromCameraToLabel);
|
|
16779
16779
|
for (let j = 1; j < l.length; j++) {
|
|
16780
16780
|
const { index: V, left: W, top: _ } = l[j - 1], { index: N, left: G, top: H } = l[j], F = this.container.children[V], U = this.container.children[N];
|
|
@@ -16789,9 +16789,9 @@ class Wy extends Oy {
|
|
|
16789
16789
|
left: o * G / 100,
|
|
16790
16790
|
top: r * H / 100,
|
|
16791
16791
|
width: (y = (v = (m = U.children) == null ? void 0 : m[0]) == null ? void 0 : v.clientWidth) != null ? y : 0,
|
|
16792
|
-
height: (k = (
|
|
16792
|
+
height: (k = (P = (E = U.children) == null ? void 0 : E[0]) == null ? void 0 : P.clientHeight) != null ? k : 0
|
|
16793
16793
|
};
|
|
16794
|
-
Ny(X, J) && (
|
|
16794
|
+
Ny(X, J) && (I++, c[V].transform = `translate(-50%, ${(I - 1) * 100 - 50}%)`, c[N].transform = `translate(-50%, ${I * 100 - 50}%)`);
|
|
16795
16795
|
}
|
|
16796
16796
|
}
|
|
16797
16797
|
this.labelItems = c, this.render();
|
|
@@ -16961,29 +16961,29 @@ function dw(n) {
|
|
|
16961
16961
|
if (o.length === 0)
|
|
16962
16962
|
return { geometry: new w.BufferGeometry(), maxU: 0, curvePath: null, curvePoints: null };
|
|
16963
16963
|
const r = new w.CurvePath();
|
|
16964
|
-
o.forEach((
|
|
16965
|
-
const j = uw(
|
|
16964
|
+
o.forEach((I) => {
|
|
16965
|
+
const j = uw(I);
|
|
16966
16966
|
j && r.add(j);
|
|
16967
16967
|
});
|
|
16968
16968
|
const a = Math.ceil(r.getLength() * 100);
|
|
16969
16969
|
r.arcLengthDivisions = a;
|
|
16970
|
-
const l = r.getPoints(a), c = l.length, h = rw(l.map((
|
|
16971
|
-
let E = 0,
|
|
16972
|
-
for (let
|
|
16973
|
-
const [j, V] = h[
|
|
16974
|
-
v[
|
|
16970
|
+
const l = r.getPoints(a), c = l.length, h = rw(l.map((I) => [I.x, I.z])), f = (c - 1) * aw * lw, g = 2 * c, A = g * cw, p = g * hw, m = new Uint32Array(f), v = new Float32Array(A), y = new Float32Array(p);
|
|
16971
|
+
let E = 0, P = 0;
|
|
16972
|
+
for (let I = 0; I < l.length; I++) {
|
|
16973
|
+
const [j, V] = h[I][0], W = l[I], { x: _, y: N, z: G } = W, H = new oe(_ + j * s, N + 0.05, G + V * s);
|
|
16974
|
+
v[I * 6 + 0] = H.x, v[I * 6 + 1] = H.y, v[I * 6 + 2] = H.z;
|
|
16975
16975
|
const F = new oe(_ - j * s, N + 0.05, G - V * s);
|
|
16976
|
-
v[
|
|
16976
|
+
v[I * 6 + 3] = F.x, v[I * 6 + 4] = F.y, v[I * 6 + 5] = F.z, E += I > 0 ? l[I - 1].clone().sub(l[I]).length() : 0;
|
|
16977
16977
|
const U = E / t / i;
|
|
16978
|
-
if (
|
|
16978
|
+
if (P = U, y[I * 4 + 0] = 0, y[I * 4 + 1] = U, y[I * 4 + 2] = 1, y[I * 4 + 3] = U, n.skipPositions) {
|
|
16979
16979
|
const X = new w.Vector3().lerpVectors(H, F, 0.5);
|
|
16980
16980
|
if (n.skipPositions.some(($) => $.distanceTo(X) < 0.26))
|
|
16981
16981
|
continue;
|
|
16982
16982
|
}
|
|
16983
|
-
|
|
16983
|
+
I !== l.length - 1 && (m[I * 6 + 0] = I * 2 + 0, m[I * 6 + 1] = I * 2 + 2, m[I * 6 + 2] = I * 2 + 1, m[I * 6 + 3] = I * 2 + 2, m[I * 6 + 4] = I * 2 + 3, m[I * 6 + 5] = I * 2 + 1);
|
|
16984
16984
|
}
|
|
16985
16985
|
const k = new w.BufferGeometry();
|
|
16986
|
-
return k.setAttribute("position", new w.BufferAttribute(v, 3)), k.setAttribute("uv", new w.BufferAttribute(y, 2)), k.setIndex(new w.BufferAttribute(m, 1)), { geometry: k, maxU:
|
|
16986
|
+
return k.setAttribute("position", new w.BufferAttribute(v, 3)), k.setAttribute("uv", new w.BufferAttribute(y, 2)), k.setIndex(new w.BufferAttribute(m, 1)), { geometry: k, maxU: P, curvePath: r, curvePoints: l };
|
|
16987
16987
|
}
|
|
16988
16988
|
function uw(n) {
|
|
16989
16989
|
if (fw(n)) {
|
|
@@ -18196,34 +18196,34 @@ class Nw extends jw {
|
|
|
18196
18196
|
return e.config;
|
|
18197
18197
|
}
|
|
18198
18198
|
const o = {}, r = {}, a = {};
|
|
18199
|
-
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E,
|
|
18199
|
+
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([E, P]) => {
|
|
18200
18200
|
var N, G;
|
|
18201
|
-
const k = E,
|
|
18201
|
+
const k = E, I = k.split("-"), j = E.startsWith("["), V = j ? I[0].slice(1, -1) : void 0, W = j ? I.slice(1) : I, _ = V ? ["PanoramaLike", "ModelLike"].includes(V) ? (N = r[V]) != null ? N : r[V] = {} : (G = a[V]) != null ? G : a[V] = {} : o;
|
|
18202
18202
|
if (!_[k]) {
|
|
18203
|
-
if (W.length === 0 && (_[k] =
|
|
18203
|
+
if (W.length === 0 && (_[k] = P), W.length === 1) {
|
|
18204
18204
|
const [H] = W;
|
|
18205
|
-
(e.contentType === H || H === "Any") && (_[k] =
|
|
18205
|
+
(e.contentType === H || H === "Any") && (_[k] = P);
|
|
18206
18206
|
}
|
|
18207
18207
|
if (W.length === 2) {
|
|
18208
18208
|
const [H = "Any", F = "Any"] = W;
|
|
18209
|
-
H === "Mixin" && e.contentType === F && (_[k] =
|
|
18209
|
+
H === "Mixin" && e.contentType === F && (_[k] = P), (e.stickType === H || H === "Any") && (e.contentType === F || F === "Any") && (_[k] = P);
|
|
18210
18210
|
}
|
|
18211
18211
|
if (W.length === 3) {
|
|
18212
18212
|
const [H = "Any", F, U] = W;
|
|
18213
18213
|
if (F === "Audio" && e.contentType === "Audio") {
|
|
18214
18214
|
const X = e;
|
|
18215
|
-
(X.stickType === H || H === "Any") && X.data.appearance === U && (_[k] =
|
|
18215
|
+
(X.stickType === H || H === "Any") && X.data.appearance === U && (_[k] = P);
|
|
18216
18216
|
}
|
|
18217
18217
|
}
|
|
18218
18218
|
}
|
|
18219
18219
|
});
|
|
18220
18220
|
const l = (y = e.initialConfig) != null ? y : {}, c = Re({}, xw, this.config.globalConfig, ...Object.values(o)), h = Re({}, c, l), u = {}, f = Object.values(dt.Mode);
|
|
18221
|
-
td(r).forEach(([E,
|
|
18221
|
+
td(r).forEach(([E, P]) => {
|
|
18222
18222
|
f.forEach((k) => {
|
|
18223
|
-
(E === "PanoramaLike" && Nt(k) || E === "ModelLike" && Ln(k)) && (u[k] = Re({}, c, ...Object.values(
|
|
18223
|
+
(E === "PanoramaLike" && Nt(k) || E === "ModelLike" && Ln(k)) && (u[k] = Re({}, c, ...Object.values(P), l, { _isMerged: !0 }));
|
|
18224
18224
|
});
|
|
18225
|
-
}), td(a).forEach(([E,
|
|
18226
|
-
u[E] = Re({}, c, ...Object.values(
|
|
18225
|
+
}), td(a).forEach(([E, P]) => {
|
|
18226
|
+
u[E] = Re({}, c, ...Object.values(P), l, { _isMerged: !0 });
|
|
18227
18227
|
});
|
|
18228
18228
|
const g = se(D({}, h), { configWithFiveMode: u });
|
|
18229
18229
|
return ed(g), Object.values(u).forEach((E) => ed(E)), g._isMerged = !0, g;
|
|
@@ -18262,80 +18262,91 @@ class Gw extends Nw {
|
|
|
18262
18262
|
return r.visible;
|
|
18263
18263
|
{
|
|
18264
18264
|
const a = [], l = (() => {
|
|
18265
|
-
var
|
|
18266
|
-
const c =
|
|
18267
|
-
|
|
18265
|
+
var g, A, p, m, v, y, E;
|
|
18266
|
+
const c = this.getTagConfig(t);
|
|
18267
|
+
console.log("getVisible", i.mode, c.initialState);
|
|
18268
|
+
const h = c.initialState, u = t.__lastInitialState;
|
|
18269
|
+
if (h.visible !== void 0 && h.visible !== (u == null ? void 0 : u.visible))
|
|
18268
18270
|
return {
|
|
18269
|
-
value:
|
|
18271
|
+
value: h.visible,
|
|
18272
|
+
checkedList: a,
|
|
18273
|
+
reason: "initialState changed",
|
|
18274
|
+
do_not_cache: !0
|
|
18275
|
+
};
|
|
18276
|
+
t.__lastInitialState = h;
|
|
18277
|
+
const f = (g = c.visibleConfig) != null ? g : {};
|
|
18278
|
+
if (typeof f == "function")
|
|
18279
|
+
return {
|
|
18280
|
+
value: f(this.five, { tag: t, distance: this.getDistance(t, i) }),
|
|
18270
18281
|
checkedList: a,
|
|
18271
18282
|
reason: "config function result"
|
|
18272
18283
|
};
|
|
18273
|
-
if (
|
|
18284
|
+
if (f.keep === "hidden")
|
|
18274
18285
|
return { value: !1, checkedList: a, reason: "config.keep is hidden" };
|
|
18275
|
-
if (
|
|
18286
|
+
if (f.keep === "visible")
|
|
18276
18287
|
return { value: !0, checkedList: a, reason: "config.keep is visible" };
|
|
18277
|
-
if (
|
|
18278
|
-
const
|
|
18279
|
-
let
|
|
18280
|
-
if (Array.isArray(
|
|
18288
|
+
if (f.visibleFiveMode !== void 0) {
|
|
18289
|
+
const P = typeof f.visibleFiveMode == "function" ? f.visibleFiveMode(t) : f.visibleFiveMode;
|
|
18290
|
+
let k = !1;
|
|
18291
|
+
if (Array.isArray(P) ? k = P.includes(o) : P === "ModelLike" ? k = Ln(o) : P === "PanoramaLike" ? k = !Nt(o) : P === "all" ? k = !0 : typeof P == "string" && (k = P === o), k === !1)
|
|
18281
18292
|
return {
|
|
18282
18293
|
value: !1,
|
|
18283
18294
|
checkedList: a,
|
|
18284
18295
|
reason: "current mode is not included in visibleFiveMode",
|
|
18285
|
-
visibleFiveMode:
|
|
18296
|
+
visibleFiveMode: f.visibleFiveMode,
|
|
18286
18297
|
mode: o
|
|
18287
18298
|
};
|
|
18288
|
-
} else if (
|
|
18299
|
+
} else if (f.visibleFiveMode === void 0 && ((A = this.five.getCurrentState()) == null ? void 0 : A.mode) !== ((m = (p = t.fiveState) == null ? void 0 : p.mode) != null ? m : "Panorama"))
|
|
18289
18300
|
return {
|
|
18290
18301
|
value: !1,
|
|
18291
18302
|
checkedList: a,
|
|
18292
18303
|
reason: "current mode is not equal to tag.fiveState.mode",
|
|
18293
|
-
tagFiveMode: (
|
|
18304
|
+
tagFiveMode: (v = t.fiveState) == null ? void 0 : v.mode,
|
|
18294
18305
|
mode: o
|
|
18295
18306
|
};
|
|
18296
|
-
if (
|
|
18307
|
+
if (f.followModelVisibility === !0 && (o === "Floorplan" || o === "Mapview") && this.getVisibleByFloorIndex(t) === !1)
|
|
18297
18308
|
return { value: !1, checkedList: a, reason: "followModelVisibility check failed" };
|
|
18298
|
-
if (Nt(o) &&
|
|
18299
|
-
if (a.push("visiblePanoIndex"), Array.isArray(
|
|
18309
|
+
if (Nt(o) && f.visiblePanoIndex !== void 0 && f.visiblePanoIndex !== "all" && s !== void 0) {
|
|
18310
|
+
if (a.push("visiblePanoIndex"), Array.isArray(f.visiblePanoIndex) && !f.visiblePanoIndex.includes(s))
|
|
18300
18311
|
return {
|
|
18301
18312
|
value: !1,
|
|
18302
18313
|
checkedList: a,
|
|
18303
|
-
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${
|
|
18314
|
+
reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${s}, visiblePanoIndex: ${f.visiblePanoIndex}`
|
|
18304
18315
|
};
|
|
18305
|
-
if (
|
|
18316
|
+
if (f.visiblePanoIndex === "current" && s !== ((y = t.fiveState) == null ? void 0 : y.panoIndex))
|
|
18306
18317
|
return {
|
|
18307
18318
|
value: !1,
|
|
18308
18319
|
checkedList: a,
|
|
18309
|
-
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(
|
|
18320
|
+
reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${s}, tag.panoIndex: ${(E = t.fiveState) == null ? void 0 : E.panoIndex}`
|
|
18310
18321
|
};
|
|
18311
18322
|
}
|
|
18312
|
-
if (
|
|
18313
|
-
const
|
|
18314
|
-
if (ys(
|
|
18323
|
+
if (f.visibleDistance !== void 0 && (a.push("visibleDistance"), f.visibleDistance !== "unLimited")) {
|
|
18324
|
+
const P = this.getDistance(t, i);
|
|
18325
|
+
if (ys(P, f.visibleDistance) === !1)
|
|
18315
18326
|
return {
|
|
18316
18327
|
value: !1,
|
|
18317
18328
|
checkedList: a,
|
|
18318
18329
|
panoIndex: s,
|
|
18319
|
-
visibleDistance:
|
|
18320
|
-
reason: `distance is not in visibleDistance. distance: ${
|
|
18330
|
+
visibleDistance: f.visibleDistance,
|
|
18331
|
+
reason: `distance is not in visibleDistance. distance: ${P}, visibleDistance: ${f.visibleDistance.min} - ${f.visibleDistance.max}`
|
|
18321
18332
|
};
|
|
18322
18333
|
}
|
|
18323
|
-
if (Nt(o) &&
|
|
18334
|
+
if (Nt(o) && f.angleRange && Aw(t)) {
|
|
18324
18335
|
a.push("angleRange");
|
|
18325
|
-
const
|
|
18326
|
-
if (ys(
|
|
18327
|
-
return { value: !1, checkedList: a, reason: `angle is not in angleRange. angle: ${
|
|
18336
|
+
const P = this.getAngle(t, s);
|
|
18337
|
+
if (ys(P, f.angleRange) === !1)
|
|
18338
|
+
return { value: !1, checkedList: a, reason: `angle is not in angleRange. angle: ${P}, angleRange: ${f.angleRange}` };
|
|
18328
18339
|
}
|
|
18329
|
-
if (
|
|
18340
|
+
if (f.intersectRaycaster !== !1 && (typeof f.intersectRaycaster != "object" || f.intersectRaycaster.enabled !== !1)) {
|
|
18330
18341
|
if (a.push("intersectRaycaster"), s === void 0)
|
|
18331
18342
|
return {
|
|
18332
18343
|
value: !1,
|
|
18333
18344
|
checkedList: a,
|
|
18334
18345
|
reason: `intersectRaycaster check failed: panoIndex is ${s}`
|
|
18335
18346
|
};
|
|
18336
|
-
const
|
|
18337
|
-
if (
|
|
18338
|
-
return Object.assign(
|
|
18347
|
+
const P = this.getTagEnableByIntersect(t, s);
|
|
18348
|
+
if (P.value === !1)
|
|
18349
|
+
return Object.assign(P, { checkedList: a });
|
|
18339
18350
|
}
|
|
18340
18351
|
return {
|
|
18341
18352
|
value: !0,
|
|
@@ -18343,7 +18354,7 @@ class Gw extends Nw {
|
|
|
18343
18354
|
reason: "all check passed"
|
|
18344
18355
|
};
|
|
18345
18356
|
})();
|
|
18346
|
-
return r && (r.visible = l.value, r.__debug_visible_reason__ = l), l.value;
|
|
18357
|
+
return r && l.do_not_cache !== !0 && (r.visible = l.value, r.__debug_visible_reason__ = l), l.value;
|
|
18347
18358
|
}
|
|
18348
18359
|
}
|
|
18349
18360
|
/**
|
|
@@ -18412,7 +18423,7 @@ class Gw extends Nw {
|
|
|
18412
18423
|
if (l === -1 || l <= ((o = s.autoUnfold.maxNumber) != null ? o : 1) - 1 === !1)
|
|
18413
18424
|
return !1;
|
|
18414
18425
|
}
|
|
18415
|
-
return
|
|
18426
|
+
return s.autoUnfold.strategy !== "FoldWhenMove";
|
|
18416
18427
|
}
|
|
18417
18428
|
})() : void 0;
|
|
18418
18429
|
}
|
|
@@ -18478,8 +18489,8 @@ class Gw extends Nw {
|
|
|
18478
18489
|
return V;
|
|
18479
18490
|
})(), E = (h = i.distanceAccuracy) != null ? h : 0.01;
|
|
18480
18491
|
Math.min((u = v == null ? void 0 : v.distance) != null ? u : 1 / 0, (f = y == null ? void 0 : y.distance) != null ? f : 1 / 0) + E >= m ? a++ : l++;
|
|
18481
|
-
const
|
|
18482
|
-
if (a >=
|
|
18492
|
+
const I = (g = i.needPassed) != null ? g : 1;
|
|
18493
|
+
if (a >= I)
|
|
18483
18494
|
return { value: !0 };
|
|
18484
18495
|
}
|
|
18485
18496
|
return l === 0 ? { value: !0 } : {
|
|
@@ -19104,9 +19115,9 @@ function tC(n, t, e) {
|
|
|
19104
19115
|
let i, { inDelay: s = 0 } = t, { outDelay: o = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
19105
19116
|
const c = `__EMOJI_SPLIT_${So}__`, h = `__EMOJI_${So}__`, u = `__SPACE_${So}__`, f = `__NEW_LINE_${So}__`;
|
|
19106
19117
|
let g, A, p = [];
|
|
19107
|
-
function m(
|
|
19118
|
+
function m(I) {
|
|
19108
19119
|
const j = [], V = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
19109
|
-
return
|
|
19120
|
+
return I.slice().replace(V, (W) => `${c}${h}${W}${c}`).split(c).forEach((W) => W.startsWith(h) ? j.push({
|
|
19110
19121
|
id: nt(),
|
|
19111
19122
|
content: W.slice(h.length)
|
|
19112
19123
|
}) : j.push(...W.split("").map((_) => _ === " " ? u : _ === `
|
|
@@ -19115,24 +19126,24 @@ function tC(n, t, e) {
|
|
|
19115
19126
|
function v() {
|
|
19116
19127
|
if (!A)
|
|
19117
19128
|
return;
|
|
19118
|
-
const
|
|
19119
|
-
A.reversed !==
|
|
19129
|
+
const I = !a;
|
|
19130
|
+
A.reversed !== I && A.reverse(), A.play();
|
|
19120
19131
|
}
|
|
19121
|
-
function y(
|
|
19132
|
+
function y(I) {
|
|
19122
19133
|
if (l) {
|
|
19123
19134
|
e(5, l = !1);
|
|
19124
19135
|
return;
|
|
19125
19136
|
}
|
|
19126
|
-
clearTimeout(g), g = setTimeout(v,
|
|
19137
|
+
clearTimeout(g), g = setTimeout(v, I ? s : o);
|
|
19127
19138
|
}
|
|
19128
|
-
function E(
|
|
19139
|
+
function E(I) {
|
|
19129
19140
|
const j = function() {
|
|
19130
|
-
const V = Pw((W) =>
|
|
19141
|
+
const V = Pw((W) => I[W].getBoundingClientRect().x, [Math.min(I.length - 1, 10), Math.min(I.length - 1, 30)]);
|
|
19131
19142
|
if (V > 0)
|
|
19132
19143
|
return V;
|
|
19133
19144
|
}();
|
|
19134
19145
|
A = Qa({
|
|
19135
|
-
targets:
|
|
19146
|
+
targets: I.slice(0, j).filter(Me),
|
|
19136
19147
|
autoplay: !1,
|
|
19137
19148
|
duration: 400,
|
|
19138
19149
|
scale: [0.7, 1],
|
|
@@ -19144,23 +19155,23 @@ function tC(n, t, e) {
|
|
|
19144
19155
|
easing: "easeInOutCubic"
|
|
19145
19156
|
}), a && A.seek(A.duration);
|
|
19146
19157
|
}
|
|
19147
|
-
function I
|
|
19148
|
-
_e[
|
|
19149
|
-
p[j] =
|
|
19158
|
+
function P(I, j) {
|
|
19159
|
+
_e[I ? "unshift" : "push"](() => {
|
|
19160
|
+
p[j] = I, e(1, p);
|
|
19150
19161
|
});
|
|
19151
19162
|
}
|
|
19152
|
-
function k(
|
|
19153
|
-
_e[
|
|
19154
|
-
p[j] =
|
|
19163
|
+
function k(I, j) {
|
|
19164
|
+
_e[I ? "unshift" : "push"](() => {
|
|
19165
|
+
p[j] = I, e(1, p);
|
|
19155
19166
|
});
|
|
19156
19167
|
}
|
|
19157
|
-
return n.$$set = (
|
|
19158
|
-
"inDelay" in
|
|
19168
|
+
return n.$$set = (I) => {
|
|
19169
|
+
"inDelay" in I && e(6, s = I.inDelay), "outDelay" in I && e(7, o = I.outDelay), "content" in I && e(0, r = I.content), "unfolded" in I && e(8, a = I.unfolded), "isFistUnfoldedUpdate" in I && e(5, l = I.isFistUnfoldedUpdate);
|
|
19159
19170
|
}, n.$$.update = () => {
|
|
19160
19171
|
n.$$.dirty & /*content*/
|
|
19161
19172
|
1 && e(2, i = m(r)), n.$$.dirty & /*unfolded*/
|
|
19162
19173
|
256 && y(a), n.$$.dirty & /*spanEleList*/
|
|
19163
|
-
2 && E(p.filter((
|
|
19174
|
+
2 && E(p.filter((I) => !!I));
|
|
19164
19175
|
}, [
|
|
19165
19176
|
r,
|
|
19166
19177
|
p,
|
|
@@ -19171,7 +19182,7 @@ function tC(n, t, e) {
|
|
|
19171
19182
|
s,
|
|
19172
19183
|
o,
|
|
19173
19184
|
a,
|
|
19174
|
-
|
|
19185
|
+
P,
|
|
19175
19186
|
k
|
|
19176
19187
|
];
|
|
19177
19188
|
}
|
|
@@ -21244,8 +21255,8 @@ var To = bI, ir = {}, yI = {
|
|
|
21244
21255
|
}
|
|
21245
21256
|
};
|
|
21246
21257
|
(function(n, t) {
|
|
21247
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", A = "[object Object]", p = "[object Promise]", m = "[object RegExp]", v = "[object Set]", y = "[object String]", E = "[object Symbol]",
|
|
21248
|
-
he[o] = he[r] = he[k] = he[
|
|
21258
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 9007199254740991, o = "[object Arguments]", r = "[object Array]", a = "[object Boolean]", l = "[object Date]", c = "[object Error]", h = "[object Function]", u = "[object GeneratorFunction]", f = "[object Map]", g = "[object Number]", A = "[object Object]", p = "[object Promise]", m = "[object RegExp]", v = "[object Set]", y = "[object String]", E = "[object Symbol]", P = "[object WeakMap]", k = "[object ArrayBuffer]", I = "[object DataView]", j = "[object Float32Array]", V = "[object Float64Array]", W = "[object Int8Array]", _ = "[object Int16Array]", N = "[object Int32Array]", G = "[object Uint8Array]", H = "[object Uint8ClampedArray]", F = "[object Uint16Array]", U = "[object Uint32Array]", X = /[\\^$.*+?()[\]{}|]/g, J = /\w*$/, $ = /^\[object .+?Constructor\]$/, de = /^(?:0|[1-9]\d*)$/, he = {};
|
|
21259
|
+
he[o] = he[r] = he[k] = he[I] = he[a] = he[l] = he[j] = he[V] = he[W] = he[_] = he[N] = he[f] = he[g] = he[A] = he[m] = he[v] = he[y] = he[E] = he[G] = he[H] = he[F] = he[U] = !0, he[c] = he[h] = he[P] = !1;
|
|
21249
21260
|
var Pe = typeof Ot == "object" && Ot && Ot.Object === Object && Ot, Ce = typeof self == "object" && self && self.Object === Object && self, be = Pe || Ce || Function("return this")(), Qe = t && !t.nodeType && t, ye = Qe && !0 && n && !n.nodeType && n, Ze = ye && ye.exports === Qe;
|
|
21250
21261
|
function ee(b, M) {
|
|
21251
21262
|
return b.set(M[0], M[1]), b;
|
|
@@ -21561,12 +21572,12 @@ var To = bI, ir = {}, yI = {
|
|
|
21561
21572
|
return Ur(R) ? R : void 0;
|
|
21562
21573
|
}
|
|
21563
21574
|
var ai = is ? Ie(is, Object) : ra, li = Wr;
|
|
21564
|
-
(ln && li(new ln(new ArrayBuffer(1))) !=
|
|
21575
|
+
(ln && li(new ln(new ArrayBuffer(1))) != I || Oi && li(new Oi()) != f || Vt && li(Vt.resolve()) != p || cn && li(new cn()) != v || ns && li(new ns()) != P) && (li = function(b) {
|
|
21565
21576
|
var M = Rt.call(b), R = M == A ? b.constructor : void 0, Y = R ? Pt(R) : void 0;
|
|
21566
21577
|
if (Y)
|
|
21567
21578
|
switch (Y) {
|
|
21568
21579
|
case ss:
|
|
21569
|
-
return
|
|
21580
|
+
return I;
|
|
21570
21581
|
case Ri:
|
|
21571
21582
|
return f;
|
|
21572
21583
|
case os:
|
|
@@ -21574,7 +21585,7 @@ var To = bI, ir = {}, yI = {
|
|
|
21574
21585
|
case rs:
|
|
21575
21586
|
return v;
|
|
21576
21587
|
case as:
|
|
21577
|
-
return
|
|
21588
|
+
return P;
|
|
21578
21589
|
}
|
|
21579
21590
|
return M;
|
|
21580
21591
|
});
|
|
@@ -21593,7 +21604,7 @@ var To = bI, ir = {}, yI = {
|
|
|
21593
21604
|
case a:
|
|
21594
21605
|
case l:
|
|
21595
21606
|
return new Ee(+b);
|
|
21596
|
-
case
|
|
21607
|
+
case I:
|
|
21597
21608
|
return Vi(b, Y);
|
|
21598
21609
|
case j:
|
|
21599
21610
|
case V:
|
|
@@ -21697,8 +21708,8 @@ var nr = {}, CI = {
|
|
|
21697
21708
|
}
|
|
21698
21709
|
};
|
|
21699
21710
|
(function(n, t) {
|
|
21700
|
-
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", g = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", m = "[object Number]", v = "[object Null]", y = "[object Object]", E = "[object Promise]",
|
|
21701
|
-
ye[H] = ye[F] = ye[U] = ye[X] = ye[J] = ye[$] = ye[de] = ye[he] = ye[Pe] = !0, ye[a] = ye[l] = ye[N] = ye[h] = ye[G] = ye[u] = ye[f] = ye[g] = ye[p] = ye[m] = ye[y] = ye[k] = ye[
|
|
21711
|
+
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", u = "[object Date]", f = "[object Error]", g = "[object Function]", A = "[object GeneratorFunction]", p = "[object Map]", m = "[object Number]", v = "[object Null]", y = "[object Object]", E = "[object Promise]", P = "[object Proxy]", k = "[object RegExp]", I = "[object Set]", j = "[object String]", V = "[object Symbol]", W = "[object Undefined]", _ = "[object WeakMap]", N = "[object ArrayBuffer]", G = "[object DataView]", H = "[object Float32Array]", F = "[object Float64Array]", U = "[object Int8Array]", X = "[object Int16Array]", J = "[object Int32Array]", $ = "[object Uint8Array]", de = "[object Uint8ClampedArray]", he = "[object Uint16Array]", Pe = "[object Uint32Array]", Ce = /[\\^$.*+?()[\]{}|]/g, be = /^\[object .+?Constructor\]$/, Qe = /^(?:0|[1-9]\d*)$/, ye = {};
|
|
21712
|
+
ye[H] = ye[F] = ye[U] = ye[X] = ye[J] = ye[$] = ye[de] = ye[he] = ye[Pe] = !0, ye[a] = ye[l] = ye[N] = ye[h] = ye[G] = ye[u] = ye[f] = ye[g] = ye[p] = ye[m] = ye[y] = ye[k] = ye[I] = ye[j] = ye[_] = !1;
|
|
21702
21713
|
var Ze = typeof Ot == "object" && Ot && Ot.Object === Object && Ot, ee = typeof self == "object" && self && self.Object === Object && self, ve = Ze || ee || Function("return this")(), je = t && !t.nodeType && t, me = je && !0 && n && !n.nodeType && n, tt = me && me.exports === je, at = tt && Ze.process, xe = function() {
|
|
21703
21714
|
try {
|
|
21704
21715
|
return at && at.binding && at.binding("util");
|
|
@@ -22009,7 +22020,7 @@ var nr = {}, CI = {
|
|
|
22009
22020
|
return b == M + "";
|
|
22010
22021
|
case p:
|
|
22011
22022
|
var Te = Ve;
|
|
22012
|
-
case
|
|
22023
|
+
case I:
|
|
22013
22024
|
var qe = Y & s;
|
|
22014
22025
|
if (Te || (Te = Je), b.size != M.size && !qe)
|
|
22015
22026
|
return !1;
|
|
@@ -22082,7 +22093,7 @@ var nr = {}, CI = {
|
|
|
22082
22093
|
return ln.call(b, M);
|
|
22083
22094
|
}));
|
|
22084
22095
|
} : ra, Jt = Vi;
|
|
22085
|
-
(ss && Jt(new ss(new ArrayBuffer(1))) != G || Ri && Jt(new Ri()) != p || os && Jt(os.resolve()) != E || rs && Jt(new rs()) !=
|
|
22096
|
+
(ss && Jt(new ss(new ArrayBuffer(1))) != G || Ri && Jt(new Ri()) != p || os && Jt(os.resolve()) != E || rs && Jt(new rs()) != I || as && Jt(new as()) != _) && (Jt = function(b) {
|
|
22086
22097
|
var M = Vi(b), R = M == y ? b.constructor : void 0, Y = R ? Pt(R) : "";
|
|
22087
22098
|
if (Y)
|
|
22088
22099
|
switch (Y) {
|
|
@@ -22093,7 +22104,7 @@ var nr = {}, CI = {
|
|
|
22093
22104
|
case Er:
|
|
22094
22105
|
return E;
|
|
22095
22106
|
case Mr:
|
|
22096
|
-
return
|
|
22107
|
+
return I;
|
|
22097
22108
|
case kr:
|
|
22098
22109
|
return _;
|
|
22099
22110
|
}
|
|
@@ -22148,7 +22159,7 @@ var nr = {}, CI = {
|
|
|
22148
22159
|
if (!co(b))
|
|
22149
22160
|
return !1;
|
|
22150
22161
|
var M = Vi(b);
|
|
22151
|
-
return M == g || M == A || M == c || M ==
|
|
22162
|
+
return M == g || M == A || M == c || M == P;
|
|
22152
22163
|
}
|
|
22153
22164
|
function fs(b) {
|
|
22154
22165
|
return typeof b == "number" && b > -1 && b % 1 == 0 && b <= r;
|
|
@@ -22990,8 +23001,8 @@ function _I(n) {
|
|
|
22990
23001
|
n[0]
|
|
22991
23002
|
), C(s, "class", "sc-carousel__pages-window svelte-sme1z4"), C(e, "class", "sc-carousel__content-container svelte-sme1z4"), C(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
22992
23003
|
},
|
|
22993
|
-
m(E,
|
|
22994
|
-
B(E, t,
|
|
23004
|
+
m(E, P) {
|
|
23005
|
+
B(E, t, P), L(t, e), g && g.m(e, null), L(e, i), L(e, s), L(s, o), p && p.m(o, null), n[39](o), L(s, a), m && m.m(s, null), n[40](s), L(e, l), v && v.m(e, null), L(t, c), y && y.m(t, null), h = !0, u || (f = [
|
|
22995
23006
|
Ft(r = iP.call(null, o, {
|
|
22996
23007
|
thresholdProvider: (
|
|
22997
23008
|
/*swipeable_function*/
|
|
@@ -23044,13 +23055,13 @@ function _I(n) {
|
|
|
23044
23055
|
)
|
|
23045
23056
|
], u = !0);
|
|
23046
23057
|
},
|
|
23047
|
-
p(E,
|
|
23058
|
+
p(E, P) {
|
|
23048
23059
|
/*arrows*/
|
|
23049
|
-
E[1] ? g ? (g.p(E,
|
|
23060
|
+
E[1] ? g ? (g.p(E, P), P[0] & /*arrows*/
|
|
23050
23061
|
2 && x(g, 1)) : (g = jd(E), g.c(), x(g, 1), g.m(e, i)) : g && (ue(), O(g, 1, 1, () => {
|
|
23051
23062
|
g = null;
|
|
23052
|
-
}), fe()), p && p.p && (!h ||
|
|
23053
|
-
96 |
|
|
23063
|
+
}), fe()), p && p.p && (!h || P[0] & /*loaded, currentPageIndex*/
|
|
23064
|
+
96 | P[1] & /*$$scope*/
|
|
23054
23065
|
32) && Jn(
|
|
23055
23066
|
p,
|
|
23056
23067
|
A,
|
|
@@ -23061,43 +23072,43 @@ function _I(n) {
|
|
|
23061
23072
|
A,
|
|
23062
23073
|
/*$$scope*/
|
|
23063
23074
|
E[36],
|
|
23064
|
-
|
|
23075
|
+
P,
|
|
23065
23076
|
HI
|
|
23066
23077
|
) : qn(
|
|
23067
23078
|
/*$$scope*/
|
|
23068
23079
|
E[36]
|
|
23069
23080
|
),
|
|
23070
23081
|
Td
|
|
23071
|
-
), (!h ||
|
|
23082
|
+
), (!h || P[0] & /*offset*/
|
|
23072
23083
|
256) && T(o, "transform", "translateX(" + /*offset*/
|
|
23073
|
-
E[8] + "px)"), (!h ||
|
|
23084
|
+
E[8] + "px)"), (!h || P[0] & /*durationMs*/
|
|
23074
23085
|
512) && T(
|
|
23075
23086
|
o,
|
|
23076
23087
|
"transition-duration",
|
|
23077
23088
|
/*durationMs*/
|
|
23078
23089
|
E[9] + "ms"
|
|
23079
|
-
), (!h ||
|
|
23090
|
+
), (!h || P[0] & /*timingFunction*/
|
|
23080
23091
|
1) && T(
|
|
23081
23092
|
o,
|
|
23082
23093
|
"transition-timing-function",
|
|
23083
23094
|
/*timingFunction*/
|
|
23084
23095
|
E[0]
|
|
23085
|
-
), r && oi(r.update) &&
|
|
23096
|
+
), r && oi(r.update) && P[0] & /*pageWindowWidth*/
|
|
23086
23097
|
2048 && r.update.call(null, {
|
|
23087
23098
|
thresholdProvider: (
|
|
23088
23099
|
/*swipeable_function*/
|
|
23089
23100
|
E[38]
|
|
23090
23101
|
)
|
|
23091
23102
|
}), /*autoplayProgressVisible*/
|
|
23092
|
-
E[3] ? m ? (m.p(E,
|
|
23103
|
+
E[3] ? m ? (m.p(E, P), P[0] & /*autoplayProgressVisible*/
|
|
23093
23104
|
8 && x(m, 1)) : (m = zd(E), m.c(), x(m, 1), m.m(s, null)) : m && (ue(), O(m, 1, 1, () => {
|
|
23094
23105
|
m = null;
|
|
23095
23106
|
}), fe()), /*arrows*/
|
|
23096
|
-
E[1] ? v ? (v.p(E,
|
|
23107
|
+
E[1] ? v ? (v.p(E, P), P[0] & /*arrows*/
|
|
23097
23108
|
2 && x(v, 1)) : (v = Od(E), v.c(), x(v, 1), v.m(e, null)) : v && (ue(), O(v, 1, 1, () => {
|
|
23098
23109
|
v = null;
|
|
23099
23110
|
}), fe()), /*dots*/
|
|
23100
|
-
E[4] ? y ? (y.p(E,
|
|
23111
|
+
E[4] ? y ? (y.p(E, P), P[0] & /*dots*/
|
|
23101
23112
|
16 && x(y, 1)) : (y = Bd(E), y.c(), x(y, 1), y.m(t, null)) : y && (ue(), O(y, 1, 1, () => {
|
|
23102
23113
|
y = null;
|
|
23103
23114
|
}), fe());
|
|
@@ -23125,7 +23136,7 @@ function WI(n, t, e) {
|
|
|
23125
23136
|
loaded: () => e(6, o = Ie)
|
|
23126
23137
|
})(re);
|
|
23127
23138
|
}), p = gr();
|
|
23128
|
-
let { timingFunction: m = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: E = 0 } = t, { duration:
|
|
23139
|
+
let { timingFunction: m = "ease-in-out" } = t, { arrows: v = !0 } = t, { infinite: y = !0 } = t, { initialPageIndex: E = 0 } = t, { duration: P = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: I = 3e3 } = t, { autoplayDirection: j = xi } = t, { pauseOnFocus: V = !1 } = t, { autoplayProgressVisible: W = !1 } = t, { dots: _ = !0 } = t, { swiping: N = !0 } = t, { particlesToShow: G = 1 } = t, { particlesToScroll: H = 1 } = t;
|
|
23129
23140
|
function F(re, Ie) {
|
|
23130
23141
|
return Q(this, null, function* () {
|
|
23131
23142
|
const Ge = Ls(Ie, "animated", !0);
|
|
@@ -23221,14 +23232,14 @@ function WI(n, t, e) {
|
|
|
23221
23232
|
}
|
|
23222
23233
|
const st = (re) => Ce(re.detail);
|
|
23223
23234
|
return n.$$set = (re) => {
|
|
23224
|
-
"timingFunction" in re && e(0, m = re.timingFunction), "arrows" in re && e(1, v = re.arrows), "infinite" in re && e(2, y = re.infinite), "initialPageIndex" in re && e(24, E = re.initialPageIndex), "duration" in re && e(25,
|
|
23235
|
+
"timingFunction" in re && e(0, m = re.timingFunction), "arrows" in re && e(1, v = re.arrows), "infinite" in re && e(2, y = re.infinite), "initialPageIndex" in re && e(24, E = re.initialPageIndex), "duration" in re && e(25, P = re.duration), "autoplay" in re && e(26, k = re.autoplay), "autoplayDuration" in re && e(27, I = re.autoplayDuration), "autoplayDirection" in re && e(28, j = re.autoplayDirection), "pauseOnFocus" in re && e(29, V = re.pauseOnFocus), "autoplayProgressVisible" in re && e(3, W = re.autoplayProgressVisible), "dots" in re && e(4, _ = re.dots), "swiping" in re && e(30, N = re.swiping), "particlesToShow" in re && e(31, G = re.particlesToShow), "particlesToScroll" in re && e(32, H = re.particlesToScroll), "$$scope" in re && e(36, s = re.$$scope);
|
|
23225
23236
|
}, n.$$.update = () => {
|
|
23226
23237
|
n.$$.dirty[0] & /*currentPageIndex*/
|
|
23227
23238
|
32 && p("pageChange", r), n.$$.dirty[0] & /*infinite*/
|
|
23228
23239
|
4 && (u.infinite = y), n.$$.dirty[0] & /*duration*/
|
|
23229
|
-
33554432 && (u.durationMsInit =
|
|
23240
|
+
33554432 && (u.durationMsInit = P), n.$$.dirty[0] & /*autoplay*/
|
|
23230
23241
|
67108864 && (u.autoplay = k), n.$$.dirty[0] & /*autoplayDuration*/
|
|
23231
|
-
134217728 && (u.autoplayDuration =
|
|
23242
|
+
134217728 && (u.autoplayDuration = I), n.$$.dirty[0] & /*autoplayDirection*/
|
|
23232
23243
|
268435456 && (u.autoplayDirection = j), n.$$.dirty[0] & /*pauseOnFocus*/
|
|
23233
23244
|
536870912 && (u.pauseOnFocus = V), n.$$.dirty[1] & /*particlesToShow*/
|
|
23234
23245
|
1 && (u.particlesToShowInit = G), n.$$.dirty[1] & /*particlesToScroll*/
|
|
@@ -23259,9 +23270,9 @@ function WI(n, t, e) {
|
|
|
23259
23270
|
je,
|
|
23260
23271
|
me,
|
|
23261
23272
|
E,
|
|
23262
|
-
I,
|
|
23263
|
-
k,
|
|
23264
23273
|
P,
|
|
23274
|
+
k,
|
|
23275
|
+
I,
|
|
23265
23276
|
j,
|
|
23266
23277
|
V,
|
|
23267
23278
|
N,
|
|
@@ -23627,7 +23638,7 @@ function $I(n, t, e) {
|
|
|
23627
23638
|
G !== i && (i == null || i.pause());
|
|
23628
23639
|
});
|
|
23629
23640
|
});
|
|
23630
|
-
const
|
|
23641
|
+
const P = (G) => {
|
|
23631
23642
|
e(11, A = !1), e(0, o.paused = !1, o), e(9, p = !0), i && v.set({ currentMediaElement: i }), y.emit("playStateChange", {
|
|
23632
23643
|
event: G,
|
|
23633
23644
|
state: "playing",
|
|
@@ -23641,7 +23652,7 @@ function $I(n, t, e) {
|
|
|
23641
23652
|
tag: r,
|
|
23642
23653
|
mediaInstance: i
|
|
23643
23654
|
});
|
|
23644
|
-
},
|
|
23655
|
+
}, I = (G) => {
|
|
23645
23656
|
e(11, A = !0), e(0, o.paused = !0, o), y.emit("playStateChange", {
|
|
23646
23657
|
event: G,
|
|
23647
23658
|
state: "paused",
|
|
@@ -23694,9 +23705,9 @@ function $I(n, t, e) {
|
|
|
23694
23705
|
v,
|
|
23695
23706
|
y,
|
|
23696
23707
|
s,
|
|
23697
|
-
I,
|
|
23698
|
-
k,
|
|
23699
23708
|
P,
|
|
23709
|
+
k,
|
|
23710
|
+
I,
|
|
23700
23711
|
j,
|
|
23701
23712
|
V,
|
|
23702
23713
|
W,
|
|
@@ -24100,10 +24111,10 @@ function sE(n) {
|
|
|
24100
24111
|
function oE(n, t, e) {
|
|
24101
24112
|
let i, s, o, r, { tag: a } = t, { mediaData: l } = t, { inDelay: c = 0 } = t, { outDelay: h = 0 } = t, { duration: u = 0 } = t, { unfolded: f = !0 } = t, { animation: g = !0 } = t, { mediaItemConfig: A } = t, { enableCarousel: p = !0 } = t, { autoplayConfig: m = {} } = t;
|
|
24102
24113
|
const { autoplayVideo: v = !1, autoplayCarousel: y = !0, autoplayVideoInCarousel: E = !1 } = m;
|
|
24103
|
-
let
|
|
24114
|
+
let P = [], k = 0, I, j = null;
|
|
24104
24115
|
const V = Ii("hooks"), W = Ii("mediaStore");
|
|
24105
24116
|
function _() {
|
|
24106
|
-
const U =
|
|
24117
|
+
const U = P[k], X = U == null ? void 0 : U.videoInstance;
|
|
24107
24118
|
X && (X.paused ? (X.muted = !1, X.play()) : X.pause());
|
|
24108
24119
|
}
|
|
24109
24120
|
Et(() => {
|
|
@@ -24112,7 +24123,7 @@ function oE(n, t, e) {
|
|
|
24112
24123
|
($ = (J = (X = a.tag3DContentSvelte) == null ? void 0 : X.css3DInstance) == null ? void 0 : J.css3DObject) != null && $.opacityMesh && U.tag.id === a.id && _();
|
|
24113
24124
|
}), j = setInterval(
|
|
24114
24125
|
() => {
|
|
24115
|
-
r && (
|
|
24126
|
+
r && (I == null || I.goToNext());
|
|
24116
24127
|
},
|
|
24117
24128
|
3e3
|
|
24118
24129
|
);
|
|
@@ -24120,24 +24131,24 @@ function oE(n, t, e) {
|
|
|
24120
24131
|
clearInterval(j), V.off("click", _);
|
|
24121
24132
|
});
|
|
24122
24133
|
function N(U, X) {
|
|
24123
|
-
n.$$.not_equal(
|
|
24134
|
+
n.$$.not_equal(P[X], U) && (P[X] = U, e(8, P));
|
|
24124
24135
|
}
|
|
24125
24136
|
function G(U) {
|
|
24126
24137
|
_e[U ? "unshift" : "push"](() => {
|
|
24127
|
-
|
|
24138
|
+
I = U, e(12, I);
|
|
24128
24139
|
});
|
|
24129
24140
|
}
|
|
24130
24141
|
const H = (U) => {
|
|
24131
24142
|
i || W.set({ currentMediaElement: null }), e(11, k = U.detail);
|
|
24132
24143
|
};
|
|
24133
24144
|
function F(U) {
|
|
24134
|
-
n.$$.not_equal(
|
|
24145
|
+
n.$$.not_equal(P[0], U) && (P[0] = U, e(8, P));
|
|
24135
24146
|
}
|
|
24136
24147
|
return n.$$set = (U) => {
|
|
24137
24148
|
"tag" in U && e(0, a = U.tag), "mediaData" in U && e(1, l = U.mediaData), "inDelay" in U && e(2, c = U.inDelay), "outDelay" in U && e(3, h = U.outDelay), "duration" in U && e(4, u = U.duration), "unfolded" in U && e(5, f = U.unfolded), "animation" in U && e(6, g = U.animation), "mediaItemConfig" in U && e(7, A = U.mediaItemConfig), "enableCarousel" in U && e(16, p = U.enableCarousel), "autoplayConfig" in U && e(17, m = U.autoplayConfig);
|
|
24138
24149
|
}, n.$$.update = () => {
|
|
24139
24150
|
n.$$.dirty[0] & /*mediaInstanceList*/
|
|
24140
|
-
256 && e(9, i =
|
|
24151
|
+
256 && e(9, i = P.every((U) => U.paused)), n.$$.dirty[0] & /*enableCarousel, mediaData*/
|
|
24141
24152
|
65538 && e(13, s = p && (l == null ? void 0 : l.length) > 1), n.$$.dirty[0] & /*mediaData*/
|
|
24142
24153
|
2 && e(10, o = l), n.$$.dirty[0] & /*mediaDataList, paused*/
|
|
24143
24154
|
1536 && (r = o.length > 1 && y && i);
|
|
@@ -24150,11 +24161,11 @@ function oE(n, t, e) {
|
|
|
24150
24161
|
f,
|
|
24151
24162
|
g,
|
|
24152
24163
|
A,
|
|
24153
|
-
|
|
24164
|
+
P,
|
|
24154
24165
|
i,
|
|
24155
24166
|
o,
|
|
24156
24167
|
k,
|
|
24157
|
-
|
|
24168
|
+
I,
|
|
24158
24169
|
s,
|
|
24159
24170
|
v,
|
|
24160
24171
|
W,
|
|
@@ -24646,7 +24657,7 @@ function $d(n) {
|
|
|
24646
24657
|
};
|
|
24647
24658
|
}
|
|
24648
24659
|
function dE(n) {
|
|
24649
|
-
var
|
|
24660
|
+
var P, k;
|
|
24650
24661
|
let t, e, i, s, o, r, a, l, c, h, u = (
|
|
24651
24662
|
/*data*/
|
|
24652
24663
|
n[3].title + ""
|
|
@@ -24669,7 +24680,7 @@ function dE(n) {
|
|
|
24669
24680
|
n[3].headerPictureUrl && Ud(n)
|
|
24670
24681
|
), y = (
|
|
24671
24682
|
/*primaryTags*/
|
|
24672
|
-
((
|
|
24683
|
+
((P = n[2].length) != null ? P : 0) + /*secondaryTags*/
|
|
24673
24684
|
((k = n[5].length) != null ? k : 0) > 0 && Yd(n)
|
|
24674
24685
|
), E = (
|
|
24675
24686
|
/*havePrice*/
|
|
@@ -24704,57 +24715,57 @@ function dE(n) {
|
|
|
24704
24715
|
n[8]
|
|
24705
24716
|
);
|
|
24706
24717
|
},
|
|
24707
|
-
m(
|
|
24708
|
-
B(
|
|
24718
|
+
m(I, j) {
|
|
24719
|
+
B(I, t, j), te(e, t, null), L(t, i), L(t, s), L(t, o), L(t, r), v && v.m(r, null), L(r, a), L(r, l), L(l, c), L(c, h), L(h, f), L(r, g), y && y.m(r, null), L(r, A), E && E.m(r, null), m = !0;
|
|
24709
24720
|
},
|
|
24710
|
-
p(
|
|
24721
|
+
p(I, [j]) {
|
|
24711
24722
|
var W, _;
|
|
24712
24723
|
const V = {};
|
|
24713
24724
|
j & /*unfolded*/
|
|
24714
24725
|
16 && (V.visible = /*unfolded*/
|
|
24715
|
-
|
|
24726
|
+
I[4]), e.$set(V), j & /*unfolded*/
|
|
24716
24727
|
16 && T(
|
|
24717
24728
|
s,
|
|
24718
24729
|
"transition-delay",
|
|
24719
24730
|
/*unfolded*/
|
|
24720
|
-
|
|
24731
|
+
I[4] ? Lo + "ms" : jo + tu - eu - 40 + "ms"
|
|
24721
24732
|
), /*data*/
|
|
24722
|
-
|
|
24733
|
+
I[3].headerPictureUrl ? v ? v.p(I, j) : (v = Ud(I), v.c(), v.m(r, a)) : v && (v.d(1), v = null), (!m || j & /*data*/
|
|
24723
24734
|
8) && u !== (u = /*data*/
|
|
24724
|
-
|
|
24725
|
-
((W =
|
|
24726
|
-
((_ =
|
|
24727
|
-
|
|
24728
|
-
|
|
24735
|
+
I[3].title + "") && De(f, u), /*primaryTags*/
|
|
24736
|
+
((W = I[2].length) != null ? W : 0) + /*secondaryTags*/
|
|
24737
|
+
((_ = I[5].length) != null ? _ : 0) > 0 ? y ? y.p(I, j) : (y = Yd(I), y.c(), y.m(r, A)) : y && (y.d(1), y = null), /*havePrice*/
|
|
24738
|
+
I[7] || /*data*/
|
|
24739
|
+
I[3].highlightText ? E ? E.p(I, j) : (E = Jd(I), E.c(), E.m(r, null)) : E && (E.d(1), E = null), j & /*unfolded*/
|
|
24729
24740
|
16 && T(
|
|
24730
24741
|
r,
|
|
24731
24742
|
"transition-delay",
|
|
24732
24743
|
/*unfolded*/
|
|
24733
|
-
|
|
24744
|
+
I[4] ? Lo + jo + "ms" : "0ms"
|
|
24734
24745
|
), (!m || j & /*theme*/
|
|
24735
24746
|
64 && p !== (p = Fe(`marketing ${/*theme*/
|
|
24736
|
-
|
|
24747
|
+
I[6]}`) + " svelte-sezqcq")) && C(t, "class", p), (!m || j & /*theme, unfolded*/
|
|
24737
24748
|
80) && q(
|
|
24738
24749
|
t,
|
|
24739
24750
|
"unfolded",
|
|
24740
24751
|
/*unfolded*/
|
|
24741
|
-
|
|
24752
|
+
I[4]
|
|
24742
24753
|
), (!m || j & /*theme, folded*/
|
|
24743
24754
|
320) && q(
|
|
24744
24755
|
t,
|
|
24745
24756
|
"folded",
|
|
24746
24757
|
/*folded*/
|
|
24747
|
-
|
|
24758
|
+
I[8]
|
|
24748
24759
|
);
|
|
24749
24760
|
},
|
|
24750
|
-
i(
|
|
24751
|
-
m || (x(e.$$.fragment,
|
|
24761
|
+
i(I) {
|
|
24762
|
+
m || (x(e.$$.fragment, I), m = !0);
|
|
24752
24763
|
},
|
|
24753
|
-
o(
|
|
24754
|
-
O(e.$$.fragment,
|
|
24764
|
+
o(I) {
|
|
24765
|
+
O(e.$$.fragment, I), m = !1;
|
|
24755
24766
|
},
|
|
24756
|
-
d(
|
|
24757
|
-
|
|
24767
|
+
d(I) {
|
|
24768
|
+
I && z(t), ie(e), v && v.d(), y && y.d(), E && E.d();
|
|
24758
24769
|
}
|
|
24759
24770
|
};
|
|
24760
24771
|
}
|
|
@@ -24774,7 +24785,7 @@ function uE(n, t, e) {
|
|
|
24774
24785
|
return n.$$set = (p) => {
|
|
24775
24786
|
"tag" in p && e(0, u = p.tag);
|
|
24776
24787
|
}, n.$$.update = () => {
|
|
24777
|
-
var p, m, v, y, E,
|
|
24788
|
+
var p, m, v, y, E, P;
|
|
24778
24789
|
n.$$.dirty & /*tag*/
|
|
24779
24790
|
1 && e(4, i = (m = (p = u.state) == null ? void 0 : p.unfolded) != null ? m : !1), n.$$.dirty & /*unfolded*/
|
|
24780
24791
|
16 && e(8, s = !i), n.$$.dirty & /*tag*/
|
|
@@ -24783,7 +24794,7 @@ function uE(n, t, e) {
|
|
|
24783
24794
|
1 && e(6, a = u.data.theme || "light"), n.$$.dirty & /*tagsOffsetHeight, maxTagsLength*/
|
|
24784
24795
|
1026 && f > 40 && e(10, l = l - 1), n.$$.dirty & /*data, maxTagsLength*/
|
|
24785
24796
|
1032 && e(2, c = ((E = o.brandTags) == null ? void 0 : E.slice(0, l).filter(Boolean)) || []), n.$$.dirty & /*data, maxTagsLength, primaryTags*/
|
|
24786
|
-
1036 && e(5, h = ((
|
|
24797
|
+
1036 && e(5, h = ((P = o.tags) == null ? void 0 : P.slice(0, l - c.length).filter(Boolean)) || []);
|
|
24787
24798
|
}, e(10, l = (g - 20) / Xl), [
|
|
24788
24799
|
u,
|
|
24789
24800
|
f,
|
|
@@ -25304,12 +25315,12 @@ function nu(n) {
|
|
|
25304
25315
|
},
|
|
25305
25316
|
p(y, E) {
|
|
25306
25317
|
var j, V;
|
|
25307
|
-
const
|
|
25318
|
+
const P = {};
|
|
25308
25319
|
E & /*unfolded*/
|
|
25309
|
-
64 && (
|
|
25320
|
+
64 && (P.visible = /*unfolded*/
|
|
25310
25321
|
y[6]), E & /*contentWidth*/
|
|
25311
|
-
8 && (
|
|
25312
|
-
y[3] / 2 + "px"), e.$set(
|
|
25322
|
+
8 && (P.left = /*contentWidth*/
|
|
25323
|
+
y[3] / 2 + "px"), e.$set(P), /*unfolded*/
|
|
25313
25324
|
y[6] ? p ? (p.p(y, E), E & /*unfolded*/
|
|
25314
25325
|
64 && x(p, 1)) : (p = su(y), p.c(), x(p, 1), p.m(r, null)) : p && (ue(), O(p, 1, 1, () => {
|
|
25315
25326
|
p = null;
|
|
@@ -25322,18 +25333,18 @@ function nu(n) {
|
|
|
25322
25333
|
y[1]), E & /*content*/
|
|
25323
25334
|
32 && (k.content = /*content*/
|
|
25324
25335
|
y[5]), c.$set(k);
|
|
25325
|
-
const
|
|
25336
|
+
const I = {};
|
|
25326
25337
|
E & /*unfolded*/
|
|
25327
|
-
64 && (
|
|
25338
|
+
64 && (I.unfolded = /*unfolded*/
|
|
25328
25339
|
y[6]), E & /*contentWidth*/
|
|
25329
|
-
8 && (
|
|
25340
|
+
8 && (I.length = /*contentWidth*/
|
|
25330
25341
|
y[3]), E & /*foldTextDelay, content*/
|
|
25331
|
-
48 && (
|
|
25342
|
+
48 && (I.outDelay = /*foldTextDelay*/
|
|
25332
25343
|
y[4] + 20 * Math.min(
|
|
25333
25344
|
/*content*/
|
|
25334
25345
|
(V = (j = y[5]) == null ? void 0 : j.length) != null ? V : 10,
|
|
25335
25346
|
15
|
|
25336
|
-
)), u.$set(
|
|
25347
|
+
)), u.$set(I), (!f || E & /*unfolded*/
|
|
25337
25348
|
64) && q(
|
|
25338
25349
|
t,
|
|
25339
25350
|
"unfolded",
|
|
@@ -26498,16 +26509,16 @@ function $E(n, t, e) {
|
|
|
26498
26509
|
const p = gr();
|
|
26499
26510
|
function m(E) {
|
|
26500
26511
|
return Q(this, null, function* () {
|
|
26501
|
-
const
|
|
26502
|
-
return p("iconLoaded",
|
|
26512
|
+
const P = yield GE(E);
|
|
26513
|
+
return p("iconLoaded", P), P;
|
|
26503
26514
|
});
|
|
26504
26515
|
}
|
|
26505
26516
|
function v(E) {
|
|
26506
26517
|
return Q(this, null, function* () {
|
|
26507
26518
|
if (typeof u == "number")
|
|
26508
26519
|
return se(D({}, E), { width: u });
|
|
26509
|
-
const
|
|
26510
|
-
return p("iconLoaded",
|
|
26520
|
+
const P = yield QE(E);
|
|
26521
|
+
return p("iconLoaded", P), P;
|
|
26511
26522
|
});
|
|
26512
26523
|
}
|
|
26513
26524
|
function y() {
|
|
@@ -26518,13 +26529,13 @@ function $E(n, t, e) {
|
|
|
26518
26529
|
}), n.$$set = (E) => {
|
|
26519
26530
|
"width" in E && e(1, f = E.width), "icon" in E && e(12, g = E.icon), "shadow" in E && e(0, A = E.shadow);
|
|
26520
26531
|
}, n.$$.update = () => {
|
|
26521
|
-
var E,
|
|
26532
|
+
var E, P;
|
|
26522
26533
|
n.$$.dirty & /*icon*/
|
|
26523
26534
|
4096 && e(7, i = g == null ? void 0 : g.url), n.$$.dirty & /*icon*/
|
|
26524
26535
|
4096 && e(2, s = (E = g == null ? void 0 : g.steps) != null ? E : 1), n.$$.dirty & /*icon*/
|
|
26525
26536
|
4096 && e(6, o = g == null ? void 0 : g.fps), n.$$.dirty & /*icon*/
|
|
26526
26537
|
4096 && e(5, r = g == null ? void 0 : g.ratio), n.$$.dirty & /*icon*/
|
|
26527
|
-
4096 && e(4, a = (
|
|
26538
|
+
4096 && e(4, a = (P = g == null ? void 0 : g.scale) != null ? P : 1), n.$$.dirty & /*icon*/
|
|
26528
26539
|
4096 && e(3, l = g == null ? void 0 : g.width), n.$$.dirty & /*iconUrl, iconSteps, iconFps, iconRatio, iconScale, iconWidth*/
|
|
26529
26540
|
252 && e(9, c = Ue({
|
|
26530
26541
|
url: i,
|
|
@@ -26907,14 +26918,14 @@ function m2(n) {
|
|
|
26907
26918
|
v2,
|
|
26908
26919
|
A2
|
|
26909
26920
|
], E = [];
|
|
26910
|
-
function
|
|
26911
|
-
return
|
|
26912
|
-
18 && (s = null),
|
|
26913
|
-
18 && (o = null),
|
|
26914
|
-
18 && (r = null),
|
|
26915
|
-
18 && (a = null),
|
|
26916
|
-
18 && (l = null),
|
|
26917
|
-
18 && (c = null),
|
|
26921
|
+
function P(k, I) {
|
|
26922
|
+
return I & /*tag, contentTypeMap*/
|
|
26923
|
+
18 && (s = null), I & /*tag, contentTypeMap*/
|
|
26924
|
+
18 && (o = null), I & /*tag, contentTypeMap*/
|
|
26925
|
+
18 && (r = null), I & /*tag, contentTypeMap*/
|
|
26926
|
+
18 && (a = null), I & /*tag, contentTypeMap*/
|
|
26927
|
+
18 && (l = null), I & /*tag, contentTypeMap*/
|
|
26928
|
+
18 && (c = null), I & /*tag, contentTypeMap*/
|
|
26918
26929
|
18 && (h = null), s == null && (s = !!(["Text"].includes(
|
|
26919
26930
|
/*tag*/
|
|
26920
26931
|
k[1].contentType
|
|
@@ -26980,7 +26991,7 @@ function m2(n) {
|
|
|
26980
26991
|
)
|
|
26981
26992
|
))), h ? 6 : -1))))));
|
|
26982
26993
|
}
|
|
26983
|
-
return ~(u =
|
|
26994
|
+
return ~(u = P(n, -1)) && (f = E[u] = y[u](n)), {
|
|
26984
26995
|
c() {
|
|
26985
26996
|
var k;
|
|
26986
26997
|
t = S("div"), e = S("div"), i = S("div"), f && f.c(), C(i, "class", "content svelte-qz1wo5"), q(
|
|
@@ -27027,62 +27038,62 @@ function m2(n) {
|
|
|
27027
27038
|
n[1].contentType === "MediaModel" ? "100%" : 0
|
|
27028
27039
|
);
|
|
27029
27040
|
},
|
|
27030
|
-
m(k,
|
|
27031
|
-
B(k, t,
|
|
27041
|
+
m(k, I) {
|
|
27042
|
+
B(k, t, I), L(t, e), L(e, i), ~u && E[u].m(i, null), p = !0, m || (v = Ae(t, "click", Pf(
|
|
27032
27043
|
/*click_handler_1*/
|
|
27033
27044
|
n[16]
|
|
27034
27045
|
)), m = !0);
|
|
27035
27046
|
},
|
|
27036
|
-
p(k,
|
|
27047
|
+
p(k, I) {
|
|
27037
27048
|
var V;
|
|
27038
27049
|
let j = u;
|
|
27039
|
-
u =
|
|
27050
|
+
u = P(k, I), u === j ? ~u && E[u].p(k, I) : (f && (ue(), O(E[j], 1, 1, () => {
|
|
27040
27051
|
E[j] = null;
|
|
27041
|
-
}), fe()), ~u ? (f = E[u], f ? f.p(k,
|
|
27052
|
+
}), fe()), ~u ? (f = E[u], f ? f.p(k, I) : (f = E[u] = y[u](k), f.c()), x(f, 1), f.m(i, null)) : f = null), (!p || I & /*tag*/
|
|
27042
27053
|
2) && q(
|
|
27043
27054
|
i,
|
|
27044
27055
|
"unfolded",
|
|
27045
27056
|
/*tag*/
|
|
27046
27057
|
(V = k[1].state) == null ? void 0 : V.unfolded
|
|
27047
|
-
), (!p ||
|
|
27058
|
+
), (!p || I & /*tag*/
|
|
27048
27059
|
2 && g !== (g = Fe(vt(
|
|
27049
27060
|
"content__container",
|
|
27050
27061
|
/*tag*/
|
|
27051
27062
|
k[1].className
|
|
27052
|
-
)) + " svelte-qz1wo5")) && C(t, "class", g), (!p ||
|
|
27063
|
+
)) + " svelte-qz1wo5")) && C(t, "class", g), (!p || I & /*tag*/
|
|
27053
27064
|
2 && A !== (A = /*tag*/
|
|
27054
|
-
k[1].id)) && C(t, "data-id", A), (!p ||
|
|
27065
|
+
k[1].id)) && C(t, "data-id", A), (!p || I & /*tag, tag*/
|
|
27055
27066
|
2) && q(
|
|
27056
27067
|
t,
|
|
27057
27068
|
"disable",
|
|
27058
27069
|
/*tag*/
|
|
27059
27070
|
k[1].enabled === !1
|
|
27060
|
-
), (!p ||
|
|
27071
|
+
), (!p || I & /*tag, isHide*/
|
|
27061
27072
|
66) && q(
|
|
27062
27073
|
t,
|
|
27063
27074
|
"hide",
|
|
27064
27075
|
/*isHide*/
|
|
27065
27076
|
k[6]
|
|
27066
|
-
), (!p ||
|
|
27077
|
+
), (!p || I & /*tag, withAnimation*/
|
|
27067
27078
|
3) && q(
|
|
27068
27079
|
t,
|
|
27069
27080
|
"withAnimation",
|
|
27070
27081
|
/*withAnimation*/
|
|
27071
27082
|
k[0]
|
|
27072
|
-
), (!p ||
|
|
27083
|
+
), (!p || I & /*tag, tag*/
|
|
27073
27084
|
2) && q(
|
|
27074
27085
|
t,
|
|
27075
27086
|
"unClickable",
|
|
27076
27087
|
/*tag*/
|
|
27077
27088
|
k[1].config.clickable === !1
|
|
27078
|
-
),
|
|
27089
|
+
), I & /*tag*/
|
|
27079
27090
|
2 && T(
|
|
27080
27091
|
t,
|
|
27081
27092
|
"width",
|
|
27082
27093
|
/*tag*/
|
|
27083
27094
|
k[1].stickType === "Plane" || /*tag*/
|
|
27084
27095
|
k[1].contentType === "MediaModel" ? "100%" : 0
|
|
27085
|
-
),
|
|
27096
|
+
), I & /*tag*/
|
|
27086
27097
|
2 && T(
|
|
27087
27098
|
t,
|
|
27088
27099
|
"height",
|
|
@@ -27460,16 +27471,16 @@ function M2(n, t, e) {
|
|
|
27460
27471
|
let i, s, o, r, a, l, { withAnimation: c = !1 } = t, { tag: h } = t, { hooks: u } = t, { rendererMap: f = /* @__PURE__ */ new Map() } = t, { contentTypeMap: g = /* @__PURE__ */ new Map() } = t, { state: A } = t, { mediaStore: p } = t, { temporaryState: m } = t;
|
|
27461
27472
|
Wa("hooks", u), Wa("mediaStore", p);
|
|
27462
27473
|
let v, y;
|
|
27463
|
-
function E(
|
|
27464
|
-
|
|
27474
|
+
function E(I) {
|
|
27475
|
+
I ? u.emit("exposure", { id: r, type: "start" }) : u.emit("exposure", { id: r, type: "end" });
|
|
27465
27476
|
}
|
|
27466
|
-
const
|
|
27467
|
-
return n.$$set = (
|
|
27468
|
-
"withAnimation" in
|
|
27477
|
+
const P = (I) => u.emit("click", { event: I, target: "TagContent", tag: h }), k = (I) => u.emit("click", { event: I, target: "TagContent", tag: h });
|
|
27478
|
+
return n.$$set = (I) => {
|
|
27479
|
+
"withAnimation" in I && e(0, c = I.withAnimation), "tag" in I && e(1, h = I.tag), "hooks" in I && e(2, u = I.hooks), "rendererMap" in I && e(3, f = I.rendererMap), "contentTypeMap" in I && e(4, g = I.contentTypeMap), "state" in I && e(7, A = I.state), "mediaStore" in I && e(8, p = I.mediaStore), "temporaryState" in I && e(9, m = I.temporaryState);
|
|
27469
27480
|
}, n.$$.update = () => {
|
|
27470
|
-
var
|
|
27481
|
+
var I, j, V, W, _, N, G, H, F, U, X;
|
|
27471
27482
|
n.$$.dirty & /*tag*/
|
|
27472
|
-
2 && e(13, i = (
|
|
27483
|
+
2 && e(13, i = (I = h.state) == null ? void 0 : I.unfolded), n.$$.dirty & /*tag*/
|
|
27473
27484
|
2 && e(12, s = (j = h.state) == null ? void 0 : j.visible), n.$$.dirty & /*state, temporaryState, tag*/
|
|
27474
27485
|
642 && e(14, o = A.visible && m.visible && ((V = h.state) == null ? void 0 : V.visible)), n.$$.dirty & /*tag*/
|
|
27475
27486
|
2 && (r = h.id), n.$$.dirty & /*tag, state, temporaryState*/
|
|
@@ -27493,7 +27504,7 @@ function M2(n, t, e) {
|
|
|
27493
27504
|
s,
|
|
27494
27505
|
i,
|
|
27495
27506
|
o,
|
|
27496
|
-
|
|
27507
|
+
P,
|
|
27497
27508
|
k
|
|
27498
27509
|
];
|
|
27499
27510
|
}
|
|
@@ -27660,20 +27671,20 @@ function D2(n, t, e) {
|
|
|
27660
27671
|
1 && e(3, s = !i), n.$$.dirty & /*tag*/
|
|
27661
27672
|
64 && e(2, o = (v = (m = l.style) == null ? void 0 : m.point) != null && v.url ? (y = l.style) == null ? void 0 : y.point : { url: vy }), n.$$.dirty & /*tag*/
|
|
27662
27673
|
64 && e(1, r = (() => {
|
|
27663
|
-
var k,
|
|
27664
|
-
const E = (
|
|
27674
|
+
var k, I, j, V;
|
|
27675
|
+
const E = (I = (k = l.style) == null ? void 0 : k.point) == null ? void 0 : I.width;
|
|
27665
27676
|
if (typeof E == "number")
|
|
27666
27677
|
return E;
|
|
27667
|
-
const
|
|
27668
|
-
if (typeof
|
|
27669
|
-
return
|
|
27670
|
-
if (
|
|
27678
|
+
const P = (V = (j = l.style) == null ? void 0 : j.point) == null ? void 0 : V.size;
|
|
27679
|
+
if (typeof P == "number")
|
|
27680
|
+
return P;
|
|
27681
|
+
if (P === "S")
|
|
27671
27682
|
return 18;
|
|
27672
|
-
if (
|
|
27683
|
+
if (P === "M")
|
|
27673
27684
|
return 20;
|
|
27674
|
-
if (
|
|
27685
|
+
if (P === "L")
|
|
27675
27686
|
return 24;
|
|
27676
|
-
if (
|
|
27687
|
+
if (P === "XL")
|
|
27677
27688
|
return 28;
|
|
27678
27689
|
})());
|
|
27679
27690
|
}, u(), [
|
|
@@ -27785,9 +27796,9 @@ function gu(n) {
|
|
|
27785
27796
|
i = g(v), i === E ? f[i].p(v, y) : (ue(), O(f[E], 1, 1, () => {
|
|
27786
27797
|
f[E] = null;
|
|
27787
27798
|
}), fe(), s = f[i], s ? s.p(v, y) : (s = f[i] = u[i](v), s.c()), x(s, 1), s.m(e, o));
|
|
27788
|
-
let
|
|
27789
|
-
r = m(v), r ===
|
|
27790
|
-
p[
|
|
27799
|
+
let P = r;
|
|
27800
|
+
r = m(v), r === P ? p[r].p(v, y) : (ue(), O(p[P], 1, 1, () => {
|
|
27801
|
+
p[P] = null;
|
|
27791
27802
|
}), fe(), a = p[r], a ? a.p(v, y) : (a = p[r] = A[r](v), a.c()), x(a, 1), a.m(e, null)), (!h || y & /*tag*/
|
|
27792
27803
|
2 && l !== (l = Fe(vt(
|
|
27793
27804
|
"wrapper",
|
|
@@ -28045,11 +28056,11 @@ function B2(n) {
|
|
|
28045
28056
|
}
|
|
28046
28057
|
function R2(n, t, e) {
|
|
28047
28058
|
let i, s, o, r, a, l, c, h, u, f, { withAnimation: g = !1 } = t, { tag: A } = t, { mediaStore: p } = t, { rendererMap: m = /* @__PURE__ */ new Map() } = t, { contentTypeMap: v = /* @__PURE__ */ new Map() } = t, { state: y } = t, { temporaryState: E } = t;
|
|
28048
|
-
const
|
|
28059
|
+
const P = Ii("hooks");
|
|
28049
28060
|
return n.$$set = (k) => {
|
|
28050
28061
|
"withAnimation" in k && e(0, g = k.withAnimation), "tag" in k && e(1, A = k.tag), "mediaStore" in k && e(2, p = k.mediaStore), "rendererMap" in k && e(3, m = k.rendererMap), "contentTypeMap" in k && e(4, v = k.contentTypeMap), "state" in k && e(5, y = k.state), "temporaryState" in k && e(6, E = k.temporaryState);
|
|
28051
28062
|
}, n.$$.update = () => {
|
|
28052
|
-
var k,
|
|
28063
|
+
var k, I, j, V;
|
|
28053
28064
|
n.$$.dirty & /*tag, rendererMap*/
|
|
28054
28065
|
10 && e(16, i = (() => {
|
|
28055
28066
|
var W, _, N;
|
|
@@ -28058,7 +28069,7 @@ function R2(n, t, e) {
|
|
|
28058
28069
|
2 && e(15, s = (() => A.stickType === "2DPoint")()), n.$$.dirty & /*tag*/
|
|
28059
28070
|
2 && e(14, o = A.id), n.$$.dirty & /*tag*/
|
|
28060
28071
|
2 && e(13, r = A.enabled === !1 || !A.state), n.$$.dirty & /*tag*/
|
|
28061
|
-
2 && e(12, a = !((k = A.state) != null && k.visible) || ((
|
|
28072
|
+
2 && e(12, a = !((k = A.state) != null && k.visible) || ((I = A.temporaryState) == null ? void 0 : I.visible) === !1 || !A.screenPosition), n.$$.dirty & /*tag*/
|
|
28062
28073
|
2 && e(7, l = (j = A.state) == null ? void 0 : j.unfolded), n.$$.dirty & /*tag*/
|
|
28063
28074
|
2 && e(8, c = A.screenPosition), n.$$.dirty & /*screenPosition*/
|
|
28064
28075
|
256 && e(11, h = (c == null ? void 0 : c.leftPercent) + "%"), n.$$.dirty & /*screenPosition*/
|
|
@@ -28082,7 +28093,7 @@ function R2(n, t, e) {
|
|
|
28082
28093
|
o,
|
|
28083
28094
|
s,
|
|
28084
28095
|
i,
|
|
28085
|
-
|
|
28096
|
+
P
|
|
28086
28097
|
];
|
|
28087
28098
|
}
|
|
28088
28099
|
class V2 extends ce {
|
|
@@ -30616,12 +30627,12 @@ let dM = class extends pi {
|
|
|
30616
30627
|
width: (A = a == null ? void 0 : a.unitWidth) != null ? A : 0.6,
|
|
30617
30628
|
texture: { url: (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
|
|
30618
30629
|
}
|
|
30619
|
-
}, h = (v = (m = r.routes) == null ? void 0 : m.map((
|
|
30630
|
+
}, h = (v = (m = r.routes) == null ? void 0 : m.map((P) => {
|
|
30620
30631
|
var k;
|
|
30621
|
-
return Re({}, c, { id: (k =
|
|
30622
|
-
})) != null ? v : [], u = (E = (y = r.lines) == null ? void 0 : y.map((
|
|
30623
|
-
yield Yg(this.five), this.clear(), f.forEach((
|
|
30624
|
-
this.addGuideLineItem(
|
|
30632
|
+
return Re({}, c, { id: (k = P.id) != null ? k : nt(), pano_group: P.panoIndexList });
|
|
30633
|
+
})) != null ? v : [], u = (E = (y = r.lines) == null ? void 0 : y.map((P) => Re({}, c, P))) != null ? E : [], f = [...h, ...u];
|
|
30634
|
+
yield Yg(this.five), this.clear(), f.forEach((P) => {
|
|
30635
|
+
this.addGuideLineItem(P);
|
|
30625
30636
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", r), console.debug(`${Cu} loaded`, r);
|
|
30626
30637
|
});
|
|
30627
30638
|
}
|
|
@@ -30769,11 +30780,11 @@ function Xs(n) {
|
|
|
30769
30780
|
return t.applyMatrix4(fM(n.matrixWorld.clone())), t;
|
|
30770
30781
|
}
|
|
30771
30782
|
const fM = (n) => {
|
|
30772
|
-
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], g = t[11], A = t[12], p = t[13], m = t[14], v = t[15], y = u * m * c - p * f * c + p * l * g - a * m * g - u * l * v + a * f * v, E = A * f * c - h * m * c - A * l * g + r * m * g + h * l * v - r * f * v,
|
|
30773
|
-
if (
|
|
30783
|
+
const t = n.elements, e = t[0], i = t[1], s = t[2], o = t[3], r = t[4], a = t[5], l = t[6], c = t[7], h = t[8], u = t[9], f = t[10], g = t[11], A = t[12], p = t[13], m = t[14], v = t[15], y = u * m * c - p * f * c + p * l * g - a * m * g - u * l * v + a * f * v, E = A * f * c - h * m * c - A * l * g + r * m * g + h * l * v - r * f * v, P = h * p * c - A * u * c + A * a * g - r * p * g - h * a * v + r * u * v, k = A * u * l - h * p * l - A * a * f + r * p * f + h * a * m - r * u * m, I = e * y + i * E + s * P + o * k;
|
|
30784
|
+
if (I === 0)
|
|
30774
30785
|
return n.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
|
|
30775
|
-
const j = 1 /
|
|
30776
|
-
return t[0] = y * j, t[1] = (p * f * o - u * m * o - p * s * g + i * m * g + u * s * v - i * f * v) * j, t[2] = (a * m * o - p * l * o + p * s * c - i * m * c - a * s * v + i * l * v) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * g - i * l * g) * j, t[4] = E * j, t[5] = (h * m * o - A * f * o + A * s * g - e * m * g - h * s * v + e * f * v) * j, t[6] = (A * l * o - r * m * o - A * s * c + e * m * c + r * s * v - e * l * v) * j, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * g + e * l * g) * j, t[8] =
|
|
30786
|
+
const j = 1 / I;
|
|
30787
|
+
return t[0] = y * j, t[1] = (p * f * o - u * m * o - p * s * g + i * m * g + u * s * v - i * f * v) * j, t[2] = (a * m * o - p * l * o + p * s * c - i * m * c - a * s * v + i * l * v) * j, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * g - i * l * g) * j, t[4] = E * j, t[5] = (h * m * o - A * f * o + A * s * g - e * m * g - h * s * v + e * f * v) * j, t[6] = (A * l * o - r * m * o - A * s * c + e * m * c + r * s * v - e * l * v) * j, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * g + e * l * g) * j, t[8] = P * j, t[9] = (A * u * o - h * p * o - A * i * g + e * p * g + h * i * v - e * u * v) * j, t[10] = (r * p * o - A * a * o + A * i * c - e * p * c - r * i * v + e * a * v) * j, t[11] = (h * a * o - r * u * o - h * i * c + e * u * c + r * i * g - e * a * g) * j, t[12] = k * j, t[13] = (h * p * s - A * u * s + A * i * f - e * p * f - h * i * m + e * u * m) * j, t[14] = (A * a * s - r * p * s - A * i * l + e * p * l + r * i * m - e * a * m) * j, t[15] = (r * u * s - h * a * s + h * i * l - e * u * l - r * i * f + e * a * f) * j, n;
|
|
30777
30788
|
};
|
|
30778
30789
|
class Zs extends Lt {
|
|
30779
30790
|
constructor(e, i) {
|
|
@@ -32271,9 +32282,9 @@ class NM extends Js {
|
|
|
32271
32282
|
case "nwse":
|
|
32272
32283
|
m(), v();
|
|
32273
32284
|
}
|
|
32274
|
-
const y = new oe().subVectors(r[1], r[0]).length() / u.length(), E = new oe().subVectors(r[3], r[0]).length() / f.length(),
|
|
32285
|
+
const y = new oe().subVectors(r[1], r[0]).length() / u.length(), E = new oe().subVectors(r[3], r[0]).length() / f.length(), P = new oe(y, E, 1), k = new w.Matrix4().scale(P);
|
|
32275
32286
|
i.isCSS3DObjectPlus ? i.applyScaleMatrix4(k) : i.scale.applyMatrix4(k), s.position.copy(a);
|
|
32276
|
-
const
|
|
32287
|
+
const I = new oe().addVectors(r[0], r[2]).divideScalar(2), j = new oe().subVectors(I, l), V = new w.Matrix4().setPosition(j);
|
|
32277
32288
|
i.applyMatrix4(V), (W = this.helperObject3D.css3DInstance) == null || W.css3DObject.applyMatrix4(V), (_ = this.helperObject3D.plane) == null || _.applyMatrix4(V), this.internalHooks.emit("applyObjectScale", { matrix: k }), this.internalHooks.emit("applyObjectPosition", { matrix: V }), this.render();
|
|
32278
32289
|
}
|
|
32279
32290
|
dragEnd() {
|
|
@@ -32480,15 +32491,15 @@ class qg extends nn {
|
|
|
32480
32491
|
return typeof E == "boolean" ? E : E.enable;
|
|
32481
32492
|
};
|
|
32482
32493
|
if (v(h)) {
|
|
32483
|
-
const E = D(D({}, this.getConfig(c.moveHelper)), c),
|
|
32494
|
+
const E = D(D({}, this.getConfig(c.moveHelper)), c), P = new CM(e, D({}, E)), k = new ws(this.five, LM, e, P, E, p, m);
|
|
32484
32495
|
s.addControllers({ moveController: k.helperController }), o.push(() => k.dispose());
|
|
32485
32496
|
}
|
|
32486
32497
|
if (v(u)) {
|
|
32487
|
-
const E = D(D({}, this.getConfig(c.rotateHelper)), c),
|
|
32498
|
+
const E = D(D({}, this.getConfig(c.rotateHelper)), c), P = new EM(e, D({ container: r }, E)), k = new ws(this.five, HM, e, P, E, p, m);
|
|
32488
32499
|
s.addControllers({ rotateController: k.helperController }), o.push(() => k.dispose());
|
|
32489
32500
|
}
|
|
32490
32501
|
if (v(g)) {
|
|
32491
|
-
const E = new TM(e),
|
|
32502
|
+
const E = new TM(e), P = new ws(
|
|
32492
32503
|
this.five,
|
|
32493
32504
|
GM,
|
|
32494
32505
|
e,
|
|
@@ -32497,11 +32508,11 @@ class qg extends nn {
|
|
|
32497
32508
|
p,
|
|
32498
32509
|
m
|
|
32499
32510
|
);
|
|
32500
|
-
s.addControllers({ boundingBoxController:
|
|
32511
|
+
s.addControllers({ boundingBoxController: P.helperController });
|
|
32501
32512
|
}
|
|
32502
32513
|
if (v(f))
|
|
32503
32514
|
if (e.isCSS3DObjectPlus && r) {
|
|
32504
|
-
const E = new SM(e, r, a, this.five.scene),
|
|
32515
|
+
const E = new SM(e, r, a, this.five.scene), P = new ws(
|
|
32505
32516
|
this.five,
|
|
32506
32517
|
QM,
|
|
32507
32518
|
e,
|
|
@@ -32510,18 +32521,18 @@ class qg extends nn {
|
|
|
32510
32521
|
p,
|
|
32511
32522
|
m
|
|
32512
32523
|
);
|
|
32513
|
-
s.addControllers({ scaleController:
|
|
32514
|
-
var k,
|
|
32524
|
+
s.addControllers({ scaleController: P.helperController }), o.push(() => P.dispose()), of(this.five).then(() => {
|
|
32525
|
+
var k, I;
|
|
32515
32526
|
if (e.isCSS3DObjectPlus) {
|
|
32516
32527
|
const j = e;
|
|
32517
32528
|
if (!j || j.mode !== "front")
|
|
32518
32529
|
return;
|
|
32519
32530
|
const V = (k = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? k : rf(this.five);
|
|
32520
|
-
V && (this.css3DObjectParentMap.set(j, j.parent), j.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(V), (
|
|
32531
|
+
V && (this.css3DObjectParentMap.set(j, j.parent), j.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(V), (I = this.css3DRender.getBehindCSS3DObjectGroup()) == null || I.add(j), this.css3DRender.render(this.five.camera));
|
|
32521
32532
|
}
|
|
32522
32533
|
});
|
|
32523
32534
|
} else {
|
|
32524
|
-
const E = D(D({}, this.getConfig(c.scaleHelper)), c),
|
|
32535
|
+
const E = D(D({}, this.getConfig(c.scaleHelper)), c), P = new FM(e, E), k = new ws(this.five, WM, e, P, E, p, m);
|
|
32525
32536
|
s.addControllers({ scaleController: k.helperController }), o.push(() => k.dispose());
|
|
32526
32537
|
}
|
|
32527
32538
|
return this.objectHelperMap.set(e, { helper: s, disposers: o }), s.controllers;
|
|
@@ -36013,7 +36024,7 @@ function dm(n, t) {
|
|
|
36013
36024
|
else if (a.length === 1)
|
|
36014
36025
|
m.raycaster.ray.intersectPlane(c, l), o.setPoints([a.at(-1), l]);
|
|
36015
36026
|
else if (a.length === 2) {
|
|
36016
|
-
const v = m.raycaster.ray.intersectPlane(c, new w.Vector3()), y = a[0].distanceTo(a[1]) / 2, E = new w.Vector3().lerpVectors(a[0], a[1], 0.5),
|
|
36027
|
+
const v = m.raycaster.ray.intersectPlane(c, new w.Vector3()), y = a[0].distanceTo(a[1]) / 2, E = new w.Vector3().lerpVectors(a[0], a[1], 0.5), P = new w.Vector3().subVectors(v, E).normalize(), k = new w.Vector3().addVectors(E, P.multiplyScalar(y));
|
|
36017
36028
|
l.copy(k), s.remove(o), n.setPoints([...a, l]);
|
|
36018
36029
|
}
|
|
36019
36030
|
}
|