@realsee/dnalogel 2.3.3 → 2.3.5-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/dist/ModelViewPlugin/Plugin.d.ts +8 -0
- package/dist/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/dist/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
- package/dist/PanoTagPlugin/controller/index.d.ts +14 -12
- package/dist/PanoTagPlugin/index.d.ts +1 -1
- package/dist/PanoTagPlugin/typings/controller.d.ts +12 -11
- package/dist/PanoTagPlugin/typings/index.d.ts +5 -1
- package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
- package/dist/PanoTagPlugin/utils/color.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/dist/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/dist/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +7181 -6311
- package/dist/index.umd.js +43 -43
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +31 -31
- 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 +196 -164
- 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 +75 -35
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +19 -15
- 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/PointType.html +19 -15
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +35 -13
- package/docs/functions/CameraMovementPlugin.html +35 -13
- package/docs/functions/CruisePlugin.html +35 -13
- package/docs/functions/GuideLinePlugin.html +36 -14
- package/docs/functions/ItemLabelPlugin.html +35 -13
- package/docs/functions/MapviewFloorplanPlugin.html +35 -13
- package/docs/functions/ModelChassisCompassPlugin.html +35 -13
- package/docs/functions/ModelEntryDoorGuidePlugin.html +35 -13
- package/docs/functions/ModelFloorplanPlugin.html +35 -13
- package/docs/functions/ModelItemLabelPlugin.html +35 -13
- package/docs/functions/ModelRoomLabelPlugin.html +35 -13
- package/docs/functions/ModelTVVideoPlugin.html +35 -13
- package/docs/functions/ModelViewPlugin.html +35 -13
- package/docs/functions/Object3DHelperPlugin.html +35 -13
- package/docs/functions/PanoCompassPlugin.html +35 -13
- package/docs/functions/PanoCursorRaycasterPlugin.html +35 -13
- package/docs/functions/PanoDoorLabelPlugin.html +35 -13
- package/docs/functions/PanoFloorplanRadarPlugin.html +35 -13
- package/docs/functions/PanoMeasurePlugin.html +35 -13
- package/docs/functions/PanoRulerPlugin.html +35 -13
- package/docs/functions/PanoRulerProPlugin.html +35 -13
- package/docs/functions/PanoSpatialTagPlugin.html +35 -13
- package/docs/functions/PanoTagPlugin.html +41 -23
- package/docs/functions/TopviewFloorplanPlugin.html +35 -13
- 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 +36 -14
- package/docs/index.html +35 -13
- package/docs/interfaces/AddTagConfig.html +64 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +298 -0
- 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/MinMax.html +71 -0
- 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 +57 -9
- 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 +36 -14
- 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 +36 -14
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +36 -14
- 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 +36 -14
- package/docs/interfaces/Rooms.html +36 -14
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +89 -0
- package/docs/interfaces/TagCache.html +92 -0
- package/docs/interfaces/TagConfig.html +15 -19
- package/docs/interfaces/TagIconUrl.html +91 -0
- package/docs/interfaces/Tags.html +14 -12
- package/docs/interfaces/TemporaryState.html +64 -0
- 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 +65 -21
- package/docs/types/ArrayPosition.html +37 -15
- package/docs/types/CSS3DRenderExportType.html +36 -14
- package/docs/types/CSS3DRenderPluginExportType.html +36 -14
- package/docs/types/CSS3DRenderPluginParameterType.html +36 -14
- package/docs/types/Color.html +36 -14
- package/docs/types/ContentTypeConfigKey.html +37 -15
- package/docs/types/ContentTypeMap.html +247 -0
- package/docs/types/Create3DDomContainerReturnType.html +36 -14
- package/docs/types/Create3DElementReturnType.html +36 -14
- package/docs/types/CruisePluginExportType.html +36 -14
- package/docs/types/Direction-1.html +36 -14
- package/docs/types/Direction4.html +36 -14
- package/docs/types/FloorplanRuleLabels.html +36 -14
- package/docs/types/FloorplanServerRuleLabels.html +36 -14
- package/docs/types/GuideLinePluginExportType.html +36 -14
- package/docs/types/HelperEventMap.html +36 -14
- package/docs/types/MapviewFloorplanPluginParameterType.html +36 -14
- package/docs/types/MapviewFloorplanPluginReturnType.html +36 -14
- package/docs/types/MediaData.html +36 -14
- package/docs/types/MediaStore.html +247 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +36 -14
- package/docs/types/ModelFloorplanPluginParameterType.html +36 -14
- package/docs/types/ModelFloorplanPluginReturnType.html +36 -14
- package/docs/types/ModelRoomLabelPluginParameters.html +36 -14
- package/docs/types/ModelRoomLabelPluginReturnType.html +36 -14
- package/docs/types/MoveArgs.html +36 -14
- package/docs/types/MoveOpts.html +36 -14
- package/docs/types/Object3DHelperEventMap.html +36 -14
- package/docs/types/ObjectFit.html +36 -14
- package/docs/types/PaintBrushEventMap.html +36 -14
- package/docs/types/PanoCompassPluginData.html +36 -14
- package/docs/types/PanoCompassPluginExportType.html +36 -14
- package/docs/types/PanoCompassPluginParameterType.html +36 -14
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +36 -14
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +36 -14
- package/docs/types/PanoIndex.html +247 -0
- package/docs/types/PanoMeasurePluginEvent.html +36 -14
- package/docs/types/PanoMeasureReturnType.html +36 -14
- package/docs/types/PanoSpatialTagPluginId.html +36 -14
- package/docs/types/PanoTagPluginExportInterface.html +36 -14
- package/docs/types/PanoTagPluginParamsInterface.html +36 -14
- package/docs/types/PlaneTag.html +39 -19
- package/docs/types/PlaneTagElement.html +252 -0
- package/docs/types/Point2DElement.html +252 -0
- package/docs/types/Point2DTag.html +254 -0
- package/docs/types/Point3DElement.html +252 -0
- package/docs/types/Point3DTag.html +254 -0
- package/docs/types/PointTag.html +39 -23
- package/docs/types/PointTagElement.html +252 -0
- package/docs/types/Position.html +36 -14
- package/docs/types/RotateArgs.html +36 -14
- package/docs/types/RotateOpts.html +36 -14
- package/docs/types/RuleLabelsKey.html +36 -14
- package/docs/types/RuleLabelsValue.html +36 -14
- package/docs/types/StickType.html +247 -0
- package/docs/types/Tag.html +40 -22
- package/docs/types/Tag2D.html +41 -20
- package/docs/types/Tag3D.html +41 -20
- package/docs/types/TagContentType.html +247 -0
- package/docs/types/TagDimensionType.html +247 -0
- package/docs/types/TagElement.html +254 -0
- package/docs/types/TagEvents.html +282 -0
- package/docs/types/TagHooks.html +247 -0
- package/docs/types/TagIconSize.html +250 -0
- package/docs/types/TagId.html +36 -14
- package/docs/types/TagPointType.html +250 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +36 -14
- package/docs/types/TopviewFloorplanPluginReturnType.html +36 -14
- package/docs/types/{ContentTypeConfigKeyArray.html → WorkCode.html} +39 -17
- package/docs/variables/FLOOR_TYPE_MAP.html +36 -14
- package/docs/variables/PLUGIN.html +36 -14
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +36 -14
- package/docs/variables/ROOM_TYPE_MAP.html +36 -14
- package/docs/variables/VERSION.html +36 -14
- package/docs/variables/itemLabelPluginServerParams.html +36 -14
- package/docs/variables/modelItemLabelPluginServerParams.html +36 -14
- package/docs/variables/modelRoomLabelPluginServerParams.html +36 -14
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
- package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +2 -2
- package/libs/ModelViewPlugin/Plugin.d.ts +8 -0
- package/libs/ModelViewPlugin/Plugin.js +83 -73
- package/libs/PanoTagPlugin/Assets/Icon.d.ts +3 -2
- package/libs/PanoTagPlugin/Assets/Icon.js +4 -3
- package/libs/PanoTagPlugin/Components/Common/Audio.js +138 -133
- package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +173 -0
- package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +108 -0
- package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +32 -32
- package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +79 -57
- package/libs/PanoTagPlugin/Components/Common/Media.js +212 -194
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +109 -80
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +78 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +135 -0
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +147 -0
- package/libs/PanoTagPlugin/Components/Common/Text/MText.js +166 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +209 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +204 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +100 -130
- package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +49 -98
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +47 -44
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +122 -0
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +98 -0
- package/libs/PanoTagPlugin/Components/Tag/index.js +130 -133
- package/libs/PanoTagPlugin/Components/TagContainer.js +89 -105
- package/libs/PanoTagPlugin/Components/TagItem.js +139 -0
- package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +1 -2
- package/libs/PanoTagPlugin/controller/TagComputer.d.ts +15 -14
- package/libs/PanoTagPlugin/controller/TagComputer.js +168 -151
- package/libs/PanoTagPlugin/controller/index.d.ts +14 -12
- package/libs/PanoTagPlugin/controller/index.js +128 -133
- package/libs/PanoTagPlugin/index.d.ts +1 -1
- package/libs/PanoTagPlugin/index.js +31 -20
- package/libs/PanoTagPlugin/tag.config.js +23 -16
- package/libs/PanoTagPlugin/typings/controller.d.ts +12 -11
- package/libs/PanoTagPlugin/typings/index.d.ts +5 -1
- package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +53 -0
- package/libs/PanoTagPlugin/typings/tag/Tag.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +88 -0
- package/libs/PanoTagPlugin/typings/tag/TagConfig.js +1 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +155 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.js +4 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +50 -0
- package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -0
- package/libs/PanoTagPlugin/utils/color.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/color.js +17 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +16 -0
- package/libs/PanoTagPlugin/utils/getImageInfo.js +50 -0
- package/libs/PanoTagPlugin/utils/px2rem.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/px2rem.js +6 -0
- package/libs/PanoTagPlugin/utils/tag/format.d.ts +2 -0
- package/libs/PanoTagPlugin/utils/tag/format.js +10 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -0
- package/libs/PanoTagPlugin/utils/tag/tagCheck.js +10 -0
- package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
- package/libs/PanoTagPlugin/utils/timeToString.d.ts +1 -0
- package/libs/PanoTagPlugin/utils/timeToString.js +7 -0
- package/libs/index.js +112 -101
- package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +17 -20
- package/libs/vendor/svelte/internal/index.js +381 -341
- package/package.json +17 -16
- package/dist/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/docs/enums/LinkType.html +0 -67
- package/docs/interfaces/ContentTypeMap.html +0 -212
- package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +0 -170
- package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +0 -50
- package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +0 -166
- package/libs/PanoTagPlugin/Components/Common/Text.js +0 -130
- package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +0 -131
- package/libs/PanoTagPlugin/Components/Tag/TextTag.js +0 -122
- package/libs/PanoTagPlugin/Components/TagWrapper.js +0 -152
- package/libs/PanoTagPlugin/typings/tag.d.ts +0 -247
- package/libs/PanoTagPlugin/typings/tag.js +0 -7
|
@@ -1,139 +1,168 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import {
|
|
3
|
-
function
|
|
4
|
-
U(
|
|
1
|
+
import { SvelteComponent as z, init as F, safe_not_equal as O, append_styles as U, empty as W, insert as y, noop as w, detach as p, getContext as B, element as g, attr as f, binding_callbacks as T, space as V, src_url_equal as b, toggle_class as _, set_style as q, append as P, listen as I, run_all as A } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Image_Play_Icon_With_Text as J, Image_Play_Icon as M } from "../../Assets/Icon.js";
|
|
3
|
+
function R(l) {
|
|
4
|
+
U(l, "svelte-q6hk4f", ".media-item.svelte-q6hk4f.svelte-q6hk4f{height:100%}.media-content.svelte-q6hk4f.svelte-q6hk4f{width:100%;height:100%;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:inherit;object-fit:inherit}.video-icon.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem;max-width:60%;max-height:60%;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%)}.video-play-button-container.svelte-q6hk4f.svelte-q6hk4f{display:none;pointer-events:auto;position:absolute;width:100%;height:100%;top:0;left:0;transform:translate3d(0, 0, 0)}.video-play-button-container.showPlayButton.svelte-q6hk4f.svelte-q6hk4f{display:block}.video-icon.large.svelte-q6hk4f.svelte-q6hk4f{width:12.5rem;height:6.25rem}.video-icon.small.svelte-q6hk4f.svelte-q6hk4f{width:1.75rem;height:1.75rem}.video-icon.svelte-q6hk4f .video-icon-img.svelte-q6hk4f{width:100%;height:100%;background-position:center center;background-size:contain;background-repeat:no-repeat}.video-icon.svelte-q6hk4f .video-icon-img.canPlay.svelte-q6hk4f{cursor:pointer}");
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function S(l) {
|
|
7
7
|
let e;
|
|
8
|
-
function
|
|
9
|
-
if (s[
|
|
10
|
-
return
|
|
11
|
-
if (s[
|
|
12
|
-
return
|
|
8
|
+
function i(s, d) {
|
|
9
|
+
if (s[1].type === "Image")
|
|
10
|
+
return D;
|
|
11
|
+
if (s[1].type === "Video")
|
|
12
|
+
return X;
|
|
13
13
|
}
|
|
14
|
-
let n =
|
|
14
|
+
let n = i(l), t = n && n(l);
|
|
15
15
|
return {
|
|
16
16
|
c() {
|
|
17
|
-
e =
|
|
17
|
+
e = g("div"), t && t.c(), f(e, "class", "media-item svelte-q6hk4f");
|
|
18
18
|
},
|
|
19
|
-
m(s,
|
|
20
|
-
|
|
19
|
+
m(s, d) {
|
|
20
|
+
y(s, e, d), t && t.m(e, null);
|
|
21
21
|
},
|
|
22
|
-
p(s,
|
|
23
|
-
n === (n =
|
|
22
|
+
p(s, d) {
|
|
23
|
+
n === (n = i(s)) && t ? t.p(s, d) : (t && t.d(1), t = n && n(s), t && (t.c(), t.m(e, null)));
|
|
24
24
|
},
|
|
25
25
|
d(s) {
|
|
26
|
-
s &&
|
|
26
|
+
s && p(e), t && t.d();
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
let e,
|
|
30
|
+
function X(l) {
|
|
31
|
+
let e, i, n, t, s, d, m, v, c, o, k;
|
|
32
32
|
return {
|
|
33
33
|
c() {
|
|
34
|
-
var
|
|
35
|
-
e =
|
|
34
|
+
var a;
|
|
35
|
+
e = g("video"), d = V(), m = g("div"), v = g("div"), c = g("div"), f(e, "class", "media-content svelte-q6hk4f"), f(e, "style", i = `object-fit: ${l[5]};`), b(e.src, n = l[1].url + "#t=0.1") || f(e, "src", n), f(e, "poster", t = (a = l[1].videoCoverUrl) != null ? a : void 0), f(e, "preload", s = l[1].videoCoverUrl ? void 0 : "auto"), e.playsInline = !0, f(e, "paused", ""), e.muted = !0, e.loop = !1, f(e, "crossorigin", ""), e.controls = !1, _(e, "showPlayButton", l[7]), q(e, "position", "relative"), f(c, "class", "video-icon-img svelte-q6hk4f"), q(c, "background-image", "url(" + l[13]() + ")"), _(c, "canPlay", l[4]), f(v, "class", "video-icon svelte-q6hk4f"), _(v, "large", l[3] === "large"), _(v, "small", l[3] === "small"), f(m, "class", "video-play-button-container svelte-q6hk4f"), _(m, "showPlayButton", l[7]);
|
|
36
36
|
},
|
|
37
|
-
m(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
],
|
|
37
|
+
m(a, u) {
|
|
38
|
+
y(a, e, u), l[12](e), y(a, d, u), y(a, m, u), P(m, v), P(v, c), o || (k = [
|
|
39
|
+
I(e, "click", l[11]),
|
|
40
|
+
I(c, "click", l[14])
|
|
41
|
+
], o = !0);
|
|
42
42
|
},
|
|
43
|
-
p(
|
|
43
|
+
p(a, u) {
|
|
44
44
|
var h;
|
|
45
|
-
|
|
45
|
+
u & 32 && i !== (i = `object-fit: ${a[5]};`) && f(e, "style", i), u & 2 && !b(e.src, n = a[1].url + "#t=0.1") && f(e, "src", n), u & 2 && t !== (t = (h = a[1].videoCoverUrl) != null ? h : void 0) && f(e, "poster", t), u & 2 && s !== (s = a[1].videoCoverUrl ? void 0 : "auto") && f(e, "preload", s), u & 128 && _(e, "showPlayButton", a[7]), u & 4 && q(c, "background-image", "url(" + a[13]() + ")"), u & 16 && _(c, "canPlay", a[4]), u & 8 && _(v, "large", a[3] === "large"), u & 8 && _(v, "small", a[3] === "small"), u & 128 && _(m, "showPlayButton", a[7]);
|
|
46
46
|
},
|
|
47
|
-
d(
|
|
48
|
-
|
|
47
|
+
d(a) {
|
|
48
|
+
a && p(e), l[12](null), a && p(d), a && p(m), o = !1, A(k);
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
53
|
-
let e,
|
|
52
|
+
function D(l) {
|
|
53
|
+
let e, i, n, t;
|
|
54
54
|
return {
|
|
55
55
|
c() {
|
|
56
|
-
e =
|
|
56
|
+
e = g("img"), f(e, "class", "media-content svelte-q6hk4f"), f(e, "style", i = `object-fit: ${l[5]};`), b(e.src, n = l[1].url) || f(e, "src", n), f(e, "alt", t = l[1].name);
|
|
57
57
|
},
|
|
58
|
-
m(s,
|
|
59
|
-
|
|
58
|
+
m(s, d) {
|
|
59
|
+
y(s, e, d);
|
|
60
60
|
},
|
|
61
|
-
p(s,
|
|
62
|
-
|
|
61
|
+
p(s, d) {
|
|
62
|
+
d & 32 && i !== (i = `object-fit: ${s[5]};`) && f(e, "style", i), d & 2 && !b(e.src, n = s[1].url) && f(e, "src", n), d & 2 && t !== (t = s[1].name) && f(e, "alt", t);
|
|
63
63
|
},
|
|
64
64
|
d(s) {
|
|
65
|
-
s &&
|
|
65
|
+
s && p(e);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
function
|
|
70
|
-
let e,
|
|
69
|
+
function G(l) {
|
|
70
|
+
let e, i = l[1] && S(l);
|
|
71
71
|
return {
|
|
72
72
|
c() {
|
|
73
|
-
|
|
73
|
+
i && i.c(), e = W();
|
|
74
74
|
},
|
|
75
|
-
m(n,
|
|
76
|
-
|
|
75
|
+
m(n, t) {
|
|
76
|
+
i && i.m(n, t), y(n, e, t);
|
|
77
77
|
},
|
|
78
|
-
p(n, [
|
|
79
|
-
n[
|
|
78
|
+
p(n, [t]) {
|
|
79
|
+
n[1] ? i ? i.p(n, t) : (i = S(n), i.c(), i.m(e.parentNode, e)) : i && (i.d(1), i = null);
|
|
80
80
|
},
|
|
81
|
-
i:
|
|
82
|
-
o:
|
|
81
|
+
i: w,
|
|
82
|
+
o: w,
|
|
83
83
|
d(n) {
|
|
84
|
-
|
|
84
|
+
i && i.d(n), n && p(e);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
let {
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
88
|
+
function H(l, e, i) {
|
|
89
|
+
let { tag: n } = e, { media: t } = e, { playButtonIfNeed: s = "withoutText" } = e, { playButtonSizeIfNeed: d = "small" } = e, { canPlay: m = !0 } = e, { objectFit: v = "cover" } = e, c = (t == null ? void 0 : t.type) === "Video" && Boolean(t == null ? void 0 : t.videoCoverUrl), o, k = !1;
|
|
90
|
+
const a = B("mediaStore"), u = B("hooks"), h = () => {
|
|
91
|
+
c || (o == null || o.play(), o == null || o.pause(), i(10, c = !0));
|
|
92
|
+
};
|
|
93
|
+
u.on("loadVideoFirstFrame", h);
|
|
94
|
+
const C = (r) => {
|
|
95
|
+
o && (o.pause(), u.emit("playStateChange", {
|
|
96
|
+
event: r,
|
|
97
|
+
state: "paused",
|
|
98
|
+
tag: n,
|
|
99
|
+
mediaInstance: o
|
|
100
|
+
}));
|
|
101
|
+
};
|
|
102
|
+
function L(r) {
|
|
103
|
+
T[r ? "unshift" : "push"](() => {
|
|
104
|
+
o = r, i(6, o);
|
|
94
105
|
});
|
|
95
106
|
}
|
|
96
|
-
const
|
|
97
|
-
!
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
o.$$.dirty & 16 && u && (t(5, v = u.paused), u.addEventListener("play", () => {
|
|
103
|
-
t(5, v = !1);
|
|
104
|
-
}), u.addEventListener("pause", () => {
|
|
105
|
-
t(5, v = !0);
|
|
107
|
+
const j = () => s === "withText" ? J : s === "withoutText" ? M : s, E = (r) => {
|
|
108
|
+
!m || o && (i(6, o.muted = !1, o), o.play(), a.set({ currentMediaElement: o }), u.emit("playStateChange", {
|
|
109
|
+
event: r,
|
|
110
|
+
state: "playing",
|
|
111
|
+
tag: n,
|
|
112
|
+
mediaInstance: o
|
|
106
113
|
}));
|
|
114
|
+
};
|
|
115
|
+
return l.$$set = (r) => {
|
|
116
|
+
"tag" in r && i(0, n = r.tag), "media" in r && i(1, t = r.media), "playButtonIfNeed" in r && i(2, s = r.playButtonIfNeed), "playButtonSizeIfNeed" in r && i(3, d = r.playButtonSizeIfNeed), "canPlay" in r && i(4, m = r.canPlay), "objectFit" in r && i(5, v = r.objectFit);
|
|
117
|
+
}, l.$$.update = () => {
|
|
118
|
+
if (l.$$.dirty & 64 && o && (i(7, k = o.paused), o.addEventListener("play", () => {
|
|
119
|
+
i(7, k = !1);
|
|
120
|
+
}), o.addEventListener("pause", () => {
|
|
121
|
+
i(7, k = !0);
|
|
122
|
+
}), a.subscribe(({ currentMediaElement: r }) => {
|
|
123
|
+
r !== o && (o == null || o.pause());
|
|
124
|
+
})), l.$$.dirty & 1090 && (t == null ? void 0 : t.type) === "Video" && !c) {
|
|
125
|
+
const r = navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1, N = navigator.userAgent.toLowerCase().indexOf("iphone") !== -1 && r;
|
|
126
|
+
o && N && o.paused && (document.removeEventListener("WeixinJSBridgeReady", h), document.removeEventListener("touchstart", h), document.removeEventListener("click", h), document.addEventListener("WeixinJSBridgeReady", h), document.addEventListener("touchstart", h), document.addEventListener("click", h));
|
|
127
|
+
}
|
|
107
128
|
}, [
|
|
108
129
|
n,
|
|
109
|
-
|
|
130
|
+
t,
|
|
110
131
|
s,
|
|
111
|
-
|
|
112
|
-
|
|
132
|
+
d,
|
|
133
|
+
m,
|
|
113
134
|
v,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
135
|
+
o,
|
|
136
|
+
k,
|
|
137
|
+
a,
|
|
138
|
+
u,
|
|
139
|
+
c,
|
|
140
|
+
C,
|
|
141
|
+
L,
|
|
142
|
+
j,
|
|
143
|
+
E
|
|
117
144
|
];
|
|
118
145
|
}
|
|
119
|
-
class
|
|
146
|
+
class Z extends z {
|
|
120
147
|
constructor(e) {
|
|
121
|
-
super(),
|
|
148
|
+
super(), F(
|
|
122
149
|
this,
|
|
123
150
|
e,
|
|
151
|
+
H,
|
|
124
152
|
G,
|
|
125
|
-
|
|
126
|
-
F,
|
|
153
|
+
O,
|
|
127
154
|
{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
155
|
+
tag: 0,
|
|
156
|
+
media: 1,
|
|
157
|
+
playButtonIfNeed: 2,
|
|
158
|
+
playButtonSizeIfNeed: 3,
|
|
159
|
+
canPlay: 4,
|
|
160
|
+
objectFit: 5
|
|
132
161
|
},
|
|
133
|
-
|
|
162
|
+
R
|
|
134
163
|
);
|
|
135
164
|
}
|
|
136
165
|
}
|
|
137
166
|
export {
|
|
138
|
-
|
|
167
|
+
Z as MediaItem
|
|
139
168
|
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { SvelteComponent as q, init as A, safe_not_equal as F, append_styles as M, element as w, space as $, create_component as C, attr as _, set_style as u, toggle_class as b, insert as U, append as f, mount_component as D, listen as B, transition_in as I, transition_out as R, detach as E, destroy_component as j, getContext as G } from "../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { Shadow as H } from "./Shadow.js";
|
|
3
|
+
import { Icon as J } from "./Icon/Icon.js";
|
|
4
|
+
import { Image_Default_Point as K } from "../../Assets/Icon.js";
|
|
5
|
+
import { px2rem as y } from "../../utils/px2rem.js";
|
|
6
|
+
function L(o) {
|
|
7
|
+
M(o, "svelte-u8kmhd", '@charset "UTF-8";.click-helper.svelte-u8kmhd.svelte-u8kmhd{position:absolute;pointer-events:auto;cursor:pointer;width:2.5rem;height:2.5rem;left:50%;top:50%;transform:translate(-50%, -50%)}.tag-point-wrapper.svelte-u8kmhd.svelte-u8kmhd{pointer-events:none;position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);z-index:-1}.tag-folded-point.svelte-u8kmhd.svelte-u8kmhd,.tag-unfolded-point.svelte-u8kmhd.svelte-u8kmhd{transition:all 0.5s}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;border-radius:50%}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:after{content:"";position:absolute;width:0.3125rem;height:0.3125rem;border-radius:50%;background-color:white}.tag-point-wrapper.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd:before{content:"";position:absolute;width:0.875rem;height:0.875rem;border-radius:50%;background-color:rgba(0, 0, 0, 0.2)}.tag-point-wrapper.folded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:1}.tag-point-wrapper.folded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:0}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-folded-point.svelte-u8kmhd{opacity:0;scale:0.2}.tag-point-wrapper.unfolded.svelte-u8kmhd .tag-unfolded-point.svelte-u8kmhd{opacity:1;scale:1}');
|
|
8
|
+
}
|
|
9
|
+
function N(o) {
|
|
10
|
+
let t, s, p, l, h, a, c, n, r, d, g, k;
|
|
11
|
+
return l = new H({
|
|
12
|
+
props: {
|
|
13
|
+
center: !0,
|
|
14
|
+
blurRadius: 12,
|
|
15
|
+
spreadRadius: 5
|
|
16
|
+
}
|
|
17
|
+
}), r = new J({
|
|
18
|
+
props: {
|
|
19
|
+
icon: o[2],
|
|
20
|
+
width: o[1]
|
|
21
|
+
}
|
|
22
|
+
}), {
|
|
23
|
+
c() {
|
|
24
|
+
t = w("div"), s = w("div"), p = $(), C(l.$$.fragment), h = $(), a = w("div"), c = $(), n = w("div"), C(r.$$.fragment), _(s, "class", "click-helper svelte-u8kmhd"), _(a, "class", "tag-unfolded-point svelte-u8kmhd"), u(a, "transition-delay", (o[3] ? T : 0) + "ms"), _(n, "class", "tag-folded-point svelte-u8kmhd"), u(n, "transition-delay", (o[3] ? T : 0) + "ms"), _(t, "class", "tag-point-wrapper svelte-u8kmhd"), b(t, "unfolded", o[0]), b(t, "folded", o[3]), u(t, "width", y(o[1])), u(t, "height", y(o[1]));
|
|
25
|
+
},
|
|
26
|
+
m(e, i) {
|
|
27
|
+
U(e, t, i), f(t, s), f(t, p), D(l, t, null), f(t, h), f(t, a), f(t, c), f(t, n), D(r, n, null), d = !0, g || (k = B(s, "click", o[4]), g = !0);
|
|
28
|
+
},
|
|
29
|
+
p(e, [i]) {
|
|
30
|
+
i & 8 && u(a, "transition-delay", (e[3] ? T : 0) + "ms");
|
|
31
|
+
const m = {};
|
|
32
|
+
i & 4 && (m.icon = e[2]), i & 2 && (m.width = e[1]), r.$set(m), i & 8 && u(n, "transition-delay", (e[3] ? T : 0) + "ms"), (!d || i & 1) && b(t, "unfolded", e[0]), (!d || i & 8) && b(t, "folded", e[3]), i & 2 && u(t, "width", y(e[1])), i & 2 && u(t, "height", y(e[1]));
|
|
33
|
+
},
|
|
34
|
+
i(e) {
|
|
35
|
+
d || (I(l.$$.fragment, e), I(r.$$.fragment, e), d = !0);
|
|
36
|
+
},
|
|
37
|
+
o(e) {
|
|
38
|
+
R(l.$$.fragment, e), R(r.$$.fragment, e), d = !1;
|
|
39
|
+
},
|
|
40
|
+
d(e) {
|
|
41
|
+
e && E(t), j(l), j(r), g = !1, k();
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
const T = 800;
|
|
46
|
+
function O(o, t, s) {
|
|
47
|
+
let p, l, h, a;
|
|
48
|
+
const c = G("hooks");
|
|
49
|
+
let { tag: n } = t, r, d = !1;
|
|
50
|
+
const g = () => {
|
|
51
|
+
r !== void 0 && clearTimeout(r), d = !0, r = setTimeout(
|
|
52
|
+
() => {
|
|
53
|
+
d = !1;
|
|
54
|
+
},
|
|
55
|
+
800
|
|
56
|
+
);
|
|
57
|
+
}, k = (e) => {
|
|
58
|
+
d || c.emit("click", { event: e, target: "TagPoint", tag: n });
|
|
59
|
+
};
|
|
60
|
+
return o.$$set = (e) => {
|
|
61
|
+
"tag" in e && s(5, n = e.tag);
|
|
62
|
+
}, o.$$.update = () => {
|
|
63
|
+
var e, i, m;
|
|
64
|
+
o.$$.dirty & 32 && s(0, p = (e = n.state) == null ? void 0 : e.unfolded), o.$$.dirty & 1 && s(3, l = !p), o.$$.dirty & 32 && s(2, h = (m = (i = n.style) == null ? void 0 : i.point) != null ? m : { url: K }), o.$$.dirty & 32 && s(1, a = (() => {
|
|
65
|
+
var P, S, z;
|
|
66
|
+
const v = (z = (S = (P = n.style) == null ? void 0 : P.point) == null ? void 0 : S.size) != null ? z : "S";
|
|
67
|
+
return typeof v == "number" ? v : v === "S" ? 20 : v === "M" ? 24 : 20;
|
|
68
|
+
})());
|
|
69
|
+
}, g(), [p, a, h, l, k, n];
|
|
70
|
+
}
|
|
71
|
+
class Z extends q {
|
|
72
|
+
constructor(t) {
|
|
73
|
+
super(), A(this, t, O, N, F, { tag: 5 }, L);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
Z as TagPoint
|
|
78
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { SvelteComponent as T, init as C, safe_not_equal as F, append_styles as Y, space as q, empty as A, insert as d, transition_in as m, group_outros as h, transition_out as a, check_outros as v, detach as p, element as z, create_component as H, attr as D, set_style as y, mount_component as U, destroy_component as N, binding_callbacks as B } from "../../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { FlyText as M } from "./FlyText.js";
|
|
3
|
+
import { Arrow as j } from "../Arrow.js";
|
|
4
|
+
import { doUtil as G } from "../../../utils/doUtil.js";
|
|
5
|
+
function I(o) {
|
|
6
|
+
Y(o, "svelte-1fuzm7v", ".text.svelte-1fuzm7v{pointer-events:auto;box-sizing:border-box;display:inline-block;max-width:7.5rem;transition:transform 400ms ease-in-out;font-size:0.75rem;line-height:1.125rem;white-space:initial;cursor:pointer}.arrow.svelte-1fuzm7v{pointer-events:auto;display:inline-block;vertical-align:top;width:0.875rem;height:0.875rem;margin-left:0.125rem;margin-top:0.125rem}");
|
|
7
|
+
}
|
|
8
|
+
function w(o) {
|
|
9
|
+
let r, t, l;
|
|
10
|
+
return t = new M({
|
|
11
|
+
props: {
|
|
12
|
+
unfolded: o[0],
|
|
13
|
+
content: o[1],
|
|
14
|
+
inDelay: 500,
|
|
15
|
+
outDelay: o[5]
|
|
16
|
+
}
|
|
17
|
+
}), {
|
|
18
|
+
c() {
|
|
19
|
+
r = z("div"), H(t.$$.fragment), D(r, "class", "text svelte-1fuzm7v"), y(r, "transform", o[7]);
|
|
20
|
+
},
|
|
21
|
+
m(e, i) {
|
|
22
|
+
d(e, r, i), U(t, r, null), o[10](r), l = !0;
|
|
23
|
+
},
|
|
24
|
+
p(e, i) {
|
|
25
|
+
const n = {};
|
|
26
|
+
i & 1 && (n.unfolded = e[0]), i & 2 && (n.content = e[1]), i & 32 && (n.outDelay = e[5]), t.$set(n), i & 128 && y(r, "transform", e[7]);
|
|
27
|
+
},
|
|
28
|
+
i(e) {
|
|
29
|
+
l || (m(t.$$.fragment, e), l = !0);
|
|
30
|
+
},
|
|
31
|
+
o(e) {
|
|
32
|
+
a(t.$$.fragment, e), l = !1;
|
|
33
|
+
},
|
|
34
|
+
d(e) {
|
|
35
|
+
e && p(r), N(t), o[10](null);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function k(o) {
|
|
40
|
+
let r, t, l;
|
|
41
|
+
return t = new j({
|
|
42
|
+
props: {
|
|
43
|
+
direction: o[6],
|
|
44
|
+
visible: o[0],
|
|
45
|
+
inDelay: 600,
|
|
46
|
+
duration: 1e3
|
|
47
|
+
}
|
|
48
|
+
}), {
|
|
49
|
+
c() {
|
|
50
|
+
r = z("div"), H(t.$$.fragment), D(r, "class", "arrow svelte-1fuzm7v");
|
|
51
|
+
},
|
|
52
|
+
m(e, i) {
|
|
53
|
+
d(e, r, i), U(t, r, null), l = !0;
|
|
54
|
+
},
|
|
55
|
+
p(e, i) {
|
|
56
|
+
const n = {};
|
|
57
|
+
i & 64 && (n.direction = e[6]), i & 1 && (n.visible = e[0]), t.$set(n);
|
|
58
|
+
},
|
|
59
|
+
i(e) {
|
|
60
|
+
l || (m(t.$$.fragment, e), l = !0);
|
|
61
|
+
},
|
|
62
|
+
o(e) {
|
|
63
|
+
a(t.$$.fragment, e), l = !1;
|
|
64
|
+
},
|
|
65
|
+
d(e) {
|
|
66
|
+
e && p(r), N(t);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function J(o) {
|
|
71
|
+
let r, t, l, e = o[1] && w(o), i = o[3] < o[4] && k(o);
|
|
72
|
+
return {
|
|
73
|
+
c() {
|
|
74
|
+
e && e.c(), r = q(), i && i.c(), t = A();
|
|
75
|
+
},
|
|
76
|
+
m(n, f) {
|
|
77
|
+
e && e.m(n, f), d(n, r, f), i && i.m(n, f), d(n, t, f), l = !0;
|
|
78
|
+
},
|
|
79
|
+
p(n, [f]) {
|
|
80
|
+
n[1] ? e ? (e.p(n, f), f & 2 && m(e, 1)) : (e = w(n), e.c(), m(e, 1), e.m(r.parentNode, r)) : e && (h(), a(e, 1, 1, () => {
|
|
81
|
+
e = null;
|
|
82
|
+
}), v()), n[3] < n[4] ? i ? (i.p(n, f), f & 24 && m(i, 1)) : (i = k(n), i.c(), m(i, 1), i.m(t.parentNode, t)) : i && (h(), a(i, 1, 1, () => {
|
|
83
|
+
i = null;
|
|
84
|
+
}), v());
|
|
85
|
+
},
|
|
86
|
+
i(n) {
|
|
87
|
+
l || (m(e), m(i), l = !0);
|
|
88
|
+
},
|
|
89
|
+
o(n) {
|
|
90
|
+
a(e), a(i), l = !1;
|
|
91
|
+
},
|
|
92
|
+
d(n) {
|
|
93
|
+
e && e.d(n), n && p(r), i && i.d(n), n && p(t);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function K(o, r, t) {
|
|
98
|
+
let l, e, i, { visible: n = !1 } = r, { textUnfolded: f = !1 } = r, { content: _ } = r, u, g = 0, b = 0, c = 0;
|
|
99
|
+
function S(s) {
|
|
100
|
+
B[s ? "unshift" : "push"](() => {
|
|
101
|
+
u = s, t(2, u);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
return o.$$set = (s) => {
|
|
105
|
+
"visible" in s && t(0, n = s.visible), "textUnfolded" in s && t(8, f = s.textUnfolded), "content" in s && t(1, _ = s.content);
|
|
106
|
+
}, o.$$.update = () => {
|
|
107
|
+
if (o.$$.dirty & 7 && u && n && _) {
|
|
108
|
+
const { lineHeight: s } = getComputedStyle(u);
|
|
109
|
+
t(4, c = u.offsetHeight), G(() => u == null ? void 0 : u.offsetHeight, Boolean).then(() => {
|
|
110
|
+
t(4, c = u.offsetHeight);
|
|
111
|
+
}), t(3, b = Number(s.replace("px", "")));
|
|
112
|
+
}
|
|
113
|
+
o.$$.dirty & 280 && t(9, g = f ? b - c : 0), o.$$.dirty & 512 && t(7, l = `translateY(${g}px)`), o.$$.dirty & 256 && t(6, e = f ? "left" : "right"), o.$$.dirty & 256 && t(5, i = f ? 450 : 0);
|
|
114
|
+
}, [
|
|
115
|
+
n,
|
|
116
|
+
_,
|
|
117
|
+
u,
|
|
118
|
+
b,
|
|
119
|
+
c,
|
|
120
|
+
i,
|
|
121
|
+
e,
|
|
122
|
+
l,
|
|
123
|
+
f,
|
|
124
|
+
g,
|
|
125
|
+
S
|
|
126
|
+
];
|
|
127
|
+
}
|
|
128
|
+
class R extends T {
|
|
129
|
+
constructor(r) {
|
|
130
|
+
super(), C(this, r, K, J, F, { visible: 0, textUnfolded: 8, content: 1 }, I);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
export {
|
|
134
|
+
R as FlyMText
|
|
135
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { SvelteComponent as N, init as S, safe_not_equal as C, append_styles as L, empty as O, insert as I, update_keyed_each as w, destroy_block as z, noop as y, detach as U, element as J, text as P, attr as V, append as q, set_data as v, binding_callbacks as B } from "../../../../vendor/svelte/internal/index.js";
|
|
2
|
+
import E from "animejs";
|
|
3
|
+
import { uuid as F } from "../../../../shared-utils/uuid.js";
|
|
4
|
+
import { notNil as G } from "../../../../shared-utils/isNil.js";
|
|
5
|
+
import "three";
|
|
6
|
+
import { searchFirstValueSmallThanLastValue as W } from "../../../utils/search.js";
|
|
7
|
+
import { RANDON_STRING as k } from "../../../utils/constants.js";
|
|
8
|
+
function X(r) {
|
|
9
|
+
L(r, "svelte-zgfkts", ".text-char.svelte-zgfkts{text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
10
|
+
}
|
|
11
|
+
function j(r, e, i) {
|
|
12
|
+
const l = r.slice();
|
|
13
|
+
return l[14] = e[i].id, l[0] = e[i].content, l[15] = e, l[16] = i, l;
|
|
14
|
+
}
|
|
15
|
+
function D(r, e) {
|
|
16
|
+
let i, l = e[0] + "", s, u = e[16];
|
|
17
|
+
const t = () => e[7](i, u), o = () => e[7](null, u);
|
|
18
|
+
return {
|
|
19
|
+
key: r,
|
|
20
|
+
first: null,
|
|
21
|
+
c() {
|
|
22
|
+
i = J("span"), s = P(l), V(i, "class", "text-char svelte-zgfkts"), this.first = i;
|
|
23
|
+
},
|
|
24
|
+
m(a, d) {
|
|
25
|
+
I(a, i, d), q(i, s), t();
|
|
26
|
+
},
|
|
27
|
+
p(a, d) {
|
|
28
|
+
e = a, d & 4 && l !== (l = e[0] + "") && v(s, l), u !== e[16] && (o(), u = e[16], t());
|
|
29
|
+
},
|
|
30
|
+
d(a) {
|
|
31
|
+
a && U(i), o();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function Y(r) {
|
|
36
|
+
let e = [], i = /* @__PURE__ */ new Map(), l, s = r[2];
|
|
37
|
+
const u = (t) => t[14];
|
|
38
|
+
for (let t = 0; t < s.length; t += 1) {
|
|
39
|
+
let o = j(r, s, t), a = u(o);
|
|
40
|
+
i.set(a, e[t] = D(a, o));
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
c() {
|
|
44
|
+
for (let t = 0; t < e.length; t += 1)
|
|
45
|
+
e[t].c();
|
|
46
|
+
l = O();
|
|
47
|
+
},
|
|
48
|
+
m(t, o) {
|
|
49
|
+
for (let a = 0; a < e.length; a += 1)
|
|
50
|
+
e[a].m(t, o);
|
|
51
|
+
I(t, l, o);
|
|
52
|
+
},
|
|
53
|
+
p(t, [o]) {
|
|
54
|
+
o & 6 && (s = t[2], e = w(e, o, u, 1, t, s, i, l.parentNode, z, D, l, j));
|
|
55
|
+
},
|
|
56
|
+
i: y,
|
|
57
|
+
o: y,
|
|
58
|
+
d(t) {
|
|
59
|
+
for (let o = 0; o < e.length; o += 1)
|
|
60
|
+
e[o].d(t);
|
|
61
|
+
t && U(l);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
function H(r, e, i) {
|
|
66
|
+
let l, { inDelay: s = 0 } = e, { outDelay: u = 0 } = e, { content: t } = e, { unfolded: o } = e, { isFistUnfoldedUpdate: a = !0 } = e, d, c, h = [];
|
|
67
|
+
function M(n) {
|
|
68
|
+
const f = [], g = 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_${k}__`, p = `__EMOJI_${k}__`;
|
|
69
|
+
return n.slice().replace(g, (m) => `${_}${p}${m}${_}`).split(_).forEach((m) => m.startsWith(p) ? f.push({
|
|
70
|
+
id: F(),
|
|
71
|
+
content: m.slice(p.length)
|
|
72
|
+
}) : f.push(...m.split("").map((A) => ({ id: F(), content: A })))), f;
|
|
73
|
+
}
|
|
74
|
+
function b() {
|
|
75
|
+
if (!c)
|
|
76
|
+
return;
|
|
77
|
+
const n = !o;
|
|
78
|
+
c.reversed !== n && c.reverse(), c.play();
|
|
79
|
+
}
|
|
80
|
+
function R(n) {
|
|
81
|
+
if (a) {
|
|
82
|
+
i(3, a = !1);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
clearTimeout(d), d = setTimeout(b, n ? s : u);
|
|
86
|
+
}
|
|
87
|
+
function x(n) {
|
|
88
|
+
const f = function() {
|
|
89
|
+
const g = W((_) => n[_].getBoundingClientRect().x, [Math.min(n.length - 1, 10), Math.min(n.length - 1, 30)]);
|
|
90
|
+
if (g > 0)
|
|
91
|
+
return g;
|
|
92
|
+
}();
|
|
93
|
+
c = E({
|
|
94
|
+
targets: n.slice(0, f).filter(G),
|
|
95
|
+
autoplay: !1,
|
|
96
|
+
duration: 400,
|
|
97
|
+
scale: [0.7, 1],
|
|
98
|
+
rotate: [20, 0],
|
|
99
|
+
opacity: [0, 1],
|
|
100
|
+
translateX: [4, 0],
|
|
101
|
+
translateY: [10, 0],
|
|
102
|
+
delay: E.stagger(50),
|
|
103
|
+
easing: "easeInOutCubic"
|
|
104
|
+
}), o && c.seek(c.duration);
|
|
105
|
+
}
|
|
106
|
+
function T(n, f) {
|
|
107
|
+
B[n ? "unshift" : "push"](() => {
|
|
108
|
+
h[f] = n, i(1, h);
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
return r.$$set = (n) => {
|
|
112
|
+
"inDelay" in n && i(4, s = n.inDelay), "outDelay" in n && i(5, u = n.outDelay), "content" in n && i(0, t = n.content), "unfolded" in n && i(6, o = n.unfolded), "isFistUnfoldedUpdate" in n && i(3, a = n.isFistUnfoldedUpdate);
|
|
113
|
+
}, r.$$.update = () => {
|
|
114
|
+
r.$$.dirty & 1 && i(2, l = M(t)), r.$$.dirty & 64 && R(o), r.$$.dirty & 2 && x(h.filter((n) => !!n));
|
|
115
|
+
}, [
|
|
116
|
+
t,
|
|
117
|
+
h,
|
|
118
|
+
l,
|
|
119
|
+
a,
|
|
120
|
+
s,
|
|
121
|
+
u,
|
|
122
|
+
o,
|
|
123
|
+
T
|
|
124
|
+
];
|
|
125
|
+
}
|
|
126
|
+
class ie extends N {
|
|
127
|
+
constructor(e) {
|
|
128
|
+
super(), S(
|
|
129
|
+
this,
|
|
130
|
+
e,
|
|
131
|
+
H,
|
|
132
|
+
Y,
|
|
133
|
+
C,
|
|
134
|
+
{
|
|
135
|
+
inDelay: 4,
|
|
136
|
+
outDelay: 5,
|
|
137
|
+
content: 0,
|
|
138
|
+
unfolded: 6,
|
|
139
|
+
isFistUnfoldedUpdate: 3
|
|
140
|
+
},
|
|
141
|
+
X
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export {
|
|
146
|
+
ie as FlyText
|
|
147
|
+
};
|