@realsee/dnalogel 2.6.7-dev.4 → 2.6.7-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/dist/index.cjs.js +56 -54
- package/dist/index.js +6432 -5573
- package/dist/index.umd.js +49 -47
- package/docs/classes/CSS3DRender.html +31 -31
- package/docs/classes/CruisePluginController.html +24 -24
- package/docs/classes/Magnifier.html +20 -20
- package/docs/classes/ModelRoomLabelController.html +11 -11
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +15 -15
- package/docs/classes/PanoMeasurePluginLine.html +23 -23
- package/docs/classes/PanoMeasurePluginModel.html +22 -22
- package/docs/classes/PanoMeasurePluginPoint.html +14 -14
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- 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 +18 -18
- package/docs/enums/DIRECTION.html +9 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/DimensionType.html +7 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
- package/docs/enums/PaintBrushTypeEnum.html +8 -8
- package/docs/enums/PointType.html +7 -7
- package/docs/enums/Rotation.html +8 -8
- package/docs/functions/CSS3DRenderPlugin.html +5 -5
- package/docs/functions/CameraMovementPlugin.html +5 -5
- package/docs/functions/CruisePlugin.html +5 -5
- package/docs/functions/GuideLinePlugin.html +5 -5
- package/docs/functions/ItemLabelPlugin.html +5 -5
- package/docs/functions/MapviewFloorplanPlugin.html +5 -5
- package/docs/functions/ModelChassisCompassPlugin.html +5 -5
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -5
- package/docs/functions/ModelFloorplanPlugin.html +5 -5
- package/docs/functions/ModelItemLabelPlugin.html +5 -5
- package/docs/functions/ModelRoomLabelPlugin.html +5 -5
- package/docs/functions/ModelTVVideoPlugin.html +5 -5
- package/docs/functions/ModelViewPlugin.html +5 -5
- package/docs/functions/Object3DHelperPlugin.html +5 -5
- package/docs/functions/PanoCompassPlugin.html +5 -5
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -5
- package/docs/functions/PanoDoorLabelPlugin.html +5 -5
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -5
- package/docs/functions/PanoMeasurePlugin.html +5 -5
- package/docs/functions/PanoRulerPlugin.html +5 -5
- package/docs/functions/PanoRulerProPlugin.html +5 -5
- package/docs/functions/PanoSpatialTagPlugin.html +5 -5
- package/docs/functions/PanoTagPlugin.html +5 -5
- package/docs/functions/TopviewFloorplanPlugin.html +5 -5
- 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 +4 -4
- package/docs/interfaces/AddTagConfig.html +6 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
- package/docs/interfaces/EventMap.html +15 -15
- package/docs/interfaces/FloorplanBounding.html +8 -8
- package/docs/interfaces/FloorplanData.html +10 -10
- package/docs/interfaces/FloorplanEntrance.html +11 -11
- package/docs/interfaces/FloorplanExtraObject.html +10 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
- package/docs/interfaces/FloorplanFloorData.html +9 -9
- package/docs/interfaces/FloorplanImagePosition.html +7 -7
- package/docs/interfaces/FloorplanObserver.html +9 -9
- package/docs/interfaces/FloorplanOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanPosition.html +7 -7
- package/docs/interfaces/FloorplanRoomItem.html +13 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
- package/docs/interfaces/FloorplanServerBounding.html +8 -8
- package/docs/interfaces/FloorplanServerComputedData.html +10 -10
- package/docs/interfaces/FloorplanServerData.html +7 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
- package/docs/interfaces/FloorplanServerEntrance.html +11 -11
- package/docs/interfaces/FloorplanServerFloorData.html +9 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
- package/docs/interfaces/FloorplanServerObserver.html +9 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
- package/docs/interfaces/FloorplanServerPosition.html +7 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
- package/docs/interfaces/HelperOffset.html +8 -8
- package/docs/interfaces/ItemLabelPluginData.html +6 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
- package/docs/interfaces/MinMax.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
- package/docs/interfaces/ModelViewPluginExportType.html +11 -11
- package/docs/interfaces/Object3DHelperState.html +8 -8
- package/docs/interfaces/ObjectHelperControllers.html +9 -9
- package/docs/interfaces/PaintBrushAction.html +12 -12
- package/docs/interfaces/PaintBrushConfigs.html +12 -12
- package/docs/interfaces/PaintBrushState.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
- package/docs/interfaces/PanoMeasureParameterType.html +12 -12
- package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginState.html +8 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
- package/docs/interfaces/Point.html +8 -8
- package/docs/interfaces/Room.html +9 -9
- package/docs/interfaces/RoomInfo.html +7 -7
- package/docs/interfaces/RoomLabel.html +14 -14
- package/docs/interfaces/RoomRules.html +5 -5
- package/docs/interfaces/Rooms.html +5 -5
- package/docs/interfaces/Scissor.html +9 -9
- package/docs/interfaces/State.html +8 -8
- package/docs/interfaces/TagCache.html +12 -12
- package/docs/interfaces/TagConfig.html +10 -10
- package/docs/interfaces/TagIconUrl.html +9 -9
- package/docs/interfaces/Tags.html +9 -9
- package/docs/interfaces/TemporaryState.html +6 -6
- package/docs/interfaces/Util.MagnifierParameter.html +11 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
- package/docs/modules/Util.html +5 -5
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +5 -5
- package/docs/types/AudioAppearance.html +5 -5
- package/docs/types/AudioTagTypeConfigKey.html +5 -5
- package/docs/types/CSS3DRenderExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginExportType.html +5 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
- package/docs/types/ClassFunctionParameters.html +5 -5
- package/docs/types/Color.html +5 -5
- package/docs/types/ContentTypeConfigKey.html +5 -5
- package/docs/types/ContentTypeConfigKeySplit.html +5 -5
- package/docs/types/ContentTypeMap.html +5 -5
- package/docs/types/Create3DDomContainerReturnType.html +5 -5
- package/docs/types/Create3DElementReturnType.html +5 -5
- package/docs/types/CruisePluginExportType.html +5 -5
- package/docs/types/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/LoadTagConfig.html +5 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/MediaData.html +5 -5
- package/docs/types/MediaStore.html +5 -5
- package/docs/types/ModelElement.html +5 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
- package/docs/types/MoveArgs.html +5 -5
- package/docs/types/MoveOpts.html +5 -5
- package/docs/types/Object3DHelperEventMap.html +5 -5
- package/docs/types/ObjectFit.html +5 -5
- package/docs/types/PaintBrushEventMap.html +5 -5
- package/docs/types/PanoCompassPluginData.html +5 -5
- package/docs/types/PanoCompassPluginExportType.html +5 -5
- package/docs/types/PanoCompassPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
- package/docs/types/PanoIndex.html +5 -5
- package/docs/types/PanoMeasurePluginEvent.html +5 -5
- package/docs/types/PanoMeasureReturnType.html +5 -5
- package/docs/types/PanoSpatialTagPluginId.html +5 -5
- package/docs/types/PanoTagPluginExportInterface.html +5 -5
- package/docs/types/PanoTagPluginParamsInterface.html +5 -5
- package/docs/types/PlaneTag.html +5 -5
- package/docs/types/PlaneTagElement.html +5 -5
- package/docs/types/Point2DElement.html +5 -5
- package/docs/types/Point2DTag.html +5 -5
- package/docs/types/Point3DElement.html +5 -5
- package/docs/types/Point3DTag.html +5 -5
- package/docs/types/PointTag.html +5 -5
- package/docs/types/PointTagElement.html +5 -5
- package/docs/types/Position.html +5 -5
- package/docs/types/RotateArgs.html +5 -5
- package/docs/types/RotateOpts.html +5 -5
- package/docs/types/RuleLabelsKey.html +5 -5
- package/docs/types/RuleLabelsValue.html +5 -5
- package/docs/types/StickType.html +5 -5
- package/docs/types/Tag.html +5 -5
- package/docs/types/Tag2D.html +5 -5
- package/docs/types/Tag3D.html +5 -5
- package/docs/types/TagContentType.html +5 -5
- package/docs/types/TagDimensionType.html +5 -5
- package/docs/types/TagElement.html +5 -5
- package/docs/types/TagEvents.html +5 -5
- package/docs/types/TagGLTFObject.html +5 -5
- package/docs/types/TagHooks.html +5 -5
- package/docs/types/TagIconSize.html +5 -5
- package/docs/types/TagId.html +5 -5
- package/docs/types/TagPointType.html +5 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
- package/docs/types/WorkCode.html +5 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
- package/docs/variables/PLUGIN.html +5 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
- package/docs/variables/ROOM_TYPE_MAP.html +5 -5
- package/docs/variables/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/CruisePlugin/Controller.js +26 -26
- package/libs/GuideLinePlugin/Controller.js +43 -43
- package/libs/PanoTagPlugin/Components/Common/Media.js +254 -299
- package/libs/PanoTagPlugin/Components/Common/MediaItem.js +132 -122
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +84 -67
- package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +80 -64
- package/libs/PanoTagPlugin/Components/Tag/index.js +79 -62
- package/libs/PanoTagPlugin/Components/TagContainer.js +92 -75
- package/libs/PanoTagPlugin/Components/TagItem.js +64 -47
- package/libs/PanoTagPlugin/controller/index.js +55 -38
- package/libs/PanoTagPlugin/index.js +35 -18
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
- package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
- package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
- package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
- package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
- package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
- package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
- package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +4 -4
- package/libs/index.js +124 -107
- package/libs/shared-utils/Object3DHelper/Helper/RotateHelper.js +12 -12
- package/libs/vendor/svelte/internal/index.js +176 -162
- package/libs/vendor/svelte-carousel/src/actions/hoverable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/hoverable.js +19 -0
- package/libs/vendor/svelte-carousel/src/actions/hoverable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/event.js +26 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/swipeable/swipeable.js +51 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/event.js +18 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/index.js +1 -0
- package/libs/vendor/svelte-carousel/src/actions/tappable/tappable.js +36 -0
- package/libs/vendor/svelte-carousel/src/components/Arrow/Arrow.js +41 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/Carousel.js +522 -0
- package/libs/vendor/svelte-carousel/src/components/Carousel/createCarousel.js +255 -0
- package/libs/vendor/svelte-carousel/src/components/Dot/Dot.js +42 -0
- package/libs/vendor/svelte-carousel/src/components/Dots/Dots.js +104 -0
- package/libs/vendor/svelte-carousel/src/components/Progress/Progress.js +40 -0
- package/libs/vendor/svelte-carousel/src/direction.js +5 -0
- package/libs/vendor/svelte-carousel/src/main.js +1 -0
- package/libs/vendor/svelte-carousel/src/units.js +7 -0
- package/libs/vendor/svelte-carousel/src/utils/ProgressManager.js +52 -0
- package/libs/vendor/svelte-carousel/src/utils/clones.js +59 -0
- package/libs/vendor/svelte-carousel/src/utils/event.js +12 -0
- package/libs/vendor/svelte-carousel/src/utils/interval.js +4 -0
- package/libs/vendor/svelte-carousel/src/utils/lazy.js +45 -0
- package/libs/vendor/svelte-carousel/src/utils/math.js +11 -0
- package/libs/vendor/svelte-carousel/src/utils/object.js +13 -0
- package/libs/vendor/svelte-carousel/src/utils/page.js +154 -0
- package/libs/vendor/swiper/components-shared/get-changed-params.js +1 -29
- package/libs/vendor/swiper/components-shared/get-params.js +1 -23
- package/libs/vendor/swiper/components-shared/mount-swiper.js +1 -14
- package/libs/vendor/swiper/components-shared/params-list.js +1 -120
- package/libs/vendor/swiper/components-shared/update-swiper.js +1 -36
- package/libs/vendor/swiper/components-shared/utils.js +5 -28
- package/libs/vendor/swiper/svelte/swiper.js +2 -253
- package/package.json +3 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function t(e, n) {
|
|
2
|
+
e.addEventListener("mouseenter", n);
|
|
3
|
+
}
|
|
4
|
+
function r(e, n) {
|
|
5
|
+
e.removeEventListener("mouseenter", n);
|
|
6
|
+
}
|
|
7
|
+
function v(e, n) {
|
|
8
|
+
e.addEventListener("mouseleave", n);
|
|
9
|
+
}
|
|
10
|
+
function o(e, n) {
|
|
11
|
+
e.removeEventListener("mouseleave", n);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
t as addHoverInEventListener,
|
|
15
|
+
v as addHoverOutEventListener,
|
|
16
|
+
r as removeHoverInEventListener,
|
|
17
|
+
o as removeHoverOutEventListener
|
|
18
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { createDispatcher as o } from "../../utils/event.js";
|
|
2
|
+
import { addHoverInEventListener as a, removeHoverInEventListener as i, removeHoverOutEventListener as n, addHoverOutEventListener as u } from "./event.js";
|
|
3
|
+
function h(e) {
|
|
4
|
+
const t = o(e);
|
|
5
|
+
function v() {
|
|
6
|
+
u(e, r), t("hovered", { value: !0 });
|
|
7
|
+
}
|
|
8
|
+
function r() {
|
|
9
|
+
t("hovered", { value: !1 }), n(e, r);
|
|
10
|
+
}
|
|
11
|
+
return a(e, v), {
|
|
12
|
+
destroy() {
|
|
13
|
+
i(e, v), n(e, r);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
h as hoverable
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
e.addEventListener("mousedown", t), e.addEventListener("touchstart", t, { passive: !0 });
|
|
3
|
+
}
|
|
4
|
+
function v(e, t) {
|
|
5
|
+
e.removeEventListener("mousedown", t), e.removeEventListener("touchstart", t);
|
|
6
|
+
}
|
|
7
|
+
function o(e, t) {
|
|
8
|
+
e.addEventListener("mouseup", t), e.addEventListener("touchend", t);
|
|
9
|
+
}
|
|
10
|
+
function r(e, t) {
|
|
11
|
+
e.removeEventListener("mouseup", t), e.removeEventListener("touchend", t);
|
|
12
|
+
}
|
|
13
|
+
function i(e, t) {
|
|
14
|
+
e.addEventListener("mousemove", t), e.addEventListener("touchmove", t);
|
|
15
|
+
}
|
|
16
|
+
function d(e, t) {
|
|
17
|
+
e.removeEventListener("mousemove", t), e.removeEventListener("touchmove", t);
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
o as addEndEventListener,
|
|
21
|
+
i as addMoveEventListener,
|
|
22
|
+
n as addStartEventListener,
|
|
23
|
+
r as removeEndEventListener,
|
|
24
|
+
d as removeMoveEventListener,
|
|
25
|
+
v as removeStartEventListener
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PREV as m, NEXT as x } from "../../direction.js";
|
|
2
|
+
import { addStartEventListener as y, removeStartEventListener as S, addMoveEventListener as D, addEndEventListener as T, removeEndEventListener as h, removeMoveEventListener as E } from "./event.js";
|
|
3
|
+
import { createDispatcher as I } from "../../utils/event.js";
|
|
4
|
+
import { SWIPE_MIN_DURATION_MS as L, SWIPE_MIN_DISTANCE_PX as _ } from "../../units.js";
|
|
5
|
+
function f(e) {
|
|
6
|
+
if ("TouchEvent" in window && e instanceof TouchEvent) {
|
|
7
|
+
const o = e.touches[0];
|
|
8
|
+
return {
|
|
9
|
+
x: o ? o.clientX : 0,
|
|
10
|
+
y: o ? o.clientY : 0
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
return {
|
|
14
|
+
x: e.clientX,
|
|
15
|
+
y: e.clientY
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function b(e, { thresholdProvider: o }) {
|
|
19
|
+
const r = I(e);
|
|
20
|
+
let s, c, n = 0, l, a = !1;
|
|
21
|
+
function v() {
|
|
22
|
+
return Date.now() - l >= L && Math.abs(n) >= _;
|
|
23
|
+
}
|
|
24
|
+
function p(i) {
|
|
25
|
+
l = Date.now(), n = 0, a = !0;
|
|
26
|
+
const t = f(i);
|
|
27
|
+
s = t.x, c = t.y, r("swipeStart", { x: s, y: c }), D(window, w), T(window, u);
|
|
28
|
+
}
|
|
29
|
+
function w(i) {
|
|
30
|
+
if (!a)
|
|
31
|
+
return;
|
|
32
|
+
const t = f(i), d = t.x - s, M = t.y - c;
|
|
33
|
+
s = t.x, c = t.y, r("swipeMove", { x: s, y: c, dx: d, dy: M }), d !== 0 && Math.sign(d) !== Math.sign(n) && (n = 0), n += d, Math.abs(n) > o() && (r("swipeThresholdReached", { direction: n > 0 ? m : x }), h(window, u), E(window, w));
|
|
34
|
+
}
|
|
35
|
+
function u(i) {
|
|
36
|
+
if (h(window, u), E(window, w), a = !1, !v()) {
|
|
37
|
+
r("swipeFailed");
|
|
38
|
+
return;
|
|
39
|
+
}
|
|
40
|
+
const t = f(i);
|
|
41
|
+
r("swipeEnd", { x: t.x, y: t.y });
|
|
42
|
+
}
|
|
43
|
+
return y(e, p), {
|
|
44
|
+
destroy() {
|
|
45
|
+
S(e, p);
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export {
|
|
50
|
+
b as swipeable
|
|
51
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
e.addEventListener("touchstart", t, { passive: !0 });
|
|
3
|
+
}
|
|
4
|
+
function o(e, t) {
|
|
5
|
+
e.removeEventListener("touchstart", t);
|
|
6
|
+
}
|
|
7
|
+
function r(e, t) {
|
|
8
|
+
e.addEventListener("touchend", t);
|
|
9
|
+
}
|
|
10
|
+
function s(e, t) {
|
|
11
|
+
e.removeEventListener("touchend", t);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
n as addFocusinEventListener,
|
|
15
|
+
r as addFocusoutEventListener,
|
|
16
|
+
o as removeFocusinEventListener,
|
|
17
|
+
s as removeFocusoutEventListener
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { createDispatcher as m } from "../../utils/event.js";
|
|
2
|
+
import { getDistance as l } from "../../utils/math.js";
|
|
3
|
+
import { addFocusinEventListener as f, removeFocusinEventListener as h, removeFocusoutEventListener as r, addFocusoutEventListener as T } from "./event.js";
|
|
4
|
+
import { TAP_DURATION_MS as E, TAP_MOVEMENT_PX as v } from "../../units.js";
|
|
5
|
+
function y(e) {
|
|
6
|
+
const s = m(e);
|
|
7
|
+
let a = 0, c = { x: 0, y: 0 };
|
|
8
|
+
function p({
|
|
9
|
+
tapEndedAt: n,
|
|
10
|
+
tapEndedPos: t
|
|
11
|
+
}) {
|
|
12
|
+
const u = n - a, d = l(c, t);
|
|
13
|
+
return u <= E && d <= v;
|
|
14
|
+
}
|
|
15
|
+
function i(n) {
|
|
16
|
+
a = Date.now();
|
|
17
|
+
const t = n.touches[0];
|
|
18
|
+
c = { x: t.clientX, y: t.clientY }, T(e, o);
|
|
19
|
+
}
|
|
20
|
+
function o(n) {
|
|
21
|
+
r(e, o);
|
|
22
|
+
const t = n.changedTouches[0];
|
|
23
|
+
p({
|
|
24
|
+
tapEndedAt: Date.now(),
|
|
25
|
+
tapEndedPos: { x: t.clientX, y: t.clientY }
|
|
26
|
+
}) && s("tapped");
|
|
27
|
+
}
|
|
28
|
+
return f(e, i), {
|
|
29
|
+
destroy() {
|
|
30
|
+
h(e, i), r(e, o);
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
y as tappable
|
|
36
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SvelteComponent as u, init as w, safe_not_equal as b, append_styles as v, element as n, attr as d, toggle_class as c, insert as p, append as h, listen as x, noop as f, detach as g, bubble as m } from "../../../../svelte/internal/index.js";
|
|
2
|
+
import { NEXT as l, PREV as _ } from "../../direction.js";
|
|
3
|
+
function z(a) {
|
|
4
|
+
v(a, "svelte-1bftafx", ":root{--sc-arrow-size:2px}.sc-carousel-arrow__circle.svelte-1bftafx{width:20px;height:20px;border-radius:50%;background-color:var(--sc-color-rgb-light-50p);display:flex;align-items:center;justify-content:center;transition:opacity 100ms ease;cursor:pointer;-webkit-tap-highlight-color:transparent}.sc-carousel-arrow__circle.svelte-1bftafx:hover{opacity:0.9}.sc-carousel-arrow__arrow.svelte-1bftafx{border:solid var(--sc-color-hex-dark);border-width:0 var(--sc-arrow-size) var(--sc-arrow-size) 0;padding:var(--sc-arrow-size);position:relative}.sc-carousel-arrow__arrow-next.svelte-1bftafx{transform:rotate(-45deg);left:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__arrow-prev.svelte-1bftafx{transform:rotate(135deg);right:calc(var(--sc-arrow-size) / -2)}.sc-carousel-arrow__circle_disabled.svelte-1bftafx,.sc-carousel-arrow__circle_disabled.svelte-1bftafx:hover{opacity:0.5}");
|
|
5
|
+
}
|
|
6
|
+
function k(a) {
|
|
7
|
+
let r, o, t, i;
|
|
8
|
+
return {
|
|
9
|
+
c() {
|
|
10
|
+
r = n("button"), o = n("i"), d(o, "class", "sc-carousel-arrow__arrow svelte-1bftafx"), c(o, "sc-carousel-arrow__arrow-next", a[0] === l), c(o, "sc-carousel-arrow__arrow-prev", a[0] === _), d(r, "class", "sc-carousel-button sc-carousel-arrow__circle svelte-1bftafx"), c(r, "sc-carousel-arrow__circle_disabled", a[1]);
|
|
11
|
+
},
|
|
12
|
+
m(s, e) {
|
|
13
|
+
p(s, r, e), h(r, o), t || (i = x(r, "click", a[2]), t = !0);
|
|
14
|
+
},
|
|
15
|
+
p(s, [e]) {
|
|
16
|
+
e & 1 && c(o, "sc-carousel-arrow__arrow-next", s[0] === l), e & 1 && c(o, "sc-carousel-arrow__arrow-prev", s[0] === _), e & 2 && c(r, "sc-carousel-arrow__circle_disabled", s[1]);
|
|
17
|
+
},
|
|
18
|
+
i: f,
|
|
19
|
+
o: f,
|
|
20
|
+
d(s) {
|
|
21
|
+
s && g(r), t = !1, i();
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function y(a, r, o) {
|
|
26
|
+
let { direction: t = l } = r, { disabled: i = !1 } = r;
|
|
27
|
+
function s(e) {
|
|
28
|
+
m.call(this, a, e);
|
|
29
|
+
}
|
|
30
|
+
return a.$$set = (e) => {
|
|
31
|
+
"direction" in e && o(0, t = e.direction), "disabled" in e && o(1, i = e.disabled);
|
|
32
|
+
}, [t, i, s];
|
|
33
|
+
}
|
|
34
|
+
class q extends u {
|
|
35
|
+
constructor(r) {
|
|
36
|
+
super(), w(this, r, y, k, b, { direction: 0, disabled: 1 }, z);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export {
|
|
40
|
+
q as Arrow
|
|
41
|
+
};
|