@realsee/dnalogel 2.1.2-alpha.0 → 2.1.2-alpha.2
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/README.md +3 -12
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +16 -16
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoTagPluginController.html +39 -39
- package/docs/classes/Util.BetterTween.html +8 -8
- 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 +12 -12
- 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/LinkType.html +7 -7
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- 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/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.isNil.html +5 -5
- package/docs/functions/Util.nextFrame.html +5 -5
- package/docs/functions/Util.notNil.html +5 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
- package/docs/functions/Util.tweenProgress.html +5 -5
- package/docs/functions/pluginFlag.html +5 -5
- package/docs/index.html +6 -11
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/ContentTypeMap.html +12 -12
- 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/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/LineJson.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 +8 -8
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/OpenParameter.html +7 -7
- 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 +11 -11
- 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/Point.html +8 -8
- package/docs/interfaces/PointJson.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/TagConfig.html +10 -10
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.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/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeyArray.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/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/HelperEventMap.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/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/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/PlaneTag.html +5 -5
- package/docs/types/PointTag.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/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.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/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/VERSION.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/CSS3DRender.js +1 -331
- package/libs/CSS3DRenderPlugin/Controller.js +1 -84
- package/libs/CSS3DRenderPlugin/index.js +1 -6
- package/libs/CSS3DRenderPlugin/typing.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/CSS3DObjectPlus.js +1 -67
- package/libs/CSS3DRenderPlugin/utils/centerPoint.js +1 -10
- package/libs/CSS3DRenderPlugin/utils/evenNumber.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/index.js +1 -0
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +1 -7
- package/libs/CSS3DRenderPlugin/utils/random.js +1 -0
- package/libs/CameraMovementPlugin/CameraMovementPlugin.js +1 -88
- package/libs/CameraMovementPlugin/index.js +1 -0
- package/libs/CameraMovementPlugin/typing.js +1 -5
- package/libs/CruisePlugin/Controller.js +1 -484
- package/libs/CruisePlugin/index.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesAngle.js +1 -8
- package/libs/CruisePlugin/utils/coordinatesToVector.js +1 -12
- package/libs/CruisePlugin/utils/formatRad.js +1 -7
- package/libs/CruisePlugin/utils/linerValue.js +1 -7
- package/libs/CruisePlugin/utils/safeCall.js +1 -28
- package/libs/CruisePlugin/utils/sleep.js +1 -10
- package/libs/CruisePlugin/utils/vectorToCoordinates.js +1 -10
- package/libs/GuideLinePlugin/Controller.js +1 -144
- package/libs/GuideLinePlugin/index.js +1 -6
- package/libs/GuideLinePlugin/utils/getArrowMaterial.js +1 -13
- package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -64
- package/libs/ItemLabelPlugin/ItemLabelComponent.js +1 -271
- package/libs/ItemLabelPlugin/ItemLabelItem.js +2 -133
- package/libs/ItemLabelPlugin/Plugin.js +2 -76
- package/libs/ItemLabelPlugin/index.js +1 -12
- package/libs/ItemLabelPlugin/typings.js +1 -4
- package/libs/ItemLabelPlugin/utils/getLabelTransform.js +1 -4
- package/libs/ItemLabelPlugin/utils/getStrokeLength.js +1 -16
- package/libs/ItemLabelPlugin/utils/isImpacted.js +1 -10
- package/libs/ItemLabelPlugin/utils/parseData.js +1 -21
- package/libs/ItemLabelPlugin/utils/transform2RenderData.js +1 -21
- package/libs/ModelChassisCompassPlugin/Plugin.js +1 -71
- package/libs/ModelChassisCompassPlugin/index.js +1 -0
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +1 -78
- package/libs/ModelEntryDoorGuidePlugin/index.js +1 -0
- package/libs/ModelItemLabelPlugin/ItemLabelComponent.js +1 -212
- package/libs/ModelItemLabelPlugin/ItemLabelItem.js +2 -42
- package/libs/ModelItemLabelPlugin/ModelItemLabelPlugin.js +2 -74
- package/libs/ModelItemLabelPlugin/events.type.js +1 -0
- package/libs/ModelItemLabelPlugin/index.js +1 -12
- package/libs/ModelItemLabelPlugin/typings.js +1 -4
- package/libs/ModelItemLabelPlugin/utils/parseData.js +1 -19
- package/libs/ModelRoomLabelPlugin/Assets/roomLabelBg.js +1 -4
- package/libs/ModelRoomLabelPlugin/Controller.js +1 -60
- package/libs/ModelRoomLabelPlugin/RoomLabelItem.js +1 -45
- package/libs/ModelRoomLabelPlugin/RoomLabelItems.js +1 -162
- package/libs/ModelRoomLabelPlugin/index.js +1 -10
- package/libs/ModelRoomLabelPlugin/utils/parseData.js +1 -16
- package/libs/ModelTVVideoPlugin/Plugin.js +1 -164
- package/libs/ModelTVVideoPlugin/index.js +1 -0
- package/libs/ModelTVVideoPlugin/typings.js +1 -4
- package/libs/ModelTVVideoPlugin/utils/parseData.js +1 -20
- package/libs/ModelViewPlugin/Plugin.js +1 -107
- package/libs/ModelViewPlugin/index.js +1 -0
- package/libs/Object3DHelperPlugin/Controller.js +1 -145
- package/libs/Object3DHelperPlugin/FiveControllerWrapper.js +1 -32
- package/libs/Object3DHelperPlugin/index.js +1 -10
- package/libs/PanoCompassPlugin/Assets/roomInfoIcon.js +1 -4
- package/libs/PanoCompassPlugin/Controller.js +1 -224
- package/libs/PanoCompassPlugin/getRoomInfoInstance.js +1 -24
- package/libs/PanoCompassPlugin/index.js +1 -6
- package/libs/PanoCursorRaycasterPlugin/index.js +1 -59
- package/libs/PanoDoorLabelPlugin/BaseController.js +1 -59
- package/libs/PanoDoorLabelPlugin/Controller.js +1 -219
- package/libs/PanoDoorLabelPlugin/DoorLabelItem.js +1 -65
- package/libs/PanoDoorLabelPlugin/index.js +1 -6
- package/libs/PanoDoorLabelPlugin/utils.js +1 -23
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +1 -53
- package/libs/PanoMeasurePlugin/Controller/EditController.js +1 -102
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +1 -125
- package/libs/PanoMeasurePlugin/Controller/ShortcutKeyController.js +1 -33
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -90
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +1 -154
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -140
- package/libs/PanoMeasurePlugin/Model/index.js +1 -92
- package/libs/PanoMeasurePlugin/Model/line.js +1 -56
- package/libs/PanoMeasurePlugin/Model/point.js +1 -30
- package/libs/PanoMeasurePlugin/Model/polyline.js +1 -47
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +2 -5
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -4
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -67
- package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +1 -28
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +1 -41
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +1 -103
- package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +8 -12
- package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +1 -50
- package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +1 -36
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -48
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +3 -8
- package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +1 -39
- package/libs/PanoMeasurePlugin/Modules/UIController/style.js +1 -62
- package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +2 -7
- package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +1 -130
- package/libs/PanoMeasurePlugin/index.js +1 -11
- package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -12
- package/libs/PanoMeasurePlugin/utils/constants.js +1 -36
- package/libs/PanoMeasurePlugin/utils/distanceDom.js +1 -62
- package/libs/PanoMeasurePlugin/utils/findAssociatedLines.js +1 -13
- package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +1 -15
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.js +1 -9
- package/libs/PanoMeasurePlugin/utils/getPointFromHammerEvent.js +1 -8
- package/libs/PanoMeasurePlugin/utils/ironbox.js +1 -4
- package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +1 -7
- package/libs/PanoMeasurePlugin/utils/line.js +1 -18
- package/libs/PanoMeasurePlugin/utils/math.js +1 -13
- package/libs/PanoMeasurePlugin/utils/mouseGroup.js +3 -33
- package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +1 -8
- package/libs/PanoRulerPlugin/Plugin.js +2 -263
- package/libs/PanoRulerPlugin/index.js +1 -0
- package/libs/PanoRulerPlugin/style.js +2 -5
- package/libs/PanoRulerProPlugin/Controller.js +1 -93
- package/libs/PanoRulerProPlugin/RulerItem.js +1 -128
- package/libs/PanoRulerProPlugin/RulerItems.js +1 -180
- package/libs/PanoRulerProPlugin/index.js +1 -6
- package/libs/PanoSpatialTagPlugin/Components/origins.js +1 -81
- package/libs/PanoSpatialTagPlugin/Components/tag.js +1 -124
- package/libs/PanoSpatialTagPlugin/Plugin.js +1 -247
- package/libs/PanoSpatialTagPlugin/index.js +1 -0
- package/libs/PanoSpatialTagPlugin/store.js +1 -5
- package/libs/PanoSpatialTagPlugin/style.js +1 -11
- package/libs/PanoSpatialTagPlugin/typings.js +1 -0
- package/libs/PanoTagPlugin/Assets/Icon.js +1 -6
- package/libs/PanoTagPlugin/Components/Common/Arrow.js +1 -103
- package/libs/PanoTagPlugin/Components/Common/Audio.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +1 -93
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +1 -90
- package/libs/PanoTagPlugin/Components/Common/Media.js +1 -393
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -139
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +1 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +1 -51
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +1 -166
- package/libs/PanoTagPlugin/Components/Common/Shadow.js +15 -124
- package/libs/PanoTagPlugin/Components/Common/Text.js +1 -131
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +1 -134
- package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +1 -73
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -192
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +1 -126
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -258
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +1 -87
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +1 -122
- package/libs/PanoTagPlugin/Components/Tag/index.js +2 -289
- package/libs/PanoTagPlugin/Components/TagContainer.js +1 -156
- package/libs/PanoTagPlugin/Components/TagWrapper.js +1 -153
- package/libs/PanoTagPlugin/controller/TagCacheController.js +1 -31
- package/libs/PanoTagPlugin/controller/TagComputer.js +1 -264
- package/libs/PanoTagPlugin/controller/index.js +1 -377
- package/libs/PanoTagPlugin/index.js +1 -9
- package/libs/PanoTagPlugin/tag.config.js +1 -44
- package/libs/PanoTagPlugin/typings/controller.js +1 -0
- package/libs/PanoTagPlugin/typings/index.js +1 -0
- package/libs/PanoTagPlugin/typings/tag.js +1 -7
- package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -6
- package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -27
- package/libs/PanoTagPlugin/utils/checkRange.js +1 -10
- package/libs/PanoTagPlugin/utils/constants.js +1 -8
- package/libs/PanoTagPlugin/utils/debounce.js +1 -12
- package/libs/PanoTagPlugin/utils/doUtil.js +1 -12
- package/libs/PanoTagPlugin/utils/index.js +1 -0
- package/libs/PanoTagPlugin/utils/noTypecheck.js +1 -4
- package/libs/PanoTagPlugin/utils/normalPositionToPositions.js +1 -13
- package/libs/PanoTagPlugin/utils/planeNormal.js +1 -11
- package/libs/PanoTagPlugin/utils/resizeObserver.js +1 -17
- package/libs/PanoTagPlugin/utils/search.js +1 -15
- package/libs/PanoTagPlugin/utils/tagPosition.js +1 -13
- package/libs/PanoTagPlugin/utils/throttle.js +1 -11
- package/libs/base/BasePlugin.js +1 -18
- package/libs/base/BasePluginWithData.js +1 -6
- package/libs/components/PaintBrush/Controller.js +1 -308
- package/libs/components/PaintBrush/Subscribe.js +1 -47
- package/libs/components/PaintBrush/index.js +1 -45
- package/libs/components/PaintBrush/style.js +2 -5
- package/libs/components/PaintBrush/tween.js +1 -11
- package/libs/components/PaintBrush/typings.js +1 -4
- package/libs/components/PaintBrush/utils.js +1 -45
- package/libs/components/index.js +1 -0
- package/libs/floorplan/Assets/camera.js +1 -4
- package/libs/floorplan/Assets/compass.js +1 -4
- package/libs/floorplan/Assets/floorplanExtraObject.js +1 -4
- package/libs/floorplan/Components/BaseImage.js +1 -103
- package/libs/floorplan/Components/Camera.js +1 -62
- package/libs/floorplan/Components/Compass.js +1 -60
- package/libs/floorplan/Components/CurrentFloor.js +1 -246
- package/libs/floorplan/Components/Main.js +1 -264
- package/libs/floorplan/Components/Normalmage.js +1 -37
- package/libs/floorplan/Components/RoomHighlight/Room.js +1 -61
- package/libs/floorplan/Components/RoomHighlight/RoomHighlight.js +1 -121
- package/libs/floorplan/Components/RoomLabels/RoomLabel.js +1 -153
- package/libs/floorplan/Components/RoomLabels/RoomLabels.js +1 -174
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial.js +1 -196
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_0.js +1 -37
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_1.js +1 -39
- package/libs/floorplan/Components/RoomMaterials/RoomMaterial_2.js +1 -37
- package/libs/floorplan/Components/RuleLabels/RuleItem.js +1 -134
- package/libs/floorplan/Components/RuleLabels/RuleLabels.js +1 -139
- package/libs/floorplan/Components/SvgImage.js +2 -39
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +1 -321
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +1 -316
- package/libs/floorplan/ModelFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -85
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +1 -129
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +1 -72
- package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +1 -183
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -164
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +1 -6
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +1 -273
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +1 -6
- package/libs/floorplan/constant.js +1 -4
- package/libs/floorplan/index.js +1 -0
- package/libs/floorplan/typings/floorplanData.js +1 -0
- package/libs/floorplan/typings/floorplanServerData.js +1 -101
- package/libs/floorplan/utils/constant.js +1 -7
- package/libs/floorplan/utils/correctFiveState.js +1 -54
- package/libs/floorplan/utils/formatData.js +1 -104
- package/libs/floorplan/utils/formatPosition.js +1 -35
- package/libs/index.js +1 -92
- package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -152
- package/libs/shared-utils/Object3DHelper/Base/BaseHelper.js +1 -53
- package/libs/shared-utils/Object3DHelper/Constants/color.js +1 -21
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.js +1 -18
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -66
- package/libs/shared-utils/Object3DHelper/Controller/RectangleScaleController.js +1 -109
- package/libs/shared-utils/Object3DHelper/Controller/RotateController.js +1 -134
- package/libs/shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js +1 -79
- package/libs/shared-utils/Object3DHelper/Helper/HTML/tipsDom.js +1 -41
- package/libs/shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js +1 -14
- package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -30
- package/libs/shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js +1 -35
- package/libs/shared-utils/Object3DHelper/Helper/OutlineHelper.js +1 -2
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +1 -137
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +1 -136
- package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/index.js +1 -169
- package/libs/shared-utils/Object3DHelper/typings/Direction.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Hooks.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/Scissor.js +1 -0
- package/libs/shared-utils/Object3DHelper/typings/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/calculateThreeMouse.js +1 -11
- package/libs/shared-utils/Object3DHelper/utils/direction.js +1 -22
- package/libs/shared-utils/Object3DHelper/utils/filterNotColinearPoints.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/getMouseRaycaster.js +1 -14
- package/libs/shared-utils/Object3DHelper/utils/getPoint.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/index.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/normalPositionToPositions.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/object3DBoundingPosition.js +1 -0
- package/libs/shared-utils/Object3DHelper/utils/threex/domevents/index.js +1 -191
- package/libs/shared-utils/Object3DHelper/utils/vectorIsEqual.js +1 -6
- package/libs/shared-utils/Subscribe.js +1 -50
- package/libs/shared-utils/animationFrame/BetterTween.js +1 -26
- package/libs/shared-utils/animationFrame/calculateProgress.js +1 -6
- package/libs/shared-utils/animationFrame/formatRad.js +1 -11
- package/libs/shared-utils/animationFrame/index.js +1 -31
- package/libs/shared-utils/animationFrame/tween.js +1 -30
- package/libs/shared-utils/changeModelCanvasOpacity.js +1 -12
- package/libs/shared-utils/createCanvasTextTexture.js +1 -11
- package/libs/shared-utils/createLine/index.js +1 -9
- package/libs/shared-utils/debounce.js +1 -11
- package/libs/shared-utils/equal.js +1 -54
- package/libs/shared-utils/filter.js +1 -10
- package/libs/shared-utils/five/changeMode.js +1 -39
- package/libs/shared-utils/getPxmm.js +1 -21
- package/libs/shared-utils/index.js +1 -31
- package/libs/shared-utils/isNil.js +1 -10
- package/libs/shared-utils/isTruelyObject.js +1 -6
- package/libs/shared-utils/math/Interval.js +1 -23
- package/libs/shared-utils/math/Rectangle.js +1 -23
- package/libs/shared-utils/math/index.js +1 -0
- package/libs/shared-utils/math/planimetry.js +1 -48
- package/libs/shared-utils/math/rad2Deg.js +1 -6
- package/libs/shared-utils/nearlyEqual.js +1 -6
- package/libs/shared-utils/nextFrame.js +1 -6
- package/libs/shared-utils/noop.js +1 -5
- package/libs/shared-utils/object3d2LocalMatrix.js +1 -19
- package/libs/shared-utils/removeArrayItem.js +1 -8
- package/libs/shared-utils/tap.js +1 -6
- package/libs/shared-utils/three/Assets/index.js +1 -4
- package/libs/shared-utils/three/FivePointSelector.js +1 -49
- package/libs/shared-utils/three/Magnifier.js +1 -104
- package/libs/shared-utils/three/PointDomHelper.js +1 -60
- package/libs/shared-utils/three/PointHelper.js +3 -60
- package/libs/shared-utils/three/getCoords.js +1 -13
- package/libs/shared-utils/three/getIntersect.js +1 -8
- package/libs/shared-utils/three/getRaycaster.js +1 -12
- package/libs/shared-utils/three/index.js +1 -0
- package/libs/shared-utils/three/loadTexture.js +1 -28
- package/libs/shared-utils/three/transformPositionToVector3.js +1 -5
- package/libs/shared-utils/three/transfromToMeshBasicMaterial.js +1 -24
- package/libs/shared-utils/throttle.js +1 -11
- package/libs/shared-utils/tinyEJSrender.js +14 -138
- package/libs/shared-utils/to.js +1 -29
- package/libs/shared-utils/uuid.js +1 -10
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -0
- package/libs/vendor/swiper/components-shared/get-params.js +1 -0
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/params-list.js +1 -0
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -0
- package/libs/vendor/swiper/components-shared/utils.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-slide.js +1 -0
- package/libs/vendor/swiper/svelte/swiper-svelte.js +1 -0
- package/libs/vendor/swiper/svelte/swiper.js +1 -0
- package/package.json +187 -17
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-changed-params.js +0 -29
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/get-params.js +0 -23
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/mount-swiper.js +0 -14
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/params-list.js +0 -120
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/update-swiper.js +0 -36
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/components-shared/utils.js +0 -32
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper-slide.js +0 -182
- package/libs/node_modules/.pnpm/swiper@8.4.4/node_modules/swiper/svelte/swiper.js +0 -254
|
@@ -1,124 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
${t[
|
|
15
|
-
|
|
16
|
-
${t[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
|
|
17
|
-
`), s(i, "width", o(t[3]), !1), s(i, "height", o(t[4]), !1), s(i, "z-index", t[13], !1);
|
|
18
|
-
},
|
|
19
|
-
m(a, r) {
|
|
20
|
-
v(a, i, r), u = !0;
|
|
21
|
-
},
|
|
22
|
-
p(a, r) {
|
|
23
|
-
t = a, (!u || r & 8160 && e !== (e = `
|
|
24
|
-
left:${o(t[5])};
|
|
25
|
-
bottom:${o(t[6])};
|
|
26
|
-
box-shadow: 0 0 ${o(t[10])} ${o(t[11])} rgba(0, 0, 0, ${t[12]});
|
|
27
|
-
${t[8] ? "transform: translateX(-50%); left: 50%" : ""}
|
|
28
|
-
${t[9] ? "transform: translateX(-50%); top: 50%" : ""}
|
|
29
|
-
${t[7] ? "transform: translate(-50%, -50%); left: 50%; top: 50%;" : ""}
|
|
30
|
-
`)) && h(i, "style", e), r & 8 && s(i, "width", o(t[3]), !1), r & 16 && s(i, "height", o(t[4]), !1), r & 8192 && s(i, "z-index", t[13], !1);
|
|
31
|
-
},
|
|
32
|
-
i(a) {
|
|
33
|
-
u || (a && F(() => {
|
|
34
|
-
f && f.end(1), l = G(i, g, { duration: t[0] }), l.start();
|
|
35
|
-
}), u = !0);
|
|
36
|
-
},
|
|
37
|
-
o(a) {
|
|
38
|
-
l && l.invalidate(), a && (f = H(i, g, { duration: t[1] })), u = !1;
|
|
39
|
-
},
|
|
40
|
-
d(a) {
|
|
41
|
-
a && I(i), a && f && f.end();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
function K(t) {
|
|
46
|
-
let i, e = t[2] && k(t);
|
|
47
|
-
return {
|
|
48
|
-
c() {
|
|
49
|
-
e && e.c(), i = j();
|
|
50
|
-
},
|
|
51
|
-
m(l, f) {
|
|
52
|
-
e && e.m(l, f), v(l, i, f);
|
|
53
|
-
},
|
|
54
|
-
p(l, [f]) {
|
|
55
|
-
l[2] ? e ? (e.p(l, f), f & 4 && d(e, 1)) : (e = k(l), e.c(), d(e, 1), e.m(i.parentNode, i)) : e && (A(), R(e, 1, 1, () => {
|
|
56
|
-
e = null;
|
|
57
|
-
}), B());
|
|
58
|
-
},
|
|
59
|
-
i(l) {
|
|
60
|
-
d(e);
|
|
61
|
-
},
|
|
62
|
-
o(l) {
|
|
63
|
-
R(e);
|
|
64
|
-
},
|
|
65
|
-
d(l) {
|
|
66
|
-
e && e.d(l), l && I(i);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
function o(t) {
|
|
71
|
-
return typeof t == "number" ? t / 16 + "rem" : t;
|
|
72
|
-
}
|
|
73
|
-
function L(t, i, e) {
|
|
74
|
-
let { inDelay: l = 1e3 } = i, { outDelay: f = 1e3 } = i, { visible: u = !0 } = i, { width: a = 0 } = i, { height: r = 0 } = i, { left: m = 0 } = i, { bottom: _ = 0 } = i, { center: b = !1 } = i, { horizontalCenter: y = !1 } = i, { verticalCenter: c = !1 } = i, { blurRadius: w } = i, { spreadRadius: z } = i, { opacity: C = 0.15 } = i, { zIndex: D = void 0 } = i;
|
|
75
|
-
return t.$$set = (n) => {
|
|
76
|
-
"inDelay" in n && e(0, l = n.inDelay), "outDelay" in n && e(1, f = n.outDelay), "visible" in n && e(2, u = n.visible), "width" in n && e(3, a = n.width), "height" in n && e(4, r = n.height), "left" in n && e(5, m = n.left), "bottom" in n && e(6, _ = n.bottom), "center" in n && e(7, b = n.center), "horizontalCenter" in n && e(8, y = n.horizontalCenter), "verticalCenter" in n && e(9, c = n.verticalCenter), "blurRadius" in n && e(10, w = n.blurRadius), "spreadRadius" in n && e(11, z = n.spreadRadius), "opacity" in n && e(12, C = n.opacity), "zIndex" in n && e(13, D = n.zIndex);
|
|
77
|
-
}, [
|
|
78
|
-
l,
|
|
79
|
-
f,
|
|
80
|
-
u,
|
|
81
|
-
a,
|
|
82
|
-
r,
|
|
83
|
-
m,
|
|
84
|
-
_,
|
|
85
|
-
b,
|
|
86
|
-
y,
|
|
87
|
-
c,
|
|
88
|
-
w,
|
|
89
|
-
z,
|
|
90
|
-
C,
|
|
91
|
-
D
|
|
92
|
-
];
|
|
93
|
-
}
|
|
94
|
-
class P extends X {
|
|
95
|
-
constructor(i) {
|
|
96
|
-
super(), S(
|
|
97
|
-
this,
|
|
98
|
-
i,
|
|
99
|
-
L,
|
|
100
|
-
K,
|
|
101
|
-
q,
|
|
102
|
-
{
|
|
103
|
-
inDelay: 0,
|
|
104
|
-
outDelay: 1,
|
|
105
|
-
visible: 2,
|
|
106
|
-
width: 3,
|
|
107
|
-
height: 4,
|
|
108
|
-
left: 5,
|
|
109
|
-
bottom: 6,
|
|
110
|
-
center: 7,
|
|
111
|
-
horizontalCenter: 8,
|
|
112
|
-
verticalCenter: 9,
|
|
113
|
-
blurRadius: 10,
|
|
114
|
-
spreadRadius: 11,
|
|
115
|
-
opacity: 12,
|
|
116
|
-
zIndex: 13
|
|
117
|
-
},
|
|
118
|
-
J
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export {
|
|
123
|
-
P as default
|
|
124
|
-
};
|
|
1
|
+
"use strict";const n=require("svelte/internal"),C=require("svelte/transition");function R(t){n.append_styles(t,"svelte-faoauy",".shadow.svelte-faoauy{position:absolute}")}function D(t){let i,e,a,f,u;return{c(){i=n.element("div"),n.attr(i,"class","shadow svelte-faoauy"),n.attr(i,"style",e=`
|
|
2
|
+
left:${s(t[5])};
|
|
3
|
+
bottom:${s(t[6])};
|
|
4
|
+
box-shadow: 0 0 ${s(t[10])} ${s(t[11])} rgba(0, 0, 0, ${t[12]});
|
|
5
|
+
${t[8]?"transform: translateX(-50%); left: 50%":""}
|
|
6
|
+
${t[9]?"transform: translateX(-50%); top: 50%":""}
|
|
7
|
+
${t[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
|
|
8
|
+
`),n.set_style(i,"width",s(t[3]),!1),n.set_style(i,"height",s(t[4]),!1),n.set_style(i,"z-index",t[13],!1)},m(r,o){n.insert(r,i,o),u=!0},p(r,o){t=r,(!u||o&8160&&e!==(e=`
|
|
9
|
+
left:${s(t[5])};
|
|
10
|
+
bottom:${s(t[6])};
|
|
11
|
+
box-shadow: 0 0 ${s(t[10])} ${s(t[11])} rgba(0, 0, 0, ${t[12]});
|
|
12
|
+
${t[8]?"transform: translateX(-50%); left: 50%":""}
|
|
13
|
+
${t[9]?"transform: translateX(-50%); top: 50%":""}
|
|
14
|
+
${t[7]?"transform: translate(-50%, -50%); left: 50%; top: 50%;":""}
|
|
15
|
+
`))&&n.attr(i,"style",e),o&8&&n.set_style(i,"width",s(t[3]),!1),o&16&&n.set_style(i,"height",s(t[4]),!1),o&8192&&n.set_style(i,"z-index",t[13],!1)},i(r){u||(r&&n.add_render_callback(()=>{f&&f.end(1),a=n.create_in_transition(i,C.fade,{duration:t[0]}),a.start()}),u=!0)},o(r){a&&a.invalidate(),r&&(f=n.create_out_transition(i,C.fade,{duration:t[1]})),u=!1},d(r){r&&n.detach(i),r&&f&&f.end()}}}function g(t){let i,e=t[2]&&D(t);return{c(){e&&e.c(),i=n.empty()},m(a,f){e&&e.m(a,f),n.insert(a,i,f)},p(a,[f]){a[2]?e?(e.p(a,f),f&4&&n.transition_in(e,1)):(e=D(a),e.c(),n.transition_in(e,1),e.m(i.parentNode,i)):e&&(n.group_outros(),n.transition_out(e,1,1,()=>{e=null}),n.check_outros())},i(a){n.transition_in(e)},o(a){n.transition_out(e)},d(a){e&&e.d(a),a&&n.detach(i)}}}function s(t){return typeof t=="number"?t/16+"rem":t}function v(t,i,e){let{inDelay:a=1e3}=i,{outDelay:f=1e3}=i,{visible:u=!0}=i,{width:r=0}=i,{height:o=0}=i,{left:d=0}=i,{bottom:_=0}=i,{center:h=!1}=i,{horizontalCenter:b=!1}=i,{verticalCenter:m=!1}=i,{blurRadius:y}=i,{spreadRadius:c}=i,{opacity:w=.15}=i,{zIndex:z=void 0}=i;return t.$$set=l=>{"inDelay"in l&&e(0,a=l.inDelay),"outDelay"in l&&e(1,f=l.outDelay),"visible"in l&&e(2,u=l.visible),"width"in l&&e(3,r=l.width),"height"in l&&e(4,o=l.height),"left"in l&&e(5,d=l.left),"bottom"in l&&e(6,_=l.bottom),"center"in l&&e(7,h=l.center),"horizontalCenter"in l&&e(8,b=l.horizontalCenter),"verticalCenter"in l&&e(9,m=l.verticalCenter),"blurRadius"in l&&e(10,y=l.blurRadius),"spreadRadius"in l&&e(11,c=l.spreadRadius),"opacity"in l&&e(12,w=l.opacity),"zIndex"in l&&e(13,z=l.zIndex)},[a,f,u,r,o,d,_,h,b,m,y,c,w,z]}class k extends n.SvelteComponent{constructor(i){super(),n.init(this,i,v,g,n.safe_not_equal,{inDelay:0,outDelay:1,visible:2,width:3,height:4,left:5,bottom:6,center:7,horizontalCenter:8,verticalCenter:9,blurRadius:10,spreadRadius:11,opacity:12,zIndex:13},R)}}exports.Shadow=k;
|
|
@@ -1,131 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import g from "animejs";
|
|
3
|
-
import { onMount as A } from "svelte";
|
|
4
|
-
import { notNil as B } from "../../../shared-utils/isNil.js";
|
|
5
|
-
import "three";
|
|
6
|
-
import { searchFirstValueSmallThanLastValue as J } from "../../utils/search.js";
|
|
7
|
-
import { RANDON_STRING as E } from "../../utils/constants.js";
|
|
8
|
-
function P(o) {
|
|
9
|
-
L(o, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
10
|
-
}
|
|
11
|
-
function y(o, i, l) {
|
|
12
|
-
const e = o.slice();
|
|
13
|
-
return e[10] = i[l], e[11] = i, e[12] = l, e;
|
|
14
|
-
}
|
|
15
|
-
function b(o) {
|
|
16
|
-
let i, l = o[10] + "", e, t = o[12];
|
|
17
|
-
const s = () => o[6](i, t), n = () => o[6](null, t);
|
|
18
|
-
return {
|
|
19
|
-
c() {
|
|
20
|
-
i = w("span"), e = N(l), S(i, "class", "text-char svelte-1b2n9wi");
|
|
21
|
-
},
|
|
22
|
-
m(r, f) {
|
|
23
|
-
j(r, i, f), O(i, e), s();
|
|
24
|
-
},
|
|
25
|
-
p(r, f) {
|
|
26
|
-
o = r, f & 2 && l !== (l = o[10] + "") && v(e, l), t !== o[12] && (n(), t = o[12], s());
|
|
27
|
-
},
|
|
28
|
-
d(r) {
|
|
29
|
-
r && D(i), n();
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function U(o) {
|
|
34
|
-
let i, l = o[1], e = [];
|
|
35
|
-
for (let t = 0; t < l.length; t += 1)
|
|
36
|
-
e[t] = b(y(o, l, t));
|
|
37
|
-
return {
|
|
38
|
-
c() {
|
|
39
|
-
for (let t = 0; t < e.length; t += 1)
|
|
40
|
-
e[t].c();
|
|
41
|
-
i = T();
|
|
42
|
-
},
|
|
43
|
-
m(t, s) {
|
|
44
|
-
for (let n = 0; n < e.length; n += 1)
|
|
45
|
-
e[n].m(t, s);
|
|
46
|
-
j(t, i, s);
|
|
47
|
-
},
|
|
48
|
-
p(t, [s]) {
|
|
49
|
-
if (s & 3) {
|
|
50
|
-
l = t[1];
|
|
51
|
-
let n;
|
|
52
|
-
for (n = 0; n < l.length; n += 1) {
|
|
53
|
-
const r = y(t, l, n);
|
|
54
|
-
e[n] ? e[n].p(r, s) : (e[n] = b(r), e[n].c(), e[n].m(i.parentNode, i));
|
|
55
|
-
}
|
|
56
|
-
for (; n < e.length; n += 1)
|
|
57
|
-
e[n].d(1);
|
|
58
|
-
e.length = l.length;
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
i: p,
|
|
62
|
-
o: p,
|
|
63
|
-
d(t) {
|
|
64
|
-
k(e, t), t && D(i);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
function V(o, i, l) {
|
|
69
|
-
let e, { inDelay: t = 0 } = i, { outDelay: s = 0 } = i, { content: n } = i, { unfolded: r } = i, f, c = [], u;
|
|
70
|
-
function F(a) {
|
|
71
|
-
clearTimeout(f), f = setTimeout(
|
|
72
|
-
function() {
|
|
73
|
-
!u || (a && u.reversed || !a && !u.reversed) && (u.reverse(), u.play());
|
|
74
|
-
},
|
|
75
|
-
a ? t : s
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
A(function() {
|
|
79
|
-
const a = (() => {
|
|
80
|
-
const m = J((_) => c[_].getBoundingClientRect().x, [Math.min(c.length - 1, 10), Math.min(c.length - 1, 30)]);
|
|
81
|
-
if (m > 0)
|
|
82
|
-
return m;
|
|
83
|
-
})();
|
|
84
|
-
u = g({
|
|
85
|
-
targets: c.filter(B).slice(0, a),
|
|
86
|
-
autoplay: !1,
|
|
87
|
-
duration: 400,
|
|
88
|
-
scale: [0.7, 1],
|
|
89
|
-
rotate: [20, 0],
|
|
90
|
-
opacity: [0, 1],
|
|
91
|
-
translateX: [4, 0],
|
|
92
|
-
translateY: [10, 0],
|
|
93
|
-
delay: g.stagger(50),
|
|
94
|
-
easing: "easeInOutCubic"
|
|
95
|
-
}), r && u.seek(u.duration);
|
|
96
|
-
});
|
|
97
|
-
function I(a, m) {
|
|
98
|
-
C[a ? "unshift" : "push"](() => {
|
|
99
|
-
c[m] = a, l(0, c);
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
return o.$$set = (a) => {
|
|
103
|
-
"inDelay" in a && l(2, t = a.inDelay), "outDelay" in a && l(3, s = a.outDelay), "content" in a && l(4, n = a.content), "unfolded" in a && l(5, r = a.unfolded);
|
|
104
|
-
}, o.$$.update = () => {
|
|
105
|
-
o.$$.dirty & 16 && l(1, e = (() => {
|
|
106
|
-
const a = [], m = 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")), _ = `__EMOJI_SPLIT_${E}__`, h = `__EMOJI_${E}__`;
|
|
107
|
-
return n.slice().replace(m, (d) => `${_}${h}${d}${_}`).split(_).forEach((d) => d.startsWith(h) ? a.push(d.slice(h.length)) : a.push(...d.split(""))), a.filter(Boolean);
|
|
108
|
-
})()), o.$$.dirty & 32 && F(r);
|
|
109
|
-
}, [c, e, t, s, n, r, I];
|
|
110
|
-
}
|
|
111
|
-
class K extends M {
|
|
112
|
-
constructor(i) {
|
|
113
|
-
super(), x(
|
|
114
|
-
this,
|
|
115
|
-
i,
|
|
116
|
-
V,
|
|
117
|
-
U,
|
|
118
|
-
R,
|
|
119
|
-
{
|
|
120
|
-
inDelay: 2,
|
|
121
|
-
outDelay: 3,
|
|
122
|
-
content: 4,
|
|
123
|
-
unfolded: 5
|
|
124
|
-
},
|
|
125
|
-
P
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
export {
|
|
130
|
-
K as default
|
|
131
|
-
};
|
|
1
|
+
"use strict";const o=require("svelte/internal"),I=require("animejs"),F=require("svelte"),N=require("../../../shared-utils/isNil.js");require("three");const T=require("../../utils/search.js"),p=require("../../utils/constants.js"),M=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},E=M(I);function R(e){o.append_styles(e,"svelte-1b2n9wi",".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}")}function y(e,l,s){const t=e.slice();return t[10]=l[s],t[11]=l,t[12]=s,t}function j(e){let l,s=e[10]+"",t,n=e[12];const u=()=>e[6](l,n),i=()=>e[6](null,n);return{c(){l=o.element("span"),t=o.text(s),o.attr(l,"class","text-char svelte-1b2n9wi")},m(r,_){o.insert(r,l,_),o.append(l,t),u()},p(r,_){e=r,_&2&&s!==(s=e[10]+"")&&o.set_data(t,s),n!==e[12]&&(i(),n=e[12],u())},d(r){r&&o.detach(l),i()}}}function q(e){let l,s=e[1],t=[];for(let n=0;n<s.length;n+=1)t[n]=j(y(e,s,n));return{c(){for(let n=0;n<t.length;n+=1)t[n].c();l=o.empty()},m(n,u){for(let i=0;i<t.length;i+=1)t[i].m(n,u);o.insert(n,l,u)},p(n,[u]){if(u&3){s=n[1];let i;for(i=0;i<s.length;i+=1){const r=y(n,s,i);t[i]?t[i].p(r,u):(t[i]=j(r),t[i].c(),t[i].m(l.parentNode,l))}for(;i<t.length;i+=1)t[i].d(1);t.length=s.length}},i:o.noop,o:o.noop,d(n){o.destroy_each(t,n),n&&o.detach(l)}}}function x(e,l,s){let t,{inDelay:n=0}=l,{outDelay:u=0}=l,{content:i}=l,{unfolded:r}=l,_,f=[],c;function D(a){clearTimeout(_),_=setTimeout(function(){!c||(a&&c.reversed||!a&&!c.reversed)&&(c.reverse(),c.play())},a?n:u)}F.onMount(function(){const a=(()=>{const d=T.searchFirstValueSmallThanLastValue(h=>f[h].getBoundingClientRect().x,[Math.min(f.length-1,10),Math.min(f.length-1,30)]);if(d>0)return d})();c=E.default({targets:f.filter(N.notNil).slice(0,a),autoplay:!1,duration:400,scale:[.7,1],rotate:[20,0],opacity:[0,1],translateX:[4,0],translateY:[10,0],delay:E.default.stagger(50),easing:"easeInOutCubic"}),r&&c.seek(c.duration)});function b(a,d){o.binding_callbacks[a?"unshift":"push"](()=>{f[d]=a,s(0,f)})}return e.$$set=a=>{"inDelay"in a&&s(2,n=a.inDelay),"outDelay"in a&&s(3,u=a.outDelay),"content"in a&&s(4,i=a.content),"unfolded"in a&&s(5,r=a.unfolded)},e.$$.update=()=>{e.$$.dirty&16&&s(1,t=(()=>{const a=[],d=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")),h=`__EMOJI_SPLIT_${p.RANDON_STRING}__`,m=`__EMOJI_${p.RANDON_STRING}__`;return i.slice().replace(d,g=>`${h}${m}${g}${h}`).split(h).forEach(g=>g.startsWith(m)?a.push(g.slice(m.length)):a.push(...g.split(""))),a.filter(Boolean)})()),e.$$.dirty&32&&D(r)},[f,t,n,u,i,r,b]}class L extends o.SvelteComponent{constructor(l){super(),o.init(this,l,x,q,o.safe_not_equal,{inDelay:2,outDelay:3,content:4,unfolded:5},R)}}exports.Text=L;
|
|
@@ -1,134 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import ie from "../../../shared-utils/uuid.js";
|
|
3
|
-
import "animejs";
|
|
4
|
-
import "svelte";
|
|
5
|
-
import "three";
|
|
6
|
-
import "../../utils/constants.js";
|
|
7
|
-
import "svelte/transition";
|
|
8
|
-
import "svelte/easing";
|
|
9
|
-
import ne from "../Common/Shadow.js";
|
|
10
|
-
import oe from "../Common/Audio.js";
|
|
11
|
-
import le from "../Common/Line/Straight.js";
|
|
12
|
-
import se from "../Common/MultiLineText.js";
|
|
13
|
-
function re(e) {
|
|
14
|
-
V(e, "svelte-4r8s18", ".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}");
|
|
15
|
-
}
|
|
16
|
-
function H(e) {
|
|
17
|
-
var W, q, L, N;
|
|
18
|
-
let o, l, i, n, s, p, a, f, h, u, $, d, g, C, k, U, R;
|
|
19
|
-
return l = new ne({
|
|
20
|
-
props: {
|
|
21
|
-
visible: e[5],
|
|
22
|
-
left: e[2] / 2 + "px",
|
|
23
|
-
bottom: 12,
|
|
24
|
-
width: 2,
|
|
25
|
-
blurRadius: 120,
|
|
26
|
-
spreadRadius: 60
|
|
27
|
-
}
|
|
28
|
-
}), s = new le({
|
|
29
|
-
props: {
|
|
30
|
-
unfolded: e[5],
|
|
31
|
-
duration: 1e3,
|
|
32
|
-
outDelay: e[4] + 20 * Math.min((q = (W = e[3][0]) == null ? void 0 : W.content.length) != null ? q : 10, 15)
|
|
33
|
-
}
|
|
34
|
-
}), u = new oe({
|
|
35
|
-
props: {
|
|
36
|
-
unfolded: e[5],
|
|
37
|
-
url: e[0].data.audioUrl,
|
|
38
|
-
duration: 1e3,
|
|
39
|
-
outDelay: 20 * Math.min((N = (L = e[3][0]) == null ? void 0 : L.content.length) != null ? N : 10, 15),
|
|
40
|
-
hooksInfo: { tag: e[0] }
|
|
41
|
-
}
|
|
42
|
-
}), g = new se({
|
|
43
|
-
props: {
|
|
44
|
-
visible: e[5],
|
|
45
|
-
textUnfolded: e[1],
|
|
46
|
-
textItems: e[3]
|
|
47
|
-
}
|
|
48
|
-
}), {
|
|
49
|
-
c() {
|
|
50
|
-
o = c("div"), D(l.$$.fragment), i = T(), n = c("div"), D(s.$$.fragment), p = T(), a = c("div"), f = c("div"), h = c("div"), D(u.$$.fragment), $ = T(), d = c("div"), D(g.$$.fragment), b(n, "class", "line svelte-4r8s18"), A(n, "width", e[2] + "px", !1), b(h, "class", "audio-icon svelte-4r8s18"), A(d, "display", "inline-block", !1), b(f, "class", "wrapper svelte-4r8s18"), b(a, "class", "content svelte-4r8s18"), x(() => e[8].call(a)), b(o, "class", "audio-tag svelte-4r8s18"), G(o, "unfolded", e[5]);
|
|
51
|
-
},
|
|
52
|
-
m(t, r) {
|
|
53
|
-
J(t, o, r), I(l, o, null), m(o, i), m(o, n), I(s, n, null), m(o, p), m(o, a), m(a, f), m(f, h), I(u, h, null), m(f, $), m(f, d), I(g, d, null), C = ee(a, e[8].bind(a)), k = !0, U || (R = te(d, "click", e[6]), U = !0);
|
|
54
|
-
},
|
|
55
|
-
p(t, r) {
|
|
56
|
-
var j, B, E, F;
|
|
57
|
-
const y = {};
|
|
58
|
-
r & 32 && (y.visible = t[5]), r & 4 && (y.left = t[2] / 2 + "px"), l.$set(y);
|
|
59
|
-
const S = {};
|
|
60
|
-
r & 32 && (S.unfolded = t[5]), r & 24 && (S.outDelay = t[4] + 20 * Math.min((B = (j = t[3][0]) == null ? void 0 : j.content.length) != null ? B : 10, 15)), s.$set(S), r & 4 && A(n, "width", t[2] + "px", !1);
|
|
61
|
-
const w = {};
|
|
62
|
-
r & 32 && (w.unfolded = t[5]), r & 1 && (w.url = t[0].data.audioUrl), r & 8 && (w.outDelay = 20 * Math.min((F = (E = t[3][0]) == null ? void 0 : E.content.length) != null ? F : 10, 15)), r & 1 && (w.hooksInfo = { tag: t[0] }), u.$set(w);
|
|
63
|
-
const z = {};
|
|
64
|
-
r & 32 && (z.visible = t[5]), r & 2 && (z.textUnfolded = t[1]), r & 8 && (z.textItems = t[3]), g.$set(z), r & 32 && G(o, "unfolded", t[5]);
|
|
65
|
-
},
|
|
66
|
-
i(t) {
|
|
67
|
-
k || (v(l.$$.fragment, t), v(s.$$.fragment, t), v(u.$$.fragment, t), v(g.$$.fragment, t), k = !0);
|
|
68
|
-
},
|
|
69
|
-
o(t) {
|
|
70
|
-
_(l.$$.fragment, t), _(s.$$.fragment, t), _(u.$$.fragment, t), _(g.$$.fragment, t), k = !1;
|
|
71
|
-
},
|
|
72
|
-
d(t) {
|
|
73
|
-
t && K(o), M(l), M(s), M(u), M(g), C(), U = !1, R();
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function ae(e) {
|
|
78
|
-
let o, l, i = e[0].state && H(e);
|
|
79
|
-
return {
|
|
80
|
-
c() {
|
|
81
|
-
i && i.c(), o = X();
|
|
82
|
-
},
|
|
83
|
-
m(n, s) {
|
|
84
|
-
i && i.m(n, s), J(n, o, s), l = !0;
|
|
85
|
-
},
|
|
86
|
-
p(n, [s]) {
|
|
87
|
-
n[0].state ? i ? (i.p(n, s), s & 1 && v(i, 1)) : (i = H(n), i.c(), v(i, 1), i.m(o.parentNode, o)) : i && (Y(), _(i, 1, 1, () => {
|
|
88
|
-
i = null;
|
|
89
|
-
}), Z());
|
|
90
|
-
},
|
|
91
|
-
i(n) {
|
|
92
|
-
l || (v(i), l = !0);
|
|
93
|
-
},
|
|
94
|
-
o(n) {
|
|
95
|
-
_(i), l = !1;
|
|
96
|
-
},
|
|
97
|
-
d(n) {
|
|
98
|
-
i && i.d(n), n && K(o);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function de(e, o, l) {
|
|
103
|
-
let i, n, s, { tag: p } = o, a = !1, f, h = [];
|
|
104
|
-
function u() {
|
|
105
|
-
l(1, a = !a);
|
|
106
|
-
}
|
|
107
|
-
function $() {
|
|
108
|
-
f = this.clientWidth, l(2, f);
|
|
109
|
-
}
|
|
110
|
-
return e.$$set = (d) => {
|
|
111
|
-
"tag" in d && l(0, p = d.tag);
|
|
112
|
-
}, e.$$.update = () => {
|
|
113
|
-
var d;
|
|
114
|
-
e.$$.dirty & 1 && l(5, i = !!((d = p.state) != null && d.unfolded)), e.$$.dirty & 1 && l(7, n = p.data.text), e.$$.dirty & 128 && l(3, h = [{ id: ie(), content: n }]), e.$$.dirty & 2 && l(4, s = a ? 450 : 0);
|
|
115
|
-
}, [
|
|
116
|
-
p,
|
|
117
|
-
a,
|
|
118
|
-
f,
|
|
119
|
-
h,
|
|
120
|
-
s,
|
|
121
|
-
i,
|
|
122
|
-
u,
|
|
123
|
-
n,
|
|
124
|
-
$
|
|
125
|
-
];
|
|
126
|
-
}
|
|
127
|
-
class ke extends O {
|
|
128
|
-
constructor(o) {
|
|
129
|
-
super(), P(this, o, de, ae, Q, { tag: 0 }, re);
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
export {
|
|
133
|
-
ke as default
|
|
134
|
-
};
|
|
1
|
+
"use strict";const e=require("svelte/internal"),D=require("../../../shared-utils/uuid.js");require("animejs");require("svelte");require("three");require("../../utils/constants.js");require("svelte/transition");require("svelte/easing");const I=require("../Common/Shadow.js"),L=require("../Common/Audio.js"),R=require("../Common/Line/Straight.js"),W=require("../Common/MultiLineText.js");function N(t){e.append_styles(t,"svelte-4r8s18",".audio-tag.svelte-4r8s18.svelte-4r8s18{position:absolute;left:0;top:0;width:0;height:0;overflow:visible}.line.svelte-4r8s18.svelte-4r8s18{display:flex;position:absolute;top:0;left:0;width:10.125rem;height:0.0625rem;transform:translate3d(0, -50%, 0.625rem)}.content.svelte-4r8s18.svelte-4r8s18{width:-moz-max-content;width:max-content;height:3.375rem;padding:2.25rem 0.25rem 0 1rem;position:absolute;left:0;bottom:0.125rem;overflow:hidden;box-sizing:border-box;font-size:0;white-space:nowrap;font-weight:600}.wrapper.svelte-4r8s18.svelte-4r8s18{position:relative;width:100%;height:100%}.audio-icon.svelte-4r8s18.svelte-4r8s18{vertical-align:top;display:inline-block;width:1rem;height:1rem;margin-right:0.25rem;margin-top:0.0625rem}.unfolded.svelte-4r8s18 .audio-icon.svelte-4r8s18{pointer-events:auto}")}function A(t){var T,y,P,j;let s,l,i,o,r,p,u,m,_,f,h,d,g,q,v,b,k;return l=new I.Shadow({props:{visible:t[5],left:t[2]/2+"px",bottom:12,width:2,blurRadius:120,spreadRadius:60}}),r=new R.Straight({props:{unfolded:t[5],duration:1e3,outDelay:t[4]+20*Math.min((y=(T=t[3][0])==null?void 0:T.content.length)!=null?y:10,15)}}),f=new L.Audio({props:{unfolded:t[5],url:t[0].data.audioUrl,duration:1e3,outDelay:20*Math.min((j=(P=t[3][0])==null?void 0:P.content.length)!=null?j:10,15),hooksInfo:{tag:t[0]}}}),g=new W.MultiLineText({props:{visible:t[5],textUnfolded:t[1],textItems:t[3]}}),{c(){s=e.element("div"),e.create_component(l.$$.fragment),i=e.space(),o=e.element("div"),e.create_component(r.$$.fragment),p=e.space(),u=e.element("div"),m=e.element("div"),_=e.element("div"),e.create_component(f.$$.fragment),h=e.space(),d=e.element("div"),e.create_component(g.$$.fragment),e.attr(o,"class","line svelte-4r8s18"),e.set_style(o,"width",t[2]+"px",!1),e.attr(_,"class","audio-icon svelte-4r8s18"),e.set_style(d,"display","inline-block",!1),e.attr(m,"class","wrapper svelte-4r8s18"),e.attr(u,"class","content svelte-4r8s18"),e.add_render_callback(()=>t[8].call(u)),e.attr(s,"class","audio-tag svelte-4r8s18"),e.toggle_class(s,"unfolded",t[5])},m(n,a){e.insert(n,s,a),e.mount_component(l,s,null),e.append(s,i),e.append(s,o),e.mount_component(r,o,null),e.append(s,p),e.append(s,u),e.append(u,m),e.append(m,_),e.mount_component(f,_,null),e.append(m,h),e.append(m,d),e.mount_component(g,d,null),q=e.add_resize_listener(u,t[8].bind(u)),v=!0,b||(k=e.listen(d,"click",t[6]),b=!0)},p(n,a){var M,S,z,U;const $={};a&32&&($.visible=n[5]),a&4&&($.left=n[2]/2+"px"),l.$set($);const C={};a&32&&(C.unfolded=n[5]),a&24&&(C.outDelay=n[4]+20*Math.min((S=(M=n[3][0])==null?void 0:M.content.length)!=null?S:10,15)),r.$set(C),a&4&&e.set_style(o,"width",n[2]+"px",!1);const c={};a&32&&(c.unfolded=n[5]),a&1&&(c.url=n[0].data.audioUrl),a&8&&(c.outDelay=20*Math.min((U=(z=n[3][0])==null?void 0:z.content.length)!=null?U:10,15)),a&1&&(c.hooksInfo={tag:n[0]}),f.$set(c);const w={};a&32&&(w.visible=n[5]),a&2&&(w.textUnfolded=n[1]),a&8&&(w.textItems=n[3]),g.$set(w),a&32&&e.toggle_class(s,"unfolded",n[5])},i(n){v||(e.transition_in(l.$$.fragment,n),e.transition_in(r.$$.fragment,n),e.transition_in(f.$$.fragment,n),e.transition_in(g.$$.fragment,n),v=!0)},o(n){e.transition_out(l.$$.fragment,n),e.transition_out(r.$$.fragment,n),e.transition_out(f.$$.fragment,n),e.transition_out(g.$$.fragment,n),v=!1},d(n){n&&e.detach(s),e.destroy_component(l),e.destroy_component(r),e.destroy_component(f),e.destroy_component(g),q(),b=!1,k()}}}function B(t){let s,l,i=t[0].state&&A(t);return{c(){i&&i.c(),s=e.empty()},m(o,r){i&&i.m(o,r),e.insert(o,s,r),l=!0},p(o,[r]){o[0].state?i?(i.p(o,r),r&1&&e.transition_in(i,1)):(i=A(o),i.c(),e.transition_in(i,1),i.m(s.parentNode,s)):i&&(e.group_outros(),e.transition_out(i,1,1,()=>{i=null}),e.check_outros())},i(o){l||(e.transition_in(i),l=!0)},o(o){e.transition_out(i),l=!1},d(o){i&&i.d(o),o&&e.detach(s)}}}function E(t,s,l){let i,o,r,{tag:p}=s,u=!1,m,_=[];function f(){l(1,u=!u)}function h(){m=this.clientWidth,l(2,m)}return t.$$set=d=>{"tag"in d&&l(0,p=d.tag)},t.$$.update=()=>{var d;t.$$.dirty&1&&l(5,i=!!((d=p.state)!=null&&d.unfolded)),t.$$.dirty&1&&l(7,o=p.data.text),t.$$.dirty&128&&l(3,_=[{id:D.uuid(),content:o}]),t.$$.dirty&2&&l(4,r=u?450:0)},[p,u,m,_,r,i,f,o,h]}class F extends e.SvelteComponent{constructor(s){super(),e.init(this,s,E,B,e.safe_not_equal,{tag:0},N)}}exports.AudioTag=F;
|
|
@@ -1,73 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { onMount as y, onDestroy as C } from "svelte";
|
|
3
|
-
function j(i) {
|
|
4
|
-
_(i, "svelte-kzl2aj", ".customElement__container.svelte-kzl2aj{position:relative}");
|
|
5
|
-
}
|
|
6
|
-
function m(i) {
|
|
7
|
-
let l, e = i[0].element + "", n;
|
|
8
|
-
return {
|
|
9
|
-
c() {
|
|
10
|
-
l = new h(!1), n = k(), l.a = n;
|
|
11
|
-
},
|
|
12
|
-
m(t, o) {
|
|
13
|
-
l.m(e, t, o), a(t, n, o);
|
|
14
|
-
},
|
|
15
|
-
p(t, o) {
|
|
16
|
-
o & 1 && e !== (e = t[0].element + "") && l.p(e);
|
|
17
|
-
},
|
|
18
|
-
d(t) {
|
|
19
|
-
t && r(n), t && l.d();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
function z(i) {
|
|
24
|
-
let l, e = typeof i[0].element == "string" && m(i);
|
|
25
|
-
return {
|
|
26
|
-
c() {
|
|
27
|
-
l = g("div"), e && e.c(), v(l, "class", "customElement__container svelte-kzl2aj");
|
|
28
|
-
},
|
|
29
|
-
m(n, t) {
|
|
30
|
-
a(n, l, t), e && e.m(l, null), i[2](l);
|
|
31
|
-
},
|
|
32
|
-
p(n, [t]) {
|
|
33
|
-
typeof n[0].element == "string" ? e ? e.p(n, t) : (e = m(n), e.c(), e.m(l, null)) : e && (e.d(1), e = null);
|
|
34
|
-
},
|
|
35
|
-
i: f,
|
|
36
|
-
o: f,
|
|
37
|
-
d(n) {
|
|
38
|
-
n && r(l), e && e.d(), i[2](null);
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function E(i, l, e) {
|
|
43
|
-
let { tag: n } = l, t, o;
|
|
44
|
-
y(() => {
|
|
45
|
-
if (t) {
|
|
46
|
-
if (n.element instanceof Element) {
|
|
47
|
-
const s = n.element;
|
|
48
|
-
t.appendChild(s), o = () => t == null ? void 0 : t.removeChild(s);
|
|
49
|
-
} else if (typeof n.element == "function") {
|
|
50
|
-
const s = n.element;
|
|
51
|
-
o = s(t);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}), C(() => {
|
|
55
|
-
o == null || o();
|
|
56
|
-
});
|
|
57
|
-
function c(s) {
|
|
58
|
-
b[s ? "unshift" : "push"](() => {
|
|
59
|
-
t = s, e(1, t);
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
return i.$$set = (s) => {
|
|
63
|
-
"tag" in s && e(0, n = s.tag);
|
|
64
|
-
}, [n, t, c];
|
|
65
|
-
}
|
|
66
|
-
class D extends u {
|
|
67
|
-
constructor(l) {
|
|
68
|
-
super(), d(this, l, E, z, p, { tag: 0 }, j);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
export {
|
|
72
|
-
D as default
|
|
73
|
-
};
|
|
1
|
+
"use strict";const i=require("svelte/internal"),f=require("svelte");function c(s){i.append_styles(s,"svelte-kzl2aj",".customElement__container.svelte-kzl2aj{position:relative}")}function r(s){let l,e=s[0].element+"",n;return{c(){l=new i.HtmlTag(!1),n=i.empty(),l.a=n},m(t,o){l.m(e,t,o),i.insert(t,n,o)},p(t,o){o&1&&e!==(e=t[0].element+"")&&l.p(e)},d(t){t&&i.detach(n),t&&l.d()}}}function u(s){let l,e=typeof s[0].element=="string"&&r(s);return{c(){l=i.element("div"),e&&e.c(),i.attr(l,"class","customElement__container svelte-kzl2aj")},m(n,t){i.insert(n,l,t),e&&e.m(l,null),s[2](l)},p(n,[t]){typeof n[0].element=="string"?e?e.p(n,t):(e=r(n),e.c(),e.m(l,null)):e&&(e.d(1),e=null)},i:i.noop,o:i.noop,d(n){n&&i.detach(l),e&&e.d(),s[2](null)}}}function d(s,l,e){let{tag:n}=l,t,o;f.onMount(()=>{if(t){if(n.element instanceof Element){const a=n.element;t.appendChild(a),o=()=>t==null?void 0:t.removeChild(a)}else if(typeof n.element=="function"){const a=n.element;o=a(t)}}}),f.onDestroy(()=>{o==null||o()});function m(a){i.binding_callbacks[a?"unshift":"push"](()=>{t=a,e(1,t)})}return s.$$set=a=>{"tag"in a&&e(0,n=a.tag)},[n,t,m]}class _ extends i.SvelteComponent{constructor(l){super(),i.init(this,l,d,u,i.safe_not_equal,{tag:0},c)}}exports.CustomTag=_;
|