@realsee/dnalogel 2.16.0-10 → 2.16.0-12
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/components/index.js +688 -240
- package/dist/CruisePlugin/typing.d.ts +1 -1
- package/dist/GuideLinePlugin/Controller.d.ts +5 -4
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +7 -1
- package/dist/GuideLinePlugin/typing.d.ts +8 -9
- package/dist/GuideLinePlugin/utils/index.d.ts +1 -1
- package/dist/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -2
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/typings/event.type.d.ts +2 -2
- package/dist/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +3 -3
- package/dist/PanoTagPlugin/utils/tagPosition.d.ts +1 -1
- package/dist/PanoVideoPlugin/utils/index.d.ts +1 -1
- package/dist/index.cjs.js +100 -86
- package/dist/index.js +14859 -8028
- package/dist/index.umd.js +93 -79
- package/dist/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/dist/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/dist/shared-utils/animationFrame/index.d.ts +1 -1
- package/dist/shared-utils/animationFrame/tween.d.ts +32 -23
- package/dist/shared-utils/five/mode.d.ts +1 -1
- package/dist/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/dist/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +26 -26
- package/docs/classes/GuideLineItem.GuideLineItem.html +16 -16
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +38 -26
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +25 -25
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +47 -47
- package/docs/classes/Util.BetterTween.html +29 -18
- package/docs/classes/Util.FivePointSelector.html +12 -12
- package/docs/classes/Util.Interval.html +12 -12
- package/docs/classes/Util.Magnifier.html +17 -17
- package/docs/classes/Util.PointDomHelper.html +11 -11
- package/docs/classes/Util.PointHelper.html +11 -11
- package/docs/classes/Util.Rectangle.html +13 -13
- package/docs/enums/CameraMovementEffect.html +7 -7
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +4 -4
- package/docs/functions/CameraMovementPlugin.html +4 -4
- package/docs/functions/CruisePlugin.html +4 -4
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +4 -4
- package/docs/functions/MapviewFloorplanPlugin.html +4 -4
- package/docs/functions/ModelChassisCompassPlugin.html +4 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
- package/docs/functions/ModelFloorplanPlugin.html +4 -4
- package/docs/functions/ModelItemLabelPlugin.html +4 -4
- package/docs/functions/ModelRoomLabelPlugin.html +4 -4
- package/docs/functions/ModelTVVideoPlugin.html +4 -4
- package/docs/functions/ModelViewPlugin.html +4 -4
- package/docs/functions/Object3DHelperPlugin.html +4 -4
- package/docs/functions/PanoCompassPlugin.html +4 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
- package/docs/functions/PanoDoorLabelPlugin.html +4 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
- package/docs/functions/PanoMeasurePlugin.html +4 -4
- package/docs/functions/PanoRulerPlugin.html +4 -4
- package/docs/functions/PanoRulerProPlugin.html +4 -4
- package/docs/functions/PanoSpatialTagPlugin.html +4 -4
- package/docs/functions/PanoTagPlugin.html +4 -4
- package/docs/functions/PanoVideoPlugin.html +4 -4
- package/docs/functions/TopviewFloorplanPlugin.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -5
- package/docs/functions/Util.getCoordsFromElement.html +5 -5
- package/docs/functions/Util.getFrameTime.html +5 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
- package/docs/functions/Util.isAbsoluteURL.html +5 -5
- package/docs/functions/Util.isModelLike.html +5 -5
- package/docs/functions/Util.isNil.html +5 -5
- package/docs/functions/Util.isPanoramaLike.html +5 -5
- package/docs/functions/Util.nextFrame.html +18 -7
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +7 -18
- package/docs/functions/Util.uuid.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +8 -8
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +12 -12
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +12 -12
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +14 -14
- package/docs/interfaces/CruisePluginTypes.PluginData.html +9 -9
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +7 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +11 -11
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +10 -10
- package/docs/interfaces/GuideLinePluginType.EventMap.html +13 -13
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +8 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +6 -6
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +11 -11
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +8 -8
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTag.html +19 -19
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +16 -16
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +26 -26
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +7 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +8 -15
- package/docs/interfaces/GuideLinePluginType.Route.html +17 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +9 -9
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ImagePlaneGroup.html +6 -6
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCacheInterface.html +12 -12
- package/docs/interfaces/TagConfig.html +11 -11
- package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
- package/docs/interfaces/TagIconUrl.html +12 -12
- package/docs/interfaces/TagObjectGroup.html +6 -6
- package/docs/interfaces/TagStyle.html +6 -6
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/CruisePluginTypes.html +5 -5
- package/docs/modules/GuideLineItem.html +5 -5
- package/docs/modules/GuideLineModeItem.html +5 -5
- package/docs/modules/GuideLinePluginType.html +5 -7
- package/docs/modules/PanoVideoPluginType.html +5 -5
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -5
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -5
- package/docs/types/Direction-1.html +5 -5
- package/docs/types/Direction4.html +5 -5
- package/docs/types/FloorplanRuleLabels.html +5 -5
- package/docs/types/FloorplanServerRuleLabels.html +5 -5
- package/docs/types/GuideLinePluginExportType.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -6
- package/docs/types/GuideLinePluginType.PathItem.html +5 -6
- package/docs/types/GuideLinePluginType.PluginData.html +17 -7
- package/docs/types/HelperEventMap.html +5 -5
- package/docs/types/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PanoVideoPluginParameterType.html +5 -5
- package/docs/types/PanoVideoPluginReturnType.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/itemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
- package/libs/CSS3DRenderPlugin/Controller.js +48 -14
- package/libs/CSS3DRenderPlugin/index.js +7 -9
- package/libs/CSS3DRenderPlugin/utils/even.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +3 -0
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +37 -2
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +1 -1
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +22 -18
- package/libs/CameraMovementPlugin/index.js +7 -9
- package/libs/CruisePlugin/Controller.js +163 -54
- package/libs/CruisePlugin/index.js +38 -32
- package/libs/CruisePlugin/typing.d.ts +1 -1
- package/libs/CruisePlugin/utils/coordinatesToVector.js +3 -0
- package/libs/GuideLinePlugin/Components/Tag.js +14 -2
- package/libs/GuideLinePlugin/Controller.d.ts +5 -4
- package/libs/GuideLinePlugin/Controller.js +147 -135
- package/libs/GuideLinePlugin/GuideLineItem/index.js +26 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +30 -23
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +126 -72
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +7 -1
- package/libs/GuideLinePlugin/GuideLineModeItem.js +30 -23
- package/libs/GuideLinePlugin/index.js +40 -33
- package/libs/GuideLinePlugin/typing.d.ts +8 -9
- package/libs/GuideLinePlugin/typing.js +1 -34
- package/libs/GuideLinePlugin/utils/createLineGeometry.js +24 -18
- package/libs/GuideLinePlugin/utils/getPoint.js +4 -0
- package/libs/GuideLinePlugin/utils/index.d.ts +1 -1
- package/libs/GuideLinePlugin/utils/index.js +9 -44
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +83 -34
- package/libs/ItemLabelPlugin/ItemLabelItem.js +91 -14
- package/libs/ItemLabelPlugin/Plugin.js +2 -2
- package/libs/ItemLabelPlugin/index.js +8 -9
- package/libs/ModelChassisCompassPlugin/Plugin.js +25 -25
- package/libs/ModelChassisCompassPlugin/index.js +3 -4
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +14 -14
- package/libs/ModelEntryDoorGuidePlugin/index.js +3 -4
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +46 -10
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +60 -7
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +3 -3
- package/libs/ModelItemLabelPlugin/index.js +6 -7
- package/libs/ModelRoomLabelPlugin/Controller.js +18 -1
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +58 -4
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +50 -20
- package/libs/ModelTVVideoPlugin/Plugin.js +7 -9
- package/libs/ModelTVVideoPlugin/index.js +7 -10
- package/libs/ModelViewPlugin/Plugin.js +3 -3
- package/libs/ModelViewPlugin/index.js +3 -4
- package/libs/Object3DHelperPlugin/Controller.d.ts +1 -1
- package/libs/Object3DHelperPlugin/Controller.js +62 -42
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +2 -1
- package/libs/Object3DHelperPlugin/index.js +9 -11
- package/libs/PanoCompassPlugin/Controller.js +54 -4
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -1
- package/libs/PanoCompassPlugin/index.js +3 -3
- package/libs/PanoDoorLabelPlugin/BaseController.js +37 -12
- package/libs/PanoDoorLabelPlugin/Controller.js +9 -6
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +39 -13
- package/libs/PanoDoorLabelPlugin/index.js +5 -7
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +25 -7
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +11 -7
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +2 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +7 -7
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +8 -8
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.js +44 -14
- package/libs/PanoMeasurePlugin/Model/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/index.js +7 -7
- package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -2
- package/libs/PanoMeasurePlugin/Model/line.js +9 -9
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Model/polyline.js +26 -25
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +2 -2
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +2 -1
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +21 -20
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +14 -10
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +8 -7
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +12 -13
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +5 -6
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +15 -12
- package/libs/PanoMeasurePlugin/index.js +15 -16
- package/libs/PanoMeasurePlugin/typings/event.type.d.ts +2 -2
- package/libs/PanoMeasurePlugin/typings/event.type.js +1 -4
- package/libs/PanoMeasurePlugin/typings/index.d.ts +1 -1
- package/libs/PanoMeasurePlugin/typings/index.js +1 -20
- package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +8 -11
- package/libs/PanoRulerPlugin/Plugin.js +54 -54
- package/libs/PanoRulerPlugin/index.js +3 -4
- package/libs/PanoRulerProPlugin/Controller.js +14 -15
- package/libs/PanoRulerProPlugin/RulerItem.js +134 -45
- package/libs/PanoRulerProPlugin/RulerItems.js +49 -40
- package/libs/PanoRulerProPlugin/index.js +4 -5
- package/libs/PanoSpatialTagPlugin/Components/origins.js +47 -8
- package/libs/PanoSpatialTagPlugin/Components/tag.js +79 -3
- package/libs/PanoSpatialTagPlugin/Plugin.js +5 -7
- package/libs/PanoSpatialTagPlugin/index.js +4 -7
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +45 -20
- package/libs/PanoTagPlugin/Components/Common/Audio.js +46 -8
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +220 -58
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +64 -11
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +50 -27
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +151 -26
- package/libs/PanoTagPlugin/Components/Common/Media.js +222 -89
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +171 -22
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +100 -28
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +97 -20
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +68 -17
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +71 -31
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +87 -13
- package/libs/PanoTagPlugin/Components/Common/TextItem.js +29 -6
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +99 -14
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +171 -48
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +43 -20
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +11 -4
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +80 -27
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +41 -17
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +175 -36
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +76 -24
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +87 -14
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +99 -34
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +38 -23
- package/libs/PanoTagPlugin/Components/Tag/index.js +266 -44
- package/libs/PanoTagPlugin/Components/TagContainer.js +112 -61
- package/libs/PanoTagPlugin/Components/TagItem.js +202 -31
- package/libs/PanoTagPlugin/controller/TagCache.js +22 -20
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagComputer.js +40 -21
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
- package/libs/PanoTagPlugin/controller/TagRender.js +50 -19
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagUtil.js +30 -16
- package/libs/PanoTagPlugin/controller/index.js +93 -31
- package/libs/PanoTagPlugin/index.js +21 -22
- package/libs/PanoTagPlugin/tag.config.js +4 -0
- package/libs/PanoTagPlugin/typings/index.js +4 -7
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +3 -3
- package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -5
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +8 -6
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +7 -7
- package/libs/PanoTagPlugin/utils/index.js +33 -35
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +4 -0
- package/libs/PanoTagPlugin/utils/planeNormal.js +2 -4
- package/libs/PanoTagPlugin/utils/tagPosition.d.ts +1 -1
- package/libs/PanoTagPlugin/utils/tagPosition.js +8 -10
- package/libs/PanoVideoPlugin/Controller.js +54 -40
- package/libs/PanoVideoPlugin/VideoMeshController.js +90 -44
- package/libs/PanoVideoPlugin/index.js +7 -8
- package/libs/PanoVideoPlugin/utils/index.d.ts +1 -1
- package/libs/PanoVideoPlugin/utils/index.js +0 -1
- package/libs/_commonjsHelpers.js +4 -0
- package/libs/base/BasePlugin.js +24 -16
- package/libs/base/BasePluginWithData.js +2 -2
- package/libs/components/PaintBrush/Controller.js +15 -4
- package/libs/components/PaintBrush/Subscribe.js +37 -0
- package/libs/components/PaintBrush/index.js +17 -4
- package/libs/components/PaintBrush/tween.js +2 -2
- package/libs/components/index.js +1 -1
- package/libs/floorplan/Components/BaseImage.js +24 -6
- package/libs/floorplan/Components/Camera.js +73 -27
- package/libs/floorplan/Components/Compass.js +20 -3
- package/libs/floorplan/Components/CurrentFloor.js +189 -50
- package/libs/floorplan/Components/Main.js +202 -54
- package/libs/floorplan/Components/Normalmage.js +5 -2
- package/libs/floorplan/Components/RoomHighlight/Room.js +38 -5
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +105 -58
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +91 -18
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +106 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +42 -13
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +15 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +40 -3
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +37 -3
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +125 -51
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +80 -15
- package/libs/floorplan/Components/SvgImage.js +18 -6
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +118 -76
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +97 -54
- package/libs/floorplan/ModelFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +43 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +83 -22
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +61 -39
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +128 -33
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +40 -37
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +5 -7
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +84 -65
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +5 -7
- package/libs/floorplan/index.js +2 -4
- package/libs/floorplan/typings/floorplanServerData.js +80 -80
- package/libs/index.js +136 -129
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +29 -1
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/BoundingBoxController.js +2 -3
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +10 -1
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +5 -2
- package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +9 -8
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -0
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -1
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +4 -1
- package/libs/shared-utils/Object3DHelper/index.js +15 -0
- package/libs/shared-utils/Object3DHelper/typings/index.d.ts +1 -1
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -2
- package/libs/shared-utils/Subscribe.js +38 -1
- package/libs/shared-utils/animationFrame/BetterTween.d.ts +3 -2
- package/libs/shared-utils/animationFrame/BetterTween.js +19 -12
- package/libs/shared-utils/animationFrame/index.d.ts +1 -1
- package/libs/shared-utils/animationFrame/index.js +14 -14
- package/libs/shared-utils/animationFrame/tween.d.ts +32 -23
- package/libs/shared-utils/animationFrame/tween.js +15 -15
- package/libs/shared-utils/audio.js +9 -9
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -1
- package/libs/shared-utils/createCanvasTextTexture.js +3 -3
- package/libs/shared-utils/five/changeMode.js +11 -11
- package/libs/shared-utils/five/index.js +1 -1
- package/libs/shared-utils/five/mode.d.ts +1 -1
- package/libs/shared-utils/five/mode.js +2 -3
- package/libs/shared-utils/index.js +15 -15
- package/libs/shared-utils/log.js +2 -2
- package/libs/shared-utils/math/Interval.js +2 -0
- package/libs/shared-utils/math/Rectangle.js +2 -0
- package/libs/shared-utils/svelte/resizeObserver.d.ts +2 -10
- package/libs/shared-utils/svelte/resizeObserverGlobal.d.ts +10 -0
- package/libs/shared-utils/three/FivePointSelector.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +10 -7
- package/libs/shared-utils/three/PointDomHelper.js +12 -11
- package/libs/shared-utils/three/index.js +1 -2
- package/libs/shared-utils/three/loadTexture.js +10 -10
- package/libs/shared-utils/threex/domevents/index.js +2 -2
- package/libs/vendor/@tweenjs/tween/dist/tween.esm.js.js +403 -0
- package/libs/vendor/classnames/index.js +47 -0
- package/libs/vendor/easy-reactive/main.js +3 -0
- package/libs/vendor/{simply-reactive → easy-reactive}/src/simply-reactive.js +8 -8
- package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/object.js +1 -1
- package/libs/vendor/gl-vec2/add.js +7 -0
- package/libs/vendor/gl-vec2/dot.js +7 -0
- package/libs/vendor/gl-vec2/normalize.js +8 -0
- package/libs/vendor/gl-vec2/set.js +7 -0
- package/libs/vendor/gl-vec2/subtract.js +7 -0
- package/libs/vendor/lodash.clonedeep/index.js +457 -0
- package/libs/vendor/lodash.get/index.js +236 -0
- package/libs/vendor/lodash.isequal/index.js +489 -0
- package/libs/vendor/object-assign-deep/objectAssignDeep.js +62 -0
- package/libs/vendor/polyline-miter-util/index.js +18 -0
- package/libs/vendor/polyline-normals/index.js +28 -0
- package/libs/vendor/resize-observer-polyfill/dist/ResizeObserver.es.js +155 -134
- package/libs/vendor/svelte/easing/index.js +4 -5
- package/libs/vendor/svelte/index.js +1 -1
- package/libs/vendor/svelte/internal/index.js +412 -388
- package/libs/vendor/svelte/store/index.js +6 -6
- package/libs/vendor/svelte/transition/index.js +23 -20
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -3
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +338 -71
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +7 -1
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +19 -3
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +30 -7
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +15 -3
- package/libs/vendor/svelte-carousel/src/utils/clones.js +1 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +3 -0
- package/package.json +11 -13
- package/dist/GuideLinePlugin/utils/getArrowMaterial.d.ts +0 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -77
- package/libs/typings/math.type.js +0 -1
- package/libs/vendor/simply-reactive/main.js +0 -3
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/subscription.js +0 -0
- /package/libs/vendor/{simply-reactive → easy-reactive}/src/utils/watcher.js +0 -0
|
@@ -8,7 +8,7 @@ function l(s, t, e) {
|
|
|
8
8
|
const n = s[t], i = s[e];
|
|
9
9
|
!n || !i || (s[t] = i, s[e] = n);
|
|
10
10
|
}
|
|
11
|
-
function
|
|
11
|
+
function E(s, t, e) {
|
|
12
12
|
const n = e / 2;
|
|
13
13
|
for (let i = 1; i <= n; i++) {
|
|
14
14
|
const h = e - (i - 1);
|
|
@@ -44,7 +44,7 @@ class H {
|
|
|
44
44
|
});
|
|
45
45
|
var i, h, r;
|
|
46
46
|
if (!t.renderer)
|
|
47
|
-
throw new Error("Five Render
|
|
47
|
+
throw new Error("Five Render 未初始化");
|
|
48
48
|
this.five = t, this.scale = (i = e == null ? void 0 : e.scale) != null ? i : 2, this.width = (h = e == null ? void 0 : e.width) != null ? h : 190, this.height = (r = e == null ? void 0 : e.height) != null ? r : 190, this.config = {
|
|
49
49
|
dragEnabled: (e == null ? void 0 : e.dragEnabled) || !1,
|
|
50
50
|
autoFixPCPosition: (e == null ? void 0 : e.autoFixPCPosition) || !1,
|
|
@@ -65,30 +65,33 @@ class H {
|
|
|
65
65
|
return this.state.enabled = !0, (t = this.containerDom) == null || t.append(this.canvas), this;
|
|
66
66
|
}
|
|
67
67
|
disable() {
|
|
68
|
-
if (
|
|
68
|
+
if (this.state.enabled)
|
|
69
69
|
return this.state.enabled = !1, this.canvas.remove(), this;
|
|
70
70
|
}
|
|
71
|
+
/** 把放大镜放到某一个容器中 */
|
|
71
72
|
appendTo(t) {
|
|
72
73
|
var e;
|
|
73
74
|
return this.containerDom && ((e = this.containerDom) == null || e.removeChild(this.canvas)), this.containerDom = t, this.state.enabled && t.append(this.canvas), this;
|
|
74
75
|
}
|
|
76
|
+
/** 清除放大镜渲染内容 */
|
|
75
77
|
clear() {
|
|
76
78
|
return this.context.clearRect(0, 0, this.canvas.width, this.canvas.height), this;
|
|
77
79
|
}
|
|
80
|
+
/** 放大传入点位周围的内容 */
|
|
78
81
|
renderWithPoint(t) {
|
|
79
|
-
|
|
82
|
+
this.containerDom && this.state.enabled && (this.renderCenter = t, this.render(), this.config.autoFixPCPosition && this.autoFixPCPosition());
|
|
80
83
|
}
|
|
81
84
|
autoFixPCPosition() {
|
|
82
85
|
if (!this.containerDom)
|
|
83
86
|
return;
|
|
84
87
|
const { width: t, height: e } = this, n = this.renderCenter.clone().project(this.five.camera), i = (n.x + 1) / 2 * this.containerDom.clientWidth, h = -(n.x - 1) / 2 * this.containerDom.clientWidth, r = -(n.y - 1) / 2 * this.containerDom.clientHeight;
|
|
85
|
-
i < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left =
|
|
88
|
+
i < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = "90px") : r < 183 ? (this.canvas.style.top = "90px", this.canvas.style.left = -t / 2 + "px") : h < 183 ? (this.canvas.style.top = -e / 2 + "px", this.canvas.style.left = -t - 90 + "px") : (this.canvas.style.left = -t / 2 + "px", this.canvas.style.top = -e - 90 + "px"), this.canvas.style.transform = `translate3d(${i}px, ${r}px, 10px)`, this.offset = { x: i, y: r };
|
|
86
89
|
}
|
|
87
90
|
render() {
|
|
88
91
|
if (!this.five.renderer || !this.containerDom)
|
|
89
92
|
return;
|
|
90
|
-
const { scale: t, context: e, width: n, height: i } = this, h = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new m.Vector2()), o = 1, c = n / t,
|
|
91
|
-
|
|
93
|
+
const { scale: t, context: e, width: n, height: i } = this, h = this.renderCenter.clone().project(this.five.camera), r = this.five.renderer.getSize(new m.Vector2()), o = 1, c = n / t, v = i / t, u = o * t, y = (h.x + 1) / 2 * r.x, p = (h.y + 1) / 2 * r.y, d = this.five.getPixels(y - c / 2, p - c / 2, c, v, u), f = Math.floor(n * o), x = Math.floor(i * o);
|
|
94
|
+
E(d, f, x);
|
|
92
95
|
const g = new ImageData(f, x);
|
|
93
96
|
g.data.set(d), e.putImageData(g, 0, 0);
|
|
94
97
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var m = (o, e, t) => e in o ? l(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var n = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import "@realsee/five";
|
|
4
|
+
import * as c from "three";
|
|
5
|
+
import { Easing as p } from "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
7
6
|
import "hammerjs";
|
|
7
|
+
import "@realsee/five";
|
|
8
8
|
import { rangePieceImg as h } from "../../PanoMeasurePlugin/Modules/rangePiece/html.js";
|
|
9
9
|
import { CSS3DRenderPlugin as b } from "../../CSS3DRenderPlugin/index.js";
|
|
10
10
|
import { BetterTween as u } from "../animationFrame/BetterTween.js";
|
|
11
|
-
class
|
|
11
|
+
class C {
|
|
12
12
|
constructor(e) {
|
|
13
13
|
n(this, "five");
|
|
14
14
|
n(this, "contentElement", document.createElement("div"));
|
|
@@ -24,11 +24,11 @@ class w {
|
|
|
24
24
|
[-s, -s, 0],
|
|
25
25
|
[s, -s, 0],
|
|
26
26
|
[s, s, 0]
|
|
27
|
-
].map((i) => new
|
|
27
|
+
].map((i) => new c.Vector3().fromArray(i))
|
|
28
28
|
);
|
|
29
29
|
if (r) {
|
|
30
|
-
const { container: i, dispose:
|
|
31
|
-
this.container = i, this.css3DObject = d, this.disposeCss3DObject =
|
|
30
|
+
const { container: i, dispose: a, css3DObject: d } = r;
|
|
31
|
+
this.container = i, this.css3DObject = d, this.disposeCss3DObject = a;
|
|
32
32
|
}
|
|
33
33
|
this.contentElement.style.width = "100%", this.contentElement.style.height = "100%", this.contentElement.style.backgroundImage = `url(${h})`, this.contentElement.style.backgroundSize = "100%", this.contentElement.style.backgroundRepeat = "no-repeat";
|
|
34
34
|
}
|
|
@@ -37,17 +37,18 @@ class w {
|
|
|
37
37
|
this.state.enabled || (this.state.enabled = !0, (e = this.container) == null || e.appendChild(this.contentElement));
|
|
38
38
|
}
|
|
39
39
|
disable() {
|
|
40
|
-
|
|
40
|
+
this.state.enabled && (this.state.enabled = !1, this.contentElement.remove());
|
|
41
41
|
}
|
|
42
42
|
updateWithIntersect(e) {
|
|
43
43
|
if (!e.face || !this.css3DObject)
|
|
44
44
|
return;
|
|
45
|
-
const t = new
|
|
45
|
+
const t = new c.Vector3().addVectors(e.point, e.face.normal);
|
|
46
46
|
this.css3DObject.position.copy(e.point), this.css3DObject.lookAt(t), this.five.needsRender = !0;
|
|
47
47
|
}
|
|
48
|
+
/** 缩放动画 */
|
|
48
49
|
doAnimation() {
|
|
49
50
|
var e;
|
|
50
|
-
(e = this.animeIns) == null || e.dispose(), new u({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(p.
|
|
51
|
+
(e = this.animeIns) == null || e.dispose(), new u({ progress: 0 }).to({ progress: [1, 0] }).duration(500).easing(p.Quadratic.InOut).onUpdate(({ progress: t }) => {
|
|
51
52
|
}).play();
|
|
52
53
|
}
|
|
53
54
|
dispose() {
|
|
@@ -56,5 +57,5 @@ class w {
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
C as PointDomHelper
|
|
60
61
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "hammerjs";
|
|
2
2
|
import "three";
|
|
3
3
|
import "@realsee/five";
|
|
4
|
-
import "
|
|
5
|
-
import "../animationFrame/BetterTween.js";
|
|
4
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
6
5
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
7
6
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var g = (e, n, r) => new Promise((l, d) => {
|
|
2
|
+
var m = (o) => {
|
|
3
3
|
try {
|
|
4
4
|
i(r.next(o));
|
|
5
5
|
} catch (p) {
|
|
6
6
|
d(p);
|
|
7
7
|
}
|
|
8
|
-
},
|
|
8
|
+
}, T = (o) => {
|
|
9
9
|
try {
|
|
10
10
|
i(r.throw(o));
|
|
11
11
|
} catch (p) {
|
|
12
12
|
d(p);
|
|
13
13
|
}
|
|
14
|
-
}, i = (o) => o.done ?
|
|
14
|
+
}, i = (o) => o.done ? l(o.value) : Promise.resolve(o.value).then(m, T);
|
|
15
15
|
i((r = r.apply(e, n)).next());
|
|
16
16
|
});
|
|
17
17
|
import * as a from "three";
|
|
18
|
-
const
|
|
19
|
-
function
|
|
20
|
-
return
|
|
18
|
+
const s = new a.TextureLoader();
|
|
19
|
+
function E(e) {
|
|
20
|
+
return g(this, null, function* () {
|
|
21
21
|
return new Promise((n, r) => {
|
|
22
|
-
|
|
22
|
+
s.load(e, n, void 0, r);
|
|
23
23
|
}).then((n) => (n.encoding = a.sRGBEncoding, n.minFilter = a.LinearFilter, n.wrapS = a.ClampToEdgeWrapping, n.wrapT = a.ClampToEdgeWrapping, setTimeout(() => {
|
|
24
|
-
n.wrapS !== a.ClampToEdgeWrapping && console.warn("ios 16.4 texture
|
|
24
|
+
n.wrapS !== a.ClampToEdgeWrapping && console.warn("ios 16.4 texture 不支持 ClampToEdgeWrapping 以外的方式");
|
|
25
25
|
}), n));
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
export {
|
|
29
|
-
|
|
29
|
+
E as loadTexture
|
|
30
30
|
};
|
|
@@ -120,7 +120,7 @@ n.prototype._onEvent = function(t, e, o, i) {
|
|
|
120
120
|
if (a.length !== 0) {
|
|
121
121
|
for (var u = a[0], h = u.object, c = this._objectCtxGet(h), l = h.parent; typeof c == "undefined" && l; )
|
|
122
122
|
c = this._objectCtxGet(l), l = l.parent;
|
|
123
|
-
|
|
123
|
+
c && this._notify(t, h, i, u);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
};
|
|
@@ -140,7 +140,7 @@ n.prototype._notify = function(t, e, o, i) {
|
|
|
140
140
|
stopPropagation: function() {
|
|
141
141
|
h = !1;
|
|
142
142
|
}
|
|
143
|
-
}),
|
|
143
|
+
}), h && u.useCapture === !1 && e.parent && this._notify(t, e.parent, o, i);
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
n.prototype._onMouseDown = function(t) {
|
|
@@ -0,0 +1,403 @@
|
|
|
1
|
+
var d = Object.freeze({
|
|
2
|
+
Linear: Object.freeze({
|
|
3
|
+
None: function(t) {
|
|
4
|
+
return t;
|
|
5
|
+
},
|
|
6
|
+
In: function(t) {
|
|
7
|
+
return this.None(t);
|
|
8
|
+
},
|
|
9
|
+
Out: function(t) {
|
|
10
|
+
return this.None(t);
|
|
11
|
+
},
|
|
12
|
+
InOut: function(t) {
|
|
13
|
+
return this.None(t);
|
|
14
|
+
}
|
|
15
|
+
}),
|
|
16
|
+
Quadratic: Object.freeze({
|
|
17
|
+
In: function(t) {
|
|
18
|
+
return t * t;
|
|
19
|
+
},
|
|
20
|
+
Out: function(t) {
|
|
21
|
+
return t * (2 - t);
|
|
22
|
+
},
|
|
23
|
+
InOut: function(t) {
|
|
24
|
+
return (t *= 2) < 1 ? 0.5 * t * t : -0.5 * (--t * (t - 2) - 1);
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
Cubic: Object.freeze({
|
|
28
|
+
In: function(t) {
|
|
29
|
+
return t * t * t;
|
|
30
|
+
},
|
|
31
|
+
Out: function(t) {
|
|
32
|
+
return --t * t * t + 1;
|
|
33
|
+
},
|
|
34
|
+
InOut: function(t) {
|
|
35
|
+
return (t *= 2) < 1 ? 0.5 * t * t * t : 0.5 * ((t -= 2) * t * t + 2);
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
Quartic: Object.freeze({
|
|
39
|
+
In: function(t) {
|
|
40
|
+
return t * t * t * t;
|
|
41
|
+
},
|
|
42
|
+
Out: function(t) {
|
|
43
|
+
return 1 - --t * t * t * t;
|
|
44
|
+
},
|
|
45
|
+
InOut: function(t) {
|
|
46
|
+
return (t *= 2) < 1 ? 0.5 * t * t * t * t : -0.5 * ((t -= 2) * t * t * t - 2);
|
|
47
|
+
}
|
|
48
|
+
}),
|
|
49
|
+
Quintic: Object.freeze({
|
|
50
|
+
In: function(t) {
|
|
51
|
+
return t * t * t * t * t;
|
|
52
|
+
},
|
|
53
|
+
Out: function(t) {
|
|
54
|
+
return --t * t * t * t * t + 1;
|
|
55
|
+
},
|
|
56
|
+
InOut: function(t) {
|
|
57
|
+
return (t *= 2) < 1 ? 0.5 * t * t * t * t * t : 0.5 * ((t -= 2) * t * t * t * t + 2);
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
Sinusoidal: Object.freeze({
|
|
61
|
+
In: function(t) {
|
|
62
|
+
return 1 - Math.sin((1 - t) * Math.PI / 2);
|
|
63
|
+
},
|
|
64
|
+
Out: function(t) {
|
|
65
|
+
return Math.sin(t * Math.PI / 2);
|
|
66
|
+
},
|
|
67
|
+
InOut: function(t) {
|
|
68
|
+
return 0.5 * (1 - Math.sin(Math.PI * (0.5 - t)));
|
|
69
|
+
}
|
|
70
|
+
}),
|
|
71
|
+
Exponential: Object.freeze({
|
|
72
|
+
In: function(t) {
|
|
73
|
+
return t === 0 ? 0 : Math.pow(1024, t - 1);
|
|
74
|
+
},
|
|
75
|
+
Out: function(t) {
|
|
76
|
+
return t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
|
|
77
|
+
},
|
|
78
|
+
InOut: function(t) {
|
|
79
|
+
return t === 0 ? 0 : t === 1 ? 1 : (t *= 2) < 1 ? 0.5 * Math.pow(1024, t - 1) : 0.5 * (-Math.pow(2, -10 * (t - 1)) + 2);
|
|
80
|
+
}
|
|
81
|
+
}),
|
|
82
|
+
Circular: Object.freeze({
|
|
83
|
+
In: function(t) {
|
|
84
|
+
return 1 - Math.sqrt(1 - t * t);
|
|
85
|
+
},
|
|
86
|
+
Out: function(t) {
|
|
87
|
+
return Math.sqrt(1 - --t * t);
|
|
88
|
+
},
|
|
89
|
+
InOut: function(t) {
|
|
90
|
+
return (t *= 2) < 1 ? -0.5 * (Math.sqrt(1 - t * t) - 1) : 0.5 * (Math.sqrt(1 - (t -= 2) * t) + 1);
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
Elastic: Object.freeze({
|
|
94
|
+
In: function(t) {
|
|
95
|
+
return t === 0 ? 0 : t === 1 ? 1 : -Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI);
|
|
96
|
+
},
|
|
97
|
+
Out: function(t) {
|
|
98
|
+
return t === 0 ? 0 : t === 1 ? 1 : Math.pow(2, -10 * t) * Math.sin((t - 0.1) * 5 * Math.PI) + 1;
|
|
99
|
+
},
|
|
100
|
+
InOut: function(t) {
|
|
101
|
+
return t === 0 ? 0 : t === 1 ? 1 : (t *= 2, t < 1 ? -0.5 * Math.pow(2, 10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) : 0.5 * Math.pow(2, -10 * (t - 1)) * Math.sin((t - 1.1) * 5 * Math.PI) + 1);
|
|
102
|
+
}
|
|
103
|
+
}),
|
|
104
|
+
Back: Object.freeze({
|
|
105
|
+
In: function(t) {
|
|
106
|
+
var e = 1.70158;
|
|
107
|
+
return t === 1 ? 1 : t * t * ((e + 1) * t - e);
|
|
108
|
+
},
|
|
109
|
+
Out: function(t) {
|
|
110
|
+
var e = 1.70158;
|
|
111
|
+
return t === 0 ? 0 : --t * t * ((e + 1) * t + e) + 1;
|
|
112
|
+
},
|
|
113
|
+
InOut: function(t) {
|
|
114
|
+
var e = 2.5949095;
|
|
115
|
+
return (t *= 2) < 1 ? 0.5 * (t * t * ((e + 1) * t - e)) : 0.5 * ((t -= 2) * t * ((e + 1) * t + e) + 2);
|
|
116
|
+
}
|
|
117
|
+
}),
|
|
118
|
+
Bounce: Object.freeze({
|
|
119
|
+
In: function(t) {
|
|
120
|
+
return 1 - d.Bounce.Out(1 - t);
|
|
121
|
+
},
|
|
122
|
+
Out: function(t) {
|
|
123
|
+
return t < 0.36363636363636365 ? 7.5625 * t * t : t < 0.7272727272727273 ? 7.5625 * (t -= 0.5454545454545454) * t + 0.75 : t < 0.9090909090909091 ? 7.5625 * (t -= 0.8181818181818182) * t + 0.9375 : 7.5625 * (t -= 0.9545454545454546) * t + 0.984375;
|
|
124
|
+
},
|
|
125
|
+
InOut: function(t) {
|
|
126
|
+
return t < 0.5 ? d.Bounce.In(t * 2) * 0.5 : d.Bounce.Out(t * 2 - 1) * 0.5 + 0.5;
|
|
127
|
+
}
|
|
128
|
+
}),
|
|
129
|
+
generatePow: function(t) {
|
|
130
|
+
return t === void 0 && (t = 4), t = t < Number.EPSILON ? Number.EPSILON : t, t = t > 1e4 ? 1e4 : t, {
|
|
131
|
+
In: function(e) {
|
|
132
|
+
return Math.pow(e, t);
|
|
133
|
+
},
|
|
134
|
+
Out: function(e) {
|
|
135
|
+
return 1 - Math.pow(1 - e, t);
|
|
136
|
+
},
|
|
137
|
+
InOut: function(e) {
|
|
138
|
+
return e < 0.5 ? Math.pow(e * 2, t) / 2 : (1 - Math.pow(2 - e * 2, t)) / 2 + 0.5;
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
}), _ = function() {
|
|
143
|
+
return performance.now();
|
|
144
|
+
}, w = (
|
|
145
|
+
/** @class */
|
|
146
|
+
function() {
|
|
147
|
+
function t() {
|
|
148
|
+
this._tweens = {}, this._tweensAddedDuringUpdate = {};
|
|
149
|
+
}
|
|
150
|
+
return t.prototype.getAll = function() {
|
|
151
|
+
var e = this;
|
|
152
|
+
return Object.keys(this._tweens).map(function(i) {
|
|
153
|
+
return e._tweens[i];
|
|
154
|
+
});
|
|
155
|
+
}, t.prototype.removeAll = function() {
|
|
156
|
+
this._tweens = {};
|
|
157
|
+
}, t.prototype.add = function(e) {
|
|
158
|
+
this._tweens[e.getId()] = e, this._tweensAddedDuringUpdate[e.getId()] = e;
|
|
159
|
+
}, t.prototype.remove = function(e) {
|
|
160
|
+
delete this._tweens[e.getId()], delete this._tweensAddedDuringUpdate[e.getId()];
|
|
161
|
+
}, t.prototype.update = function(e, i) {
|
|
162
|
+
e === void 0 && (e = _()), i === void 0 && (i = !1);
|
|
163
|
+
var r = Object.keys(this._tweens);
|
|
164
|
+
if (r.length === 0)
|
|
165
|
+
return !1;
|
|
166
|
+
for (; r.length > 0; ) {
|
|
167
|
+
this._tweensAddedDuringUpdate = {};
|
|
168
|
+
for (var n = 0; n < r.length; n++) {
|
|
169
|
+
var a = this._tweens[r[n]], s = !i;
|
|
170
|
+
a && a.update(e, s) === !1 && !i && delete this._tweens[r[n]];
|
|
171
|
+
}
|
|
172
|
+
r = Object.keys(this._tweensAddedDuringUpdate);
|
|
173
|
+
}
|
|
174
|
+
return !0;
|
|
175
|
+
}, t;
|
|
176
|
+
}()
|
|
177
|
+
), c = {
|
|
178
|
+
Linear: function(t, e) {
|
|
179
|
+
var i = t.length - 1, r = i * e, n = Math.floor(r), a = c.Utils.Linear;
|
|
180
|
+
return e < 0 ? a(t[0], t[1], r) : e > 1 ? a(t[i], t[i - 1], i - r) : a(t[n], t[n + 1 > i ? i : n + 1], r - n);
|
|
181
|
+
},
|
|
182
|
+
Bezier: function(t, e) {
|
|
183
|
+
for (var i = 0, r = t.length - 1, n = Math.pow, a = c.Utils.Bernstein, s = 0; s <= r; s++)
|
|
184
|
+
i += n(1 - e, r - s) * n(e, s) * t[s] * a(r, s);
|
|
185
|
+
return i;
|
|
186
|
+
},
|
|
187
|
+
CatmullRom: function(t, e) {
|
|
188
|
+
var i = t.length - 1, r = i * e, n = Math.floor(r), a = c.Utils.CatmullRom;
|
|
189
|
+
return t[0] === t[i] ? (e < 0 && (n = Math.floor(r = i * (1 + e))), a(t[(n - 1 + i) % i], t[n], t[(n + 1) % i], t[(n + 2) % i], r - n)) : e < 0 ? t[0] - (a(t[0], t[0], t[1], t[1], -r) - t[0]) : e > 1 ? t[i] - (a(t[i], t[i], t[i - 1], t[i - 1], r - i) - t[i]) : a(t[n ? n - 1 : 0], t[n], t[i < n + 1 ? i : n + 1], t[i < n + 2 ? i : n + 2], r - n);
|
|
190
|
+
},
|
|
191
|
+
Utils: {
|
|
192
|
+
Linear: function(t, e, i) {
|
|
193
|
+
return (e - t) * i + t;
|
|
194
|
+
},
|
|
195
|
+
Bernstein: function(t, e) {
|
|
196
|
+
var i = c.Utils.Factorial;
|
|
197
|
+
return i(t) / i(e) / i(t - e);
|
|
198
|
+
},
|
|
199
|
+
Factorial: function() {
|
|
200
|
+
var t = [1];
|
|
201
|
+
return function(e) {
|
|
202
|
+
var i = 1;
|
|
203
|
+
if (t[e])
|
|
204
|
+
return t[e];
|
|
205
|
+
for (var r = e; r > 1; r--)
|
|
206
|
+
i *= r;
|
|
207
|
+
return t[e] = i, i;
|
|
208
|
+
};
|
|
209
|
+
}(),
|
|
210
|
+
CatmullRom: function(t, e, i, r, n) {
|
|
211
|
+
var a = (i - t) * 0.5, s = (r - e) * 0.5, h = n * n, f = n * h;
|
|
212
|
+
return (2 * e - 2 * i + a + s) * f + (-3 * e + 3 * i - 2 * a - s) * h + a * n + e;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
}, S = (
|
|
216
|
+
/** @class */
|
|
217
|
+
function() {
|
|
218
|
+
function t() {
|
|
219
|
+
}
|
|
220
|
+
return t.nextId = function() {
|
|
221
|
+
return t._nextId++;
|
|
222
|
+
}, t._nextId = 0, t;
|
|
223
|
+
}()
|
|
224
|
+
), g = new w(), T = (
|
|
225
|
+
/** @class */
|
|
226
|
+
function() {
|
|
227
|
+
function t(e, i) {
|
|
228
|
+
i === void 0 && (i = g), this._object = e, this._group = i, this._isPaused = !1, this._pauseStart = 0, this._valuesStart = {}, this._valuesEnd = {}, this._valuesStartRepeat = {}, this._duration = 1e3, this._isDynamic = !1, this._initialRepeat = 0, this._repeat = 0, this._yoyo = !1, this._isPlaying = !1, this._reversed = !1, this._delayTime = 0, this._startTime = 0, this._easingFunction = d.Linear.None, this._interpolationFunction = c.Linear, this._chainedTweens = [], this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._id = S.nextId(), this._isChainStopped = !1, this._propertiesAreSetUp = !1, this._goToEnd = !1;
|
|
229
|
+
}
|
|
230
|
+
return t.prototype.getId = function() {
|
|
231
|
+
return this._id;
|
|
232
|
+
}, t.prototype.isPlaying = function() {
|
|
233
|
+
return this._isPlaying;
|
|
234
|
+
}, t.prototype.isPaused = function() {
|
|
235
|
+
return this._isPaused;
|
|
236
|
+
}, t.prototype.to = function(e, i) {
|
|
237
|
+
if (i === void 0 && (i = 1e3), this._isPlaying)
|
|
238
|
+
throw new Error("Can not call Tween.to() while Tween is already started or paused. Stop the Tween first.");
|
|
239
|
+
return this._valuesEnd = e, this._propertiesAreSetUp = !1, this._duration = i, this;
|
|
240
|
+
}, t.prototype.duration = function(e) {
|
|
241
|
+
return e === void 0 && (e = 1e3), this._duration = e, this;
|
|
242
|
+
}, t.prototype.dynamic = function(e) {
|
|
243
|
+
return e === void 0 && (e = !1), this._isDynamic = e, this;
|
|
244
|
+
}, t.prototype.start = function(e, i) {
|
|
245
|
+
if (e === void 0 && (e = _()), i === void 0 && (i = !1), this._isPlaying)
|
|
246
|
+
return this;
|
|
247
|
+
if (this._group && this._group.add(this), this._repeat = this._initialRepeat, this._reversed) {
|
|
248
|
+
this._reversed = !1;
|
|
249
|
+
for (var r in this._valuesStartRepeat)
|
|
250
|
+
this._swapEndStartRepeatValues(r), this._valuesStart[r] = this._valuesStartRepeat[r];
|
|
251
|
+
}
|
|
252
|
+
if (this._isPlaying = !0, this._isPaused = !1, this._onStartCallbackFired = !1, this._onEveryStartCallbackFired = !1, this._isChainStopped = !1, this._startTime = e, this._startTime += this._delayTime, !this._propertiesAreSetUp || i) {
|
|
253
|
+
if (this._propertiesAreSetUp = !0, !this._isDynamic) {
|
|
254
|
+
var n = {};
|
|
255
|
+
for (var a in this._valuesEnd)
|
|
256
|
+
n[a] = this._valuesEnd[a];
|
|
257
|
+
this._valuesEnd = n;
|
|
258
|
+
}
|
|
259
|
+
this._setupProperties(this._object, this._valuesStart, this._valuesEnd, this._valuesStartRepeat, i);
|
|
260
|
+
}
|
|
261
|
+
return this;
|
|
262
|
+
}, t.prototype.startFromCurrentValues = function(e) {
|
|
263
|
+
return this.start(e, !0);
|
|
264
|
+
}, t.prototype._setupProperties = function(e, i, r, n, a) {
|
|
265
|
+
for (var s in r) {
|
|
266
|
+
var h = e[s], f = Array.isArray(h), p = f ? "array" : typeof h, l = !f && Array.isArray(r[s]);
|
|
267
|
+
if (!(p === "undefined" || p === "function")) {
|
|
268
|
+
if (l) {
|
|
269
|
+
var o = r[s];
|
|
270
|
+
if (o.length === 0)
|
|
271
|
+
continue;
|
|
272
|
+
for (var C = [h], y = 0, P = o.length; y < P; y += 1) {
|
|
273
|
+
var I = this._handleRelativeValue(h, o[y]);
|
|
274
|
+
if (isNaN(I)) {
|
|
275
|
+
l = !1, console.warn("Found invalid interpolation list. Skipping.");
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
C.push(I);
|
|
279
|
+
}
|
|
280
|
+
l && (r[s] = C);
|
|
281
|
+
}
|
|
282
|
+
if ((p === "object" || f) && h && !l) {
|
|
283
|
+
i[s] = f ? [] : {};
|
|
284
|
+
var b = h;
|
|
285
|
+
for (var v in b)
|
|
286
|
+
i[s][v] = b[v];
|
|
287
|
+
n[s] = f ? [] : {};
|
|
288
|
+
var o = r[s];
|
|
289
|
+
if (!this._isDynamic) {
|
|
290
|
+
var O = {};
|
|
291
|
+
for (var v in o)
|
|
292
|
+
O[v] = o[v];
|
|
293
|
+
r[s] = o = O;
|
|
294
|
+
}
|
|
295
|
+
this._setupProperties(b, i[s], o, n[s], a);
|
|
296
|
+
} else
|
|
297
|
+
(typeof i[s] == "undefined" || a) && (i[s] = h), f || (i[s] *= 1), l ? n[s] = r[s].slice().reverse() : n[s] = i[s] || 0;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}, t.prototype.stop = function() {
|
|
301
|
+
return this._isChainStopped || (this._isChainStopped = !0, this.stopChainedTweens()), this._isPlaying ? (this._group && this._group.remove(this), this._isPlaying = !1, this._isPaused = !1, this._onStopCallback && this._onStopCallback(this._object), this) : this;
|
|
302
|
+
}, t.prototype.end = function() {
|
|
303
|
+
return this._goToEnd = !0, this.update(1 / 0), this;
|
|
304
|
+
}, t.prototype.pause = function(e) {
|
|
305
|
+
return e === void 0 && (e = _()), this._isPaused || !this._isPlaying ? this : (this._isPaused = !0, this._pauseStart = e, this._group && this._group.remove(this), this);
|
|
306
|
+
}, t.prototype.resume = function(e) {
|
|
307
|
+
return e === void 0 && (e = _()), !this._isPaused || !this._isPlaying ? this : (this._isPaused = !1, this._startTime += e - this._pauseStart, this._pauseStart = 0, this._group && this._group.add(this), this);
|
|
308
|
+
}, t.prototype.stopChainedTweens = function() {
|
|
309
|
+
for (var e = 0, i = this._chainedTweens.length; e < i; e++)
|
|
310
|
+
this._chainedTweens[e].stop();
|
|
311
|
+
return this;
|
|
312
|
+
}, t.prototype.group = function(e) {
|
|
313
|
+
return e === void 0 && (e = g), this._group = e, this;
|
|
314
|
+
}, t.prototype.delay = function(e) {
|
|
315
|
+
return e === void 0 && (e = 0), this._delayTime = e, this;
|
|
316
|
+
}, t.prototype.repeat = function(e) {
|
|
317
|
+
return e === void 0 && (e = 0), this._initialRepeat = e, this._repeat = e, this;
|
|
318
|
+
}, t.prototype.repeatDelay = function(e) {
|
|
319
|
+
return this._repeatDelayTime = e, this;
|
|
320
|
+
}, t.prototype.yoyo = function(e) {
|
|
321
|
+
return e === void 0 && (e = !1), this._yoyo = e, this;
|
|
322
|
+
}, t.prototype.easing = function(e) {
|
|
323
|
+
return e === void 0 && (e = d.Linear.None), this._easingFunction = e, this;
|
|
324
|
+
}, t.prototype.interpolation = function(e) {
|
|
325
|
+
return e === void 0 && (e = c.Linear), this._interpolationFunction = e, this;
|
|
326
|
+
}, t.prototype.chain = function() {
|
|
327
|
+
for (var e = [], i = 0; i < arguments.length; i++)
|
|
328
|
+
e[i] = arguments[i];
|
|
329
|
+
return this._chainedTweens = e, this;
|
|
330
|
+
}, t.prototype.onStart = function(e) {
|
|
331
|
+
return this._onStartCallback = e, this;
|
|
332
|
+
}, t.prototype.onEveryStart = function(e) {
|
|
333
|
+
return this._onEveryStartCallback = e, this;
|
|
334
|
+
}, t.prototype.onUpdate = function(e) {
|
|
335
|
+
return this._onUpdateCallback = e, this;
|
|
336
|
+
}, t.prototype.onRepeat = function(e) {
|
|
337
|
+
return this._onRepeatCallback = e, this;
|
|
338
|
+
}, t.prototype.onComplete = function(e) {
|
|
339
|
+
return this._onCompleteCallback = e, this;
|
|
340
|
+
}, t.prototype.onStop = function(e) {
|
|
341
|
+
return this._onStopCallback = e, this;
|
|
342
|
+
}, t.prototype.update = function(e, i) {
|
|
343
|
+
if (e === void 0 && (e = _()), i === void 0 && (i = !0), this._isPaused)
|
|
344
|
+
return !0;
|
|
345
|
+
var r, n, a = this._startTime + this._duration;
|
|
346
|
+
if (!this._goToEnd && !this._isPlaying) {
|
|
347
|
+
if (e > a)
|
|
348
|
+
return !1;
|
|
349
|
+
i && this.start(e, !0);
|
|
350
|
+
}
|
|
351
|
+
if (this._goToEnd = !1, e < this._startTime)
|
|
352
|
+
return !0;
|
|
353
|
+
this._onStartCallbackFired === !1 && (this._onStartCallback && this._onStartCallback(this._object), this._onStartCallbackFired = !0), this._onEveryStartCallbackFired === !1 && (this._onEveryStartCallback && this._onEveryStartCallback(this._object), this._onEveryStartCallbackFired = !0), n = (e - this._startTime) / this._duration, n = this._duration === 0 || n > 1 ? 1 : n;
|
|
354
|
+
var s = this._easingFunction(n);
|
|
355
|
+
if (this._updateProperties(this._object, this._valuesStart, this._valuesEnd, s), this._onUpdateCallback && this._onUpdateCallback(this._object, n), n === 1)
|
|
356
|
+
if (this._repeat > 0) {
|
|
357
|
+
isFinite(this._repeat) && this._repeat--;
|
|
358
|
+
for (r in this._valuesStartRepeat)
|
|
359
|
+
!this._yoyo && typeof this._valuesEnd[r] == "string" && (this._valuesStartRepeat[r] = // eslint-disable-next-line
|
|
360
|
+
// @ts-ignore FIXME?
|
|
361
|
+
this._valuesStartRepeat[r] + parseFloat(this._valuesEnd[r])), this._yoyo && this._swapEndStartRepeatValues(r), this._valuesStart[r] = this._valuesStartRepeat[r];
|
|
362
|
+
return this._yoyo && (this._reversed = !this._reversed), this._repeatDelayTime !== void 0 ? this._startTime = e + this._repeatDelayTime : this._startTime = e + this._delayTime, this._onRepeatCallback && this._onRepeatCallback(this._object), this._onEveryStartCallbackFired = !1, !0;
|
|
363
|
+
} else {
|
|
364
|
+
this._onCompleteCallback && this._onCompleteCallback(this._object);
|
|
365
|
+
for (var h = 0, f = this._chainedTweens.length; h < f; h++)
|
|
366
|
+
this._chainedTweens[h].start(this._startTime + this._duration, !1);
|
|
367
|
+
return this._isPlaying = !1, !1;
|
|
368
|
+
}
|
|
369
|
+
return !0;
|
|
370
|
+
}, t.prototype._updateProperties = function(e, i, r, n) {
|
|
371
|
+
for (var a in r)
|
|
372
|
+
if (i[a] !== void 0) {
|
|
373
|
+
var s = i[a] || 0, h = r[a], f = Array.isArray(e[a]), p = Array.isArray(h), l = !f && p;
|
|
374
|
+
l ? e[a] = this._interpolationFunction(h, n) : typeof h == "object" && h ? this._updateProperties(e[a], s, h, n) : (h = this._handleRelativeValue(s, h), typeof h == "number" && (e[a] = s + (h - s) * n));
|
|
375
|
+
}
|
|
376
|
+
}, t.prototype._handleRelativeValue = function(e, i) {
|
|
377
|
+
return typeof i != "string" ? i : i.charAt(0) === "+" || i.charAt(0) === "-" ? e + parseFloat(i) : parseFloat(i);
|
|
378
|
+
}, t.prototype._swapEndStartRepeatValues = function(e) {
|
|
379
|
+
var i = this._valuesStartRepeat[e], r = this._valuesEnd[e];
|
|
380
|
+
typeof r == "string" ? this._valuesStartRepeat[e] = this._valuesStartRepeat[e] + parseFloat(r) : this._valuesStartRepeat[e] = this._valuesEnd[e], this._valuesEnd[e] = i;
|
|
381
|
+
}, t;
|
|
382
|
+
}()
|
|
383
|
+
), M = "20.0.3", E = S.nextId, u = g, R = u.getAll.bind(u), k = u.removeAll.bind(u), A = u.add.bind(u), j = u.remove.bind(u), F = u.update.bind(u), U = {
|
|
384
|
+
Easing: d,
|
|
385
|
+
Group: w,
|
|
386
|
+
Interpolation: c,
|
|
387
|
+
now: _,
|
|
388
|
+
Sequence: S,
|
|
389
|
+
nextId: E,
|
|
390
|
+
Tween: T,
|
|
391
|
+
VERSION: M,
|
|
392
|
+
getAll: R,
|
|
393
|
+
removeAll: k,
|
|
394
|
+
add: A,
|
|
395
|
+
remove: j,
|
|
396
|
+
update: F
|
|
397
|
+
};
|
|
398
|
+
export {
|
|
399
|
+
d as Easing,
|
|
400
|
+
T as Tween,
|
|
401
|
+
U as exports,
|
|
402
|
+
j as remove
|
|
403
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
var a = {}, f = {
|
|
2
|
+
get exports() {
|
|
3
|
+
return a;
|
|
4
|
+
},
|
|
5
|
+
set exports(e) {
|
|
6
|
+
a = e;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
/*!
|
|
10
|
+
Copyright (c) 2018 Jed Watson.
|
|
11
|
+
Licensed under the MIT License (MIT), see
|
|
12
|
+
http://jedwatson.github.io/classnames
|
|
13
|
+
*/
|
|
14
|
+
(function(e) {
|
|
15
|
+
(function() {
|
|
16
|
+
var l = {}.hasOwnProperty;
|
|
17
|
+
function t() {
|
|
18
|
+
for (var n = [], o = 0; o < arguments.length; o++) {
|
|
19
|
+
var s = arguments[o];
|
|
20
|
+
if (s) {
|
|
21
|
+
var i = typeof s;
|
|
22
|
+
if (i === "string" || i === "number")
|
|
23
|
+
n.push(s);
|
|
24
|
+
else if (Array.isArray(s)) {
|
|
25
|
+
if (s.length) {
|
|
26
|
+
var c = t.apply(null, s);
|
|
27
|
+
c && n.push(c);
|
|
28
|
+
}
|
|
29
|
+
} else if (i === "object") {
|
|
30
|
+
if (s.toString !== Object.prototype.toString && !s.toString.toString().includes("[native code]")) {
|
|
31
|
+
n.push(s.toString());
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
for (var r in s)
|
|
35
|
+
l.call(s, r) && s[r] && n.push(r);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
return n.join(" ");
|
|
40
|
+
}
|
|
41
|
+
e.exports ? (t.default = t, e.exports = t) : window.classNames = t;
|
|
42
|
+
})();
|
|
43
|
+
})(f);
|
|
44
|
+
const u = a;
|
|
45
|
+
export {
|
|
46
|
+
u as classnames
|
|
47
|
+
};
|