@realsee/dnalogel 3.59.13 → 3.60.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/CHANGELOG.md +4 -0
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +1 -1
- package/dist/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +1 -1
- package/dist/index.cjs.js +82 -76
- package/dist/index.js +17048 -12726
- package/dist/index.umd.js +75 -69
- package/dist/shared-utils/CSS3DRender/CSS3DObject.d.ts +1 -1
- package/dist/shared-utils/CSS3DRender/CSS3DRenderer.d.ts +1 -1
- package/dist/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +1 -1
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoModelUnderMouse.html +1 -1
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/AreaMakerPlugin/Controller.js +5 -6
- package/libs/AreaMakerPlugin/index.js +5 -6
- package/libs/AreaMakerPlugin/utils/Item.js +5 -6
- package/libs/CSS3DRenderPlugin/Controller.js +5 -6
- package/libs/CSS3DRenderPlugin/index.js +8 -9
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +13 -14
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +5 -6
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.d.ts +1 -1
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DSprite.js +6 -5
- package/libs/CruisePlugin/BaseController.js +7 -8
- package/libs/CruisePlugin/Move.js +5 -6
- package/libs/CruisePlugin/Work.js +5 -6
- package/libs/CruisePlugin/index.js +9 -10
- package/libs/CurrentPanoImagePlugin/Controller.js +5 -6
- package/libs/CurrentPanoImagePlugin/index.js +6 -7
- package/libs/GuideLinePlugin/Controller.js +7 -8
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -6
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +2 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -6
- package/libs/GuideLinePlugin/index.js +9 -10
- package/libs/ModelChassisCompassPlugin/Plugin.js +45 -42
- package/libs/ModelChassisCompassPlugin/index.js +4 -1
- package/libs/ModelEntryDoorGuidePlugin/Plugin.js +23 -20
- package/libs/ModelEntryDoorGuidePlugin/index.js +4 -1
- package/libs/ModelMakerPlugin/Controller.js +6 -7
- package/libs/ModelMakerPlugin/index.js +6 -7
- package/libs/ModelMakerPlugin/item/prismItem.js +5 -6
- package/libs/ModelTVVideoPlugin/Plugin.js +6 -7
- package/libs/ModelTVVideoPlugin/index.js +5 -6
- package/libs/Object3DHelperPlugin/Controller.js +18 -19
- package/libs/Object3DHelperPlugin/index.js +8 -9
- package/libs/PanoCompassPlugin/Controller.js +5 -6
- package/libs/PanoCompassPlugin/index.js +6 -7
- package/libs/PanoDoorLabelPlugin/Controller.js +5 -6
- package/libs/PanoDoorLabelPlugin/index.js +6 -7
- package/libs/PanoMeasurePlugin/Components/Controller0.js +6 -7
- package/libs/PanoMeasurePlugin/Components/Controller1.js +6 -7
- package/libs/PanoMeasurePlugin/Controller/EditController.js +6 -7
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +1 -1
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +16 -17
- package/libs/PanoMeasurePlugin/Controller/index.js +6 -7
- package/libs/PanoMeasurePlugin/Model/area.js +6 -7
- package/libs/PanoMeasurePlugin/Model/polygon.js +1 -1
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +3 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +13 -14
- package/libs/PanoMeasurePlugin/index.js +17 -18
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +5 -6
- package/libs/PanoRulerProPlugin/Controller.js +16 -17
- package/libs/PanoRulerProPlugin/RulerItems.js +5 -6
- package/libs/PanoRulerProPlugin/index.js +6 -7
- package/libs/PanoSpatialTagPlugin/Plugin.js +66 -67
- package/libs/PanoSpatialTagPlugin/index.js +3 -4
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +5 -6
- package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +1 -1
- package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +5 -6
- package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/index.js +60 -61
- package/libs/PanoTagPlugin/Components/TagContainer.js +5 -6
- package/libs/PanoTagPlugin/Components/TagItem.js +5 -6
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +5 -6
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +5 -6
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +18 -19
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +5 -6
- package/libs/PanoTagPlugin/controller/TagRender.js +5 -6
- package/libs/PanoTagPlugin/controller/TagUtil.js +5 -6
- package/libs/PanoTagPlugin/controller/index.js +43 -44
- package/libs/PanoTagPlugin/index.js +14 -15
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +5 -6
- package/libs/PanoVideoPlugin/Controller.js +5 -6
- package/libs/PanoVideoPlugin/VideoMeshController.js +9 -10
- package/libs/PanoVideoPlugin/index.js +8 -9
- package/libs/PipelinePlugin/Controller.js +19 -20
- package/libs/PipelinePlugin/index.js +6 -7
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +5 -6
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +5 -6
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +3 -4
- package/libs/Sculpt/Meshes/Circle.js +3 -3
- package/libs/Sculpt/Meshes/Cylinder.js +3 -3
- package/libs/Sculpt/Meshes/Line.js +3 -3
- package/libs/Sculpt/Meshes/LineWithDots.js +3 -3
- package/libs/Sculpt/Meshes/Point.js +3 -3
- package/libs/Sculpt/Meshes/Polygon.js +3 -3
- package/libs/Sculpt/Meshes/Rectangle.js +3 -3
- package/libs/Sculpt/Objects/Line/Editor.js +3 -3
- package/libs/Sculpt/index.js +3 -3
- package/libs/Sculpt/utils/three/ColoredMesh.js +3 -3
- package/libs/base/BasePlugin.js +4 -4
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +5 -6
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +6 -7
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +18 -19
- package/libs/floorplan/ModelFloorplanPlugin/index.js +6 -7
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +14 -15
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +6 -7
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +5 -6
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +6 -7
- package/libs/floorplan/index.js +3 -3
- package/libs/index.js +151 -149
- package/libs/shared-utils/CSS3DRender/CSS3DObject.d.ts +1 -1
- package/libs/shared-utils/CSS3DRender/CSS3DObject.js +8 -8
- package/libs/shared-utils/CSS3DRender/CSS3DRenderer.d.ts +1 -1
- package/libs/shared-utils/CSS3DRender/CSS3DRenderer.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/CSS3DScaleController.d.ts +1 -1
- package/libs/shared-utils/five/index.js +3 -3
- package/libs/shared-utils/five/lookObject.js +3 -3
- package/libs/shared-utils/index.js +3 -3
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/CSS3DRenderer/index.js +90 -0
- package/libs/shared-utils/three/FBXLoader/index.js +1493 -0
- package/libs/shared-utils/three/Magnifier.js +5 -5
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +1 -1
- package/libs/shared-utils/three/blink.js +1 -1
- package/libs/shared-utils/three/earcut3D.js +3 -3
- package/libs/shared-utils/three/index.js +3 -3
- package/libs/shared-utils/three/libs/NURBSCurve.js +22 -0
- package/libs/shared-utils/three/libs/NURBSUtils.js +212 -0
- package/libs/shared-utils/three/libs/inflate.js +282 -0
- package/libs/vendor/animejs/lib/anime.es.js +863 -0
- package/libs/vendor/earcut/src/earcut.js +280 -0
- package/libs/vendor/hammerjs/hammer.js +1189 -0
- package/package.json +5 -5
- package/libs/shared-utils/CSS3DRender/THREEJS_CSS3DRenderer/index.js +0 -74
|
@@ -0,0 +1,1189 @@
|
|
|
1
|
+
var Qt = {}, He = {
|
|
2
|
+
get exports() {
|
|
3
|
+
return Qt;
|
|
4
|
+
},
|
|
5
|
+
set exports(k) {
|
|
6
|
+
Qt = k;
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
/*! Hammer.JS - v2.0.7 - 2016-04-22
|
|
10
|
+
* http://hammerjs.github.io/
|
|
11
|
+
*
|
|
12
|
+
* Copyright (c) 2016 Jorik Tangelder;
|
|
13
|
+
* Licensed under the MIT license */
|
|
14
|
+
(function(k) {
|
|
15
|
+
(function(u, yt, jt, l) {
|
|
16
|
+
var Pt = ["", "webkit", "Moz", "MS", "ms", "o"], Kt = yt.createElement("div"), $t = "function", L = Math.round, S = Math.abs, ot = Date.now;
|
|
17
|
+
function ht(t, e, i) {
|
|
18
|
+
return setTimeout(lt(t, i), e);
|
|
19
|
+
}
|
|
20
|
+
function x(t, e, i) {
|
|
21
|
+
return Array.isArray(t) ? (P(t, i[e], i), !0) : !1;
|
|
22
|
+
}
|
|
23
|
+
function P(t, e, i) {
|
|
24
|
+
var r;
|
|
25
|
+
if (t)
|
|
26
|
+
if (t.forEach)
|
|
27
|
+
t.forEach(e, i);
|
|
28
|
+
else if (t.length !== l)
|
|
29
|
+
for (r = 0; r < t.length; )
|
|
30
|
+
e.call(i, t[r], r, t), r++;
|
|
31
|
+
else
|
|
32
|
+
for (r in t)
|
|
33
|
+
t.hasOwnProperty(r) && e.call(i, t[r], r, t);
|
|
34
|
+
}
|
|
35
|
+
function Nt(t, e, i) {
|
|
36
|
+
var r = "DEPRECATED METHOD: " + e + `
|
|
37
|
+
` + i + ` AT
|
|
38
|
+
`;
|
|
39
|
+
return function() {
|
|
40
|
+
var n = new Error("get-stack-trace"), s = n && n.stack ? n.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", a = u.console && (u.console.warn || u.console.log);
|
|
41
|
+
return a && a.call(u.console, r, s), t.apply(this, arguments);
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
var g;
|
|
45
|
+
typeof Object.assign != "function" ? g = function(e) {
|
|
46
|
+
if (e === l || e === null)
|
|
47
|
+
throw new TypeError("Cannot convert undefined or null to object");
|
|
48
|
+
for (var i = Object(e), r = 1; r < arguments.length; r++) {
|
|
49
|
+
var n = arguments[r];
|
|
50
|
+
if (n !== l && n !== null)
|
|
51
|
+
for (var s in n)
|
|
52
|
+
n.hasOwnProperty(s) && (i[s] = n[s]);
|
|
53
|
+
}
|
|
54
|
+
return i;
|
|
55
|
+
} : g = Object.assign;
|
|
56
|
+
var Ot = Nt(function(e, i, r) {
|
|
57
|
+
for (var n = Object.keys(i), s = 0; s < n.length; )
|
|
58
|
+
(!r || r && e[n[s]] === l) && (e[n[s]] = i[n[s]]), s++;
|
|
59
|
+
return e;
|
|
60
|
+
}, "extend", "Use `assign`."), te = Nt(function(e, i) {
|
|
61
|
+
return Ot(e, i, !0);
|
|
62
|
+
}, "merge", "Use `assign`.");
|
|
63
|
+
function T(t, e, i) {
|
|
64
|
+
var r = e.prototype, n;
|
|
65
|
+
n = t.prototype = Object.create(r), n.constructor = t, n._super = r, i && g(n, i);
|
|
66
|
+
}
|
|
67
|
+
function lt(t, e) {
|
|
68
|
+
return function() {
|
|
69
|
+
return t.apply(e, arguments);
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
function ct(t, e) {
|
|
73
|
+
return typeof t == $t ? t.apply(e && e[0] || l, e) : t;
|
|
74
|
+
}
|
|
75
|
+
function At(t, e) {
|
|
76
|
+
return t === l ? e : t;
|
|
77
|
+
}
|
|
78
|
+
function z(t, e, i) {
|
|
79
|
+
P(B(e), function(r) {
|
|
80
|
+
t.addEventListener(r, i, !1);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
function Z(t, e, i) {
|
|
84
|
+
P(B(e), function(r) {
|
|
85
|
+
t.removeEventListener(r, i, !1);
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
function Ct(t, e) {
|
|
89
|
+
for (; t; ) {
|
|
90
|
+
if (t == e)
|
|
91
|
+
return !0;
|
|
92
|
+
t = t.parentNode;
|
|
93
|
+
}
|
|
94
|
+
return !1;
|
|
95
|
+
}
|
|
96
|
+
function D(t, e) {
|
|
97
|
+
return t.indexOf(e) > -1;
|
|
98
|
+
}
|
|
99
|
+
function B(t) {
|
|
100
|
+
return t.trim().split(/\s+/g);
|
|
101
|
+
}
|
|
102
|
+
function Y(t, e, i) {
|
|
103
|
+
if (t.indexOf && !i)
|
|
104
|
+
return t.indexOf(e);
|
|
105
|
+
for (var r = 0; r < t.length; ) {
|
|
106
|
+
if (i && t[r][i] == e || !i && t[r] === e)
|
|
107
|
+
return r;
|
|
108
|
+
r++;
|
|
109
|
+
}
|
|
110
|
+
return -1;
|
|
111
|
+
}
|
|
112
|
+
function J(t) {
|
|
113
|
+
return Array.prototype.slice.call(t, 0);
|
|
114
|
+
}
|
|
115
|
+
function St(t, e, i) {
|
|
116
|
+
for (var r = [], n = [], s = 0; s < t.length; ) {
|
|
117
|
+
var a = e ? t[s][e] : t[s];
|
|
118
|
+
Y(n, a) < 0 && r.push(t[s]), n[s] = a, s++;
|
|
119
|
+
}
|
|
120
|
+
return i && (e ? r = r.sort(function(c, v) {
|
|
121
|
+
return c[e] > v[e];
|
|
122
|
+
}) : r = r.sort()), r;
|
|
123
|
+
}
|
|
124
|
+
function Q(t, e) {
|
|
125
|
+
for (var i, r, n = e[0].toUpperCase() + e.slice(1), s = 0; s < Pt.length; ) {
|
|
126
|
+
if (i = Pt[s], r = i ? i + n : e, r in t)
|
|
127
|
+
return r;
|
|
128
|
+
s++;
|
|
129
|
+
}
|
|
130
|
+
return l;
|
|
131
|
+
}
|
|
132
|
+
var ee = 1;
|
|
133
|
+
function ie() {
|
|
134
|
+
return ee++;
|
|
135
|
+
}
|
|
136
|
+
function Dt(t) {
|
|
137
|
+
var e = t.ownerDocument || t;
|
|
138
|
+
return e.defaultView || e.parentWindow || u;
|
|
139
|
+
}
|
|
140
|
+
var re = /mobile|tablet|ip(ad|hone|od)|android/i, Mt = "ontouchstart" in u, ne = Q(u, "PointerEvent") !== l, se = Mt && re.test(navigator.userAgent), b = "touch", ae = "pen", ut = "mouse", oe = "kinect", he = 25, f = 1, M = 2, o = 4, p = 8, j = 1, X = 2, F = 4, V = 8, W = 16, I = X | F, U = V | W, Ut = I | U, Rt = ["x", "y"], K = ["clientX", "clientY"];
|
|
141
|
+
function m(t, e) {
|
|
142
|
+
var i = this;
|
|
143
|
+
this.manager = t, this.callback = e, this.element = t.element, this.target = t.options.inputTarget, this.domHandler = function(r) {
|
|
144
|
+
ct(t.options.enable, [t]) && i.handler(r);
|
|
145
|
+
}, this.init();
|
|
146
|
+
}
|
|
147
|
+
m.prototype = {
|
|
148
|
+
/**
|
|
149
|
+
* should handle the inputEvent data and trigger the callback
|
|
150
|
+
* @virtual
|
|
151
|
+
*/
|
|
152
|
+
handler: function() {
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* bind the events
|
|
156
|
+
*/
|
|
157
|
+
init: function() {
|
|
158
|
+
this.evEl && z(this.element, this.evEl, this.domHandler), this.evTarget && z(this.target, this.evTarget, this.domHandler), this.evWin && z(Dt(this.element), this.evWin, this.domHandler);
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* unbind the events
|
|
162
|
+
*/
|
|
163
|
+
destroy: function() {
|
|
164
|
+
this.evEl && Z(this.element, this.evEl, this.domHandler), this.evTarget && Z(this.target, this.evTarget, this.domHandler), this.evWin && Z(Dt(this.element), this.evWin, this.domHandler);
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
function le(t) {
|
|
168
|
+
var e, i = t.options.inputClass;
|
|
169
|
+
return i ? e = i : ne ? e = vt : se ? e = et : Mt ? e = pt : e = tt, new e(t, ce);
|
|
170
|
+
}
|
|
171
|
+
function ce(t, e, i) {
|
|
172
|
+
var r = i.pointers.length, n = i.changedPointers.length, s = e & f && r - n === 0, a = e & (o | p) && r - n === 0;
|
|
173
|
+
i.isFirst = !!s, i.isFinal = !!a, s && (t.session = {}), i.eventType = e, ue(t, i), t.emit("hammer.input", i), t.recognize(i), t.session.prevInput = i;
|
|
174
|
+
}
|
|
175
|
+
function ue(t, e) {
|
|
176
|
+
var i = t.session, r = e.pointers, n = r.length;
|
|
177
|
+
i.firstInput || (i.firstInput = Lt(e)), n > 1 && !i.firstMultiple ? i.firstMultiple = Lt(e) : n === 1 && (i.firstMultiple = !1);
|
|
178
|
+
var s = i.firstInput, a = i.firstMultiple, h = a ? a.center : s.center, c = e.center = xt(r);
|
|
179
|
+
e.timeStamp = ot(), e.deltaTime = e.timeStamp - s.timeStamp, e.angle = ft(h, c), e.distance = $(h, c), fe(i, e), e.offsetDirection = Ht(e.deltaX, e.deltaY);
|
|
180
|
+
var v = Yt(e.deltaTime, e.deltaX, e.deltaY);
|
|
181
|
+
e.overallVelocityX = v.x, e.overallVelocityY = v.y, e.overallVelocity = S(v.x) > S(v.y) ? v.x : v.y, e.scale = a ? Te(a.pointers, r) : 1, e.rotation = a ? pe(a.pointers, r) : 0, e.maxPointers = i.prevInput ? e.pointers.length > i.prevInput.maxPointers ? e.pointers.length : i.prevInput.maxPointers : e.pointers.length, ve(i, e);
|
|
182
|
+
var y = t.element;
|
|
183
|
+
Ct(e.srcEvent.target, y) && (y = e.srcEvent.target), e.target = y;
|
|
184
|
+
}
|
|
185
|
+
function fe(t, e) {
|
|
186
|
+
var i = e.center, r = t.offsetDelta || {}, n = t.prevDelta || {}, s = t.prevInput || {};
|
|
187
|
+
(e.eventType === f || s.eventType === o) && (n = t.prevDelta = {
|
|
188
|
+
x: s.deltaX || 0,
|
|
189
|
+
y: s.deltaY || 0
|
|
190
|
+
}, r = t.offsetDelta = {
|
|
191
|
+
x: i.x,
|
|
192
|
+
y: i.y
|
|
193
|
+
}), e.deltaX = n.x + (i.x - r.x), e.deltaY = n.y + (i.y - r.y);
|
|
194
|
+
}
|
|
195
|
+
function ve(t, e) {
|
|
196
|
+
var i = t.lastInterval || e, r = e.timeStamp - i.timeStamp, n, s, a, h;
|
|
197
|
+
if (e.eventType != p && (r > he || i.velocity === l)) {
|
|
198
|
+
var c = e.deltaX - i.deltaX, v = e.deltaY - i.deltaY, y = Yt(r, c, v);
|
|
199
|
+
s = y.x, a = y.y, n = S(y.x) > S(y.y) ? y.x : y.y, h = Ht(c, v), t.lastInterval = e;
|
|
200
|
+
} else
|
|
201
|
+
n = i.velocity, s = i.velocityX, a = i.velocityY, h = i.direction;
|
|
202
|
+
e.velocity = n, e.velocityX = s, e.velocityY = a, e.direction = h;
|
|
203
|
+
}
|
|
204
|
+
function Lt(t) {
|
|
205
|
+
for (var e = [], i = 0; i < t.pointers.length; )
|
|
206
|
+
e[i] = {
|
|
207
|
+
clientX: L(t.pointers[i].clientX),
|
|
208
|
+
clientY: L(t.pointers[i].clientY)
|
|
209
|
+
}, i++;
|
|
210
|
+
return {
|
|
211
|
+
timeStamp: ot(),
|
|
212
|
+
pointers: e,
|
|
213
|
+
center: xt(e),
|
|
214
|
+
deltaX: t.deltaX,
|
|
215
|
+
deltaY: t.deltaY
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
function xt(t) {
|
|
219
|
+
var e = t.length;
|
|
220
|
+
if (e === 1)
|
|
221
|
+
return {
|
|
222
|
+
x: L(t[0].clientX),
|
|
223
|
+
y: L(t[0].clientY)
|
|
224
|
+
};
|
|
225
|
+
for (var i = 0, r = 0, n = 0; n < e; )
|
|
226
|
+
i += t[n].clientX, r += t[n].clientY, n++;
|
|
227
|
+
return {
|
|
228
|
+
x: L(i / e),
|
|
229
|
+
y: L(r / e)
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
function Yt(t, e, i) {
|
|
233
|
+
return {
|
|
234
|
+
x: e / t || 0,
|
|
235
|
+
y: i / t || 0
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
function Ht(t, e) {
|
|
239
|
+
return t === e ? j : S(t) >= S(e) ? t < 0 ? X : F : e < 0 ? V : W;
|
|
240
|
+
}
|
|
241
|
+
function $(t, e, i) {
|
|
242
|
+
i || (i = Rt);
|
|
243
|
+
var r = e[i[0]] - t[i[0]], n = e[i[1]] - t[i[1]];
|
|
244
|
+
return Math.sqrt(r * r + n * n);
|
|
245
|
+
}
|
|
246
|
+
function ft(t, e, i) {
|
|
247
|
+
i || (i = Rt);
|
|
248
|
+
var r = e[i[0]] - t[i[0]], n = e[i[1]] - t[i[1]];
|
|
249
|
+
return Math.atan2(n, r) * 180 / Math.PI;
|
|
250
|
+
}
|
|
251
|
+
function pe(t, e) {
|
|
252
|
+
return ft(e[1], e[0], K) + ft(t[1], t[0], K);
|
|
253
|
+
}
|
|
254
|
+
function Te(t, e) {
|
|
255
|
+
return $(e[0], e[1], K) / $(t[0], t[1], K);
|
|
256
|
+
}
|
|
257
|
+
var me = {
|
|
258
|
+
mousedown: f,
|
|
259
|
+
mousemove: M,
|
|
260
|
+
mouseup: o
|
|
261
|
+
}, de = "mousedown", Ee = "mousemove mouseup";
|
|
262
|
+
function tt() {
|
|
263
|
+
this.evEl = de, this.evWin = Ee, this.pressed = !1, m.apply(this, arguments);
|
|
264
|
+
}
|
|
265
|
+
T(tt, m, {
|
|
266
|
+
/**
|
|
267
|
+
* handle mouse events
|
|
268
|
+
* @param {Object} ev
|
|
269
|
+
*/
|
|
270
|
+
handler: function(e) {
|
|
271
|
+
var i = me[e.type];
|
|
272
|
+
i & f && e.button === 0 && (this.pressed = !0), i & M && e.which !== 1 && (i = o), this.pressed && (i & o && (this.pressed = !1), this.callback(this.manager, i, {
|
|
273
|
+
pointers: [e],
|
|
274
|
+
changedPointers: [e],
|
|
275
|
+
pointerType: ut,
|
|
276
|
+
srcEvent: e
|
|
277
|
+
}));
|
|
278
|
+
}
|
|
279
|
+
});
|
|
280
|
+
var ge = {
|
|
281
|
+
pointerdown: f,
|
|
282
|
+
pointermove: M,
|
|
283
|
+
pointerup: o,
|
|
284
|
+
pointercancel: p,
|
|
285
|
+
pointerout: p
|
|
286
|
+
}, Ie = {
|
|
287
|
+
2: b,
|
|
288
|
+
3: ae,
|
|
289
|
+
4: ut,
|
|
290
|
+
5: oe
|
|
291
|
+
// see https://twitter.com/jacobrossi/status/480596438489890816
|
|
292
|
+
}, bt = "pointerdown", Xt = "pointermove pointerup pointercancel";
|
|
293
|
+
u.MSPointerEvent && !u.PointerEvent && (bt = "MSPointerDown", Xt = "MSPointerMove MSPointerUp MSPointerCancel");
|
|
294
|
+
function vt() {
|
|
295
|
+
this.evEl = bt, this.evWin = Xt, m.apply(this, arguments), this.store = this.manager.session.pointerEvents = [];
|
|
296
|
+
}
|
|
297
|
+
T(vt, m, {
|
|
298
|
+
/**
|
|
299
|
+
* handle mouse events
|
|
300
|
+
* @param {Object} ev
|
|
301
|
+
*/
|
|
302
|
+
handler: function(e) {
|
|
303
|
+
var i = this.store, r = !1, n = e.type.toLowerCase().replace("ms", ""), s = ge[n], a = Ie[e.pointerType] || e.pointerType, h = a == b, c = Y(i, e.pointerId, "pointerId");
|
|
304
|
+
s & f && (e.button === 0 || h) ? c < 0 && (i.push(e), c = i.length - 1) : s & (o | p) && (r = !0), !(c < 0) && (i[c] = e, this.callback(this.manager, s, {
|
|
305
|
+
pointers: i,
|
|
306
|
+
changedPointers: [e],
|
|
307
|
+
pointerType: a,
|
|
308
|
+
srcEvent: e
|
|
309
|
+
}), r && i.splice(c, 1));
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
var _e = {
|
|
313
|
+
touchstart: f,
|
|
314
|
+
touchmove: M,
|
|
315
|
+
touchend: o,
|
|
316
|
+
touchcancel: p
|
|
317
|
+
}, ye = "touchstart", Pe = "touchstart touchmove touchend touchcancel";
|
|
318
|
+
function Ft() {
|
|
319
|
+
this.evTarget = ye, this.evWin = Pe, this.started = !1, m.apply(this, arguments);
|
|
320
|
+
}
|
|
321
|
+
T(Ft, m, {
|
|
322
|
+
handler: function(e) {
|
|
323
|
+
var i = _e[e.type];
|
|
324
|
+
if (i === f && (this.started = !0), !!this.started) {
|
|
325
|
+
var r = Ne.call(this, e, i);
|
|
326
|
+
i & (o | p) && r[0].length - r[1].length === 0 && (this.started = !1), this.callback(this.manager, i, {
|
|
327
|
+
pointers: r[0],
|
|
328
|
+
changedPointers: r[1],
|
|
329
|
+
pointerType: b,
|
|
330
|
+
srcEvent: e
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
});
|
|
335
|
+
function Ne(t, e) {
|
|
336
|
+
var i = J(t.touches), r = J(t.changedTouches);
|
|
337
|
+
return e & (o | p) && (i = St(i.concat(r), "identifier", !0)), [i, r];
|
|
338
|
+
}
|
|
339
|
+
var Oe = {
|
|
340
|
+
touchstart: f,
|
|
341
|
+
touchmove: M,
|
|
342
|
+
touchend: o,
|
|
343
|
+
touchcancel: p
|
|
344
|
+
}, Ae = "touchstart touchmove touchend touchcancel";
|
|
345
|
+
function et() {
|
|
346
|
+
this.evTarget = Ae, this.targetIds = {}, m.apply(this, arguments);
|
|
347
|
+
}
|
|
348
|
+
T(et, m, {
|
|
349
|
+
handler: function(e) {
|
|
350
|
+
var i = Oe[e.type], r = Ce.call(this, e, i);
|
|
351
|
+
r && this.callback(this.manager, i, {
|
|
352
|
+
pointers: r[0],
|
|
353
|
+
changedPointers: r[1],
|
|
354
|
+
pointerType: b,
|
|
355
|
+
srcEvent: e
|
|
356
|
+
});
|
|
357
|
+
}
|
|
358
|
+
});
|
|
359
|
+
function Ce(t, e) {
|
|
360
|
+
var i = J(t.touches), r = this.targetIds;
|
|
361
|
+
if (e & (f | M) && i.length === 1)
|
|
362
|
+
return r[i[0].identifier] = !0, [i, i];
|
|
363
|
+
var n, s, a = J(t.changedTouches), h = [], c = this.target;
|
|
364
|
+
if (s = i.filter(function(v) {
|
|
365
|
+
return Ct(v.target, c);
|
|
366
|
+
}), e === f)
|
|
367
|
+
for (n = 0; n < s.length; )
|
|
368
|
+
r[s[n].identifier] = !0, n++;
|
|
369
|
+
for (n = 0; n < a.length; )
|
|
370
|
+
r[a[n].identifier] && h.push(a[n]), e & (o | p) && delete r[a[n].identifier], n++;
|
|
371
|
+
if (h.length)
|
|
372
|
+
return [
|
|
373
|
+
// merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
|
|
374
|
+
St(s.concat(h), "identifier", !0),
|
|
375
|
+
h
|
|
376
|
+
];
|
|
377
|
+
}
|
|
378
|
+
var Se = 2500, Vt = 25;
|
|
379
|
+
function pt() {
|
|
380
|
+
m.apply(this, arguments);
|
|
381
|
+
var t = lt(this.handler, this);
|
|
382
|
+
this.touch = new et(this.manager, t), this.mouse = new tt(this.manager, t), this.primaryTouch = null, this.lastTouches = [];
|
|
383
|
+
}
|
|
384
|
+
T(pt, m, {
|
|
385
|
+
/**
|
|
386
|
+
* handle mouse and touch events
|
|
387
|
+
* @param {Hammer} manager
|
|
388
|
+
* @param {String} inputEvent
|
|
389
|
+
* @param {Object} inputData
|
|
390
|
+
*/
|
|
391
|
+
handler: function(e, i, r) {
|
|
392
|
+
var n = r.pointerType == b, s = r.pointerType == ut;
|
|
393
|
+
if (!(s && r.sourceCapabilities && r.sourceCapabilities.firesTouchEvents)) {
|
|
394
|
+
if (n)
|
|
395
|
+
De.call(this, i, r);
|
|
396
|
+
else if (s && Me.call(this, r))
|
|
397
|
+
return;
|
|
398
|
+
this.callback(e, i, r);
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* remove the event listeners
|
|
403
|
+
*/
|
|
404
|
+
destroy: function() {
|
|
405
|
+
this.touch.destroy(), this.mouse.destroy();
|
|
406
|
+
}
|
|
407
|
+
});
|
|
408
|
+
function De(t, e) {
|
|
409
|
+
t & f ? (this.primaryTouch = e.changedPointers[0].identifier, Wt.call(this, e)) : t & (o | p) && Wt.call(this, e);
|
|
410
|
+
}
|
|
411
|
+
function Wt(t) {
|
|
412
|
+
var e = t.changedPointers[0];
|
|
413
|
+
if (e.identifier === this.primaryTouch) {
|
|
414
|
+
var i = { x: e.clientX, y: e.clientY };
|
|
415
|
+
this.lastTouches.push(i);
|
|
416
|
+
var r = this.lastTouches, n = function() {
|
|
417
|
+
var s = r.indexOf(i);
|
|
418
|
+
s > -1 && r.splice(s, 1);
|
|
419
|
+
};
|
|
420
|
+
setTimeout(n, Se);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
function Me(t) {
|
|
424
|
+
for (var e = t.srcEvent.clientX, i = t.srcEvent.clientY, r = 0; r < this.lastTouches.length; r++) {
|
|
425
|
+
var n = this.lastTouches[r], s = Math.abs(e - n.x), a = Math.abs(i - n.y);
|
|
426
|
+
if (s <= Vt && a <= Vt)
|
|
427
|
+
return !0;
|
|
428
|
+
}
|
|
429
|
+
return !1;
|
|
430
|
+
}
|
|
431
|
+
var qt = Q(Kt.style, "touchAction"), wt = qt !== l, Gt = "compute", kt = "auto", Tt = "manipulation", R = "none", q = "pan-x", w = "pan-y", it = Re();
|
|
432
|
+
function mt(t, e) {
|
|
433
|
+
this.manager = t, this.set(e);
|
|
434
|
+
}
|
|
435
|
+
mt.prototype = {
|
|
436
|
+
/**
|
|
437
|
+
* set the touchAction value on the element or enable the polyfill
|
|
438
|
+
* @param {String} value
|
|
439
|
+
*/
|
|
440
|
+
set: function(t) {
|
|
441
|
+
t == Gt && (t = this.compute()), wt && this.manager.element.style && it[t] && (this.manager.element.style[qt] = t), this.actions = t.toLowerCase().trim();
|
|
442
|
+
},
|
|
443
|
+
/**
|
|
444
|
+
* just re-set the touchAction value
|
|
445
|
+
*/
|
|
446
|
+
update: function() {
|
|
447
|
+
this.set(this.manager.options.touchAction);
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
* compute the value for the touchAction property based on the recognizer's settings
|
|
451
|
+
* @returns {String} value
|
|
452
|
+
*/
|
|
453
|
+
compute: function() {
|
|
454
|
+
var t = [];
|
|
455
|
+
return P(this.manager.recognizers, function(e) {
|
|
456
|
+
ct(e.options.enable, [e]) && (t = t.concat(e.getTouchAction()));
|
|
457
|
+
}), Ue(t.join(" "));
|
|
458
|
+
},
|
|
459
|
+
/**
|
|
460
|
+
* this method is called on each input cycle and provides the preventing of the browser behavior
|
|
461
|
+
* @param {Object} input
|
|
462
|
+
*/
|
|
463
|
+
preventDefaults: function(t) {
|
|
464
|
+
var e = t.srcEvent, i = t.offsetDirection;
|
|
465
|
+
if (this.manager.session.prevented) {
|
|
466
|
+
e.preventDefault();
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
var r = this.actions, n = D(r, R) && !it[R], s = D(r, w) && !it[w], a = D(r, q) && !it[q];
|
|
470
|
+
if (n) {
|
|
471
|
+
var h = t.pointers.length === 1, c = t.distance < 2, v = t.deltaTime < 250;
|
|
472
|
+
if (h && c && v)
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
if (!(a && s) && (n || s && i & I || a && i & U))
|
|
476
|
+
return this.preventSrc(e);
|
|
477
|
+
},
|
|
478
|
+
/**
|
|
479
|
+
* call preventDefault to prevent the browser's default behavior (scrolling in most cases)
|
|
480
|
+
* @param {Object} srcEvent
|
|
481
|
+
*/
|
|
482
|
+
preventSrc: function(t) {
|
|
483
|
+
this.manager.session.prevented = !0, t.preventDefault();
|
|
484
|
+
}
|
|
485
|
+
};
|
|
486
|
+
function Ue(t) {
|
|
487
|
+
if (D(t, R))
|
|
488
|
+
return R;
|
|
489
|
+
var e = D(t, q), i = D(t, w);
|
|
490
|
+
return e && i ? R : e || i ? e ? q : w : D(t, Tt) ? Tt : kt;
|
|
491
|
+
}
|
|
492
|
+
function Re() {
|
|
493
|
+
if (!wt)
|
|
494
|
+
return !1;
|
|
495
|
+
var t = {}, e = u.CSS && u.CSS.supports;
|
|
496
|
+
return ["auto", "manipulation", "pan-y", "pan-x", "pan-x pan-y", "none"].forEach(function(i) {
|
|
497
|
+
t[i] = e ? u.CSS.supports("touch-action", i) : !0;
|
|
498
|
+
}), t;
|
|
499
|
+
}
|
|
500
|
+
var rt = 1, d = 2, H = 4, C = 8, N = C, G = 16, _ = 32;
|
|
501
|
+
function O(t) {
|
|
502
|
+
this.options = g({}, this.defaults, t || {}), this.id = ie(), this.manager = null, this.options.enable = At(this.options.enable, !0), this.state = rt, this.simultaneous = {}, this.requireFail = [];
|
|
503
|
+
}
|
|
504
|
+
O.prototype = {
|
|
505
|
+
/**
|
|
506
|
+
* @virtual
|
|
507
|
+
* @type {Object}
|
|
508
|
+
*/
|
|
509
|
+
defaults: {},
|
|
510
|
+
/**
|
|
511
|
+
* set options
|
|
512
|
+
* @param {Object} options
|
|
513
|
+
* @return {Recognizer}
|
|
514
|
+
*/
|
|
515
|
+
set: function(t) {
|
|
516
|
+
return g(this.options, t), this.manager && this.manager.touchAction.update(), this;
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* recognize simultaneous with an other recognizer.
|
|
520
|
+
* @param {Recognizer} otherRecognizer
|
|
521
|
+
* @returns {Recognizer} this
|
|
522
|
+
*/
|
|
523
|
+
recognizeWith: function(t) {
|
|
524
|
+
if (x(t, "recognizeWith", this))
|
|
525
|
+
return this;
|
|
526
|
+
var e = this.simultaneous;
|
|
527
|
+
return t = nt(t, this), e[t.id] || (e[t.id] = t, t.recognizeWith(this)), this;
|
|
528
|
+
},
|
|
529
|
+
/**
|
|
530
|
+
* drop the simultaneous link. it doesnt remove the link on the other recognizer.
|
|
531
|
+
* @param {Recognizer} otherRecognizer
|
|
532
|
+
* @returns {Recognizer} this
|
|
533
|
+
*/
|
|
534
|
+
dropRecognizeWith: function(t) {
|
|
535
|
+
return x(t, "dropRecognizeWith", this) ? this : (t = nt(t, this), delete this.simultaneous[t.id], this);
|
|
536
|
+
},
|
|
537
|
+
/**
|
|
538
|
+
* recognizer can only run when an other is failing
|
|
539
|
+
* @param {Recognizer} otherRecognizer
|
|
540
|
+
* @returns {Recognizer} this
|
|
541
|
+
*/
|
|
542
|
+
requireFailure: function(t) {
|
|
543
|
+
if (x(t, "requireFailure", this))
|
|
544
|
+
return this;
|
|
545
|
+
var e = this.requireFail;
|
|
546
|
+
return t = nt(t, this), Y(e, t) === -1 && (e.push(t), t.requireFailure(this)), this;
|
|
547
|
+
},
|
|
548
|
+
/**
|
|
549
|
+
* drop the requireFailure link. it does not remove the link on the other recognizer.
|
|
550
|
+
* @param {Recognizer} otherRecognizer
|
|
551
|
+
* @returns {Recognizer} this
|
|
552
|
+
*/
|
|
553
|
+
dropRequireFailure: function(t) {
|
|
554
|
+
if (x(t, "dropRequireFailure", this))
|
|
555
|
+
return this;
|
|
556
|
+
t = nt(t, this);
|
|
557
|
+
var e = Y(this.requireFail, t);
|
|
558
|
+
return e > -1 && this.requireFail.splice(e, 1), this;
|
|
559
|
+
},
|
|
560
|
+
/**
|
|
561
|
+
* has require failures boolean
|
|
562
|
+
* @returns {boolean}
|
|
563
|
+
*/
|
|
564
|
+
hasRequireFailures: function() {
|
|
565
|
+
return this.requireFail.length > 0;
|
|
566
|
+
},
|
|
567
|
+
/**
|
|
568
|
+
* if the recognizer can recognize simultaneous with an other recognizer
|
|
569
|
+
* @param {Recognizer} otherRecognizer
|
|
570
|
+
* @returns {Boolean}
|
|
571
|
+
*/
|
|
572
|
+
canRecognizeWith: function(t) {
|
|
573
|
+
return !!this.simultaneous[t.id];
|
|
574
|
+
},
|
|
575
|
+
/**
|
|
576
|
+
* You should use `tryEmit` instead of `emit` directly to check
|
|
577
|
+
* that all the needed recognizers has failed before emitting.
|
|
578
|
+
* @param {Object} input
|
|
579
|
+
*/
|
|
580
|
+
emit: function(t) {
|
|
581
|
+
var e = this, i = this.state;
|
|
582
|
+
function r(n) {
|
|
583
|
+
e.manager.emit(n, t);
|
|
584
|
+
}
|
|
585
|
+
i < C && r(e.options.event + zt(i)), r(e.options.event), t.additionalEvent && r(t.additionalEvent), i >= C && r(e.options.event + zt(i));
|
|
586
|
+
},
|
|
587
|
+
/**
|
|
588
|
+
* Check that all the require failure recognizers has failed,
|
|
589
|
+
* if true, it emits a gesture event,
|
|
590
|
+
* otherwise, setup the state to FAILED.
|
|
591
|
+
* @param {Object} input
|
|
592
|
+
*/
|
|
593
|
+
tryEmit: function(t) {
|
|
594
|
+
if (this.canEmit())
|
|
595
|
+
return this.emit(t);
|
|
596
|
+
this.state = _;
|
|
597
|
+
},
|
|
598
|
+
/**
|
|
599
|
+
* can we emit?
|
|
600
|
+
* @returns {boolean}
|
|
601
|
+
*/
|
|
602
|
+
canEmit: function() {
|
|
603
|
+
for (var t = 0; t < this.requireFail.length; ) {
|
|
604
|
+
if (!(this.requireFail[t].state & (_ | rt)))
|
|
605
|
+
return !1;
|
|
606
|
+
t++;
|
|
607
|
+
}
|
|
608
|
+
return !0;
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* update the recognizer
|
|
612
|
+
* @param {Object} inputData
|
|
613
|
+
*/
|
|
614
|
+
recognize: function(t) {
|
|
615
|
+
var e = g({}, t);
|
|
616
|
+
if (!ct(this.options.enable, [this, e])) {
|
|
617
|
+
this.reset(), this.state = _;
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
this.state & (N | G | _) && (this.state = rt), this.state = this.process(e), this.state & (d | H | C | G) && this.tryEmit(e);
|
|
621
|
+
},
|
|
622
|
+
/**
|
|
623
|
+
* return the state of the recognizer
|
|
624
|
+
* the actual recognizing happens in this method
|
|
625
|
+
* @virtual
|
|
626
|
+
* @param {Object} inputData
|
|
627
|
+
* @returns {Const} STATE
|
|
628
|
+
*/
|
|
629
|
+
process: function(t) {
|
|
630
|
+
},
|
|
631
|
+
// jshint ignore:line
|
|
632
|
+
/**
|
|
633
|
+
* return the preferred touch-action
|
|
634
|
+
* @virtual
|
|
635
|
+
* @returns {Array}
|
|
636
|
+
*/
|
|
637
|
+
getTouchAction: function() {
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
* called when the gesture isn't allowed to recognize
|
|
641
|
+
* like when another is being recognized or it is disabled
|
|
642
|
+
* @virtual
|
|
643
|
+
*/
|
|
644
|
+
reset: function() {
|
|
645
|
+
}
|
|
646
|
+
};
|
|
647
|
+
function zt(t) {
|
|
648
|
+
return t & G ? "cancel" : t & C ? "end" : t & H ? "move" : t & d ? "start" : "";
|
|
649
|
+
}
|
|
650
|
+
function Zt(t) {
|
|
651
|
+
return t == W ? "down" : t == V ? "up" : t == X ? "left" : t == F ? "right" : "";
|
|
652
|
+
}
|
|
653
|
+
function nt(t, e) {
|
|
654
|
+
var i = e.manager;
|
|
655
|
+
return i ? i.get(t) : t;
|
|
656
|
+
}
|
|
657
|
+
function E() {
|
|
658
|
+
O.apply(this, arguments);
|
|
659
|
+
}
|
|
660
|
+
T(E, O, {
|
|
661
|
+
/**
|
|
662
|
+
* @namespace
|
|
663
|
+
* @memberof AttrRecognizer
|
|
664
|
+
*/
|
|
665
|
+
defaults: {
|
|
666
|
+
/**
|
|
667
|
+
* @type {Number}
|
|
668
|
+
* @default 1
|
|
669
|
+
*/
|
|
670
|
+
pointers: 1
|
|
671
|
+
},
|
|
672
|
+
/**
|
|
673
|
+
* Used to check if it the recognizer receives valid input, like input.distance > 10.
|
|
674
|
+
* @memberof AttrRecognizer
|
|
675
|
+
* @param {Object} input
|
|
676
|
+
* @returns {Boolean} recognized
|
|
677
|
+
*/
|
|
678
|
+
attrTest: function(t) {
|
|
679
|
+
var e = this.options.pointers;
|
|
680
|
+
return e === 0 || t.pointers.length === e;
|
|
681
|
+
},
|
|
682
|
+
/**
|
|
683
|
+
* Process the input and return the state for the recognizer
|
|
684
|
+
* @memberof AttrRecognizer
|
|
685
|
+
* @param {Object} input
|
|
686
|
+
* @returns {*} State
|
|
687
|
+
*/
|
|
688
|
+
process: function(t) {
|
|
689
|
+
var e = this.state, i = t.eventType, r = e & (d | H), n = this.attrTest(t);
|
|
690
|
+
return r && (i & p || !n) ? e | G : r || n ? i & o ? e | C : e & d ? e | H : d : _;
|
|
691
|
+
}
|
|
692
|
+
});
|
|
693
|
+
function st() {
|
|
694
|
+
E.apply(this, arguments), this.pX = null, this.pY = null;
|
|
695
|
+
}
|
|
696
|
+
T(st, E, {
|
|
697
|
+
/**
|
|
698
|
+
* @namespace
|
|
699
|
+
* @memberof PanRecognizer
|
|
700
|
+
*/
|
|
701
|
+
defaults: {
|
|
702
|
+
event: "pan",
|
|
703
|
+
threshold: 10,
|
|
704
|
+
pointers: 1,
|
|
705
|
+
direction: Ut
|
|
706
|
+
},
|
|
707
|
+
getTouchAction: function() {
|
|
708
|
+
var t = this.options.direction, e = [];
|
|
709
|
+
return t & I && e.push(w), t & U && e.push(q), e;
|
|
710
|
+
},
|
|
711
|
+
directionTest: function(t) {
|
|
712
|
+
var e = this.options, i = !0, r = t.distance, n = t.direction, s = t.deltaX, a = t.deltaY;
|
|
713
|
+
return n & e.direction || (e.direction & I ? (n = s === 0 ? j : s < 0 ? X : F, i = s != this.pX, r = Math.abs(t.deltaX)) : (n = a === 0 ? j : a < 0 ? V : W, i = a != this.pY, r = Math.abs(t.deltaY))), t.direction = n, i && r > e.threshold && n & e.direction;
|
|
714
|
+
},
|
|
715
|
+
attrTest: function(t) {
|
|
716
|
+
return E.prototype.attrTest.call(this, t) && (this.state & d || !(this.state & d) && this.directionTest(t));
|
|
717
|
+
},
|
|
718
|
+
emit: function(t) {
|
|
719
|
+
this.pX = t.deltaX, this.pY = t.deltaY;
|
|
720
|
+
var e = Zt(t.direction);
|
|
721
|
+
e && (t.additionalEvent = this.options.event + e), this._super.emit.call(this, t);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
function dt() {
|
|
725
|
+
E.apply(this, arguments);
|
|
726
|
+
}
|
|
727
|
+
T(dt, E, {
|
|
728
|
+
/**
|
|
729
|
+
* @namespace
|
|
730
|
+
* @memberof PinchRecognizer
|
|
731
|
+
*/
|
|
732
|
+
defaults: {
|
|
733
|
+
event: "pinch",
|
|
734
|
+
threshold: 0,
|
|
735
|
+
pointers: 2
|
|
736
|
+
},
|
|
737
|
+
getTouchAction: function() {
|
|
738
|
+
return [R];
|
|
739
|
+
},
|
|
740
|
+
attrTest: function(t) {
|
|
741
|
+
return this._super.attrTest.call(this, t) && (Math.abs(t.scale - 1) > this.options.threshold || this.state & d);
|
|
742
|
+
},
|
|
743
|
+
emit: function(t) {
|
|
744
|
+
if (t.scale !== 1) {
|
|
745
|
+
var e = t.scale < 1 ? "in" : "out";
|
|
746
|
+
t.additionalEvent = this.options.event + e;
|
|
747
|
+
}
|
|
748
|
+
this._super.emit.call(this, t);
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
function Et() {
|
|
752
|
+
O.apply(this, arguments), this._timer = null, this._input = null;
|
|
753
|
+
}
|
|
754
|
+
T(Et, O, {
|
|
755
|
+
/**
|
|
756
|
+
* @namespace
|
|
757
|
+
* @memberof PressRecognizer
|
|
758
|
+
*/
|
|
759
|
+
defaults: {
|
|
760
|
+
event: "press",
|
|
761
|
+
pointers: 1,
|
|
762
|
+
time: 251,
|
|
763
|
+
// minimal time of the pointer to be pressed
|
|
764
|
+
threshold: 9
|
|
765
|
+
// a minimal movement is ok, but keep it low
|
|
766
|
+
},
|
|
767
|
+
getTouchAction: function() {
|
|
768
|
+
return [kt];
|
|
769
|
+
},
|
|
770
|
+
process: function(t) {
|
|
771
|
+
var e = this.options, i = t.pointers.length === e.pointers, r = t.distance < e.threshold, n = t.deltaTime > e.time;
|
|
772
|
+
if (this._input = t, !r || !i || t.eventType & (o | p) && !n)
|
|
773
|
+
this.reset();
|
|
774
|
+
else if (t.eventType & f)
|
|
775
|
+
this.reset(), this._timer = ht(function() {
|
|
776
|
+
this.state = N, this.tryEmit();
|
|
777
|
+
}, e.time, this);
|
|
778
|
+
else if (t.eventType & o)
|
|
779
|
+
return N;
|
|
780
|
+
return _;
|
|
781
|
+
},
|
|
782
|
+
reset: function() {
|
|
783
|
+
clearTimeout(this._timer);
|
|
784
|
+
},
|
|
785
|
+
emit: function(t) {
|
|
786
|
+
this.state === N && (t && t.eventType & o ? this.manager.emit(this.options.event + "up", t) : (this._input.timeStamp = ot(), this.manager.emit(this.options.event, this._input)));
|
|
787
|
+
}
|
|
788
|
+
});
|
|
789
|
+
function gt() {
|
|
790
|
+
E.apply(this, arguments);
|
|
791
|
+
}
|
|
792
|
+
T(gt, E, {
|
|
793
|
+
/**
|
|
794
|
+
* @namespace
|
|
795
|
+
* @memberof RotateRecognizer
|
|
796
|
+
*/
|
|
797
|
+
defaults: {
|
|
798
|
+
event: "rotate",
|
|
799
|
+
threshold: 0,
|
|
800
|
+
pointers: 2
|
|
801
|
+
},
|
|
802
|
+
getTouchAction: function() {
|
|
803
|
+
return [R];
|
|
804
|
+
},
|
|
805
|
+
attrTest: function(t) {
|
|
806
|
+
return this._super.attrTest.call(this, t) && (Math.abs(t.rotation) > this.options.threshold || this.state & d);
|
|
807
|
+
}
|
|
808
|
+
});
|
|
809
|
+
function It() {
|
|
810
|
+
E.apply(this, arguments);
|
|
811
|
+
}
|
|
812
|
+
T(It, E, {
|
|
813
|
+
/**
|
|
814
|
+
* @namespace
|
|
815
|
+
* @memberof SwipeRecognizer
|
|
816
|
+
*/
|
|
817
|
+
defaults: {
|
|
818
|
+
event: "swipe",
|
|
819
|
+
threshold: 10,
|
|
820
|
+
velocity: 0.3,
|
|
821
|
+
direction: I | U,
|
|
822
|
+
pointers: 1
|
|
823
|
+
},
|
|
824
|
+
getTouchAction: function() {
|
|
825
|
+
return st.prototype.getTouchAction.call(this);
|
|
826
|
+
},
|
|
827
|
+
attrTest: function(t) {
|
|
828
|
+
var e = this.options.direction, i;
|
|
829
|
+
return e & (I | U) ? i = t.overallVelocity : e & I ? i = t.overallVelocityX : e & U && (i = t.overallVelocityY), this._super.attrTest.call(this, t) && e & t.offsetDirection && t.distance > this.options.threshold && t.maxPointers == this.options.pointers && S(i) > this.options.velocity && t.eventType & o;
|
|
830
|
+
},
|
|
831
|
+
emit: function(t) {
|
|
832
|
+
var e = Zt(t.offsetDirection);
|
|
833
|
+
e && this.manager.emit(this.options.event + e, t), this.manager.emit(this.options.event, t);
|
|
834
|
+
}
|
|
835
|
+
});
|
|
836
|
+
function at() {
|
|
837
|
+
O.apply(this, arguments), this.pTime = !1, this.pCenter = !1, this._timer = null, this._input = null, this.count = 0;
|
|
838
|
+
}
|
|
839
|
+
T(at, O, {
|
|
840
|
+
/**
|
|
841
|
+
* @namespace
|
|
842
|
+
* @memberof PinchRecognizer
|
|
843
|
+
*/
|
|
844
|
+
defaults: {
|
|
845
|
+
event: "tap",
|
|
846
|
+
pointers: 1,
|
|
847
|
+
taps: 1,
|
|
848
|
+
interval: 300,
|
|
849
|
+
// max time between the multi-tap taps
|
|
850
|
+
time: 250,
|
|
851
|
+
// max time of the pointer to be down (like finger on the screen)
|
|
852
|
+
threshold: 9,
|
|
853
|
+
// a minimal movement is ok, but keep it low
|
|
854
|
+
posThreshold: 10
|
|
855
|
+
// a multi-tap can be a bit off the initial position
|
|
856
|
+
},
|
|
857
|
+
getTouchAction: function() {
|
|
858
|
+
return [Tt];
|
|
859
|
+
},
|
|
860
|
+
process: function(t) {
|
|
861
|
+
var e = this.options, i = t.pointers.length === e.pointers, r = t.distance < e.threshold, n = t.deltaTime < e.time;
|
|
862
|
+
if (this.reset(), t.eventType & f && this.count === 0)
|
|
863
|
+
return this.failTimeout();
|
|
864
|
+
if (r && n && i) {
|
|
865
|
+
if (t.eventType != o)
|
|
866
|
+
return this.failTimeout();
|
|
867
|
+
var s = this.pTime ? t.timeStamp - this.pTime < e.interval : !0, a = !this.pCenter || $(this.pCenter, t.center) < e.posThreshold;
|
|
868
|
+
this.pTime = t.timeStamp, this.pCenter = t.center, !a || !s ? this.count = 1 : this.count += 1, this._input = t;
|
|
869
|
+
var h = this.count % e.taps;
|
|
870
|
+
if (h === 0)
|
|
871
|
+
return this.hasRequireFailures() ? (this._timer = ht(function() {
|
|
872
|
+
this.state = N, this.tryEmit();
|
|
873
|
+
}, e.interval, this), d) : N;
|
|
874
|
+
}
|
|
875
|
+
return _;
|
|
876
|
+
},
|
|
877
|
+
failTimeout: function() {
|
|
878
|
+
return this._timer = ht(function() {
|
|
879
|
+
this.state = _;
|
|
880
|
+
}, this.options.interval, this), _;
|
|
881
|
+
},
|
|
882
|
+
reset: function() {
|
|
883
|
+
clearTimeout(this._timer);
|
|
884
|
+
},
|
|
885
|
+
emit: function() {
|
|
886
|
+
this.state == N && (this._input.tapCount = this.count, this.manager.emit(this.options.event, this._input));
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
function A(t, e) {
|
|
890
|
+
return e = e || {}, e.recognizers = At(e.recognizers, A.defaults.preset), new _t(t, e);
|
|
891
|
+
}
|
|
892
|
+
A.VERSION = "2.0.7", A.defaults = {
|
|
893
|
+
/**
|
|
894
|
+
* set if DOM events are being triggered.
|
|
895
|
+
* But this is slower and unused by simple implementations, so disabled by default.
|
|
896
|
+
* @type {Boolean}
|
|
897
|
+
* @default false
|
|
898
|
+
*/
|
|
899
|
+
domEvents: !1,
|
|
900
|
+
/**
|
|
901
|
+
* The value for the touchAction property/fallback.
|
|
902
|
+
* When set to `compute` it will magically set the correct value based on the added recognizers.
|
|
903
|
+
* @type {String}
|
|
904
|
+
* @default compute
|
|
905
|
+
*/
|
|
906
|
+
touchAction: Gt,
|
|
907
|
+
/**
|
|
908
|
+
* @type {Boolean}
|
|
909
|
+
* @default true
|
|
910
|
+
*/
|
|
911
|
+
enable: !0,
|
|
912
|
+
/**
|
|
913
|
+
* EXPERIMENTAL FEATURE -- can be removed/changed
|
|
914
|
+
* Change the parent input target element.
|
|
915
|
+
* If Null, then it is being set the to main element.
|
|
916
|
+
* @type {Null|EventTarget}
|
|
917
|
+
* @default null
|
|
918
|
+
*/
|
|
919
|
+
inputTarget: null,
|
|
920
|
+
/**
|
|
921
|
+
* force an input class
|
|
922
|
+
* @type {Null|Function}
|
|
923
|
+
* @default null
|
|
924
|
+
*/
|
|
925
|
+
inputClass: null,
|
|
926
|
+
/**
|
|
927
|
+
* Default recognizer setup when calling `Hammer()`
|
|
928
|
+
* When creating a new Manager these will be skipped.
|
|
929
|
+
* @type {Array}
|
|
930
|
+
*/
|
|
931
|
+
preset: [
|
|
932
|
+
// RecognizerClass, options, [recognizeWith, ...], [requireFailure, ...]
|
|
933
|
+
[gt, { enable: !1 }],
|
|
934
|
+
[dt, { enable: !1 }, ["rotate"]],
|
|
935
|
+
[It, { direction: I }],
|
|
936
|
+
[st, { direction: I }, ["swipe"]],
|
|
937
|
+
[at],
|
|
938
|
+
[at, { event: "doubletap", taps: 2 }, ["tap"]],
|
|
939
|
+
[Et]
|
|
940
|
+
],
|
|
941
|
+
/**
|
|
942
|
+
* Some CSS properties can be used to improve the working of Hammer.
|
|
943
|
+
* Add them to this method and they will be set when creating a new Manager.
|
|
944
|
+
* @namespace
|
|
945
|
+
*/
|
|
946
|
+
cssProps: {
|
|
947
|
+
/**
|
|
948
|
+
* Disables text selection to improve the dragging gesture. Mainly for desktop browsers.
|
|
949
|
+
* @type {String}
|
|
950
|
+
* @default 'none'
|
|
951
|
+
*/
|
|
952
|
+
userSelect: "none",
|
|
953
|
+
/**
|
|
954
|
+
* Disable the Windows Phone grippers when pressing an element.
|
|
955
|
+
* @type {String}
|
|
956
|
+
* @default 'none'
|
|
957
|
+
*/
|
|
958
|
+
touchSelect: "none",
|
|
959
|
+
/**
|
|
960
|
+
* Disables the default callout shown when you touch and hold a touch target.
|
|
961
|
+
* On iOS, when you touch and hold a touch target such as a link, Safari displays
|
|
962
|
+
* a callout containing information about the link. This property allows you to disable that callout.
|
|
963
|
+
* @type {String}
|
|
964
|
+
* @default 'none'
|
|
965
|
+
*/
|
|
966
|
+
touchCallout: "none",
|
|
967
|
+
/**
|
|
968
|
+
* Specifies whether zooming is enabled. Used by IE10>
|
|
969
|
+
* @type {String}
|
|
970
|
+
* @default 'none'
|
|
971
|
+
*/
|
|
972
|
+
contentZooming: "none",
|
|
973
|
+
/**
|
|
974
|
+
* Specifies that an entire element should be draggable instead of its contents. Mainly for desktop browsers.
|
|
975
|
+
* @type {String}
|
|
976
|
+
* @default 'none'
|
|
977
|
+
*/
|
|
978
|
+
userDrag: "none",
|
|
979
|
+
/**
|
|
980
|
+
* Overrides the highlight color shown when the user taps a link or a JavaScript
|
|
981
|
+
* clickable element in iOS. This property obeys the alpha value, if specified.
|
|
982
|
+
* @type {String}
|
|
983
|
+
* @default 'rgba(0,0,0,0)'
|
|
984
|
+
*/
|
|
985
|
+
tapHighlightColor: "rgba(0,0,0,0)"
|
|
986
|
+
}
|
|
987
|
+
};
|
|
988
|
+
var Le = 1, Bt = 2;
|
|
989
|
+
function _t(t, e) {
|
|
990
|
+
this.options = g({}, A.defaults, e || {}), this.options.inputTarget = this.options.inputTarget || t, this.handlers = {}, this.session = {}, this.recognizers = [], this.oldCssProps = {}, this.element = t, this.input = le(this), this.touchAction = new mt(this, this.options.touchAction), Jt(this, !0), P(this.options.recognizers, function(i) {
|
|
991
|
+
var r = this.add(new i[0](i[1]));
|
|
992
|
+
i[2] && r.recognizeWith(i[2]), i[3] && r.requireFailure(i[3]);
|
|
993
|
+
}, this);
|
|
994
|
+
}
|
|
995
|
+
_t.prototype = {
|
|
996
|
+
/**
|
|
997
|
+
* set options
|
|
998
|
+
* @param {Object} options
|
|
999
|
+
* @returns {Manager}
|
|
1000
|
+
*/
|
|
1001
|
+
set: function(t) {
|
|
1002
|
+
return g(this.options, t), t.touchAction && this.touchAction.update(), t.inputTarget && (this.input.destroy(), this.input.target = t.inputTarget, this.input.init()), this;
|
|
1003
|
+
},
|
|
1004
|
+
/**
|
|
1005
|
+
* stop recognizing for this session.
|
|
1006
|
+
* This session will be discarded, when a new [input]start event is fired.
|
|
1007
|
+
* When forced, the recognizer cycle is stopped immediately.
|
|
1008
|
+
* @param {Boolean} [force]
|
|
1009
|
+
*/
|
|
1010
|
+
stop: function(t) {
|
|
1011
|
+
this.session.stopped = t ? Bt : Le;
|
|
1012
|
+
},
|
|
1013
|
+
/**
|
|
1014
|
+
* run the recognizers!
|
|
1015
|
+
* called by the inputHandler function on every movement of the pointers (touches)
|
|
1016
|
+
* it walks through all the recognizers and tries to detect the gesture that is being made
|
|
1017
|
+
* @param {Object} inputData
|
|
1018
|
+
*/
|
|
1019
|
+
recognize: function(t) {
|
|
1020
|
+
var e = this.session;
|
|
1021
|
+
if (!e.stopped) {
|
|
1022
|
+
this.touchAction.preventDefaults(t);
|
|
1023
|
+
var i, r = this.recognizers, n = e.curRecognizer;
|
|
1024
|
+
(!n || n && n.state & N) && (n = e.curRecognizer = null);
|
|
1025
|
+
for (var s = 0; s < r.length; )
|
|
1026
|
+
i = r[s], e.stopped !== Bt && // 1
|
|
1027
|
+
(!n || i == n || // 2
|
|
1028
|
+
i.canRecognizeWith(n)) ? i.recognize(t) : i.reset(), !n && i.state & (d | H | C) && (n = e.curRecognizer = i), s++;
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
/**
|
|
1032
|
+
* get a recognizer by its event name.
|
|
1033
|
+
* @param {Recognizer|String} recognizer
|
|
1034
|
+
* @returns {Recognizer|Null}
|
|
1035
|
+
*/
|
|
1036
|
+
get: function(t) {
|
|
1037
|
+
if (t instanceof O)
|
|
1038
|
+
return t;
|
|
1039
|
+
for (var e = this.recognizers, i = 0; i < e.length; i++)
|
|
1040
|
+
if (e[i].options.event == t)
|
|
1041
|
+
return e[i];
|
|
1042
|
+
return null;
|
|
1043
|
+
},
|
|
1044
|
+
/**
|
|
1045
|
+
* add a recognizer to the manager
|
|
1046
|
+
* existing recognizers with the same event name will be removed
|
|
1047
|
+
* @param {Recognizer} recognizer
|
|
1048
|
+
* @returns {Recognizer|Manager}
|
|
1049
|
+
*/
|
|
1050
|
+
add: function(t) {
|
|
1051
|
+
if (x(t, "add", this))
|
|
1052
|
+
return this;
|
|
1053
|
+
var e = this.get(t.options.event);
|
|
1054
|
+
return e && this.remove(e), this.recognizers.push(t), t.manager = this, this.touchAction.update(), t;
|
|
1055
|
+
},
|
|
1056
|
+
/**
|
|
1057
|
+
* remove a recognizer by name or instance
|
|
1058
|
+
* @param {Recognizer|String} recognizer
|
|
1059
|
+
* @returns {Manager}
|
|
1060
|
+
*/
|
|
1061
|
+
remove: function(t) {
|
|
1062
|
+
if (x(t, "remove", this))
|
|
1063
|
+
return this;
|
|
1064
|
+
if (t = this.get(t), t) {
|
|
1065
|
+
var e = this.recognizers, i = Y(e, t);
|
|
1066
|
+
i !== -1 && (e.splice(i, 1), this.touchAction.update());
|
|
1067
|
+
}
|
|
1068
|
+
return this;
|
|
1069
|
+
},
|
|
1070
|
+
/**
|
|
1071
|
+
* bind event
|
|
1072
|
+
* @param {String} events
|
|
1073
|
+
* @param {Function} handler
|
|
1074
|
+
* @returns {EventEmitter} this
|
|
1075
|
+
*/
|
|
1076
|
+
on: function(t, e) {
|
|
1077
|
+
if (t !== l && e !== l) {
|
|
1078
|
+
var i = this.handlers;
|
|
1079
|
+
return P(B(t), function(r) {
|
|
1080
|
+
i[r] = i[r] || [], i[r].push(e);
|
|
1081
|
+
}), this;
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
/**
|
|
1085
|
+
* unbind event, leave emit blank to remove all handlers
|
|
1086
|
+
* @param {String} events
|
|
1087
|
+
* @param {Function} [handler]
|
|
1088
|
+
* @returns {EventEmitter} this
|
|
1089
|
+
*/
|
|
1090
|
+
off: function(t, e) {
|
|
1091
|
+
if (t !== l) {
|
|
1092
|
+
var i = this.handlers;
|
|
1093
|
+
return P(B(t), function(r) {
|
|
1094
|
+
e ? i[r] && i[r].splice(Y(i[r], e), 1) : delete i[r];
|
|
1095
|
+
}), this;
|
|
1096
|
+
}
|
|
1097
|
+
},
|
|
1098
|
+
/**
|
|
1099
|
+
* emit event to the listeners
|
|
1100
|
+
* @param {String} event
|
|
1101
|
+
* @param {Object} data
|
|
1102
|
+
*/
|
|
1103
|
+
emit: function(t, e) {
|
|
1104
|
+
this.options.domEvents && xe(t, e);
|
|
1105
|
+
var i = this.handlers[t] && this.handlers[t].slice();
|
|
1106
|
+
if (!(!i || !i.length)) {
|
|
1107
|
+
e.type = t, e.preventDefault = function() {
|
|
1108
|
+
e.srcEvent.preventDefault();
|
|
1109
|
+
};
|
|
1110
|
+
for (var r = 0; r < i.length; )
|
|
1111
|
+
i[r](e), r++;
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
/**
|
|
1115
|
+
* destroy the manager and unbinds all events
|
|
1116
|
+
* it doesn't unbind dom events, that is the user own responsibility
|
|
1117
|
+
*/
|
|
1118
|
+
destroy: function() {
|
|
1119
|
+
this.element && Jt(this, !1), this.handlers = {}, this.session = {}, this.input.destroy(), this.element = null;
|
|
1120
|
+
}
|
|
1121
|
+
};
|
|
1122
|
+
function Jt(t, e) {
|
|
1123
|
+
var i = t.element;
|
|
1124
|
+
if (i.style) {
|
|
1125
|
+
var r;
|
|
1126
|
+
P(t.options.cssProps, function(n, s) {
|
|
1127
|
+
r = Q(i.style, s), e ? (t.oldCssProps[r] = i.style[r], i.style[r] = n) : i.style[r] = t.oldCssProps[r] || "";
|
|
1128
|
+
}), e || (t.oldCssProps = {});
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
function xe(t, e) {
|
|
1132
|
+
var i = yt.createEvent("Event");
|
|
1133
|
+
i.initEvent(t, !0, !0), i.gesture = e, e.target.dispatchEvent(i);
|
|
1134
|
+
}
|
|
1135
|
+
g(A, {
|
|
1136
|
+
INPUT_START: f,
|
|
1137
|
+
INPUT_MOVE: M,
|
|
1138
|
+
INPUT_END: o,
|
|
1139
|
+
INPUT_CANCEL: p,
|
|
1140
|
+
STATE_POSSIBLE: rt,
|
|
1141
|
+
STATE_BEGAN: d,
|
|
1142
|
+
STATE_CHANGED: H,
|
|
1143
|
+
STATE_ENDED: C,
|
|
1144
|
+
STATE_RECOGNIZED: N,
|
|
1145
|
+
STATE_CANCELLED: G,
|
|
1146
|
+
STATE_FAILED: _,
|
|
1147
|
+
DIRECTION_NONE: j,
|
|
1148
|
+
DIRECTION_LEFT: X,
|
|
1149
|
+
DIRECTION_RIGHT: F,
|
|
1150
|
+
DIRECTION_UP: V,
|
|
1151
|
+
DIRECTION_DOWN: W,
|
|
1152
|
+
DIRECTION_HORIZONTAL: I,
|
|
1153
|
+
DIRECTION_VERTICAL: U,
|
|
1154
|
+
DIRECTION_ALL: Ut,
|
|
1155
|
+
Manager: _t,
|
|
1156
|
+
Input: m,
|
|
1157
|
+
TouchAction: mt,
|
|
1158
|
+
TouchInput: et,
|
|
1159
|
+
MouseInput: tt,
|
|
1160
|
+
PointerEventInput: vt,
|
|
1161
|
+
TouchMouseInput: pt,
|
|
1162
|
+
SingleTouchInput: Ft,
|
|
1163
|
+
Recognizer: O,
|
|
1164
|
+
AttrRecognizer: E,
|
|
1165
|
+
Tap: at,
|
|
1166
|
+
Pan: st,
|
|
1167
|
+
Swipe: It,
|
|
1168
|
+
Pinch: dt,
|
|
1169
|
+
Rotate: gt,
|
|
1170
|
+
Press: Et,
|
|
1171
|
+
on: z,
|
|
1172
|
+
off: Z,
|
|
1173
|
+
each: P,
|
|
1174
|
+
merge: te,
|
|
1175
|
+
extend: Ot,
|
|
1176
|
+
assign: g,
|
|
1177
|
+
inherit: T,
|
|
1178
|
+
bindFn: lt,
|
|
1179
|
+
prefixed: Q
|
|
1180
|
+
});
|
|
1181
|
+
var Ye = typeof u != "undefined" ? u : typeof self != "undefined" ? self : {};
|
|
1182
|
+
Ye.Hammer = A, typeof l == "function" && l.amd ? l(function() {
|
|
1183
|
+
return A;
|
|
1184
|
+
}) : k.exports ? k.exports = A : u[jt] = A;
|
|
1185
|
+
})(window, document, "Hammer");
|
|
1186
|
+
})(He);
|
|
1187
|
+
export {
|
|
1188
|
+
Qt as hammerExports
|
|
1189
|
+
};
|