@realsee/dnalogel 3.64.8 → 3.64.9-alpha.1
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/MeasurePlugin/Controller.d.ts +1 -0
- package/dist/Sculpt/utils/renderDom.d.ts +1 -1
- package/dist/index.cjs.js +18 -18
- package/dist/index.js +323 -301
- package/dist/index.umd.js +18 -18
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +5 -5
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MeasurePluginConfig.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/MeasurePlugin/Controller.d.ts +1 -0
- package/libs/MeasurePlugin/Controller.js +122 -102
- package/libs/Sculpt/Meshes/Line.js +17 -15
- package/libs/Sculpt/utils/renderDom.d.ts +1 -1
- package/libs/base/BasePlugin.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.js +17 -17
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var _0 = Object.defineProperty, F0 = Object.defineProperties;
|
|
2
2
|
var H0 = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Jr = Object.getOwnPropertySymbols;
|
|
4
4
|
var mu = Object.prototype.hasOwnProperty, gu = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var qr = Math.pow, xl = (n, t, e) => t in n ? _0(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, B = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
mu.call(t, e) && xl(n, e, t[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (Jr)
|
|
9
|
+
for (var e of Jr(t))
|
|
10
10
|
gu.call(t, e) && xl(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, le = (n, t) => F0(n, H0(t));
|
|
@@ -14,8 +14,8 @@ var Dn = (n, t) => {
|
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
16
16
|
mu.call(n, i) && t.indexOf(i) < 0 && (e[i] = n[i]);
|
|
17
|
-
if (n != null &&
|
|
18
|
-
for (var i of
|
|
17
|
+
if (n != null && Jr)
|
|
18
|
+
for (var i of Jr(n))
|
|
19
19
|
t.indexOf(i) < 0 && gu.call(n, i) && (e[i] = n[i]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
@@ -38,12 +38,12 @@ var $ = (n, t, e) => new Promise((i, s) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { InternalWebGLRenderer as N0, Camera as G0, loadAt3d as Q0, Five as _t, Subscribe as ko } from "@realsee/five";
|
|
40
40
|
import * as y from "three";
|
|
41
|
-
import { Vector3 as he, Object3D as so, Matrix4 as $e, LineSegments as W0, Group as Rn, Raycaster as So, MeshBasicMaterial as vr, Vector4 as hs, Curve as Lm, Loader as vu, LoaderUtils as kl, FileLoader as U0, TextureLoader as qc, RepeatWrapping as Au, ClampToEdgeWrapping as bu, Texture as yu, MeshPhongMaterial as Sl, MeshLambertMaterial as Y0, Color as $t, sRGBEncoding as sr, EquirectangularReflectionMapping as X0, Bone as wu, PropertyBinding as
|
|
41
|
+
import { Vector3 as he, Object3D as so, Matrix4 as $e, LineSegments as W0, Group as Rn, Raycaster as So, MeshBasicMaterial as vr, Vector4 as hs, Curve as Lm, Loader as vu, LoaderUtils as kl, FileLoader as U0, TextureLoader as qc, RepeatWrapping as Au, ClampToEdgeWrapping as bu, Texture as yu, MeshPhongMaterial as Sl, MeshLambertMaterial as Y0, Color as $t, sRGBEncoding as sr, EquirectangularReflectionMapping as X0, Bone as wu, PropertyBinding as Kr, OrthographicCamera as Z0, PerspectiveCamera as J0, PointLight as Cu, MathUtils as Ni, SpotLight as q0, DirectionalLight as K0, SkinnedMesh as $0, Mesh as oo, LineBasicMaterial as eA, Line as tA, Skeleton as iA, AmbientLight as nA, BufferGeometry as $r, Float32BufferAttribute as Ns, Uint16BufferAttribute as sA, Matrix3 as oA, BufferAttribute as rA, AnimationClip as aA, Quaternion as Js, Euler as ls, VectorKeyframeTrack as lA, QuaternionKeyframeTrack as cA, NumberKeyframeTrack as hA, CanvasTexture as uA, AnimationMixer as dA, Vector2 as Nt, PlaneGeometry as fA, LinearFilter as fc, CurvePath as pA, LineCurve3 as mA, TubeGeometry as gA, ShaderMaterial as Om, SphereGeometry as vA, DoubleSide as zm, RingGeometry as AA, VideoTexture as bA, SphereBufferGeometry as yA } from "three";
|
|
42
42
|
import { LineGeometry as wA, LineMaterial as CA, THREE_Line2 as PA, Line as IA } from "@realsee/five/line";
|
|
43
43
|
import { GLTFLoader as EA } from "@realsee/five/gltf-loader";
|
|
44
44
|
function MA() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.64.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.64.9-alpha.1",
|
|
47
47
|
[
|
|
48
48
|
"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=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -71,7 +71,7 @@ const Pu = () => Promise.resolve(), Iu = {
|
|
|
71
71
|
function kA(n = Pu) {
|
|
72
72
|
Iu.__queue = Iu.__queue.then(n).catch(Pu);
|
|
73
73
|
}
|
|
74
|
-
function
|
|
74
|
+
function ea(n, t, e) {
|
|
75
75
|
const i = n.x, s = n.y, o = Math.floor(i / t * 1e4) / 1e4, r = Math.floor(s / e * 1e4) / 1e4;
|
|
76
76
|
return { x: o, y: r };
|
|
77
77
|
}
|
|
@@ -79,7 +79,7 @@ function Dl(n, t, e) {
|
|
|
79
79
|
const { x: i, y: s } = n, o = i * t, r = s * e;
|
|
80
80
|
return { x: o, y: r };
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function ta(n) {
|
|
83
83
|
if (n.length < 2)
|
|
84
84
|
return {};
|
|
85
85
|
const t = n.slice(-2), e = t[0], i = {
|
|
@@ -96,8 +96,8 @@ function SA(n, t, e = jm) {
|
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
98
|
const DA = window, Eu = window.requestAnimationFrame || DA.webkitRequestAnimationFrame || ((n) => setTimeout(n, 16));
|
|
99
|
-
function
|
|
100
|
-
t <= 0 ? Eu(n) : Eu(() =>
|
|
99
|
+
function Ca(n, t = 0) {
|
|
100
|
+
t <= 0 ? Eu(n) : Eu(() => Ca(n, t - 1));
|
|
101
101
|
}
|
|
102
102
|
var Yi = Object.freeze({
|
|
103
103
|
Linear: Object.freeze({
|
|
@@ -514,7 +514,7 @@ function RA(n, t, e, i = Yi.Linear.None) {
|
|
|
514
514
|
}
|
|
515
515
|
var On = /* @__PURE__ */ ((n) => (n.Drawline = "Drawline", n.Undo = "Undo", n.Exit = "Exit", n))(On || {});
|
|
516
516
|
const cr = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
517
|
-
function
|
|
517
|
+
function ia(n) {
|
|
518
518
|
return n[cr] || (n[cr] = {}), n[cr];
|
|
519
519
|
}
|
|
520
520
|
function VA(n) {
|
|
@@ -526,7 +526,7 @@ let _A = class {
|
|
|
526
526
|
* @param name 事件类型
|
|
527
527
|
*/
|
|
528
528
|
hasListener(t) {
|
|
529
|
-
const e =
|
|
529
|
+
const e = ia(this);
|
|
530
530
|
return e && e[t] && e[t].length > 0;
|
|
531
531
|
}
|
|
532
532
|
/**
|
|
@@ -539,7 +539,7 @@ let _A = class {
|
|
|
539
539
|
* @template C 回调函数函数上下文
|
|
540
540
|
*/
|
|
541
541
|
on(t, e, i) {
|
|
542
|
-
const s =
|
|
542
|
+
const s = ia(this);
|
|
543
543
|
return s[t] || (s[t] = []), s[t].push([e, i || !1]), () => this.off(t, e);
|
|
544
544
|
}
|
|
545
545
|
/**
|
|
@@ -567,7 +567,7 @@ let _A = class {
|
|
|
567
567
|
VA(this);
|
|
568
568
|
return;
|
|
569
569
|
}
|
|
570
|
-
const i =
|
|
570
|
+
const i = ia(this);
|
|
571
571
|
if (i[t] || (i[t] = []), e === void 0) {
|
|
572
572
|
i[t].length = 0;
|
|
573
573
|
return;
|
|
@@ -586,7 +586,7 @@ let _A = class {
|
|
|
586
586
|
*/
|
|
587
587
|
emit(t, ...e) {
|
|
588
588
|
let i = !1;
|
|
589
|
-
const o =
|
|
589
|
+
const o = ia(this)[t] || [];
|
|
590
590
|
for (let r of o.slice()) {
|
|
591
591
|
const [a, l = !1] = r, c = a(...e);
|
|
592
592
|
l && this.off(t, a), c === !1 && (i = !0);
|
|
@@ -832,14 +832,14 @@ let HA = class extends _A {
|
|
|
832
832
|
e.onmousedown = (u) => {
|
|
833
833
|
u.preventDefault(), c = Date.now();
|
|
834
834
|
const f = u.clientX, p = u.clientY;
|
|
835
|
-
r = [], r.push({ x: f, y: p }), o = { x: f, y: p }, a =
|
|
835
|
+
r = [], r.push({ x: f, y: p }), o = { x: f, y: p }, a = ea({ x: f, y: p }, this.clientWidth, this.clientHeight), l = [];
|
|
836
836
|
}, e.onmousemove = (u) => {
|
|
837
837
|
if (u.preventDefault(), !o)
|
|
838
838
|
return;
|
|
839
839
|
const f = Number(u.clientX), p = Number(u.clientY);
|
|
840
|
-
if (Math.abs(f - o.x) < 5 && Math.abs(p - o.y) < 5 || (r.push({ x: f, y: p }), l.push(
|
|
840
|
+
if (Math.abs(f - o.x) < 5 && Math.abs(p - o.y) < 5 || (r.push({ x: f, y: p }), l.push(ea({ x: f, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
841
841
|
return;
|
|
842
|
-
const { control: v, end: g } =
|
|
842
|
+
const { control: v, end: g } = ta(r);
|
|
843
843
|
!v || !g || (h(o, v, g), o = g);
|
|
844
844
|
}, e.onmouseup = (u) => {
|
|
845
845
|
if (u.preventDefault(), o = null, r.length < 3)
|
|
@@ -853,7 +853,7 @@ let HA = class extends _A {
|
|
|
853
853
|
duration: f < 1280 ? f : f < 2e3 ? 1280 : 0
|
|
854
854
|
// 单次笔迹时长超过2000ms不加动画
|
|
855
855
|
};
|
|
856
|
-
this.data[this.uuid].push(p),
|
|
856
|
+
this.data[this.uuid].push(p), Ca(() => {
|
|
857
857
|
this.emitStateChange({
|
|
858
858
|
type: On.Drawline,
|
|
859
859
|
color: this.color,
|
|
@@ -865,14 +865,14 @@ let HA = class extends _A {
|
|
|
865
865
|
}, e.ontouchstart = (u) => {
|
|
866
866
|
u.preventDefault(), c = Date.now();
|
|
867
867
|
const f = u.touches[0].clientX, p = u.touches[0].clientY;
|
|
868
|
-
r = [], r.push({ x: f, y: p }), o = { x: f, y: p }, a =
|
|
868
|
+
r = [], r.push({ x: f, y: p }), o = { x: f, y: p }, a = ea({ x: f, y: p }, this.clientWidth, this.clientHeight), l = [];
|
|
869
869
|
}, e.ontouchmove = (u) => {
|
|
870
870
|
if (u.preventDefault(), !o)
|
|
871
871
|
return;
|
|
872
872
|
const f = Number(u.touches[0].clientX), p = Number(u.touches[0].clientY);
|
|
873
|
-
if (Math.abs(f - o.x) < 5 && Math.abs(p - o.y) < 5 || (r.push({ x: f, y: p }), l.push(
|
|
873
|
+
if (Math.abs(f - o.x) < 5 && Math.abs(p - o.y) < 5 || (r.push({ x: f, y: p }), l.push(ea({ x: f, y: p }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
874
874
|
return;
|
|
875
|
-
const { control: v, end: g } =
|
|
875
|
+
const { control: v, end: g } = ta(r);
|
|
876
876
|
!v || !g || (h(o, v, g), o = g);
|
|
877
877
|
}, e.ontouchend = e.ontouchcancel = (u) => {
|
|
878
878
|
if (u.preventDefault(), o = null, r.length < 3)
|
|
@@ -886,7 +886,7 @@ let HA = class extends _A {
|
|
|
886
886
|
duration: f < 1280 ? f : f < 2e3 ? 1280 : 0
|
|
887
887
|
// 单次笔迹时长超过2000ms不加动画
|
|
888
888
|
};
|
|
889
|
-
this.data[this.uuid].push(p),
|
|
889
|
+
this.data[this.uuid].push(p), Ca(() => {
|
|
890
890
|
this.emitStateChange({
|
|
891
891
|
type: On.Drawline,
|
|
892
892
|
color: this.color,
|
|
@@ -970,7 +970,7 @@ let HA = class extends _A {
|
|
|
970
970
|
if (!v.find((k) => k === b)) {
|
|
971
971
|
if (v.push(b), p.push(Dl(l[b], g.clientWidth, g.clientHeight)), p.length < 3)
|
|
972
972
|
return;
|
|
973
|
-
const { control: k, end: E } =
|
|
973
|
+
const { control: k, end: E } = ta(p);
|
|
974
974
|
if (!k || !E)
|
|
975
975
|
return;
|
|
976
976
|
a.quadraticCurveTo(k.x, k.y, E.x, E.y), a.stroke();
|
|
@@ -982,7 +982,7 @@ let HA = class extends _A {
|
|
|
982
982
|
for (let v = 0; v < l.length; v++) {
|
|
983
983
|
if (p.push(Dl(l[v], this.clientWidth, this.clientHeight)), p.length < 3)
|
|
984
984
|
continue;
|
|
985
|
-
const { control: g, end: m } =
|
|
985
|
+
const { control: g, end: m } = ta(p);
|
|
986
986
|
!g || !m || a.quadraticCurveTo(g.x, g.y, m.x, m.y);
|
|
987
987
|
}
|
|
988
988
|
a.stroke(), p = [], o && o(), r();
|
|
@@ -999,7 +999,7 @@ let HA = class extends _A {
|
|
|
999
999
|
s && s.clearRect(0, 0, this.canvas[e].width, this.canvas[e].height), this.data[e].forEach((r) => this.handleDrawLine(e, r, { withUndo: !0 }));
|
|
1000
1000
|
};
|
|
1001
1001
|
if (this.tween && this.tweening) {
|
|
1002
|
-
this.tween.stop(),
|
|
1002
|
+
this.tween.stop(), Ca(i, 60);
|
|
1003
1003
|
return;
|
|
1004
1004
|
}
|
|
1005
1005
|
i();
|
|
@@ -1063,7 +1063,7 @@ function NA(n) {
|
|
|
1063
1063
|
return typeof Symbol == "undefined" ? `$Symbol<${n}>$` : Symbol(n);
|
|
1064
1064
|
}
|
|
1065
1065
|
const hr = NA("$$EVENT$$");
|
|
1066
|
-
function
|
|
1066
|
+
function na(n) {
|
|
1067
1067
|
return n[hr] || (n[hr] = {}), n[hr];
|
|
1068
1068
|
}
|
|
1069
1069
|
function GA(n) {
|
|
@@ -1075,7 +1075,7 @@ class yt {
|
|
|
1075
1075
|
* @param name - 事件类型
|
|
1076
1076
|
*/
|
|
1077
1077
|
hasListener(t) {
|
|
1078
|
-
const e =
|
|
1078
|
+
const e = na(this);
|
|
1079
1079
|
return !!(e != null && e[t] && e[t].length > 0);
|
|
1080
1080
|
}
|
|
1081
1081
|
/**
|
|
@@ -1088,7 +1088,7 @@ class yt {
|
|
|
1088
1088
|
* @template C - 回调函数函数上下文
|
|
1089
1089
|
*/
|
|
1090
1090
|
on(t, e, i) {
|
|
1091
|
-
const s =
|
|
1091
|
+
const s = na(this);
|
|
1092
1092
|
return s[t] || (s[t] = []), s[t].push([e, i || !1]), () => this.off(t, e);
|
|
1093
1093
|
}
|
|
1094
1094
|
/**
|
|
@@ -1116,7 +1116,7 @@ class yt {
|
|
|
1116
1116
|
GA(this);
|
|
1117
1117
|
return;
|
|
1118
1118
|
}
|
|
1119
|
-
const i =
|
|
1119
|
+
const i = na(this);
|
|
1120
1120
|
if (i[t] || (i[t] = []), e === void 0) {
|
|
1121
1121
|
i[t].length = 0;
|
|
1122
1122
|
return;
|
|
@@ -1135,7 +1135,7 @@ class yt {
|
|
|
1135
1135
|
*/
|
|
1136
1136
|
emit(t, ...e) {
|
|
1137
1137
|
let i = !1;
|
|
1138
|
-
const o =
|
|
1138
|
+
const o = na(this)[t] || [];
|
|
1139
1139
|
for (let r of o.slice()) {
|
|
1140
1140
|
const [a, l = !1] = r, c = a(...e);
|
|
1141
1141
|
l && this.off(t, a), c === !1 && (i = !0);
|
|
@@ -1328,7 +1328,7 @@ class tl extends Vm {
|
|
|
1328
1328
|
return this.five.moveToPano(s, i);
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
|
-
class
|
|
1331
|
+
class Ar extends y.Raycaster {
|
|
1332
1332
|
intersectObject(t, e = !0, i = []) {
|
|
1333
1333
|
return gc(t, this, i, e), i.sort(ku), i;
|
|
1334
1334
|
}
|
|
@@ -1357,7 +1357,7 @@ function $c(n, t, e, i) {
|
|
|
1357
1357
|
o[r].type !== "Line2" && $c(o[r], t, e, !0);
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
|
-
const un = new
|
|
1360
|
+
const un = new Ar();
|
|
1361
1361
|
un.params.Points.threshold = 0.02;
|
|
1362
1362
|
function Da(n, t) {
|
|
1363
1363
|
if (!t || typeof ResizeObserver == "undefined" || !ResizeObserver)
|
|
@@ -1393,7 +1393,7 @@ function eh(n, t) {
|
|
|
1393
1393
|
};
|
|
1394
1394
|
}
|
|
1395
1395
|
const JA = new y.Vector2();
|
|
1396
|
-
class
|
|
1396
|
+
class Or {
|
|
1397
1397
|
constructor(t, e, i) {
|
|
1398
1398
|
/**
|
|
1399
1399
|
* @description 单个标签 dom
|
|
@@ -1578,8 +1578,8 @@ class Lr {
|
|
|
1578
1578
|
const i = (() => {
|
|
1579
1579
|
if (!this.simulate3D)
|
|
1580
1580
|
return 1;
|
|
1581
|
-
const
|
|
1582
|
-
return Math.max(Math.min(1 -
|
|
1581
|
+
const a = 3 * Math.tan(0.5 * this.five.camera.fov / 180 * Math.PI), l = this.transformedPosition.distanceTo(this.five.camera.position);
|
|
1582
|
+
return Math.max(Math.min(1 - a * l / 40, 1), 0.5);
|
|
1583
1583
|
})(), s = (() => {
|
|
1584
1584
|
if (this.positionsForRotate === void 0 || this.positionsForRotate.length !== 2)
|
|
1585
1585
|
return 0;
|
|
@@ -1600,7 +1600,7 @@ class Lr {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
}
|
|
1602
1602
|
function _m(...n) {
|
|
1603
|
-
return new
|
|
1603
|
+
return new Or(...n);
|
|
1604
1604
|
}
|
|
1605
1605
|
function ds(n) {
|
|
1606
1606
|
return n.toLowerCase().includes("panorama");
|
|
@@ -1608,12 +1608,12 @@ function ds(n) {
|
|
|
1608
1608
|
function gi(n) {
|
|
1609
1609
|
return !ds(n);
|
|
1610
1610
|
}
|
|
1611
|
-
var vi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {},
|
|
1611
|
+
var vi = typeof globalThis != "undefined" ? globalThis : typeof window != "undefined" ? window : typeof global != "undefined" ? global : typeof self != "undefined" ? self : {}, br = {}, qA = {
|
|
1612
1612
|
get exports() {
|
|
1613
|
-
return
|
|
1613
|
+
return br;
|
|
1614
1614
|
},
|
|
1615
1615
|
set exports(n) {
|
|
1616
|
-
|
|
1616
|
+
br = n;
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
1619
|
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
@@ -2840,7 +2840,7 @@ class th {
|
|
|
2840
2840
|
const i = this.canvas.getContext("2d");
|
|
2841
2841
|
if (!i)
|
|
2842
2842
|
throw new Error("CANNOT CREATE CONTEXT2D");
|
|
2843
|
-
this.context = i, this.config.dragEnabled && (this.hammer = new
|
|
2843
|
+
this.context = i, this.config.dragEnabled && (this.hammer = new br(this.canvas), this.hammer.on("pan", this.onPan), this.hammer.on("panstart", this.onPanstart), this.hammer.on("panend", this.onPanend)), this.initStyle();
|
|
2844
2844
|
}
|
|
2845
2845
|
enable() {
|
|
2846
2846
|
if (!this.state.enabled)
|
|
@@ -2938,7 +2938,7 @@ class th {
|
|
|
2938
2938
|
return { translateX: c, translateY: h };
|
|
2939
2939
|
}
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2941
|
+
function sa(n, t, e) {
|
|
2942
2942
|
const i = n[t], s = n[e];
|
|
2943
2943
|
i === void 0 || s === void 0 || (n[t] = s, n[e] = i);
|
|
2944
2944
|
}
|
|
@@ -2948,7 +2948,7 @@ function KA(n, t, e) {
|
|
|
2948
2948
|
const o = e - (s - 1);
|
|
2949
2949
|
for (let r = 1; r <= t; r++) {
|
|
2950
2950
|
const a = (s - 1) * t + r - 1, l = (o - 1) * t + r - 1;
|
|
2951
|
-
|
|
2951
|
+
sa(n, a * 4 + 0, l * 4 + 0), sa(n, a * 4 + 1, l * 4 + 1), sa(n, a * 4 + 2, l * 4 + 2), sa(n, a * 4 + 3, l * 4 + 3);
|
|
2952
2952
|
}
|
|
2953
2953
|
}
|
|
2954
2954
|
}
|
|
@@ -3162,7 +3162,7 @@ function Ol(n) {
|
|
|
3162
3162
|
return n;
|
|
3163
3163
|
}
|
|
3164
3164
|
let qo = [null, null, () => null];
|
|
3165
|
-
function
|
|
3165
|
+
function zr(n) {
|
|
3166
3166
|
var s;
|
|
3167
3167
|
if (qo) {
|
|
3168
3168
|
if (qo[0] === n)
|
|
@@ -3257,7 +3257,7 @@ function sh(n, t) {
|
|
|
3257
3257
|
function mn(n) {
|
|
3258
3258
|
return arguments.length === 0 ? [] : Array.isArray(n) ? n : [n];
|
|
3259
3259
|
}
|
|
3260
|
-
function
|
|
3260
|
+
function yr(n, t) {
|
|
3261
3261
|
const i = mn(t).map((s) => n.localToWorld(s.clone()));
|
|
3262
3262
|
return Array.isArray(t) ? i : i[0];
|
|
3263
3263
|
}
|
|
@@ -3265,7 +3265,7 @@ function ab(n, t) {
|
|
|
3265
3265
|
const i = mn(t).map((s) => n.worldToLocal(s.clone()));
|
|
3266
3266
|
return Array.isArray(t) ? i : i[0];
|
|
3267
3267
|
}
|
|
3268
|
-
class
|
|
3268
|
+
class Pa extends wA {
|
|
3269
3269
|
constructor(...t) {
|
|
3270
3270
|
super(...t), this.setAttribute("instanceStart", new y.BufferAttribute(new Float32Array(), 3)), this.setAttribute("instanceEnd", new y.BufferAttribute(new Float32Array(), 3));
|
|
3271
3271
|
}
|
|
@@ -3734,11 +3734,13 @@ class Di extends ni {
|
|
|
3734
3734
|
d(this, "_onHidden", () => {
|
|
3735
3735
|
this.doms.forEach((e) => e.container.style.display = "none");
|
|
3736
3736
|
});
|
|
3737
|
-
this.paramsStyle = B({ dashed: !1 }, e), this.geometry = new
|
|
3737
|
+
this.paramsStyle = B({ dashed: !1 }, e), this.geometry = new Pa();
|
|
3738
3738
|
const i = {
|
|
3739
3739
|
color: new y.Color((r = e == null ? void 0 : e.lineColor) != null ? r : sb),
|
|
3740
3740
|
linewidth: (a = e == null ? void 0 : e.lineWidth) != null ? a : ob,
|
|
3741
|
-
dashScale:
|
|
3741
|
+
dashScale: 1,
|
|
3742
|
+
dashSize: 0.02,
|
|
3743
|
+
gapSize: 0.02,
|
|
3742
3744
|
opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
|
|
3743
3745
|
depthWrite: !1,
|
|
3744
3746
|
transparent: !0
|
|
@@ -3801,7 +3803,7 @@ class Di extends ni {
|
|
|
3801
3803
|
updateMatrixWorld(e) {
|
|
3802
3804
|
var i;
|
|
3803
3805
|
if (super.updateMatrixWorld(e), this.points) {
|
|
3804
|
-
const s = (i =
|
|
3806
|
+
const s = (i = yr(this, this.points)) == null ? void 0 : i.map((o) => o.toArray().join(",")).join(",");
|
|
3805
3807
|
s !== this.lastRenderDomItem && (this.updateDomItems(), this.lastRenderDomItem = s);
|
|
3806
3808
|
}
|
|
3807
3809
|
}
|
|
@@ -3810,14 +3812,14 @@ class Di extends ni {
|
|
|
3810
3812
|
return;
|
|
3811
3813
|
const i = e.map(_e).filter(Be);
|
|
3812
3814
|
if (this.points = i, i.length < 2) {
|
|
3813
|
-
const o = new
|
|
3815
|
+
const o = new Pa();
|
|
3814
3816
|
this.line1.geometry = o, this.line2.geometry = o, this.updateDomItems();
|
|
3815
3817
|
return;
|
|
3816
3818
|
}
|
|
3817
3819
|
const s = i.flatMap((o) => [o.x, o.y, o.z]);
|
|
3818
3820
|
if (s.length > 2) {
|
|
3819
3821
|
this.line1.geometry.dispose();
|
|
3820
|
-
const o = new
|
|
3822
|
+
const o = new Pa();
|
|
3821
3823
|
this.line1.geometry = o, this.line2.geometry = o;
|
|
3822
3824
|
}
|
|
3823
3825
|
this.line1.geometry.setPositions(s), this.line1.computeLineDistances(), this.updateDomItems(), this.needsRender = !0;
|
|
@@ -3864,13 +3866,13 @@ class Di extends ni {
|
|
|
3864
3866
|
const i = this.points.map((s, o) => {
|
|
3865
3867
|
if (o !== 0)
|
|
3866
3868
|
return [this.points[o - 1], s];
|
|
3867
|
-
}).filter(Be).map((s) =>
|
|
3869
|
+
}).filter(Be).map((s) => yr(this, s));
|
|
3868
3870
|
i.forEach(([s, o], r) => {
|
|
3869
3871
|
var c;
|
|
3870
3872
|
const a = ui(s, o);
|
|
3871
3873
|
this.doms[r] = (c = this.doms[r]) != null ? c : (() => {
|
|
3872
3874
|
var f;
|
|
3873
|
-
const h = new
|
|
3875
|
+
const h = new Or(this.five), u = (f = this.paramsStyle.occlusionVisibility) != null ? f : !0;
|
|
3874
3876
|
return h.intersectCheck = !u, h.simulate3D = !0, h;
|
|
3875
3877
|
})(), this.doms[r].setPosition(a, [s, o]);
|
|
3876
3878
|
const l = (h) => {
|
|
@@ -4010,7 +4012,7 @@ class wb extends y.Object3D {
|
|
|
4010
4012
|
d(this, "ballMesh");
|
|
4011
4013
|
d(this, "cssBallMesh");
|
|
4012
4014
|
const i = 0.18;
|
|
4013
|
-
this.planeMesh = mb(), this.ringMesh = Ab(), this.crossline = gb(), this.lineMesh = vb(i), this.ballMesh = bb(), this.cssBallMesh = yb(), this.ballMesh.position.setZ(i), this.cssBallMesh.position.setZ(i), this.planeMesh.renderOrder = 0, this.ringMesh.renderOrder = 1, this.crossline.renderOrder = 2, this.lineMesh.renderOrder = 3, this.ballMesh.renderOrder = 4, this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.ringMesh, this.cssBallMesh),
|
|
4015
|
+
this.planeMesh = mb(), this.ringMesh = Ab(), this.crossline = gb(), this.lineMesh = vb(i), this.ballMesh = bb(), this.cssBallMesh = yb(), this.ballMesh.position.setZ(i), this.cssBallMesh.position.setZ(i), this.planeMesh.renderOrder = 0, this.ringMesh.renderOrder = 1, this.crossline.renderOrder = 2, this.lineMesh.renderOrder = 3, this.ballMesh.renderOrder = 4, this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.ringMesh, this.cssBallMesh), zr(e);
|
|
4014
4016
|
}
|
|
4015
4017
|
updateWithIntersect(e) {
|
|
4016
4018
|
if (!e.face)
|
|
@@ -4082,7 +4084,7 @@ function Cb(n, t) {
|
|
|
4082
4084
|
const { x: e, y: i } = t, s = e * 2 - 1, o = i * 2 - 1, r = new y.Raycaster();
|
|
4083
4085
|
return r.setFromCamera({ x: s, y: o }, n.camera), r.params.Points.threshold = 0.02, r;
|
|
4084
4086
|
}
|
|
4085
|
-
function
|
|
4087
|
+
function jr(n, t, e) {
|
|
4086
4088
|
const i = Pb(n, t);
|
|
4087
4089
|
return e != null && e.virtualPoint ? i != null ? i : Qm(t) : i;
|
|
4088
4090
|
}
|
|
@@ -4278,7 +4280,7 @@ class nl extends yt {
|
|
|
4278
4280
|
d(this, "updateByNdcPosition", (e) => {
|
|
4279
4281
|
var o, r, a;
|
|
4280
4282
|
const i = Cb(this.five, e);
|
|
4281
|
-
let s =
|
|
4283
|
+
let s = jr(this.five, i);
|
|
4282
4284
|
if (s) {
|
|
4283
4285
|
if (this.plane && this.planeMode === "vertical" && (s = le(B({}, s), {
|
|
4284
4286
|
point: this.plane.projectPoint(s.point, new y.Vector3()),
|
|
@@ -4348,7 +4350,7 @@ class nl extends yt {
|
|
|
4348
4350
|
(!this.plane || this.plane.distanceToPoint(g) < 0.01) && (g = (a = (r = this.plane) == null ? void 0 : r.projectPoint(g, new y.Vector3())) != null ? a : g, i.point = g.clone(), i.adhereLine = v.clone(), i.isAdsorbed = !0);
|
|
4349
4351
|
else {
|
|
4350
4352
|
const m = Fn({
|
|
4351
|
-
raycaster: new
|
|
4353
|
+
raycaster: new Ar(this.five.camera.position, e.point.clone().sub(this.five.camera.position).normalize()),
|
|
4352
4354
|
line: v,
|
|
4353
4355
|
clampToLine: !1
|
|
4354
4356
|
}), b = m.clone().project(this.five.camera);
|
|
@@ -4735,7 +4737,7 @@ class Zm extends y.Object3D {
|
|
|
4735
4737
|
this.add(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
4736
4738
|
}), this.addEventListener("removed", () => {
|
|
4737
4739
|
this.remove(this.planeMesh, this.lineMesh, this.ballMesh, this.borderMesh);
|
|
4738
|
-
}),
|
|
4740
|
+
}), zr(e), this.five = e;
|
|
4739
4741
|
}
|
|
4740
4742
|
updateWithIntersect(e) {
|
|
4741
4743
|
var s;
|
|
@@ -5815,7 +5817,7 @@ const Rl = Math.PI * 2;
|
|
|
5815
5817
|
function bc(n) {
|
|
5816
5818
|
return (n % Rl + Rl) % Rl;
|
|
5817
5819
|
}
|
|
5818
|
-
function
|
|
5820
|
+
function Br(n) {
|
|
5819
5821
|
return {
|
|
5820
5822
|
longitude: bc(-Math.atan2(n.x, -n.z)),
|
|
5821
5823
|
latitude: -Math.asin(n.y / 1)
|
|
@@ -5847,7 +5849,7 @@ function my(n, t, e) {
|
|
|
5847
5849
|
break;
|
|
5848
5850
|
f += 30;
|
|
5849
5851
|
}
|
|
5850
|
-
const g = v((E = (k = p[2]) != null ? k : p[1]) != null ? E : 0), m = g.distanceTo(r), b =
|
|
5852
|
+
const g = v((E = (k = p[2]) != null ? k : p[1]) != null ? E : 0), m = g.distanceTo(r), b = Br(r.clone().sub(g).normalize());
|
|
5851
5853
|
if (n.state.mode === "Mapview")
|
|
5852
5854
|
return n.updateCamera(
|
|
5853
5855
|
B({
|
|
@@ -5884,7 +5886,7 @@ function Ag(n, t, e) {
|
|
|
5884
5886
|
break;
|
|
5885
5887
|
h += 30;
|
|
5886
5888
|
}
|
|
5887
|
-
const p = f((m = u[1]) != null ? m : 0), v =
|
|
5889
|
+
const p = f((m = u[1]) != null ? m : 0), v = Br(t.clone().sub(p).normalize());
|
|
5888
5890
|
if (n.state.mode === "Mapview")
|
|
5889
5891
|
return n.updateCamera(
|
|
5890
5892
|
B({
|
|
@@ -5918,7 +5920,7 @@ class po {
|
|
|
5918
5920
|
return;
|
|
5919
5921
|
const i = e[0];
|
|
5920
5922
|
if (i.raycaster) {
|
|
5921
|
-
const s = new
|
|
5923
|
+
const s = new Ar();
|
|
5922
5924
|
s.ray = i.raycaster.ray, s.near = i.raycaster.near, s.far = i.raycaster.far, s.camera = i.raycaster.camera, s.layers = i.raycaster.layers, s.params = i.raycaster.params, i.raycaster = s;
|
|
5923
5925
|
}
|
|
5924
5926
|
if (i) {
|
|
@@ -6141,7 +6143,7 @@ class po {
|
|
|
6141
6143
|
const e = this.five.getElement();
|
|
6142
6144
|
if (!e)
|
|
6143
6145
|
return;
|
|
6144
|
-
const i = bg(t, e), s = new
|
|
6146
|
+
const i = bg(t, e), s = new Ar();
|
|
6145
6147
|
return s.setFromCamera(i, this.five.camera), s;
|
|
6146
6148
|
}
|
|
6147
6149
|
}
|
|
@@ -6174,13 +6176,13 @@ class mo extends el {
|
|
|
6174
6176
|
});
|
|
6175
6177
|
}
|
|
6176
6178
|
}
|
|
6177
|
-
function
|
|
6179
|
+
function wr(n, t = Yi.Linear.None) {
|
|
6178
6180
|
const e = new mo({ progress: 0 }).to({ progress: 1 });
|
|
6179
6181
|
return n !== void 0 && e.duration(n), t !== void 0 && e.easing(t), e;
|
|
6180
6182
|
}
|
|
6181
6183
|
const go = window.requestAnimationFrame || ((n) => setTimeout(n, 16)), vy = window.cancelAnimationFrame || clearTimeout;
|
|
6182
|
-
function
|
|
6183
|
-
t <= 0 ? go(n) : go(() =>
|
|
6184
|
+
function Rr(n, t = 0) {
|
|
6185
|
+
t <= 0 ? go(n) : go(() => Rr(n, t - 1));
|
|
6184
6186
|
}
|
|
6185
6187
|
function Ay() {
|
|
6186
6188
|
return $(this, null, function* () {
|
|
@@ -6493,7 +6495,7 @@ function Ly(n) {
|
|
|
6493
6495
|
function Oy(n) {
|
|
6494
6496
|
Ct.behindModeStore.css3DRenderer.setWrapper(n);
|
|
6495
6497
|
}
|
|
6496
|
-
class
|
|
6498
|
+
class Cr {
|
|
6497
6499
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
6498
6500
|
constructor(t) {
|
|
6499
6501
|
d(this, "hooks", new yt());
|
|
@@ -6738,9 +6740,9 @@ class wr {
|
|
|
6738
6740
|
this.handleDisable();
|
|
6739
6741
|
}
|
|
6740
6742
|
}
|
|
6741
|
-
d(
|
|
6743
|
+
d(Cr, "setFrontModeContainer", Ly), d(Cr, "setBehindModeContainer", Oy);
|
|
6742
6744
|
const Cg = "v2.0.1", Fu = `CSS3DRenderPlugin@${Cg}`;
|
|
6743
|
-
let zy = class extends
|
|
6745
|
+
let zy = class extends Cr {
|
|
6744
6746
|
constructor(e) {
|
|
6745
6747
|
super();
|
|
6746
6748
|
d(this, "five");
|
|
@@ -6946,9 +6948,9 @@ function qi(n) {
|
|
|
6946
6948
|
function ye(n, t) {
|
|
6947
6949
|
return n != n ? t == t : n !== t || n && typeof n == "object" || typeof n == "function";
|
|
6948
6950
|
}
|
|
6949
|
-
let
|
|
6951
|
+
let oa;
|
|
6950
6952
|
function Dt(n, t) {
|
|
6951
|
-
return
|
|
6953
|
+
return oa || (oa = document.createElement("a")), oa.href = t, n === oa.href;
|
|
6952
6954
|
}
|
|
6953
6955
|
function By(n) {
|
|
6954
6956
|
return Object.keys(n).length === 0;
|
|
@@ -7089,17 +7091,17 @@ function Ge(n, t) {
|
|
|
7089
7091
|
function Q(n, t, e, i) {
|
|
7090
7092
|
e === null ? n.style.removeProperty(t) : n.style.setProperty(t, e, i ? "important" : "");
|
|
7091
7093
|
}
|
|
7092
|
-
let
|
|
7094
|
+
let ra;
|
|
7093
7095
|
function Fy() {
|
|
7094
|
-
if (
|
|
7095
|
-
|
|
7096
|
+
if (ra === void 0) {
|
|
7097
|
+
ra = !1;
|
|
7096
7098
|
try {
|
|
7097
7099
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
7098
7100
|
} catch (n) {
|
|
7099
|
-
|
|
7101
|
+
ra = !0;
|
|
7100
7102
|
}
|
|
7101
7103
|
}
|
|
7102
|
-
return
|
|
7104
|
+
return ra;
|
|
7103
7105
|
}
|
|
7104
7106
|
function Ih(n, t) {
|
|
7105
7107
|
getComputedStyle(n).position === "static" && (n.style.position = "relative");
|
|
@@ -7188,14 +7190,14 @@ function Gy() {
|
|
|
7188
7190
|
}), Ba.clear());
|
|
7189
7191
|
});
|
|
7190
7192
|
}
|
|
7191
|
-
let
|
|
7193
|
+
let Pr;
|
|
7192
7194
|
function hn(n) {
|
|
7193
|
-
|
|
7195
|
+
Pr = n;
|
|
7194
7196
|
}
|
|
7195
7197
|
function Wn() {
|
|
7196
|
-
if (!
|
|
7198
|
+
if (!Pr)
|
|
7197
7199
|
throw new Error("Function called outside component initialization");
|
|
7198
|
-
return
|
|
7200
|
+
return Pr;
|
|
7199
7201
|
}
|
|
7200
7202
|
function Dg(n) {
|
|
7201
7203
|
Wn().$$.before_update.push(n);
|
|
@@ -7253,7 +7255,7 @@ let Ws = 0;
|
|
|
7253
7255
|
function Mh() {
|
|
7254
7256
|
if (Ws !== 0)
|
|
7255
7257
|
return;
|
|
7256
|
-
const n =
|
|
7258
|
+
const n = Pr;
|
|
7257
7259
|
do {
|
|
7258
7260
|
try {
|
|
7259
7261
|
for (; Ws < Zs.length; ) {
|
|
@@ -7295,7 +7297,7 @@ function xh() {
|
|
|
7295
7297
|
function fs(n, t, e) {
|
|
7296
7298
|
n.dispatchEvent(Sg(`${t ? "intro" : "outro"}${e}`));
|
|
7297
7299
|
}
|
|
7298
|
-
const
|
|
7300
|
+
const Ia = /* @__PURE__ */ new Set();
|
|
7299
7301
|
let Wi;
|
|
7300
7302
|
function Ie() {
|
|
7301
7303
|
Wi = {
|
|
@@ -7309,14 +7311,14 @@ function Ee() {
|
|
|
7309
7311
|
Wi.r || Pt(Wi.c), Wi = Wi.p;
|
|
7310
7312
|
}
|
|
7311
7313
|
function H(n, t) {
|
|
7312
|
-
n && n.i && (
|
|
7314
|
+
n && n.i && (Ia.delete(n), n.i(t));
|
|
7313
7315
|
}
|
|
7314
7316
|
function Z(n, t, e, i) {
|
|
7315
7317
|
if (n && n.o) {
|
|
7316
|
-
if (
|
|
7318
|
+
if (Ia.has(n))
|
|
7317
7319
|
return;
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
+
Ia.add(n), Wi.c.push(() => {
|
|
7321
|
+
Ia.delete(n), i && (e && n.d(1), i());
|
|
7320
7322
|
}), n.o(t);
|
|
7321
7323
|
} else
|
|
7322
7324
|
i && i();
|
|
@@ -7547,7 +7549,7 @@ function Yy(n, t) {
|
|
|
7547
7549
|
n.$$.dirty[0] === -1 && (Zs.push(n), Og(), n.$$.dirty.fill(0)), n.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
7548
7550
|
}
|
|
7549
7551
|
function we(n, t, e, i, s, o, r, a = [-1]) {
|
|
7550
|
-
const l =
|
|
7552
|
+
const l = Pr;
|
|
7551
7553
|
hn(n);
|
|
7552
7554
|
const c = n.$$ = {
|
|
7553
7555
|
fragment: null,
|
|
@@ -11706,7 +11708,7 @@ let Zn = class {
|
|
|
11706
11708
|
/**
|
|
11707
11709
|
* @realsee/dnalogel 版本号
|
|
11708
11710
|
*/
|
|
11709
|
-
d(this, "VERSION", "3.64.
|
|
11711
|
+
d(this, "VERSION", "3.64.9-alpha.1");
|
|
11710
11712
|
d(this, "NAME");
|
|
11711
11713
|
d(this, "five");
|
|
11712
11714
|
d(this, "workUtil");
|
|
@@ -13907,7 +13909,7 @@ Jn.prototype.k = function() {
|
|
|
13907
13909
|
for (S = f, f = p.length; S < f; ++S)
|
|
13908
13910
|
p[Nl[S]] = 0;
|
|
13909
13911
|
for (v = cs(p), b = new (rt ? Uint8Array : Array)(h + u), S = 0, T = h + u; S < T; )
|
|
13910
|
-
switch (C =
|
|
13912
|
+
switch (C = Ir(this, v), C) {
|
|
13911
13913
|
case 16:
|
|
13912
13914
|
for (E = 3 + mi(this, 2); E--; )
|
|
13913
13915
|
b[S++] = k;
|
|
@@ -13968,10 +13970,10 @@ var Sd = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Nl
|
|
|
13968
13970
|
as = 0;
|
|
13969
13971
|
for (zd = Ec.length; as < zd; ++as)
|
|
13970
13972
|
Ec[as] = 143 >= as ? 8 : 255 >= as ? 9 : 279 >= as ? 7 : 8;
|
|
13971
|
-
var VC = cs(Ec), Mc = new (rt ? Uint8Array : Array)(30),
|
|
13972
|
-
|
|
13973
|
-
for (jd = Mc.length;
|
|
13974
|
-
Mc[
|
|
13973
|
+
var VC = cs(Ec), Mc = new (rt ? Uint8Array : Array)(30), Ea, jd;
|
|
13974
|
+
Ea = 0;
|
|
13975
|
+
for (jd = Mc.length; Ea < jd; ++Ea)
|
|
13976
|
+
Mc[Ea] = 5;
|
|
13975
13977
|
var _C = cs(Mc);
|
|
13976
13978
|
function mi(n, t) {
|
|
13977
13979
|
for (var e = n.f, i = n.d, s = n.input, o = n.a, r = s.length, a; i < t; ) {
|
|
@@ -13981,7 +13983,7 @@ function mi(n, t) {
|
|
|
13981
13983
|
}
|
|
13982
13984
|
return a = e & (1 << t) - 1, n.f = e >>> t, n.d = i - t, n.a = o, a;
|
|
13983
13985
|
}
|
|
13984
|
-
function
|
|
13986
|
+
function Ir(n, t) {
|
|
13985
13987
|
for (var e = n.f, i = n.d, s = n.input, o = n.a, r = s.length, a = t[0], l = t[1], c, h; i < l && !(o >= r); )
|
|
13986
13988
|
e |= s[o++] << i, i += 8;
|
|
13987
13989
|
if (c = a[e & (1 << l) - 1], h = c >>> 16, h > i)
|
|
@@ -13991,11 +13993,11 @@ function Pr(n, t) {
|
|
|
13991
13993
|
Jn.prototype.j = function(n, t) {
|
|
13992
13994
|
var e = this.c, i = this.b;
|
|
13993
13995
|
this.o = n;
|
|
13994
|
-
for (var s = e.length - 258, o, r, a, l; (o =
|
|
13996
|
+
for (var s = e.length - 258, o, r, a, l; (o = Ir(this, n)) !== 256; )
|
|
13995
13997
|
if (256 > o)
|
|
13996
13998
|
i >= s && (this.b = i, e = this.e(), i = this.b), e[i++] = o;
|
|
13997
13999
|
else
|
|
13998
|
-
for (r = o - 257, l = Jg[r], 0 < Wa[r] && (l += mi(this, Wa[r])), o =
|
|
14000
|
+
for (r = o - 257, l = Jg[r], 0 < Wa[r] && (l += mi(this, Wa[r])), o = Ir(this, t), a = qg[o], 0 < Ua[o] && (a += mi(this, Ua[o])), i >= s && (this.b = i, e = this.e(), i = this.b); l--; )
|
|
13999
14001
|
e[i] = e[i++ - a];
|
|
14000
14002
|
for (; 8 <= this.d; )
|
|
14001
14003
|
this.d -= 8, this.a--;
|
|
@@ -14004,11 +14006,11 @@ Jn.prototype.j = function(n, t) {
|
|
|
14004
14006
|
Jn.prototype.w = function(n, t) {
|
|
14005
14007
|
var e = this.c, i = this.b;
|
|
14006
14008
|
this.o = n;
|
|
14007
|
-
for (var s = e.length, o, r, a, l; (o =
|
|
14009
|
+
for (var s = e.length, o, r, a, l; (o = Ir(this, n)) !== 256; )
|
|
14008
14010
|
if (256 > o)
|
|
14009
14011
|
i >= s && (e = this.e(), s = e.length), e[i++] = o;
|
|
14010
14012
|
else
|
|
14011
|
-
for (r = o - 257, l = Jg[r], 0 < Wa[r] && (l += mi(this, Wa[r])), o =
|
|
14013
|
+
for (r = o - 257, l = Jg[r], 0 < Wa[r] && (l += mi(this, Wa[r])), o = Ir(this, t), a = qg[o], 0 < Ua[o] && (a += mi(this, Ua[o])), i + l > s && (e = this.e(), s = e.length); l--; )
|
|
14012
14014
|
e[i] = e[i++ - a];
|
|
14013
14015
|
for (; 8 <= this.d; )
|
|
14014
14016
|
this.d -= 8, this.a--;
|
|
@@ -14682,7 +14684,7 @@ var $g = function() {
|
|
|
14682
14684
|
ee = new Rn();
|
|
14683
14685
|
break;
|
|
14684
14686
|
}
|
|
14685
|
-
ee.name = V.attrName ?
|
|
14687
|
+
ee.name = V.attrName ? Kr.sanitizeNodeName(V.attrName) : "", ee.ID = R;
|
|
14686
14688
|
}
|
|
14687
14689
|
this.getTransformData(ee, V), x.set(R, ee);
|
|
14688
14690
|
}
|
|
@@ -14696,7 +14698,7 @@ var $g = function() {
|
|
|
14696
14698
|
V.rawBones.forEach(function(q, ee) {
|
|
14697
14699
|
if (q.ID === O.ID) {
|
|
14698
14700
|
var K = M;
|
|
14699
|
-
M = new wu(), M.matrixWorld.copy(q.transformLink), M.name = x ?
|
|
14701
|
+
M = new wu(), M.matrixWorld.copy(q.transformLink), M.name = x ? Kr.sanitizeNodeName(x) : "", M.ID = w, V.bones[ee] = M, K !== null && M.add(K);
|
|
14700
14702
|
}
|
|
14701
14703
|
});
|
|
14702
14704
|
}
|
|
@@ -14917,7 +14919,7 @@ var $g = function() {
|
|
|
14917
14919
|
},
|
|
14918
14920
|
// Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
|
|
14919
14921
|
genGeometry: function(A, I, w, x) {
|
|
14920
|
-
var M = new
|
|
14922
|
+
var M = new $r();
|
|
14921
14923
|
A.attrName && (M.name = A.attrName);
|
|
14922
14924
|
var O = this.parseGeoNode(A, I), R = this.genBuffers(O), V = new Ns(R.vertex, 3);
|
|
14923
14925
|
if (V.applyMatrix4(x), M.setAttribute("position", V), R.colors.length > 0 && M.setAttribute("color", new Ns(R.colors, 3)), I && (M.setAttribute("skinIndex", new sA(R.weightsIndices, 4)), M.setAttribute("skinWeight", new Ns(R.vertexWeights, 4)), M.FBX_Deformer = I), R.normal.length > 0) {
|
|
@@ -15111,10 +15113,10 @@ var $g = function() {
|
|
|
15111
15113
|
if (ws === void 0)
|
|
15112
15114
|
return console.error(
|
|
15113
15115
|
"THREE.FBXLoader: The loader relies on NURBSCurve for any nurbs present in the model. Nurbs will show up as empty geometry."
|
|
15114
|
-
), new
|
|
15116
|
+
), new $r();
|
|
15115
15117
|
var I = parseInt(A.Order);
|
|
15116
15118
|
if (isNaN(I))
|
|
15117
|
-
return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", A.Order, A.id), new
|
|
15119
|
+
return console.error("THREE.FBXLoader: Invalid Order %s given for geometry ID: %s", A.Order, A.id), new $r();
|
|
15118
15120
|
for (var w = I - 1, x = A.KnotVector.a, M = [], O = A.Points.a, R = 0, V = O.length; R < V; R += 4)
|
|
15119
15121
|
M.push(new hs().fromArray(O, R));
|
|
15120
15122
|
var q, ee;
|
|
@@ -15129,7 +15131,7 @@ var $g = function() {
|
|
|
15129
15131
|
ne.forEach(function(Oe, Ae) {
|
|
15130
15132
|
Oe.toArray(oe, Ae * 3);
|
|
15131
15133
|
});
|
|
15132
|
-
var de = new
|
|
15134
|
+
var de = new $r();
|
|
15133
15135
|
return de.setAttribute("position", new rA(oe, 3)), de;
|
|
15134
15136
|
}
|
|
15135
15137
|
};
|
|
@@ -15214,7 +15216,7 @@ var $g = function() {
|
|
|
15214
15216
|
return;
|
|
15215
15217
|
}
|
|
15216
15218
|
var oe = {
|
|
15217
|
-
modelName: ne.attrName ?
|
|
15219
|
+
modelName: ne.attrName ? Kr.sanitizeNodeName(ne.attrName) : "",
|
|
15218
15220
|
ID: ne.id,
|
|
15219
15221
|
initialPosition: [0, 0, 0],
|
|
15220
15222
|
initialRotation: [0, 0, 0],
|
|
@@ -15231,7 +15233,7 @@ var $g = function() {
|
|
|
15231
15233
|
var de = t.get(V.ID).parents.filter(function(ke) {
|
|
15232
15234
|
return ke.relationship !== void 0;
|
|
15233
15235
|
})[0].ID, Oe = t.get(de).parents[0].ID, Ae = t.get(Oe).parents[0].ID, K = t.get(Ae).parents[0].ID, ne = n.Objects.Model[K], oe = {
|
|
15234
|
-
modelName: ne.attrName ?
|
|
15236
|
+
modelName: ne.attrName ? Kr.sanitizeNodeName(ne.attrName) : "",
|
|
15235
15237
|
morphName: n.Objects.Deformer[de].attrName
|
|
15236
15238
|
};
|
|
15237
15239
|
M[q] = oe;
|
|
@@ -15921,7 +15923,7 @@ const HC = ({ x: n, y: t, z: e }) => new he(n, t, e), JT = (n, t) => {
|
|
|
15921
15923
|
}, NC = Yi;
|
|
15922
15924
|
function GC(n, t, e, i = NC.Linear.None) {
|
|
15923
15925
|
const s = new el(n).to(t, e).easing(i);
|
|
15924
|
-
|
|
15926
|
+
Rr(() => s.start(0));
|
|
15925
15927
|
const o = Do((a) => {
|
|
15926
15928
|
s.update(a) === !1 && o();
|
|
15927
15929
|
}), r = [];
|
|
@@ -15942,12 +15944,12 @@ function QC(n, t) {
|
|
|
15942
15944
|
return GC({ progress: 0 }, { progress: 1 }, n, t);
|
|
15943
15945
|
}
|
|
15944
15946
|
var WC = /* @__PURE__ */ ((n) => (n.Move = "Move", n.Rotate = "Rotate", n))(WC || {}), cn = /* @__PURE__ */ ((n) => (n.Clockwise = "Clockwise", n.Anticlockwise = "Anticlockwise", n.Loop = "Loop", n))(cn || {});
|
|
15945
|
-
const
|
|
15947
|
+
const Ma = Math.PI * 2;
|
|
15946
15948
|
function _d(n) {
|
|
15947
|
-
return (n %
|
|
15949
|
+
return (n % Ma + Ma) % Ma;
|
|
15948
15950
|
}
|
|
15949
15951
|
function Fd(n) {
|
|
15950
|
-
return n %
|
|
15952
|
+
return n % Ma;
|
|
15951
15953
|
}
|
|
15952
15954
|
function Gl(n, t, e) {
|
|
15953
15955
|
return n + (t - n) * e;
|
|
@@ -16026,13 +16028,13 @@ function tv(n, t, e) {
|
|
|
16026
16028
|
const i = Ya(n[1], n[0]), s = Ya(t[1], t[0]);
|
|
16027
16029
|
if (isNaN(i) || isNaN(s) || ev(i, s))
|
|
16028
16030
|
return !1;
|
|
16029
|
-
if (
|
|
16031
|
+
if (aa(n[0], t))
|
|
16030
16032
|
return n[0];
|
|
16031
|
-
if (
|
|
16033
|
+
if (aa(n[1], t))
|
|
16032
16034
|
return n[1];
|
|
16033
|
-
if (
|
|
16035
|
+
if (aa(t[0], n))
|
|
16034
16036
|
return t[0];
|
|
16035
|
-
if (
|
|
16037
|
+
if (aa(t[1], n))
|
|
16036
16038
|
return t[1];
|
|
16037
16039
|
if (e && !YC(n, t))
|
|
16038
16040
|
return !1;
|
|
@@ -16044,7 +16046,7 @@ function tv(n, t, e) {
|
|
|
16044
16046
|
const a = (r.y - o.y + i * o.x - s * r.x) / (i - s), l = i * a - i * o.x + o.y;
|
|
16045
16047
|
return { x: a, y: l };
|
|
16046
16048
|
}
|
|
16047
|
-
function
|
|
16049
|
+
function aa(n, t) {
|
|
16048
16050
|
return Hd(n, t[0]) || Hd(n, t[1]) ? !0 : (t[0].x - n.x) * (n.x - t[1].x) >= 0 && (t[0].y - n.y) * (n.y - t[1].y) >= 0 && ev(Ya(t[0], n), Ya(n, t[1]));
|
|
16049
16051
|
}
|
|
16050
16052
|
function UC(n) {
|
|
@@ -16053,11 +16055,11 @@ function UC(n) {
|
|
|
16053
16055
|
t = Math.min(t, o.x), e = Math.max(e, o.x), i = Math.min(i, o.y), s = Math.max(s, o.y);
|
|
16054
16056
|
}), { x: (t + e) / 2, y: (i + s) / 2 };
|
|
16055
16057
|
}
|
|
16056
|
-
function
|
|
16058
|
+
function la(n, t, e) {
|
|
16057
16059
|
return (n.x - e.x) * (t.y - e.y) - (t.x - e.x) * (n.y - e.y);
|
|
16058
16060
|
}
|
|
16059
16061
|
function YC(n, t) {
|
|
16060
|
-
return Math.max(n[0].x, n[1].x) >= Math.min(t[0].x, t[1].x) && Math.max(t[0].x, t[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].y, n[1].y) >= Math.min(t[0].y, t[1].y) &&
|
|
16062
|
+
return Math.max(n[0].x, n[1].x) >= Math.min(t[0].x, t[1].x) && Math.max(t[0].x, t[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].y, n[1].y) >= Math.min(t[0].y, t[1].y) && la(t[0], n[1], n[0]) * la(n[1], t[1], n[0]) > 0 && la(n[0], t[1], t[0]) * la(t[1], n[1], t[0]) > 0 ? 1 : 0;
|
|
16061
16063
|
}
|
|
16062
16064
|
function iv(n, t = 0) {
|
|
16063
16065
|
t <= 0 ? requestAnimationFrame(n) : requestAnimationFrame(() => iv(n, t - 1));
|
|
@@ -16752,7 +16754,7 @@ function sP(n, t, e) {
|
|
|
16752
16754
|
};
|
|
16753
16755
|
});
|
|
16754
16756
|
e(0, r = A);
|
|
16755
|
-
}, p = () =>
|
|
16757
|
+
}, p = () => Rr(f), v = il(f, 80);
|
|
16756
16758
|
return Jt(() => {
|
|
16757
16759
|
f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", p), i.on("movingToPano", p), i.on("mouseWheel", () => v()), i.on("pinchGesture", () => v());
|
|
16758
16760
|
}), bi(() => {
|
|
@@ -16865,7 +16867,7 @@ function nv(n) {
|
|
|
16865
16867
|
});
|
|
16866
16868
|
});
|
|
16867
16869
|
}
|
|
16868
|
-
const
|
|
16870
|
+
const ca = { userAction: !0 };
|
|
16869
16871
|
class hP extends gn {
|
|
16870
16872
|
constructor(e, i) {
|
|
16871
16873
|
super(e, i);
|
|
@@ -16949,10 +16951,10 @@ class hP extends gn {
|
|
|
16949
16951
|
d(this, "onFivePanoArrived", (e) => {
|
|
16950
16952
|
var s, o, r, a, l, c, h, u;
|
|
16951
16953
|
const i = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
|
|
16952
|
-
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween =
|
|
16954
|
+
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = wr(1e3).onUpdate(({ progress: f }) => {
|
|
16953
16955
|
var p;
|
|
16954
16956
|
(p = this.compassMesh) == null || p.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
16955
|
-
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween =
|
|
16957
|
+
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween = wr(1e3).onUpdate(({ progress: f }) => {
|
|
16956
16958
|
var p;
|
|
16957
16959
|
(p = this.logoMesh) == null || p.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
16958
16960
|
}).play())), this.entryDoorMesh) {
|
|
@@ -16988,7 +16990,7 @@ class hP extends gn {
|
|
|
16988
16990
|
* 启用插件,响应用户操作并展示UI
|
|
16989
16991
|
* @param options
|
|
16990
16992
|
*/
|
|
16991
|
-
enable(e =
|
|
16993
|
+
enable(e = ca) {
|
|
16992
16994
|
this.setState(
|
|
16993
16995
|
{
|
|
16994
16996
|
enabled: !0
|
|
@@ -17000,7 +17002,7 @@ class hP extends gn {
|
|
|
17000
17002
|
* 禁用插件,禁止响应用户操作并隐藏UI
|
|
17001
17003
|
* @param options
|
|
17002
17004
|
*/
|
|
17003
|
-
disable(e =
|
|
17005
|
+
disable(e = ca) {
|
|
17004
17006
|
this.setState(
|
|
17005
17007
|
{
|
|
17006
17008
|
enabled: !1
|
|
@@ -17014,7 +17016,7 @@ class hP extends gn {
|
|
|
17014
17016
|
* @returns
|
|
17015
17017
|
* @todo 需要考虑动画
|
|
17016
17018
|
*/
|
|
17017
|
-
show(e =
|
|
17019
|
+
show(e = ca) {
|
|
17018
17020
|
if (this.state.enabled)
|
|
17019
17021
|
return this.setState(
|
|
17020
17022
|
{
|
|
@@ -17029,7 +17031,7 @@ class hP extends gn {
|
|
|
17029
17031
|
* @returns
|
|
17030
17032
|
* @todo 需要考虑动画
|
|
17031
17033
|
*/
|
|
17032
|
-
hide(e =
|
|
17034
|
+
hide(e = ca) {
|
|
17033
17035
|
if (this.state.enabled)
|
|
17034
17036
|
return this.setState(
|
|
17035
17037
|
{
|
|
@@ -17152,7 +17154,7 @@ function Cs(n) {
|
|
|
17152
17154
|
const { x: t, y: e, z: i } = n;
|
|
17153
17155
|
return !(Math.abs(t) > 1 || Math.abs(e) > 1 || Math.abs(i) > 1);
|
|
17154
17156
|
}
|
|
17155
|
-
function
|
|
17157
|
+
function xa(n) {
|
|
17156
17158
|
const { z: t } = n;
|
|
17157
17159
|
return !(Math.abs(t) > 1);
|
|
17158
17160
|
}
|
|
@@ -17219,7 +17221,7 @@ class ov {
|
|
|
17219
17221
|
if (!e)
|
|
17220
17222
|
return;
|
|
17221
17223
|
const i = e.clientWidth, s = e.clientHeight, o = this.ndcPosition.clone().project(t.camera);
|
|
17222
|
-
if (!
|
|
17224
|
+
if (!xa(o)) {
|
|
17223
17225
|
this.tempHide();
|
|
17224
17226
|
return;
|
|
17225
17227
|
}
|
|
@@ -17252,7 +17254,7 @@ class EP extends ov {
|
|
|
17252
17254
|
if (this.line.points.length < 2)
|
|
17253
17255
|
return;
|
|
17254
17256
|
const [l, c] = this.line.points.map((F) => F.position.clone().applyMatrix4(this.line.mesh.matrixWorld)), h = l.clone().project(e.camera), u = c.clone().project(e.camera), f = ui(l, c).clone().project(e.camera), p = new Nt(h.x * r, h.y * a), v = new Nt(u.x * r, u.y * a), g = p.distanceTo(v);
|
|
17255
|
-
if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !
|
|
17257
|
+
if ((() => !(Math.abs(h.z) > 1 || Math.abs(u.z) > 1 || !xa(h) && !xa(u) || !xa(f) || g === 0))() === !1) {
|
|
17256
17258
|
this.hide();
|
|
17257
17259
|
return;
|
|
17258
17260
|
}
|
|
@@ -17353,7 +17355,7 @@ let Co = class rv {
|
|
|
17353
17355
|
return new av(this.position);
|
|
17354
17356
|
}
|
|
17355
17357
|
};
|
|
17356
|
-
const
|
|
17358
|
+
const ha = (n) => n.preventDefault();
|
|
17357
17359
|
let pl = class {
|
|
17358
17360
|
constructor(t) {
|
|
17359
17361
|
d(this, "model");
|
|
@@ -17389,7 +17391,7 @@ let pl = class {
|
|
|
17389
17391
|
helper: B({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
17390
17392
|
}), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new Co(new Ai([0, 0, 0]), new Ai([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new Co(new Ai([0, 0, 0]), new Ai([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new $t(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
17391
17393
|
const e = this.five.getElement();
|
|
17392
|
-
e && (e.addEventListener("touchstart",
|
|
17394
|
+
e && (e.addEventListener("touchstart", ha), e.addEventListener("contextmenu", ha));
|
|
17393
17395
|
}
|
|
17394
17396
|
get currentMeasureType() {
|
|
17395
17397
|
return this.getMeasureType();
|
|
@@ -17412,7 +17414,7 @@ let pl = class {
|
|
|
17412
17414
|
var e;
|
|
17413
17415
|
this.disposed = !0, (e = this.magnifier) == null || e.disable(), this.model.getAllLines().forEach((i) => this.removeLine(i)), this.model.areas.forEach((i) => i.remove());
|
|
17414
17416
|
const t = this.five.getElement();
|
|
17415
|
-
t && (t.removeEventListener("touchstart",
|
|
17417
|
+
t && (t.removeEventListener("touchstart", ha), t.removeEventListener("contextmenu", ha));
|
|
17416
17418
|
}
|
|
17417
17419
|
}, Po = class {
|
|
17418
17420
|
constructor(t) {
|
|
@@ -17548,7 +17550,7 @@ function ml(n, t, e) {
|
|
|
17548
17550
|
u = n[v], f = n[v + 1], u < a && (a = u), f < l && (l = f), u > c && (c = u), f > h && (h = f);
|
|
17549
17551
|
p = Math.max(c - a, h - l), p = p !== 0 ? 32767 / p : 0;
|
|
17550
17552
|
}
|
|
17551
|
-
return
|
|
17553
|
+
return Er(o, r, e, a, l, p, 0), r;
|
|
17552
17554
|
}
|
|
17553
17555
|
function lv(n, t, e, i, s) {
|
|
17554
17556
|
var o, r;
|
|
@@ -17558,7 +17560,7 @@ function lv(n, t, e, i, s) {
|
|
|
17558
17560
|
else
|
|
17559
17561
|
for (o = e - i; o >= t; o -= i)
|
|
17560
17562
|
r = Yd(o, n[o], n[o + 1], r);
|
|
17561
|
-
return r && gl(r, r.next) && (
|
|
17563
|
+
return r && gl(r, r.next) && (xr(r), r = r.next), r;
|
|
17562
17564
|
}
|
|
17563
17565
|
function Ps(n, t) {
|
|
17564
17566
|
if (!n)
|
|
@@ -17567,7 +17569,7 @@ function Ps(n, t) {
|
|
|
17567
17569
|
var e = n, i;
|
|
17568
17570
|
do
|
|
17569
17571
|
if (i = !1, !e.steiner && (gl(e, e.next) || ht(e.prev, e, e.next) === 0)) {
|
|
17570
|
-
if (
|
|
17572
|
+
if (xr(e), e = t = e.prev, e === e.next)
|
|
17571
17573
|
break;
|
|
17572
17574
|
i = !0;
|
|
17573
17575
|
} else
|
|
@@ -17575,16 +17577,16 @@ function Ps(n, t) {
|
|
|
17575
17577
|
while (i || e !== t);
|
|
17576
17578
|
return t;
|
|
17577
17579
|
}
|
|
17578
|
-
function
|
|
17580
|
+
function Er(n, t, e, i, s, o, r) {
|
|
17579
17581
|
if (n) {
|
|
17580
17582
|
!r && o && BP(n, i, s, o);
|
|
17581
17583
|
for (var a = n, l, c; n.prev !== n.next; ) {
|
|
17582
17584
|
if (l = n.prev, c = n.next, o ? kP(n, i, s, o) : xP(n)) {
|
|
17583
|
-
t.push(l.i / e | 0), t.push(n.i / e | 0), t.push(c.i / e | 0),
|
|
17585
|
+
t.push(l.i / e | 0), t.push(n.i / e | 0), t.push(c.i / e | 0), xr(n), n = c.next, a = c.next;
|
|
17584
17586
|
continue;
|
|
17585
17587
|
}
|
|
17586
17588
|
if (n = c, n === a) {
|
|
17587
|
-
r ? r === 1 ? (n = SP(Ps(n), t, e),
|
|
17589
|
+
r ? r === 1 ? (n = SP(Ps(n), t, e), Er(n, t, e, i, s, o, 2)) : r === 2 && DP(n, t, e, i, s, o) : Er(Ps(n), t, e, i, s, o, 1);
|
|
17588
17590
|
break;
|
|
17589
17591
|
}
|
|
17590
17592
|
}
|
|
@@ -17626,7 +17628,7 @@ function SP(n, t, e) {
|
|
|
17626
17628
|
var i = n;
|
|
17627
17629
|
do {
|
|
17628
17630
|
var s = i.prev, o = i.next.next;
|
|
17629
|
-
!gl(s, o) && cv(s, i, i.next, o) &&
|
|
17631
|
+
!gl(s, o) && cv(s, i, i.next, o) && Mr(s, o) && Mr(o, s) && (t.push(s.i / e | 0), t.push(i.i / e | 0), t.push(o.i / e | 0), xr(i), xr(i.next), i = n = o), i = i.next;
|
|
17630
17632
|
} while (i !== n);
|
|
17631
17633
|
return Ps(i);
|
|
17632
17634
|
}
|
|
@@ -17636,7 +17638,7 @@ function DP(n, t, e, i, s, o) {
|
|
|
17636
17638
|
for (var a = r.next.next; a !== r.prev; ) {
|
|
17637
17639
|
if (r.i !== a.i && _P(r, a)) {
|
|
17638
17640
|
var l = hv(r, a);
|
|
17639
|
-
r = Ps(r, r.next), l = Ps(l, l.next),
|
|
17641
|
+
r = Ps(r, r.next), l = Ps(l, l.next), Er(r, t, e, i, s, o, 0), Er(l, t, e, i, s, o, 0);
|
|
17640
17642
|
return;
|
|
17641
17643
|
}
|
|
17642
17644
|
a = a.next;
|
|
@@ -17677,7 +17679,7 @@ function zP(n, t) {
|
|
|
17677
17679
|
var l = r, c = r.x, h = r.y, u = 1 / 0, f;
|
|
17678
17680
|
e = r;
|
|
17679
17681
|
do
|
|
17680
|
-
i >= e.x && e.x >= c && i !== e.x && Ks(s < h ? i : o, s, c, h, s < h ? o : i, s, e.x, e.y) && (f = Math.abs(s - e.y) / (i - e.x),
|
|
17682
|
+
i >= e.x && e.x >= c && i !== e.x && Ks(s < h ? i : o, s, c, h, s < h ? o : i, s, e.x, e.y) && (f = Math.abs(s - e.y) / (i - e.x), Mr(e, n) && (f < u || f === u && (e.x > r.x || e.x === r.x && jP(r, e))) && (r = e, u = f)), e = e.next;
|
|
17681
17683
|
while (e !== l);
|
|
17682
17684
|
return r;
|
|
17683
17685
|
}
|
|
@@ -17720,7 +17722,7 @@ function Ks(n, t, e, i, s, o, r, a) {
|
|
|
17720
17722
|
}
|
|
17721
17723
|
function _P(n, t) {
|
|
17722
17724
|
return n.next.i !== t.i && n.prev.i !== t.i && !FP(n, t) && // dones't intersect other edges
|
|
17723
|
-
(
|
|
17725
|
+
(Mr(n, t) && Mr(t, n) && HP(n, t) && // locally visible
|
|
17724
17726
|
(ht(n.prev, n, t.prev) || ht(n, t.prev, t)) || // does not create opposite-facing sectors
|
|
17725
17727
|
gl(n, t) && ht(n.prev, n, n.next) > 0 && ht(t.prev, t, t.next) > 0);
|
|
17726
17728
|
}
|
|
@@ -17731,13 +17733,13 @@ function gl(n, t) {
|
|
|
17731
17733
|
return n.x === t.x && n.y === t.y;
|
|
17732
17734
|
}
|
|
17733
17735
|
function cv(n, t, e, i) {
|
|
17734
|
-
var s =
|
|
17735
|
-
return !!(s !== o && r !== a || s === 0 &&
|
|
17736
|
+
var s = da(ht(n, t, e)), o = da(ht(n, t, i)), r = da(ht(e, i, n)), a = da(ht(e, i, t));
|
|
17737
|
+
return !!(s !== o && r !== a || s === 0 && ua(n, e, t) || o === 0 && ua(n, i, t) || r === 0 && ua(e, n, i) || a === 0 && ua(e, t, i));
|
|
17736
17738
|
}
|
|
17737
|
-
function
|
|
17739
|
+
function ua(n, t, e) {
|
|
17738
17740
|
return t.x <= Math.max(n.x, e.x) && t.x >= Math.min(n.x, e.x) && t.y <= Math.max(n.y, e.y) && t.y >= Math.min(n.y, e.y);
|
|
17739
17741
|
}
|
|
17740
|
-
function
|
|
17742
|
+
function da(n) {
|
|
17741
17743
|
return n > 0 ? 1 : n < 0 ? -1 : 0;
|
|
17742
17744
|
}
|
|
17743
17745
|
function FP(n, t) {
|
|
@@ -17749,7 +17751,7 @@ function FP(n, t) {
|
|
|
17749
17751
|
} while (e !== n);
|
|
17750
17752
|
return !1;
|
|
17751
17753
|
}
|
|
17752
|
-
function
|
|
17754
|
+
function Mr(n, t) {
|
|
17753
17755
|
return ht(n.prev, n, n.next) < 0 ? ht(n, t, n.next) >= 0 && ht(n, n.prev, t) >= 0 : ht(n, t, n.prev) < 0 || ht(n, n.next, t) < 0;
|
|
17754
17756
|
}
|
|
17755
17757
|
function HP(n, t) {
|
|
@@ -17767,7 +17769,7 @@ function Yd(n, t, e, i) {
|
|
|
17767
17769
|
var s = new Dc(n, t, e);
|
|
17768
17770
|
return i ? (s.next = i.next, s.prev = i, i.next.prev = s, i.next = s) : (s.prev = s, s.next = s), s;
|
|
17769
17771
|
}
|
|
17770
|
-
function
|
|
17772
|
+
function xr(n) {
|
|
17771
17773
|
n.next.prev = n.prev, n.prev.next = n.next, n.prevZ && (n.prevZ.nextZ = n.nextZ), n.nextZ && (n.nextZ.prevZ = n.prevZ);
|
|
17772
17774
|
}
|
|
17773
17775
|
function Dc(n, t, e) {
|
|
@@ -18495,7 +18497,7 @@ class qd extends pl {
|
|
|
18495
18497
|
});
|
|
18496
18498
|
const i = this.five.getElement();
|
|
18497
18499
|
if (i) {
|
|
18498
|
-
const s = new
|
|
18500
|
+
const s = new br(i);
|
|
18499
18501
|
this.hammer = s;
|
|
18500
18502
|
}
|
|
18501
18503
|
this.onFiveModeChange(this.five.getCurrentState().mode), this.onFivePanoWillArrive(this.five.getCurrentState().panoIndex), this.onFivePanoArrived(this.five.getCurrentState().panoIndex), this.updateDistanceUI(), this.five.needsRender = !0, this.model.hook.on("polylineAdded", this.polylineAdded), this.model.hook.on("polylineRemoved", this.polylineRemoved), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onFivePanoArrived), this.five.on("modeChange", this.onFiveModeChange), this.five.on("panoWillArrive", this.onFivePanoWillArrive);
|
|
@@ -18663,7 +18665,7 @@ class ef extends pl {
|
|
|
18663
18665
|
const i = this.five.getElement();
|
|
18664
18666
|
if (i) {
|
|
18665
18667
|
this.fiveElement = i;
|
|
18666
|
-
const s = new
|
|
18668
|
+
const s = new br(i);
|
|
18667
18669
|
this.hammer = s, s.on("pan", this.onPan), s.on("panstart", this.onPanStart), s.on("panend", this.onPanEnd);
|
|
18668
18670
|
}
|
|
18669
18671
|
this.updateDistanceUI(), this.five.needsRender = !0, this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsPanGesture", this.wantsPanGesture), this.five.on("wantsChangeMode", $d), this.model.hook.on("polylineRemoved", this.polylineRemoved);
|
|
@@ -21225,12 +21227,12 @@ class Es extends ni {
|
|
|
21225
21227
|
}
|
|
21226
21228
|
updateMatrixWorld(e) {
|
|
21227
21229
|
super.updateMatrixWorld(e);
|
|
21228
|
-
const i =
|
|
21230
|
+
const i = yr(this, this.position).toArray().join(",");
|
|
21229
21231
|
i !== this.lastRenderDomItem && (this.updateDom(), this.lastRenderDomItem = i);
|
|
21230
21232
|
}
|
|
21231
21233
|
updateDom() {
|
|
21232
21234
|
const e = this.paramsStyle.tip;
|
|
21233
|
-
e && !this.dom && (this.dom = new
|
|
21235
|
+
e && !this.dom && (this.dom = new Or(this.five), this.dom.intersectCheck = !1, this.dom.simulate3D = !0, this.dom.container.style.display = this.visible ? "block" : "none");
|
|
21234
21236
|
const i = (s) => {
|
|
21235
21237
|
var o;
|
|
21236
21238
|
this.dom && this.dom.__text !== s && (this.dom.__text = s, s instanceof HTMLElement ? (this.dom.container.innerHTML = "", this.dom.container.appendChild(s)) : s ? this.dom.container.innerHTML = sh(s, {
|
|
@@ -21412,7 +21414,7 @@ class Ro extends Al {
|
|
|
21412
21414
|
}
|
|
21413
21415
|
updateMatrixWorld(e) {
|
|
21414
21416
|
if (super.updateMatrixWorld(e), this.center) {
|
|
21415
|
-
const i =
|
|
21417
|
+
const i = yr(this, this.center).toArray().join(",");
|
|
21416
21418
|
i !== this.lastRenderAreaItem && (this.updateAreaItems(), this.lastRenderAreaItem = i);
|
|
21417
21419
|
}
|
|
21418
21420
|
}
|
|
@@ -21448,7 +21450,7 @@ class Ro extends Al {
|
|
|
21448
21450
|
return console.error("Five not found");
|
|
21449
21451
|
this.areaDom = (s = this.areaDom) != null ? s : (() => {
|
|
21450
21452
|
var l;
|
|
21451
|
-
const r = new
|
|
21453
|
+
const r = new Or(this.five), a = (l = this._paramsStyle.occlusionVisibility) != null ? l : !0;
|
|
21452
21454
|
return r.intersectCheck = !a, r.simulate3D = !0, r;
|
|
21453
21455
|
})(), this.areaDom.setPosition(this.center);
|
|
21454
21456
|
const i = ub(this.geometryInfo.area, this._paramsStyle.lengthUnit);
|
|
@@ -21457,17 +21459,17 @@ class Ro extends Al {
|
|
|
21457
21459
|
}) : this.areaDom.container.innerHTML = "";
|
|
21458
21460
|
}
|
|
21459
21461
|
}
|
|
21460
|
-
function
|
|
21462
|
+
function ka(n, t) {
|
|
21461
21463
|
return !(Math.abs(n.x - t.x) > 1e-5 || Math.abs(n.y - t.y) > 1e-5 || Math.abs(n.z - t.z) > 1e-5);
|
|
21462
21464
|
}
|
|
21463
21465
|
function Iv(n) {
|
|
21464
|
-
if (n.length < 3 || !
|
|
21466
|
+
if (n.length < 3 || !ka(n[0], n.at(-1)))
|
|
21465
21467
|
return !1;
|
|
21466
21468
|
let t = !0;
|
|
21467
21469
|
const e = new y.Vector3().subVectors(n[1], n[0]).normalize();
|
|
21468
21470
|
for (let o = 2; o < n.length; o++) {
|
|
21469
21471
|
const r = new y.Vector3().subVectors(n[o], n[0]).normalize();
|
|
21470
|
-
if (!
|
|
21472
|
+
if (!ka(r, e) && !ka(r, e.clone().negate())) {
|
|
21471
21473
|
t = !1;
|
|
21472
21474
|
break;
|
|
21473
21475
|
}
|
|
@@ -21544,7 +21546,7 @@ function nE(n, t) {
|
|
|
21544
21546
|
i.indexOf(e[o]) === -1 && (s = !1);
|
|
21545
21547
|
return s;
|
|
21546
21548
|
}
|
|
21547
|
-
const
|
|
21549
|
+
const kr = {
|
|
21548
21550
|
backspace: 8,
|
|
21549
21551
|
"⌫": 8,
|
|
21550
21552
|
tab: 9,
|
|
@@ -21628,13 +21630,13 @@ const xr = {
|
|
|
21628
21630
|
91: !1
|
|
21629
21631
|
}, ut = {};
|
|
21630
21632
|
for (let n = 1; n < 20; n++)
|
|
21631
|
-
|
|
21633
|
+
kr["f".concat(n)] = 111 + n;
|
|
21632
21634
|
let st = [], pr = null, xv = "all";
|
|
21633
|
-
const ln = /* @__PURE__ */ new Map(),
|
|
21635
|
+
const ln = /* @__PURE__ */ new Map(), Vr = (n) => kr[n.toLowerCase()] || Ji[n.toLowerCase()] || n.toUpperCase().charCodeAt(0), sE = (n) => Object.keys(kr).find((t) => kr[t] === n), oE = (n) => Object.keys(Ji).find((t) => Ji[t] === n);
|
|
21634
21636
|
function kv(n) {
|
|
21635
21637
|
xv = n || "all";
|
|
21636
21638
|
}
|
|
21637
|
-
function
|
|
21639
|
+
function Sr() {
|
|
21638
21640
|
return xv || "all";
|
|
21639
21641
|
}
|
|
21640
21642
|
function rE() {
|
|
@@ -21657,7 +21659,7 @@ function lE() {
|
|
|
21657
21659
|
scope: s,
|
|
21658
21660
|
shortcut: r,
|
|
21659
21661
|
mods: o,
|
|
21660
|
-
keys: i.split("+").map((a) =>
|
|
21662
|
+
keys: i.split("+").map((a) => Vr(a))
|
|
21661
21663
|
});
|
|
21662
21664
|
});
|
|
21663
21665
|
}), n;
|
|
@@ -21671,11 +21673,11 @@ function cE(n) {
|
|
|
21671
21673
|
return (t.isContentEditable || (s || e === "TEXTAREA" || e === "SELECT") && !t.readOnly) && (i = !1), i;
|
|
21672
21674
|
}
|
|
21673
21675
|
function hE(n) {
|
|
21674
|
-
return typeof n == "string" && (n =
|
|
21676
|
+
return typeof n == "string" && (n = Vr(n)), st.indexOf(n) !== -1;
|
|
21675
21677
|
}
|
|
21676
21678
|
function uE(n, t) {
|
|
21677
21679
|
let e, i;
|
|
21678
|
-
n || (n =
|
|
21680
|
+
n || (n = Sr());
|
|
21679
21681
|
for (const s in ut)
|
|
21680
21682
|
if (Object.prototype.hasOwnProperty.call(ut, s))
|
|
21681
21683
|
for (e = ut[s], i = 0; i < e.length; )
|
|
@@ -21685,7 +21687,7 @@ function uE(n, t) {
|
|
|
21685
21687
|
} = r;
|
|
21686
21688
|
return Qh(a);
|
|
21687
21689
|
}) : i++;
|
|
21688
|
-
|
|
21690
|
+
Sr() === n && kv(t || "all");
|
|
21689
21691
|
}
|
|
21690
21692
|
function dE(n) {
|
|
21691
21693
|
let t = n.keyCode || n.which || n.charCode;
|
|
@@ -21699,19 +21701,19 @@ function dE(n) {
|
|
|
21699
21701
|
function Sv(n) {
|
|
21700
21702
|
if (typeof n == "undefined")
|
|
21701
21703
|
Object.keys(ut).forEach((s) => {
|
|
21702
|
-
Array.isArray(ut[s]) && ut[s].forEach((o) =>
|
|
21704
|
+
Array.isArray(ut[s]) && ut[s].forEach((o) => fa(o)), delete ut[s];
|
|
21703
21705
|
}), Qh(null);
|
|
21704
21706
|
else if (Array.isArray(n))
|
|
21705
21707
|
n.forEach((s) => {
|
|
21706
|
-
s.key &&
|
|
21708
|
+
s.key && fa(s);
|
|
21707
21709
|
});
|
|
21708
21710
|
else if (typeof n == "object")
|
|
21709
|
-
n.key &&
|
|
21711
|
+
n.key && fa(n);
|
|
21710
21712
|
else if (typeof n == "string") {
|
|
21711
21713
|
for (var t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
21712
21714
|
e[i - 1] = arguments[i];
|
|
21713
21715
|
let [s, o] = e;
|
|
21714
|
-
typeof s == "function" && (o = s, s = ""),
|
|
21716
|
+
typeof s == "function" && (o = s, s = ""), fa({
|
|
21715
21717
|
key: n,
|
|
21716
21718
|
scope: s,
|
|
21717
21719
|
method: o,
|
|
@@ -21719,7 +21721,7 @@ function Sv(n) {
|
|
|
21719
21721
|
});
|
|
21720
21722
|
}
|
|
21721
21723
|
}
|
|
21722
|
-
const
|
|
21724
|
+
const fa = (n) => {
|
|
21723
21725
|
let {
|
|
21724
21726
|
key: t,
|
|
21725
21727
|
scope: e,
|
|
@@ -21727,10 +21729,10 @@ const da = (n) => {
|
|
|
21727
21729
|
splitKey: s = "+"
|
|
21728
21730
|
} = n;
|
|
21729
21731
|
Mv(t).forEach((r) => {
|
|
21730
|
-
const a = r.split(s), l = a.length, c = a[l - 1], h = c === "*" ? "*" :
|
|
21732
|
+
const a = r.split(s), l = a.length, c = a[l - 1], h = c === "*" ? "*" : Vr(c);
|
|
21731
21733
|
if (!ut[h])
|
|
21732
21734
|
return;
|
|
21733
|
-
e || (e =
|
|
21735
|
+
e || (e = Sr());
|
|
21734
21736
|
const u = l > 1 ? Ev(Ji, a) : [], f = [];
|
|
21735
21737
|
ut[h] = ut[h].filter((p) => {
|
|
21736
21738
|
const g = (i ? p.method === i : !0) && p.scope === e && nE(p.mods, u);
|
|
@@ -21767,7 +21769,7 @@ function wf(n, t) {
|
|
|
21767
21769
|
for (const a in zt)
|
|
21768
21770
|
Object.prototype.hasOwnProperty.call(zt, a) && (zt[a] = n[Bc[a]]);
|
|
21769
21771
|
n.getModifierState && !(n.altKey && !n.ctrlKey) && n.getModifierState("AltGraph") && (st.indexOf(17) === -1 && st.push(17), st.indexOf(18) === -1 && st.push(18), zt[17] = !0, zt[18] = !0);
|
|
21770
|
-
const s =
|
|
21772
|
+
const s = Sr();
|
|
21771
21773
|
if (e)
|
|
21772
21774
|
for (let a = 0; a < e.length; a++)
|
|
21773
21775
|
e[a].scope === s && (n.type === "keydown" && e[a].keydown || n.type === "keyup" && e[a].keyup) && yf(n, e[a], s, t);
|
|
@@ -21780,7 +21782,7 @@ function wf(n, t) {
|
|
|
21780
21782
|
splitKey: c
|
|
21781
21783
|
} = l, h = l.key.split(c), u = [];
|
|
21782
21784
|
for (let f = 0; f < h.length; f++)
|
|
21783
|
-
u.push(
|
|
21785
|
+
u.push(Vr(h[f]));
|
|
21784
21786
|
u.sort().join("") === st.sort().join("") && yf(n, l, s, t);
|
|
21785
21787
|
}
|
|
21786
21788
|
}
|
|
@@ -21789,7 +21791,7 @@ function mt(n, t, e) {
|
|
|
21789
21791
|
const i = Mv(n);
|
|
21790
21792
|
let s = [], o = "all", r = document, a = 0, l = !1, c = !0, h = "+", u = !1, f = !1;
|
|
21791
21793
|
for (e === void 0 && typeof t == "function" && (e = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (o = t.scope), t.element && (r = t.element), t.keyup && (l = t.keyup), t.keydown !== void 0 && (c = t.keydown), t.capture !== void 0 && (u = t.capture), typeof t.splitKey == "string" && (h = t.splitKey), t.single === !0 && (f = !0)), typeof t == "string" && (o = t), f && Sv(n, o); a < i.length; a++)
|
|
21792
|
-
n = i[a].split(h), s = [], n.length > 1 && (s = Ev(Ji, n)), n = n[n.length - 1], n = n === "*" ? "*" :
|
|
21794
|
+
n = i[a].split(h), s = [], n.length > 1 && (s = Ev(Ji, n)), n = n[n.length - 1], n = n === "*" ? "*" : Vr(n), n in ut || (ut[n] = []), ut[n].push({
|
|
21793
21795
|
keyup: l,
|
|
21794
21796
|
keydown: c,
|
|
21795
21797
|
scope: o,
|
|
@@ -21867,7 +21869,7 @@ function Qh(n) {
|
|
|
21867
21869
|
const Ul = {
|
|
21868
21870
|
getPressedKeyString: aE,
|
|
21869
21871
|
setScope: kv,
|
|
21870
|
-
getScope:
|
|
21872
|
+
getScope: Sr,
|
|
21871
21873
|
deleteScope: uE,
|
|
21872
21874
|
getPressedKeyCodes: rE,
|
|
21873
21875
|
getAllKeyCodes: lE,
|
|
@@ -21875,7 +21877,7 @@ const Ul = {
|
|
|
21875
21877
|
filter: cE,
|
|
21876
21878
|
trigger: fE,
|
|
21877
21879
|
unbind: Sv,
|
|
21878
|
-
keyMap:
|
|
21880
|
+
keyMap: kr,
|
|
21879
21881
|
modifier: Ji,
|
|
21880
21882
|
modifierMap: Bc
|
|
21881
21883
|
};
|
|
@@ -21992,7 +21994,7 @@ class mE extends yt {
|
|
|
21992
21994
|
var p, v;
|
|
21993
21995
|
e == null || e.setPoints(e.points.slice(0, -1)), l(), (v = (p = this.pointSelector.pointSelectorHelper) == null ? void 0 : p.magnifier) == null || v.render(), this.updateSelectAdsorbedHelper(), this.five.needsRender = !0;
|
|
21994
21996
|
}, f = () => {
|
|
21995
|
-
this.pointSelector.off("intersectionUpdate", c), this.pointSelector.off("select", h), this.pointSelector.off("disable", f), this.off("undo", u), l(), e.points.length < 2 && e.removeFromParent(), this.currentMeasureMesh = null, this.listener.addClickListener(), this.listener.removeMeasureListener(), this.emit("measureEnd");
|
|
21997
|
+
this.pointSelector.off("intersectionUpdate", c), this.pointSelector.off("select", h), this.pointSelector.off("disable", f), this.off("undo", u), l(), e.points.length < 2 && e.removeFromParent(), e.__five_pano_index = this.five.panoIndex, this.currentMeasureMesh = null, this.listener.addClickListener(), this.listener.removeMeasureListener(), this.emit("measureEnd");
|
|
21996
21998
|
};
|
|
21997
21999
|
this.on("undo", u), this.pointSelector.on("intersectionUpdate", c), this.pointSelector.on("select", h), this.pointSelector.on("disable", f), this.pointSelector.enable();
|
|
21998
22000
|
});
|
|
@@ -22039,7 +22041,7 @@ class mE extends yt {
|
|
|
22039
22041
|
var i;
|
|
22040
22042
|
(i = e.line.doms) == null || i.forEach((s) => {
|
|
22041
22043
|
s.container.onclick = (o) => this.onClick({ origDomEvent: o, target: e }), s.container.onmouseenter = () => this.onHover({ target: e }), s.container.onmouseleave = () => this.onUnHover({ target: e });
|
|
22042
|
-
}), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (s) => this.onClick({ origDomEvent: s, target: e }), e.polygon.areaDom.container.onmouseenter = () => this.onHover({ target: e }), e.polygon.areaDom.container.onmouseleave = () => this.onUnHover({ target: e })), this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover), mt("delete, backspace", this.deleteSelectedMesh);
|
|
22044
|
+
}), e.polygon.areaDom && (e.polygon.areaDom.container.onclick = (s) => this.onClick({ origDomEvent: s, target: e }), e.polygon.areaDom.container.onmouseenter = () => this.onHover({ target: e }), e.polygon.areaDom.container.onmouseleave = () => this.onUnHover({ target: e })), this.fiveDomEvents.addEventListener(e, "click", this.onClick), this.fiveDomEvents.addEventListener(e, "hover", this.onHover), this.fiveDomEvents.addEventListener(e, "unHover", this.onUnHover), this.five.on("panoArrived", this.onMoveToPano), mt("delete, backspace", this.deleteSelectedMesh);
|
|
22043
22045
|
});
|
|
22044
22046
|
},
|
|
22045
22047
|
removeClickListener: () => {
|
|
@@ -22048,7 +22050,7 @@ class mE extends yt {
|
|
|
22048
22050
|
(i = e.line.doms) == null || i.forEach((o) => {
|
|
22049
22051
|
o != null && o.container && (o.container.onclick = null, o.container.onmouseenter = null, o.container.onmouseleave = null);
|
|
22050
22052
|
}), (s = e.polygon.areaDom) != null && s.container && (e.polygon.areaDom.container.onclick = null, e.polygon.areaDom.container.onmouseenter = null, e.polygon.areaDom.container.onmouseleave = null);
|
|
22051
|
-
}), this.fiveDomEvents.clear(), mt.unbind("delete, backspace");
|
|
22053
|
+
}), this.fiveDomEvents.clear(), this.five.off("panoArrived", this.onMoveToPano), mt.unbind("delete, backspace");
|
|
22052
22054
|
},
|
|
22053
22055
|
// 绘制快捷键
|
|
22054
22056
|
addMeasureListener: () => {
|
|
@@ -22058,6 +22060,26 @@ class mE extends yt {
|
|
|
22058
22060
|
mt.unbind("ctrl+z, command+z"), mt.unbind("esc"), mt.unbind("enter"), this.five.off("mode.change", this.endMeasure), this.five.off("model.changeShownFloor", this.endMeasure);
|
|
22059
22061
|
}
|
|
22060
22062
|
});
|
|
22063
|
+
d(this, "onMoveToPano", (e) => {
|
|
22064
|
+
const i = this.group.children.filter((o) => o !== this.currentMeasureMesh), s = new Ar();
|
|
22065
|
+
i.forEach((o) => {
|
|
22066
|
+
var a;
|
|
22067
|
+
if (o.unselect(), o.__five_pano_index === e) {
|
|
22068
|
+
o.visible = !0;
|
|
22069
|
+
return;
|
|
22070
|
+
}
|
|
22071
|
+
((a = o.line.points) == null ? void 0 : a.some((l) => {
|
|
22072
|
+
var g, m;
|
|
22073
|
+
const c = l.clone().sub(this.five.camera.position).normalize();
|
|
22074
|
+
s.set(this.five.camera.position, c);
|
|
22075
|
+
const h = (m = (g = this.five.model.intersectRaycaster(s, void 0, !0)) == null ? void 0 : g[0]) == null ? void 0 : m.point;
|
|
22076
|
+
if (!h)
|
|
22077
|
+
return !0;
|
|
22078
|
+
const u = 0.01, f = l.distanceTo(this.five.camera.position);
|
|
22079
|
+
return h.distanceTo(this.five.camera.position) + u > f;
|
|
22080
|
+
})) ? o.visible = !0 : o.visible = !1, this.five.needsRender = !0;
|
|
22081
|
+
});
|
|
22082
|
+
});
|
|
22061
22083
|
d(this, "onClick", ({ origDomEvent: e, target: i }) => {
|
|
22062
22084
|
const s = i;
|
|
22063
22085
|
if (!s)
|
|
@@ -22117,7 +22139,7 @@ class mE extends yt {
|
|
|
22117
22139
|
} else
|
|
22118
22140
|
this.pointSelector.adherePlane = [];
|
|
22119
22141
|
});
|
|
22120
|
-
this.five = e, this.config = i != null ? i : { unit: "
|
|
22142
|
+
this.five = e, this.config = i != null ? i : { unit: "m" }, this.group = new ni(), this.group.name = "MeasureGroup", this.five.scene.add(this.group);
|
|
22121
22143
|
}
|
|
22122
22144
|
get pointSelector() {
|
|
22123
22145
|
return this._pointSelector ? this._pointSelector : (this._pointSelector = new nl(this.five, { mode: "cursor", helper: { pointHelper: "highlight" } }), this._pointSelector);
|
|
@@ -24380,7 +24402,7 @@ bl.normal = function(t, e) {
|
|
|
24380
24402
|
bl.direction = function(t, e, i) {
|
|
24381
24403
|
return x2(t, e, i), zv(t, t), t;
|
|
24382
24404
|
};
|
|
24383
|
-
var an = bl, rs = [0, 0],
|
|
24405
|
+
var an = bl, rs = [0, 0], pa = [0, 0], Ff = [0, 0], ir = [0, 0], S2 = function(n, t) {
|
|
24384
24406
|
var e = null, i = [];
|
|
24385
24407
|
t && (n = n.slice(), n.push(n[0]));
|
|
24386
24408
|
for (var s = n.length, o = 1; o < s; o++) {
|
|
@@ -24388,15 +24410,15 @@ var an = bl, rs = [0, 0], fa = [0, 0], Ff = [0, 0], ir = [0, 0], S2 = function(n
|
|
|
24388
24410
|
if (an.direction(rs, a, r), e || (e = [0, 0], an.normal(e, rs)), o === 1 && Xl(i, e, 1), !l)
|
|
24389
24411
|
an.normal(e, rs), Xl(i, e, 1);
|
|
24390
24412
|
else {
|
|
24391
|
-
an.direction(
|
|
24392
|
-
var c = an.computeMiter(Ff, ir, rs,
|
|
24413
|
+
an.direction(pa, l, a);
|
|
24414
|
+
var c = an.computeMiter(Ff, ir, rs, pa, 1);
|
|
24393
24415
|
Xl(i, ir, c);
|
|
24394
24416
|
}
|
|
24395
24417
|
}
|
|
24396
24418
|
if (n.length > 2 && t) {
|
|
24397
24419
|
var h = n[s - 2], u = n[0], f = n[1];
|
|
24398
|
-
an.direction(rs, u, h), an.direction(
|
|
24399
|
-
var p = an.computeMiter(Ff, ir, rs,
|
|
24420
|
+
an.direction(rs, u, h), an.direction(pa, f, u), an.normal(e, rs);
|
|
24421
|
+
var p = an.computeMiter(Ff, ir, rs, pa, 1);
|
|
24400
24422
|
i[0][0] = ir.slice(), i[s - 1][0] = ir.slice(), i[0][1] = p, i[s - 1][1] = p, i.pop();
|
|
24401
24423
|
}
|
|
24402
24424
|
return i;
|
|
@@ -24589,7 +24611,7 @@ function Hf(n) {
|
|
|
24589
24611
|
const t = Fc(n);
|
|
24590
24612
|
return ui(...Array.isArray(t) ? t : [t]);
|
|
24591
24613
|
}
|
|
24592
|
-
function
|
|
24614
|
+
function ma(n, t) {
|
|
24593
24615
|
if (n === void 0)
|
|
24594
24616
|
return;
|
|
24595
24617
|
const { min: e, max: i } = t != null ? t : {};
|
|
@@ -24791,7 +24813,7 @@ const J2 = {
|
|
|
24791
24813
|
}
|
|
24792
24814
|
}, q2 = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1;
|
|
24793
24815
|
navigator.userAgent.toLowerCase().indexOf("android");
|
|
24794
|
-
const
|
|
24816
|
+
const Sa = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, K2 = q2 && Sa;
|
|
24795
24817
|
function $2(n) {
|
|
24796
24818
|
if (n.length !== 4)
|
|
24797
24819
|
return !1;
|
|
@@ -24854,7 +24876,7 @@ class Vv extends y.BufferGeometry {
|
|
|
24854
24876
|
}
|
|
24855
24877
|
}
|
|
24856
24878
|
function eM(n, t) {
|
|
24857
|
-
let e = !
|
|
24879
|
+
let e = !Sa;
|
|
24858
24880
|
const i = t != null ? t : document.createElement("video");
|
|
24859
24881
|
i.preload = "metadata", i.crossOrigin = "anonymous", i.muted = !0, i.loop = !0, i.playsInline = !0, i.autoplay = !0;
|
|
24860
24882
|
const s = new y.VideoTexture(i);
|
|
@@ -24862,9 +24884,9 @@ function eM(n, t) {
|
|
|
24862
24884
|
const o = () => {
|
|
24863
24885
|
s.metadataLoaded || (s.dispatchEvent({ type: "videoLoaded" }), s.metadataLoaded = !0);
|
|
24864
24886
|
};
|
|
24865
|
-
if (
|
|
24887
|
+
if (Sa || (i.onloadedmetadata = () => {
|
|
24866
24888
|
o();
|
|
24867
|
-
}),
|
|
24889
|
+
}), Sa) {
|
|
24868
24890
|
const r = () => {
|
|
24869
24891
|
if (!e) {
|
|
24870
24892
|
if (!i.paused) {
|
|
@@ -24937,7 +24959,7 @@ class tM extends y.ShaderMaterial {
|
|
|
24937
24959
|
};
|
|
24938
24960
|
}
|
|
24939
24961
|
}
|
|
24940
|
-
const
|
|
24962
|
+
const _r = { Z_FIGHTING_OFFSET: 0.01 };
|
|
24941
24963
|
let _v = class extends y.Mesh {
|
|
24942
24964
|
constructor() {
|
|
24943
24965
|
super(...arguments);
|
|
@@ -24968,7 +24990,7 @@ class Hc extends _v {
|
|
|
24968
24990
|
const o = (a = s == null ? void 0 : s.resolveZFighting) != null ? a : !0;
|
|
24969
24991
|
let r = i;
|
|
24970
24992
|
if (o) {
|
|
24971
|
-
const l = qn(i).multiplyScalar(
|
|
24993
|
+
const l = qn(i).multiplyScalar(_r.Z_FIGHTING_OFFSET);
|
|
24972
24994
|
r = i.map((c) => c.clone().add(l));
|
|
24973
24995
|
}
|
|
24974
24996
|
nv(e).then(({ texture: l, transparent: c }) => {
|
|
@@ -25117,7 +25139,7 @@ class Fv extends _v {
|
|
|
25117
25139
|
},
|
|
25118
25140
|
{ noEmitWhenHide: !0 }
|
|
25119
25141
|
);
|
|
25120
|
-
const f = qn(h).multiplyScalar(
|
|
25142
|
+
const f = qn(h).multiplyScalar(_r.Z_FIGHTING_OFFSET);
|
|
25121
25143
|
return u.position.add(f), u;
|
|
25122
25144
|
}))();
|
|
25123
25145
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
@@ -25140,7 +25162,7 @@ class Fv extends _v {
|
|
|
25140
25162
|
return (o = this.videoTextureMap) == null || o.set(e, i), i;
|
|
25141
25163
|
}
|
|
25142
25164
|
}
|
|
25143
|
-
class
|
|
25165
|
+
class Dr {
|
|
25144
25166
|
constructor() {
|
|
25145
25167
|
/**
|
|
25146
25168
|
* @description 射线碰撞检测的距离缓存
|
|
@@ -25165,12 +25187,12 @@ class Sr {
|
|
|
25165
25187
|
].join(",") : void 0;
|
|
25166
25188
|
}
|
|
25167
25189
|
getVisible(t, e, i = 1) {
|
|
25168
|
-
const s =
|
|
25190
|
+
const s = Dr.generateCameraTagKey(e, t, i);
|
|
25169
25191
|
if (s)
|
|
25170
25192
|
return this.cache_visible.get(s);
|
|
25171
25193
|
}
|
|
25172
25194
|
setVisible(t, e, i, s = 1) {
|
|
25173
|
-
const o =
|
|
25195
|
+
const o = Dr.generateCameraTagKey(e, t, s);
|
|
25174
25196
|
o && this.cache_visible.set(o, i);
|
|
25175
25197
|
}
|
|
25176
25198
|
}
|
|
@@ -25178,7 +25200,7 @@ class iM extends Zn {
|
|
|
25178
25200
|
constructor(e) {
|
|
25179
25201
|
super(e);
|
|
25180
25202
|
d(this, "tags", []);
|
|
25181
|
-
d(this, "cache", new
|
|
25203
|
+
d(this, "cache", new Dr());
|
|
25182
25204
|
d(this, "config", J2);
|
|
25183
25205
|
d(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
25184
25206
|
/** 插件参数 */
|
|
@@ -25587,7 +25609,7 @@ class Xh {
|
|
|
25587
25609
|
})(), this.matrix = e.matrix ? (() => {
|
|
25588
25610
|
const f = new y.Matrix4().fromArray(e.matrix);
|
|
25589
25611
|
return f.premultiply(t.workUtil.transform), f.elements;
|
|
25590
|
-
})() : e.matrix, this.initialConfig = o, this.computedConfig = r, this.stickType = i, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new
|
|
25612
|
+
})() : e.matrix, this.initialConfig = o, this.computedConfig = r, this.stickType = i, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new Dr(), this.hooks = new yt(), Object.keys(e).forEach((f) => {
|
|
25591
25613
|
this[f] === void 0 && e[f] !== void 0 && (this[f] = e[f]);
|
|
25592
25614
|
});
|
|
25593
25615
|
}
|
|
@@ -25644,7 +25666,7 @@ class Xh {
|
|
|
25644
25666
|
mode: "Panorama",
|
|
25645
25667
|
workCode: this.workUtil.workCode,
|
|
25646
25668
|
panoIndex: o
|
|
25647
|
-
},
|
|
25669
|
+
}, Br(a))), yield this.five.ready();
|
|
25648
25670
|
} else
|
|
25649
25671
|
i === "Mapview" && (yield Ag(this.five, this.centerPosition, t == null ? void 0 : t.pointConfig));
|
|
25650
25672
|
return this;
|
|
@@ -25786,7 +25808,7 @@ class Xh {
|
|
|
25786
25808
|
getSquaredDistance() {
|
|
25787
25809
|
const t = this.five.camera.position;
|
|
25788
25810
|
let e;
|
|
25789
|
-
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position,
|
|
25811
|
+
return Array.isArray(this.position[0]) ? e = this.position[0] : e = this.position, qr(e[0] - t.x, 2) + qr(e[1] - t.y, 2) + qr(e[2] - t.z, 2);
|
|
25790
25812
|
}
|
|
25791
25813
|
getVisible(t) {
|
|
25792
25814
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
@@ -25886,7 +25908,7 @@ class Xh {
|
|
|
25886
25908
|
}
|
|
25887
25909
|
if (l.visibleDistance !== void 0 && (o.push("visibleDistance"), l.visibleDistance !== "unLimited")) {
|
|
25888
25910
|
const g = this.getDistance(e, 1);
|
|
25889
|
-
if (
|
|
25911
|
+
if (ma(g, l.visibleDistance) === !1)
|
|
25890
25912
|
return {
|
|
25891
25913
|
value: !1,
|
|
25892
25914
|
checkedList: o,
|
|
@@ -26024,7 +26046,7 @@ class Xh {
|
|
|
26024
26046
|
return !1;
|
|
26025
26047
|
if (e.keep === "unfolded")
|
|
26026
26048
|
return !0;
|
|
26027
|
-
if (e.unfoldDistance &&
|
|
26049
|
+
if (e.unfoldDistance && ma(this.getDistance({ panoIndex: t }), e.unfoldDistance) === !1)
|
|
26028
26050
|
return !1;
|
|
26029
26051
|
}
|
|
26030
26052
|
}
|
|
@@ -26044,7 +26066,7 @@ class Xh {
|
|
|
26044
26066
|
return;
|
|
26045
26067
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
26046
26068
|
const i = this.computeTagProject();
|
|
26047
|
-
if (i &&
|
|
26069
|
+
if (i && ma(i.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
26048
26070
|
return !1;
|
|
26049
26071
|
}
|
|
26050
26072
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -26059,7 +26081,7 @@ class Xh {
|
|
|
26059
26081
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
|
|
26060
26082
|
}).map((a) => le(B({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
26061
26083
|
const c = l.autoUnfold.distance;
|
|
26062
|
-
return !(c &&
|
|
26084
|
+
return !(c && ma(a, c) === !1);
|
|
26063
26085
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
26064
26086
|
if (o === -1 || o <= ((e = t.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
26065
26087
|
return !1;
|
|
@@ -26731,7 +26753,7 @@ class Oi extends Ce {
|
|
|
26731
26753
|
function CM() {
|
|
26732
26754
|
return Math.random().toString(36).slice(-6);
|
|
26733
26755
|
}
|
|
26734
|
-
const
|
|
26756
|
+
const ga = CM();
|
|
26735
26757
|
function PM(n) {
|
|
26736
26758
|
Me(n, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
26737
26759
|
}
|
|
@@ -26888,7 +26910,7 @@ function xM(n) {
|
|
|
26888
26910
|
}
|
|
26889
26911
|
function kM(n, t, e) {
|
|
26890
26912
|
let i, { inDelay: s = 0 } = t, { outDelay: o = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
26891
|
-
const c = `__EMOJI_SPLIT_${
|
|
26913
|
+
const c = `__EMOJI_SPLIT_${ga}__`, h = `__EMOJI_${ga}__`, u = `__SPACE_${ga}__`, f = `__NEW_LINE_${ga}__`;
|
|
26892
26914
|
let p, v, g = [];
|
|
26893
26915
|
function m(S) {
|
|
26894
26916
|
const _ = [], F = 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"));
|
|
@@ -28808,7 +28830,7 @@ var d3 = Array.prototype, f3 = Function.prototype, Jv = Object.prototype, $l = K
|
|
|
28808
28830
|
return n ? "Symbol(src)_1." + n : "";
|
|
28809
28831
|
}(), qv = f3.toString, $h = Jv.hasOwnProperty, Kv = Jv.toString, p3 = RegExp(
|
|
28810
28832
|
"^" + qv.call($h).replace(o3, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
28811
|
-
), mp = Kh.Symbol, m3 = d3.splice, g3 = $v(Kh, "Map"),
|
|
28833
|
+
), mp = Kh.Symbol, m3 = d3.splice, g3 = $v(Kh, "Map"), Tr = $v(Object, "create"), gp = mp ? mp.prototype : void 0, vp = gp ? gp.toString : void 0;
|
|
28812
28834
|
function Ms(n) {
|
|
28813
28835
|
var t = -1, e = n ? n.length : 0;
|
|
28814
28836
|
for (this.clear(); ++t < e; ) {
|
|
@@ -28817,14 +28839,14 @@ function Ms(n) {
|
|
|
28817
28839
|
}
|
|
28818
28840
|
}
|
|
28819
28841
|
function v3() {
|
|
28820
|
-
this.__data__ =
|
|
28842
|
+
this.__data__ = Tr ? Tr(null) : {};
|
|
28821
28843
|
}
|
|
28822
28844
|
function A3(n) {
|
|
28823
28845
|
return this.has(n) && delete this.__data__[n];
|
|
28824
28846
|
}
|
|
28825
28847
|
function b3(n) {
|
|
28826
28848
|
var t = this.__data__;
|
|
28827
|
-
if (
|
|
28849
|
+
if (Tr) {
|
|
28828
28850
|
var e = t[n];
|
|
28829
28851
|
return e === Xv ? void 0 : e;
|
|
28830
28852
|
}
|
|
@@ -28832,11 +28854,11 @@ function b3(n) {
|
|
|
28832
28854
|
}
|
|
28833
28855
|
function y3(n) {
|
|
28834
28856
|
var t = this.__data__;
|
|
28835
|
-
return
|
|
28857
|
+
return Tr ? t[n] !== void 0 : $h.call(t, n);
|
|
28836
28858
|
}
|
|
28837
28859
|
function w3(n, t) {
|
|
28838
28860
|
var e = this.__data__;
|
|
28839
|
-
return e[n] =
|
|
28861
|
+
return e[n] = Tr && t === void 0 ? Xv : t, this;
|
|
28840
28862
|
}
|
|
28841
28863
|
Ms.prototype.clear = v3;
|
|
28842
28864
|
Ms.prototype.delete = A3;
|
|
@@ -29021,7 +29043,7 @@ function U3(n, t, e) {
|
|
|
29021
29043
|
var i = n == null ? void 0 : L3(n, t);
|
|
29022
29044
|
return i === void 0 ? e : i;
|
|
29023
29045
|
}
|
|
29024
|
-
var
|
|
29046
|
+
var va = U3, qa = {}, Y3 = {
|
|
29025
29047
|
get exports() {
|
|
29026
29048
|
return qa;
|
|
29027
29049
|
},
|
|
@@ -29215,11 +29237,11 @@ var ga = U3, qa = {}, Y3 = {
|
|
|
29215
29237
|
}
|
|
29216
29238
|
function qt(P, z, J) {
|
|
29217
29239
|
var ie = P[z];
|
|
29218
|
-
(!(ft.call(P, z) &&
|
|
29240
|
+
(!(ft.call(P, z) && Qr(ie, J)) || J === void 0 && !(z in P)) && (P[z] = J);
|
|
29219
29241
|
}
|
|
29220
29242
|
function fi(P, z) {
|
|
29221
29243
|
for (var J = P.length; J--; )
|
|
29222
|
-
if (
|
|
29244
|
+
if (Qr(P[J][0], z))
|
|
29223
29245
|
return J;
|
|
29224
29246
|
return -1;
|
|
29225
29247
|
}
|
|
@@ -29238,7 +29260,7 @@ var ga = U3, qa = {}, Y3 = {
|
|
|
29238
29260
|
return ss(P, Ye);
|
|
29239
29261
|
} else {
|
|
29240
29262
|
var Je = te(P), Rt = Je == h || Je == u;
|
|
29241
|
-
if (
|
|
29263
|
+
if (Wr(P))
|
|
29242
29264
|
return Fi(P, z);
|
|
29243
29265
|
if (Je == v || Je == o || Rt && !Le) {
|
|
29244
29266
|
if (Qe(P))
|
|
@@ -29431,10 +29453,10 @@ var ga = U3, qa = {}, Y3 = {
|
|
|
29431
29453
|
}
|
|
29432
29454
|
return "";
|
|
29433
29455
|
}
|
|
29434
|
-
function
|
|
29456
|
+
function Gr(P) {
|
|
29435
29457
|
return Wt(P, !0, !0);
|
|
29436
29458
|
}
|
|
29437
|
-
function
|
|
29459
|
+
function Qr(P, z) {
|
|
29438
29460
|
return P === z || P !== P && z !== z;
|
|
29439
29461
|
}
|
|
29440
29462
|
function Fs(P) {
|
|
@@ -29442,24 +29464,24 @@ var ga = U3, qa = {}, Y3 = {
|
|
|
29442
29464
|
}
|
|
29443
29465
|
var Xo = Array.isArray;
|
|
29444
29466
|
function Hs(P) {
|
|
29445
|
-
return P != null &&
|
|
29467
|
+
return P != null && Ur(P.length) && !Zo(P);
|
|
29446
29468
|
}
|
|
29447
29469
|
function Il(P) {
|
|
29448
|
-
return
|
|
29470
|
+
return Yr(P) && Hs(P);
|
|
29449
29471
|
}
|
|
29450
|
-
var
|
|
29472
|
+
var Wr = vn || Ml;
|
|
29451
29473
|
function Zo(P) {
|
|
29452
29474
|
var z = Hi(P) ? si.call(P) : "";
|
|
29453
29475
|
return z == h || z == u;
|
|
29454
29476
|
}
|
|
29455
|
-
function
|
|
29477
|
+
function Ur(P) {
|
|
29456
29478
|
return typeof P == "number" && P > -1 && P % 1 == 0 && P <= s;
|
|
29457
29479
|
}
|
|
29458
29480
|
function Hi(P) {
|
|
29459
29481
|
var z = typeof P;
|
|
29460
29482
|
return !!P && (z == "object" || z == "function");
|
|
29461
29483
|
}
|
|
29462
|
-
function
|
|
29484
|
+
function Yr(P) {
|
|
29463
29485
|
return !!P && typeof P == "object";
|
|
29464
29486
|
}
|
|
29465
29487
|
function Jo(P) {
|
|
@@ -29471,7 +29493,7 @@ var ga = U3, qa = {}, Y3 = {
|
|
|
29471
29493
|
function Ml() {
|
|
29472
29494
|
return !1;
|
|
29473
29495
|
}
|
|
29474
|
-
n.exports =
|
|
29496
|
+
n.exports = Gr;
|
|
29475
29497
|
})(Y3, qa);
|
|
29476
29498
|
const X3 = qa;
|
|
29477
29499
|
var Ka = {}, Z3 = {
|
|
@@ -29678,7 +29700,7 @@ var Ka = {}, Z3 = {
|
|
|
29678
29700
|
}
|
|
29679
29701
|
At.prototype.clear = Wt, At.prototype.delete = Rs, At.prototype.get = Vs, At.prototype.has = En, At.prototype.set = Ut;
|
|
29680
29702
|
function Mn(P, z) {
|
|
29681
|
-
var J = Fs(P), ie = !J &&
|
|
29703
|
+
var J = Fs(P), ie = !J && Qr(P), Ve = !J && !ie && Hs(P), Le = !J && !ie && !Ve && Yr(P), Ue = J || ie || Ve || Le, Ye = Ue ? Ze(P.length, String) : [], wt = Ye.length;
|
|
29682
29704
|
for (var Je in P)
|
|
29683
29705
|
(z || Lt.call(P, Je)) && !(Ue && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
29684
29706
|
(Je == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -29689,7 +29711,7 @@ var Ka = {}, Z3 = {
|
|
|
29689
29711
|
}
|
|
29690
29712
|
function Fi(P, z) {
|
|
29691
29713
|
for (var J = P.length; J--; )
|
|
29692
|
-
if (
|
|
29714
|
+
if (Gr(P[J][0], z))
|
|
29693
29715
|
return J;
|
|
29694
29716
|
return -1;
|
|
29695
29717
|
}
|
|
@@ -29716,7 +29738,7 @@ var Ka = {}, Z3 = {
|
|
|
29716
29738
|
Ue = !0, Rt = !1;
|
|
29717
29739
|
}
|
|
29718
29740
|
if (xt && !Rt)
|
|
29719
|
-
return Le || (Le = new At()), Ue ||
|
|
29741
|
+
return Le || (Le = new At()), Ue || Yr(P) ? kn(P, z, J, ie, Ve, Le) : Uo(P, z, wt, J, ie, Ve, Le);
|
|
29720
29742
|
if (!(J & s)) {
|
|
29721
29743
|
var Vt = Rt && Lt.call(P, "__wrapped__"), Ot = Kt && Lt.call(z, "__wrapped__");
|
|
29722
29744
|
if (Vt || Ot) {
|
|
@@ -29727,9 +29749,9 @@ var Ka = {}, Z3 = {
|
|
|
29727
29749
|
return xt ? (Le || (Le = new At()), Yo(P, z, J, ie, Ve, Le)) : !1;
|
|
29728
29750
|
}
|
|
29729
29751
|
function Wo(P) {
|
|
29730
|
-
if (!
|
|
29752
|
+
if (!Ur(P) || bt(P))
|
|
29731
29753
|
return !1;
|
|
29732
|
-
var z =
|
|
29754
|
+
var z = Wr(P) ? _o : de;
|
|
29733
29755
|
return z.test(Xt(P));
|
|
29734
29756
|
}
|
|
29735
29757
|
function _s(P) {
|
|
@@ -29787,7 +29809,7 @@ var Ka = {}, Z3 = {
|
|
|
29787
29809
|
case h:
|
|
29788
29810
|
case u:
|
|
29789
29811
|
case m:
|
|
29790
|
-
return
|
|
29812
|
+
return Gr(+P, +z);
|
|
29791
29813
|
case f:
|
|
29792
29814
|
return P.name == z.name && P.message == z.message;
|
|
29793
29815
|
case T:
|
|
@@ -29837,8 +29859,8 @@ var Ka = {}, Z3 = {
|
|
|
29837
29859
|
Sn || (Sn = xt == "constructor");
|
|
29838
29860
|
}
|
|
29839
29861
|
if (Ot && !Sn) {
|
|
29840
|
-
var
|
|
29841
|
-
|
|
29862
|
+
var Xr = P.constructor, Zr = z.constructor;
|
|
29863
|
+
Xr != Zr && "constructor" in P && "constructor" in z && !(typeof Xr == "function" && Xr instanceof Xr && typeof Zr == "function" && Zr instanceof Zr) && (Ot = !1);
|
|
29842
29864
|
}
|
|
29843
29865
|
return Le.delete(P), Le.delete(z), Ot;
|
|
29844
29866
|
}
|
|
@@ -29915,23 +29937,23 @@ var Ka = {}, Z3 = {
|
|
|
29915
29937
|
}
|
|
29916
29938
|
return "";
|
|
29917
29939
|
}
|
|
29918
|
-
function
|
|
29940
|
+
function Gr(P, z) {
|
|
29919
29941
|
return P === z || P !== P && z !== z;
|
|
29920
29942
|
}
|
|
29921
|
-
var
|
|
29943
|
+
var Qr = xn(function() {
|
|
29922
29944
|
return arguments;
|
|
29923
29945
|
}()) ? xn : function(P) {
|
|
29924
29946
|
return Hi(P) && Lt.call(P, "callee") && !An.call(P, "callee");
|
|
29925
29947
|
}, Fs = Array.isArray;
|
|
29926
29948
|
function Xo(P) {
|
|
29927
|
-
return P != null && Zo(P.length) && !
|
|
29949
|
+
return P != null && Zo(P.length) && !Wr(P);
|
|
29928
29950
|
}
|
|
29929
29951
|
var Hs = yn || Ml;
|
|
29930
29952
|
function Il(P, z) {
|
|
29931
29953
|
return on(P, z);
|
|
29932
29954
|
}
|
|
29933
|
-
function
|
|
29934
|
-
if (!
|
|
29955
|
+
function Wr(P) {
|
|
29956
|
+
if (!Ur(P))
|
|
29935
29957
|
return !1;
|
|
29936
29958
|
var z = Ii(P);
|
|
29937
29959
|
return z == p || z == v || z == c || z == E;
|
|
@@ -29939,14 +29961,14 @@ var Ka = {}, Z3 = {
|
|
|
29939
29961
|
function Zo(P) {
|
|
29940
29962
|
return typeof P == "number" && P > -1 && P % 1 == 0 && P <= r;
|
|
29941
29963
|
}
|
|
29942
|
-
function
|
|
29964
|
+
function Ur(P) {
|
|
29943
29965
|
var z = typeof P;
|
|
29944
29966
|
return P != null && (z == "object" || z == "function");
|
|
29945
29967
|
}
|
|
29946
29968
|
function Hi(P) {
|
|
29947
29969
|
return P != null && typeof P == "object";
|
|
29948
29970
|
}
|
|
29949
|
-
var
|
|
29971
|
+
var Yr = Qe ? ot(Qe) : _s;
|
|
29950
29972
|
function Jo(P) {
|
|
29951
29973
|
return Xo(P) ? Mn(P) : ss(P);
|
|
29952
29974
|
}
|
|
@@ -30001,7 +30023,7 @@ const J3 = Ka, q3 = (n, t) => J3(n, t), K3 = (n) => Object.keys(n || {}), $3 = (
|
|
|
30001
30023
|
};
|
|
30002
30024
|
};
|
|
30003
30025
|
function ik(n, t) {
|
|
30004
|
-
const e =
|
|
30026
|
+
const e = va(n, "data", {}), i = va(n, "watch", {}), s = va(n, "methods", {}), o = va(t, "onChange", () => {
|
|
30005
30027
|
}), { subscribe: r, notify: a, subscribers: l } = ek(), { targetWatcher: c, getTarget: h } = tk();
|
|
30006
30028
|
let u;
|
|
30007
30029
|
const f = {}, p = () => ({
|
|
@@ -32482,7 +32504,7 @@ function Vk(n) {
|
|
|
32482
32504
|
s,
|
|
32483
32505
|
"transition-delay",
|
|
32484
32506
|
/*unfolded*/
|
|
32485
|
-
n[4] ?
|
|
32507
|
+
n[4] ? Aa + "ms" : ba + Wp - Qp - 40 + "ms"
|
|
32486
32508
|
), D(h, "class", "text svelte-sezqcq"), D(c, "class", "title svelte-sezqcq"), D(l, "class", "title-wrapper svelte-sezqcq"), D(r, "class", "content svelte-sezqcq"), Q(r, "max-width", Ui(
|
|
32487
32509
|
/*maxWidth*/
|
|
32488
32510
|
n[9]
|
|
@@ -32490,7 +32512,7 @@ function Vk(n) {
|
|
|
32490
32512
|
r,
|
|
32491
32513
|
"transition-delay",
|
|
32492
32514
|
/*unfolded*/
|
|
32493
|
-
n[4] ?
|
|
32515
|
+
n[4] ? Aa + ba + "ms" : "0ms"
|
|
32494
32516
|
), D(t, "class", g = gt(`marketing ${/*theme*/
|
|
32495
32517
|
n[6]}`) + " svelte-sezqcq"), fe(
|
|
32496
32518
|
t,
|
|
@@ -32517,7 +32539,7 @@ function Vk(n) {
|
|
|
32517
32539
|
s,
|
|
32518
32540
|
"transition-delay",
|
|
32519
32541
|
/*unfolded*/
|
|
32520
|
-
S[4] ?
|
|
32542
|
+
S[4] ? Aa + "ms" : ba + Wp - Qp - 40 + "ms"
|
|
32521
32543
|
), /*data*/
|
|
32522
32544
|
S[3].headerPictureUrl ? b ? b.p(S, _) : (b = Bp(S), b.c(), b.m(r, a)) : b && (b.d(1), b = null), (!m || _ & /*data*/
|
|
32523
32545
|
8) && u !== (u = /*data*/
|
|
@@ -32530,7 +32552,7 @@ function Vk(n) {
|
|
|
32530
32552
|
r,
|
|
32531
32553
|
"transition-delay",
|
|
32532
32554
|
/*unfolded*/
|
|
32533
|
-
S[4] ?
|
|
32555
|
+
S[4] ? Aa + ba + "ms" : "0ms"
|
|
32534
32556
|
), (!m || _ & /*theme*/
|
|
32535
32557
|
64 && g !== (g = gt(`marketing ${/*theme*/
|
|
32536
32558
|
S[6]}`) + " svelte-sezqcq")) && D(t, "class", g), (!m || _ & /*theme, unfolded*/
|
|
@@ -32558,7 +32580,7 @@ function Vk(n) {
|
|
|
32558
32580
|
}
|
|
32559
32581
|
};
|
|
32560
32582
|
}
|
|
32561
|
-
const iu = 40,
|
|
32583
|
+
const iu = 40, Aa = 400, Qp = 500, ba = 180, Wp = 500;
|
|
32562
32584
|
function _k(n, t, e) {
|
|
32563
32585
|
let i, s, o, r, a, l, c, h, { tag: u } = t, f, p = (() => {
|
|
32564
32586
|
var m;
|
|
@@ -35417,7 +35439,7 @@ class l0 extends Xh {
|
|
|
35417
35439
|
const h = "black";
|
|
35418
35440
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
35419
35441
|
const u = B({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), f = this.computeRenderType() === "BehindDom" || u.mode === "behind" ? "behind" : "front", p = new Nv(le(B({}, u), { mode: f })), v = this.computeNormal();
|
|
35420
|
-
p.position.add(v.clone().setLength(
|
|
35442
|
+
p.position.add(v.clone().setLength(_r.Z_FIGHTING_OFFSET)), s.add(p);
|
|
35421
35443
|
let g;
|
|
35422
35444
|
p.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, p, (b) => {
|
|
35423
35445
|
this.plugin.hooks.emit("click", { event: b, target: "TagContent", tag: this });
|
|
@@ -35449,7 +35471,7 @@ class l0 extends Xh {
|
|
|
35449
35471
|
}
|
|
35450
35472
|
return this.plugin.gltfObjectGroup.add(s), s;
|
|
35451
35473
|
}));
|
|
35452
|
-
this.state.unfolded = !0,
|
|
35474
|
+
this.state.unfolded = !0, zr(this.five), this.loadModel().then(() => this.updateVisible());
|
|
35453
35475
|
}
|
|
35454
35476
|
applyVisible() {
|
|
35455
35477
|
var e, i;
|
|
@@ -35492,13 +35514,13 @@ class tD extends Xh {
|
|
|
35492
35514
|
if (yield ci(this.five), this.computeRenderType() === "Mesh")
|
|
35493
35515
|
((i = (e = this.data.mediaData) == null ? void 0 : e[0]) == null ? void 0 : i.type) === "Video" ? this.renderVideoPlane() : ((o = (s = this.data.mediaData) == null ? void 0 : s[0]) == null ? void 0 : o.type) === "Image" && this.renderImagePlane();
|
|
35494
35516
|
else {
|
|
35495
|
-
|
|
35517
|
+
zr(this.five);
|
|
35496
35518
|
const l = this.position.map(_e);
|
|
35497
35519
|
(a = (r = this.tag3DContentSvelte) == null ? void 0 : r.dispose) == null || a.call(r);
|
|
35498
35520
|
const c = document.createElement("div");
|
|
35499
35521
|
c.classList.add("tag-media-container");
|
|
35500
35522
|
const h = B({ mode: "front", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || h.mode === "behind" ? "behind" : "front", f = new Nv(le(B({}, h), { mode: u })), p = this.computeNormal();
|
|
35501
|
-
f.position.add(p.clone().setLength(
|
|
35523
|
+
f.position.add(p.clone().setLength(_r.Z_FIGHTING_OFFSET)), this.plugin.group.add(f);
|
|
35502
35524
|
let v;
|
|
35503
35525
|
f.mode === "behind" && this.config.clickable !== !1 && (v = this.addObjectClickHandler(this, f, (m) => {
|
|
35504
35526
|
this.plugin.hooks.emit("click", { event: m, target: "TagContent", tag: this });
|
|
@@ -36380,7 +36402,7 @@ class Gc extends nM {
|
|
|
36380
36402
|
i.position.copy(s.position), i.quaternion.copy(s.quaternion);
|
|
36381
36403
|
const o = this.five.camera.position;
|
|
36382
36404
|
i.lookAt(o.clone().setY(i.position.y));
|
|
36383
|
-
const r = s.quaternion.clone(), a = i.quaternion.clone(), l =
|
|
36405
|
+
const r = s.quaternion.clone(), a = i.quaternion.clone(), l = wr();
|
|
36384
36406
|
l.onUpdate(({ progress: h }) => {
|
|
36385
36407
|
s.quaternion.copy(r.clone().slerp(a, h));
|
|
36386
36408
|
}), l.play();
|
|
@@ -36424,7 +36446,7 @@ class Gc extends nM {
|
|
|
36424
36446
|
this.TagContainerSvelte = new vD({
|
|
36425
36447
|
target: this.container,
|
|
36426
36448
|
props: le(B({}, a), { state: le(B({}, this.state), { enabled: !1 }) })
|
|
36427
|
-
}),
|
|
36449
|
+
}), Rr(() => {
|
|
36428
36450
|
var l;
|
|
36429
36451
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
36430
36452
|
});
|
|
@@ -37581,7 +37603,7 @@ class u0 extends Zn {
|
|
|
37581
37603
|
}
|
|
37582
37604
|
function ic(n, t, e) {
|
|
37583
37605
|
var l, c, h;
|
|
37584
|
-
const i = new y.Vector3().fromArray([(l = e.x) != null ? l : 0, (c = e.y) != null ? c : 0, (h = e.z) != null ? h : 0]), s = n.getPointAt(t).clone().add(i), o = n.getTangentAt(t), { longitude: r, latitude: a } =
|
|
37606
|
+
const i = new y.Vector3().fromArray([(l = e.x) != null ? l : 0, (c = e.y) != null ? c : 0, (h = e.z) != null ? h : 0]), s = n.getPointAt(t).clone().add(i), o = n.getTangentAt(t), { longitude: r, latitude: a } = Br(o);
|
|
37585
37607
|
return { offset: s.clone(), longitude: r, latitude: a, distance: 0 };
|
|
37586
37608
|
}
|
|
37587
37609
|
let d0 = class extends u0 {
|
|
@@ -37836,7 +37858,7 @@ class su extends u0 {
|
|
|
37836
37858
|
if (!p || !f || ((g = this.workUtil.getObserver(l)) == null ? void 0 : g.floorIndex) !== ((m = this.workUtil.getObserver(u)) == null ? void 0 : m.floorIndex))
|
|
37837
37859
|
return;
|
|
37838
37860
|
const v = new y.Vector3().subVectors(p, f);
|
|
37839
|
-
return
|
|
37861
|
+
return Br(v.normalize());
|
|
37840
37862
|
})();
|
|
37841
37863
|
i.moveType === void 0 || i.moveType === "justMove" ? s.push({
|
|
37842
37864
|
moveIndex: c,
|
|
@@ -38371,7 +38393,7 @@ function ou(n, t, e) {
|
|
|
38371
38393
|
}
|
|
38372
38394
|
n.quaternion.copy(t);
|
|
38373
38395
|
}
|
|
38374
|
-
class
|
|
38396
|
+
class Fr extends ni {
|
|
38375
38397
|
constructor(e, i) {
|
|
38376
38398
|
var s, o;
|
|
38377
38399
|
super();
|
|
@@ -38448,15 +38470,15 @@ class _r extends ni {
|
|
|
38448
38470
|
this.removeFromParent();
|
|
38449
38471
|
}
|
|
38450
38472
|
}
|
|
38451
|
-
class zD extends
|
|
38473
|
+
class zD extends Fr {
|
|
38452
38474
|
}
|
|
38453
|
-
class jD extends
|
|
38475
|
+
class jD extends Fr {
|
|
38454
38476
|
}
|
|
38455
|
-
class BD extends
|
|
38477
|
+
class BD extends Fr {
|
|
38456
38478
|
}
|
|
38457
|
-
class RD extends
|
|
38479
|
+
class RD extends Fr {
|
|
38458
38480
|
}
|
|
38459
|
-
class VD extends
|
|
38481
|
+
class VD extends Fr {
|
|
38460
38482
|
}
|
|
38461
38483
|
class _D extends y.Group {
|
|
38462
38484
|
constructor(e) {
|
|
@@ -38812,7 +38834,7 @@ class KD extends VD {
|
|
|
38812
38834
|
d(this, "cornerPositions", []);
|
|
38813
38835
|
d(this, "css3DInstance");
|
|
38814
38836
|
d(this, "plane");
|
|
38815
|
-
d(this, "css3DRenderer", new
|
|
38837
|
+
d(this, "css3DRenderer", new Cr());
|
|
38816
38838
|
d(this, "camera");
|
|
38817
38839
|
d(this, "scene");
|
|
38818
38840
|
d(this, "container");
|
|
@@ -39003,10 +39025,10 @@ class $D extends jD {
|
|
|
39003
39025
|
return new y.Mesh(i, s);
|
|
39004
39026
|
}
|
|
39005
39027
|
}
|
|
39006
|
-
const
|
|
39028
|
+
const ya = /* @__PURE__ */ new Map();
|
|
39007
39029
|
function e5(n) {
|
|
39008
|
-
if (
|
|
39009
|
-
return
|
|
39030
|
+
if (ya.has(n))
|
|
39031
|
+
return ya.get(n).hooks;
|
|
39010
39032
|
const t = new yt();
|
|
39011
39033
|
let e = null, i;
|
|
39012
39034
|
const s = () => {
|
|
@@ -39016,14 +39038,14 @@ function e5(n) {
|
|
|
39016
39038
|
};
|
|
39017
39039
|
s();
|
|
39018
39040
|
const o = () => {
|
|
39019
|
-
|
|
39041
|
+
ya.delete(n), cancelAnimationFrame(e);
|
|
39020
39042
|
};
|
|
39021
|
-
return
|
|
39043
|
+
return ya.set(n, {
|
|
39022
39044
|
hooks: t,
|
|
39023
39045
|
dispose: o
|
|
39024
39046
|
}), t;
|
|
39025
39047
|
}
|
|
39026
|
-
class
|
|
39048
|
+
class Hr {
|
|
39027
39049
|
constructor(t, e) {
|
|
39028
39050
|
d(this, "originObject3D");
|
|
39029
39051
|
d(this, "hooks");
|
|
@@ -39221,7 +39243,7 @@ class Fr {
|
|
|
39221
39243
|
return i;
|
|
39222
39244
|
}
|
|
39223
39245
|
}
|
|
39224
|
-
class t5 extends
|
|
39246
|
+
class t5 extends Hr {
|
|
39225
39247
|
constructor(...e) {
|
|
39226
39248
|
super(...e);
|
|
39227
39249
|
d(this, "name", "MoveController");
|
|
@@ -39503,7 +39525,7 @@ function ac(n) {
|
|
|
39503
39525
|
return n * Math.PI / 180;
|
|
39504
39526
|
}
|
|
39505
39527
|
let lc = new y.Quaternion();
|
|
39506
|
-
class l5 extends
|
|
39528
|
+
class l5 extends Hr {
|
|
39507
39529
|
constructor(...e) {
|
|
39508
39530
|
var c, h, u;
|
|
39509
39531
|
super(...e);
|
|
@@ -39639,7 +39661,7 @@ class l5 extends Fr {
|
|
|
39639
39661
|
i.setLeftTop(l, c);
|
|
39640
39662
|
}
|
|
39641
39663
|
}
|
|
39642
|
-
class c5 extends
|
|
39664
|
+
class c5 extends Hr {
|
|
39643
39665
|
constructor(...e) {
|
|
39644
39666
|
super(...e);
|
|
39645
39667
|
d(this, "startInfo");
|
|
@@ -39692,7 +39714,7 @@ class c5 extends Fr {
|
|
|
39692
39714
|
if (r.length < 4)
|
|
39693
39715
|
return this.dragEnd();
|
|
39694
39716
|
const a = e.ray.intersectPlane(o, new he());
|
|
39695
|
-
if (!a ||
|
|
39717
|
+
if (!a || ka(a, this.camera.position))
|
|
39696
39718
|
return;
|
|
39697
39719
|
const l = new he().addVectors(r[0], r[2]).divideScalar(2), { position: c, direction: h } = s, u = new he().subVectors(r[1], r[0]), f = new he().subVectors(r[3], r[0]), p = (I) => {
|
|
39698
39720
|
const w = new he(0, 0, 0);
|
|
@@ -39759,7 +39781,7 @@ class h5 extends c5 {
|
|
|
39759
39781
|
});
|
|
39760
39782
|
}
|
|
39761
39783
|
}
|
|
39762
|
-
class u5 extends
|
|
39784
|
+
class u5 extends Hr {
|
|
39763
39785
|
constructor(...e) {
|
|
39764
39786
|
super(...e);
|
|
39765
39787
|
d(this, "name", "BoundingBoxController");
|
|
@@ -39810,7 +39832,7 @@ function f5() {
|
|
|
39810
39832
|
}), o = new y.Mesh(e, i), r = new y.Mesh(e, s);
|
|
39811
39833
|
return o.name = "ScaleHelperCube-front", r.name = "ScaleHelperCube-behind", o.renderOrder = 11, r.renderOrder = 10, n.add(o, r), n;
|
|
39812
39834
|
}
|
|
39813
|
-
class p5 extends
|
|
39835
|
+
class p5 extends Hr {
|
|
39814
39836
|
constructor(...e) {
|
|
39815
39837
|
super(...e);
|
|
39816
39838
|
d(this, "name", "ScaleController");
|
|
@@ -40075,7 +40097,7 @@ class g0 extends Zn {
|
|
|
40075
40097
|
d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
40076
40098
|
d(this, "css3DObjectModeMap", /* @__PURE__ */ new Map());
|
|
40077
40099
|
d(this, "css3DRender");
|
|
40078
|
-
this.five = e, this.css3DRender = new
|
|
40100
|
+
this.five = e, this.css3DRender = new Cr(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${Uc.toUpperCase()}_DEBUG__`]: this });
|
|
40079
40101
|
}
|
|
40080
40102
|
/**
|
|
40081
40103
|
* @description Show guide line
|
|
@@ -42094,7 +42116,7 @@ class U5 extends Zn {
|
|
|
42094
42116
|
this.mesh.visible = !1;
|
|
42095
42117
|
return;
|
|
42096
42118
|
}
|
|
42097
|
-
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween =
|
|
42119
|
+
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween = wr(1e3).onUpdate(({ progress: s }) => {
|
|
42098
42120
|
var o;
|
|
42099
42121
|
(o = this.mesh) == null || o.material.setValues({ opacity: s }), this.five.needsRender = !0;
|
|
42100
42122
|
}).play();
|
|
@@ -42418,7 +42440,7 @@ class zi extends ni {
|
|
|
42418
42440
|
d(this, "off", (...e) => lt.modules.fiveDomEvents.removeEventListener(this, ...e));
|
|
42419
42441
|
d(this, "applyObjectMatrixWorld", (e, i) => {
|
|
42420
42442
|
const s = i != null ? i : this;
|
|
42421
|
-
return s.updateMatrixWorld(),
|
|
42443
|
+
return s.updateMatrixWorld(), yr(s, e);
|
|
42422
42444
|
});
|
|
42423
42445
|
d(this, "applyObjectReversalMatrixWorld", (e, i) => {
|
|
42424
42446
|
const s = i != null ? i : this;
|
|
@@ -42547,7 +42569,7 @@ class Pl extends ni {
|
|
|
42547
42569
|
this.originObject.remove(this);
|
|
42548
42570
|
}
|
|
42549
42571
|
}
|
|
42550
|
-
class
|
|
42572
|
+
class Nr extends Pl {
|
|
42551
42573
|
constructor(e, i) {
|
|
42552
42574
|
super(e);
|
|
42553
42575
|
d(this, "objectHelperConfig");
|
|
@@ -42610,7 +42632,7 @@ class Z5 extends cu {
|
|
|
42610
42632
|
d(this, "onDrag", (e) => {
|
|
42611
42633
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
42612
42634
|
return;
|
|
42613
|
-
const i =
|
|
42635
|
+
const i = jr(lt.modules.five, e.raycaster);
|
|
42614
42636
|
this.draggingPoints.forEach((s) => s.position.copy(i.point)), this.originObject.lineMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
42615
42637
|
});
|
|
42616
42638
|
}
|
|
@@ -42624,7 +42646,7 @@ class J5 extends cu {
|
|
|
42624
42646
|
d(this, "onDrag", (e) => {
|
|
42625
42647
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
42626
42648
|
return;
|
|
42627
|
-
const i =
|
|
42649
|
+
const i = jr(lt.modules.five, e.raycaster);
|
|
42628
42650
|
this.draggingPoints.forEach((s) => s.position.copy(i.point)), this.originObject.polyLineMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
42629
42651
|
});
|
|
42630
42652
|
}
|
|
@@ -42737,7 +42759,7 @@ class K5 extends Pl {
|
|
|
42737
42759
|
super(e);
|
|
42738
42760
|
d(this, "onDrag", (e) => {
|
|
42739
42761
|
var s;
|
|
42740
|
-
const i =
|
|
42762
|
+
const i = jr(lt.modules.five, e.raycaster);
|
|
42741
42763
|
(s = this.originObject.pointMesh) == null || s.position.copy(i.point);
|
|
42742
42764
|
});
|
|
42743
42765
|
}
|
|
@@ -42861,7 +42883,7 @@ class $5 extends cu {
|
|
|
42861
42883
|
d(this, "onDrag", (e) => {
|
|
42862
42884
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
42863
42885
|
return;
|
|
42864
|
-
const i =
|
|
42886
|
+
const i = jr(lt.modules.five, e.raycaster), s = this.originObject.areaMesh.projectPoint(i.point);
|
|
42865
42887
|
this.draggingPoints.forEach((o) => o.position.copy(s)), this.originObject.areaMesh.setPoints(this.pointMeshes.map((o) => o.position));
|
|
42866
42888
|
});
|
|
42867
42889
|
}
|
|
@@ -43122,7 +43144,7 @@ class xo extends ni {
|
|
|
43122
43144
|
this.prismMesh.geometry.setPosition({
|
|
43123
43145
|
bottomPositions: (i = e.points) == null ? void 0 : i.map(_e).map((s) => s.toArray()),
|
|
43124
43146
|
topPosition: e.heightPoint ? _e(e.heightPoint).toArray() : void 0
|
|
43125
|
-
}), this.edgeMesh.geometry = new
|
|
43147
|
+
}), this.edgeMesh.geometry = new Pa().fromEdgesGeometry(new y.EdgesGeometry(this.prismMesh.geometry)), this.geometryInfoNeedUpdate = !0;
|
|
43126
43148
|
}
|
|
43127
43149
|
highlight() {
|
|
43128
43150
|
this.prismMesh.highlight();
|
|
@@ -43134,7 +43156,7 @@ class xo extends ni {
|
|
|
43134
43156
|
return this.children.forEach((s) => $c(s, e, i, !0)), !1;
|
|
43135
43157
|
}
|
|
43136
43158
|
}
|
|
43137
|
-
class I0 extends
|
|
43159
|
+
class I0 extends Nr {
|
|
43138
43160
|
constructor(t) {
|
|
43139
43161
|
super(t, () => ({
|
|
43140
43162
|
positionFrom: () => t.worldCenter,
|
|
@@ -43241,7 +43263,7 @@ function E0(n, t) {
|
|
|
43241
43263
|
});
|
|
43242
43264
|
});
|
|
43243
43265
|
}
|
|
43244
|
-
class M0 extends
|
|
43266
|
+
class M0 extends Nr {
|
|
43245
43267
|
constructor(t) {
|
|
43246
43268
|
super(t, () => ({
|
|
43247
43269
|
yAxis: () => {
|
|
@@ -43535,7 +43557,7 @@ function rT(n, t, e) {
|
|
|
43535
43557
|
};
|
|
43536
43558
|
return t.on("select", g), t.on("intersectionUpdate", m), t.on("disable", C), i;
|
|
43537
43559
|
}
|
|
43538
|
-
class k0 extends
|
|
43560
|
+
class k0 extends Nr {
|
|
43539
43561
|
constructor(t) {
|
|
43540
43562
|
super(t, () => ({ yAxis: () => t.normal }));
|
|
43541
43563
|
}
|
|
@@ -43573,7 +43595,7 @@ class D0 extends Al {
|
|
|
43573
43595
|
this._center && this.position.copy(this._center), this._normal && (this.lookAt(this._normal.clone().add(this._center)), this.normal = this._normal.clone()), this.needsRender = !0;
|
|
43574
43596
|
}
|
|
43575
43597
|
}
|
|
43576
|
-
class
|
|
43598
|
+
class Lr extends D0 {
|
|
43577
43599
|
constructor(e) {
|
|
43578
43600
|
const a = e != null ? e : {}, { normal: i, radius: s, center: o } = a, r = Dn(a, ["normal", "radius", "center"]);
|
|
43579
43601
|
super(r);
|
|
@@ -43601,7 +43623,7 @@ class Em extends zi {
|
|
|
43601
43623
|
d(this, "type", "Circle");
|
|
43602
43624
|
d(this, "circleMesh");
|
|
43603
43625
|
d(this, "_editor");
|
|
43604
|
-
e && (this.circleMesh = new
|
|
43626
|
+
e && (this.circleMesh = new Lr(B(B({}, e.style), e)), this.add(this.circleMesh));
|
|
43605
43627
|
}
|
|
43606
43628
|
get editor() {
|
|
43607
43629
|
return this._editor || (this._editor = new k0(this.circleMesh)), this._editor;
|
|
@@ -43636,7 +43658,7 @@ class Em extends zi {
|
|
|
43636
43658
|
this.children.forEach((s) => {
|
|
43637
43659
|
s.parent === this && this.remove(s);
|
|
43638
43660
|
}), this.children.length = 0;
|
|
43639
|
-
const i = new
|
|
43661
|
+
const i = new Lr(e);
|
|
43640
43662
|
this.circleMesh = i, this.add(this.circleMesh), yield fu(this.circleMesh, this.pointSelector), this.config.defaultAction && this.editor.enable();
|
|
43641
43663
|
});
|
|
43642
43664
|
}
|
|
@@ -43689,7 +43711,7 @@ class Zc extends ni {
|
|
|
43689
43711
|
d(this, "_topCenter");
|
|
43690
43712
|
d(this, "_bottomCenter");
|
|
43691
43713
|
d(this, "_radius");
|
|
43692
|
-
this.params = e, this.bottomCircle = new
|
|
43714
|
+
this.params = e, this.bottomCircle = new Lr(e), this.bottomCircle.name = "bottomCircle", this.topCircle = new Lr(e), this.topCircle.name = "topCircle", this.edgeMesh = new Al(e), e != null && e.bottomCenter && (e != null && e.topCenter) && (e != null && e.radius) && this.setPoints(e), this.addIfNotExists(this.bottomCircle);
|
|
43693
43715
|
}
|
|
43694
43716
|
get bottomCenter() {
|
|
43695
43717
|
return this.bottomCircle.center;
|
|
@@ -43744,7 +43766,7 @@ class Zc extends ni {
|
|
|
43744
43766
|
this.edgeMesh.position.copy(new y.Vector3().lerpVectors(i, e, 0.5)), this.edgeMesh.quaternion.copy(s);
|
|
43745
43767
|
}
|
|
43746
43768
|
}
|
|
43747
|
-
class T0 extends
|
|
43769
|
+
class T0 extends Nr {
|
|
43748
43770
|
constructor(t) {
|
|
43749
43771
|
super(t, () => {
|
|
43750
43772
|
const e = () => {
|
|
@@ -43848,7 +43870,7 @@ function L0(n, t) {
|
|
|
43848
43870
|
});
|
|
43849
43871
|
});
|
|
43850
43872
|
}
|
|
43851
|
-
class O0 extends
|
|
43873
|
+
class O0 extends Nr {
|
|
43852
43874
|
constructor(t) {
|
|
43853
43875
|
super(t, () => ({
|
|
43854
43876
|
positionFrom: () => t.worldCenter,
|
|
@@ -44339,11 +44361,11 @@ function lT(n, ...t) {
|
|
|
44339
44361
|
n.children.includes(e) || e && n.add(e);
|
|
44340
44362
|
});
|
|
44341
44363
|
}
|
|
44342
|
-
let
|
|
44343
|
-
const B0 = (n) => ((!
|
|
44364
|
+
let wa;
|
|
44365
|
+
const B0 = (n) => ((!wa || n !== wa.five) && (wa = {
|
|
44344
44366
|
instance: new po(n, { noEmitWhenHide: !0, noEmitWhenNotInScene: !0 }),
|
|
44345
44367
|
five: n
|
|
44346
|
-
}),
|
|
44368
|
+
}), wa.instance);
|
|
44347
44369
|
class R0 extends yt {
|
|
44348
44370
|
constructor(e) {
|
|
44349
44371
|
var s, o;
|
|
@@ -44640,7 +44662,7 @@ class gT extends gn {
|
|
|
44640
44662
|
this.items.push(l);
|
|
44641
44663
|
} else if (o.type === "prism") {
|
|
44642
44664
|
const a = new xo();
|
|
44643
|
-
Be(o.id) && (a.uuid = o.id.toString()), this.zFightingOffset +=
|
|
44665
|
+
Be(o.id) && (a.uuid = o.id.toString()), this.zFightingOffset += _r.Z_FIGHTING_OFFSET;
|
|
44644
44666
|
const l = o.object_data.points.map((f) => {
|
|
44645
44667
|
var p;
|
|
44646
44668
|
return [f[0], f[1] + ((p = o.object_data.fixedY) != null ? p : 0), f[2]];
|
|
@@ -44725,7 +44747,7 @@ const NL = (...n) => new gT(...n), vT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
44725
44747
|
BoxMeshEditor: O0,
|
|
44726
44748
|
CircleMesh: D0,
|
|
44727
44749
|
CircleMeshEditor: k0,
|
|
44728
|
-
CircleWithEdgeMesh:
|
|
44750
|
+
CircleWithEdgeMesh: Lr,
|
|
44729
44751
|
CylinderMesh: Zc,
|
|
44730
44752
|
CylinderMeshEditor: T0,
|
|
44731
44753
|
LineMesh: Di,
|
|
@@ -44750,7 +44772,7 @@ const NL = (...n) => new gT(...n), vT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
44750
44772
|
FiveDomEvents: po,
|
|
44751
44773
|
FivePuppet: My,
|
|
44752
44774
|
Interval: mc,
|
|
44753
|
-
LightTag:
|
|
44775
|
+
LightTag: Or,
|
|
44754
44776
|
LineSegments: qm,
|
|
44755
44777
|
Magnifier: th,
|
|
44756
44778
|
Object3D: Jm,
|
|
@@ -44774,7 +44796,7 @@ const NL = (...n) => new gT(...n), vT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
44774
44796
|
getCoordsFromClient: $A,
|
|
44775
44797
|
getCoordsFromElement: eb,
|
|
44776
44798
|
getFrameTime: by,
|
|
44777
|
-
initialCSS3DRender:
|
|
44799
|
+
initialCSS3DRender: zr,
|
|
44778
44800
|
inside: xu,
|
|
44779
44801
|
isAbsoluteURL: yg,
|
|
44780
44802
|
isModelLike: gi,
|
|
@@ -44782,14 +44804,14 @@ const NL = (...n) => new gT(...n), vT = /* @__PURE__ */ Object.freeze(/* @__PURE
|
|
|
44782
44804
|
isPanoramaLike: ds,
|
|
44783
44805
|
lookObject: my,
|
|
44784
44806
|
lookPoint: Ag,
|
|
44785
|
-
nextFrame:
|
|
44807
|
+
nextFrame: Rr,
|
|
44786
44808
|
notNil: Be,
|
|
44787
44809
|
pointInPolygon: xu,
|
|
44788
44810
|
reblink: vg,
|
|
44789
44811
|
requestAnimationFrameInterval: Do,
|
|
44790
44812
|
sculpt: vT,
|
|
44791
44813
|
tag: _m,
|
|
44792
|
-
tweenProgress:
|
|
44814
|
+
tweenProgress: wr,
|
|
44793
44815
|
uuid: kt,
|
|
44794
44816
|
waitFiveModelLoaded: ci,
|
|
44795
44817
|
worldBounding: sl,
|
|
@@ -44800,7 +44822,7 @@ xA();
|
|
|
44800
44822
|
MA();
|
|
44801
44823
|
export {
|
|
44802
44824
|
_L as AreaMakerPlugin,
|
|
44803
|
-
|
|
44825
|
+
Cr as CSS3DRender,
|
|
44804
44826
|
bh as CSS3DRenderPlugin,
|
|
44805
44827
|
WC as CameraMovementEffect,
|
|
44806
44828
|
qT as CameraMovementPlugin,
|