@mapxus/mapxus-visual-jp 1.8.1 → 1.9.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/bitbucket-pipelines.yml +50 -0
- package/config/rollup.js +33 -0
- package/config/rollup.serve.config.js +3 -0
- package/debug/circlemarker.html +444 -0
- package/debug/create_tags.html +474 -0
- package/debug/distance.html +220 -0
- package/debug/index.html +92 -0
- package/debug/integration.html +1084 -0
- package/debug/leaflet.html +54 -0
- package/debug/markers.html +115 -0
- package/debug/multi_monitor_sync.html +377 -0
- package/debug/outdoor.html +1026 -0
- package/debug/rect_tags.html +147 -0
- package/debug/rotate.html +236 -0
- package/debug/sample.html +324 -0
- package/debug/sequence.html +75 -0
- package/debug/tags.html +218 -0
- package/package.json +34 -10
- package/rollup.config.js +39 -0
- package/server.js +35 -0
- package/spec/api/APIv3.spec.ts +86 -0
- package/spec/component/Component.spec.ts +68 -0
- package/spec/component/StatsComponent.spec.ts +33 -0
- package/spec/component/direction/DirectionComponent.spec.ts +163 -0
- package/spec/component/direction/DirectionDOMRenderer.spec.ts +233 -0
- package/spec/component/keyboard/KeyZoomHandler.spec.ts +236 -0
- package/spec/component/marker/Marker.spec.ts +104 -0
- package/spec/component/marker/MarkerComponent.spec.ts +88 -0
- package/spec/component/marker/MarkerScene.spec.ts +223 -0
- package/spec/component/marker/MarkerSet.spec.ts +453 -0
- package/spec/component/mouse/DoubleClickZoomHandler.spec.ts +211 -0
- package/spec/component/popup/Popup.spec.ts +479 -0
- package/spec/component/popup/PopupComponent.spec.ts +414 -0
- package/spec/component/tag/CreateHandlerBase.spec.ts +83 -0
- package/spec/component/tag/CreatePointHandler.spec.ts +190 -0
- package/spec/component/tag/OutlineRenderTag.spec.ts +91 -0
- package/spec/component/tag/PointGeometry.spec.ts +131 -0
- package/spec/component/tag/PolygonGeometry.spec.ts +497 -0
- package/spec/component/tag/RectGeometry.spec.ts +1157 -0
- package/spec/component/tag/TagComponent.spec.ts +513 -0
- package/spec/component/tag/TagScene.spec.ts +346 -0
- package/spec/component/tag/TagSet.spec.ts +241 -0
- package/spec/component/utils/HandlerBase.spec.ts +203 -0
- package/spec/geo/Camera.spec.ts +250 -0
- package/spec/geo/GeoCoords.spec.ts +364 -0
- package/spec/geo/Spatial.spec.ts +711 -0
- package/spec/geo/Transform.spec.ts +850 -0
- package/spec/geo/ViewportCoords.spec.ts +534 -0
- package/spec/graph/FilterCreator.spec.ts +892 -0
- package/spec/graph/Graph.spec.ts +2078 -0
- package/spec/graph/GraphCalculator.spec.ts +263 -0
- package/spec/graph/GraphService.spec.ts +663 -0
- package/spec/graph/Node.spec.ts +373 -0
- package/spec/graph/NodeCache.spec.ts +206 -0
- package/spec/graph/Sequence.spec.ts +37 -0
- package/spec/graph/edge/EdgeCalculator.Pano.spec.ts +963 -0
- package/spec/graph/edge/EdgeCalculator.Sequence.spec.ts +108 -0
- package/spec/graph/edge/EdgeCalculator.Similar.spec.ts +272 -0
- package/spec/graph/edge/EdgeCalculator.Step.spec.ts +383 -0
- package/spec/graph/edge/EdgeCalculator.Turn.spec.ts +278 -0
- package/spec/graph/edge/EdgeCalculator.spec.ts +747 -0
- package/spec/helper/ContainerMockCreator.spec.ts +33 -0
- package/spec/helper/DOMRendererMockCreator.spec.ts +22 -0
- package/spec/helper/EdgeCalculatorHelper.spec.ts +96 -0
- package/spec/helper/EventHelper.spec.ts +92 -0
- package/spec/helper/GLRendererMockCreator.spec.ts +23 -0
- package/spec/helper/GeoHelper.spec.ts +16 -0
- package/spec/helper/ImageLoadingServiceMockCreator.spec.ts +24 -0
- package/spec/helper/KeyboardServiceMockCreator.spec.ts +21 -0
- package/spec/helper/LoadingServiceMockCreator.spec.ts +21 -0
- package/spec/helper/MockCreator.spec.ts +18 -0
- package/spec/helper/MockCreatorBase.spec.ts +17 -0
- package/spec/helper/MouseServiceMockCreator.spec.ts +38 -0
- package/spec/helper/NavigatorMockCreator.spec.ts +28 -0
- package/spec/helper/NodeHelper.spec.ts +77 -0
- package/spec/helper/NodeMockCreator.spec.ts +19 -0
- package/spec/helper/RenderServiceMockCreator.spec.ts +25 -0
- package/spec/helper/SpriteServiceMockCreator.spec.ts +22 -0
- package/spec/helper/StateServiceMockCreator.spec.ts +33 -0
- package/spec/helper/TouchServiceMockCreator.spec.ts +29 -0
- package/spec/helper/TransformHelper.spec.ts +17 -0
- package/spec/render/DOMRenderer.spec.ts +112 -0
- package/spec/render/GLRenderer.spec.ts +453 -0
- package/spec/render/RenderCamera.spec.ts +535 -0
- package/spec/render/RenderService.spec.ts +531 -0
- package/spec/state/StateBase.spec.ts +369 -0
- package/spec/state/StateService.spec.ts +9 -0
- package/spec/state/TraversingState.spec.ts +262 -0
- package/spec/state/WaitingState.spec.ts +319 -0
- package/spec/tiles/TextureProvider.spec.ts +653 -0
- package/spec/utils/EventEmitter.spec.ts +71 -0
- package/spec/utils/Support.spec.ts +54 -0
- package/spec/viewer/CacheService.spec.ts +160 -0
- package/spec/viewer/ComponentController.spec.ts +310 -0
- package/spec/viewer/LoadingService.spec.ts +19 -0
- package/spec/viewer/MouseService.spec.ts +1344 -0
- package/spec/viewer/Navigator.spec.ts +970 -0
- package/spec/viewer/Observer.spec.ts +96 -0
- package/spec/viewer/SpriteService.spec.ts +224 -0
- package/src/API.ts +3 -0
- package/src/Component.ts +77 -0
- package/src/Edge.ts +6 -0
- package/src/Error.ts +3 -0
- package/src/FilterRender.ts +27 -0
- package/src/Geo.ts +7 -0
- package/src/Graph.ts +19 -0
- package/src/MapxusVisual.ts +66 -0
- package/src/Render.ts +7 -0
- package/src/State.ts +8 -0
- package/src/Support.ts +35 -0
- package/src/Tiles.ts +5 -0
- package/src/Utils.ts +6 -0
- package/src/Viewer.ts +16 -0
- package/src/api/API.ts +396 -0
- package/src/api/Auth.ts +76 -0
- package/src/api/AuthStore.ts +11 -0
- package/src/api/GraphQLCreator.ts +100 -0
- package/src/api/interfaces/IAuth.ts +7 -0
- package/src/api/interfaces/IBuildingBase.ts +7 -0
- package/src/api/interfaces/IBuildingInfo.ts +19 -0
- package/src/api/interfaces/ICoreNode.ts +28 -0
- package/src/api/interfaces/IFillNode.ts +96 -0
- package/src/api/interfaces/IFloorInfo.ts +10 -0
- package/src/api/interfaces/IFullNode.ts +10 -0
- package/src/api/interfaces/IGPano.ts +38 -0
- package/src/api/interfaces/IImageTagInfo.ts +14 -0
- package/src/api/interfaces/IKey.ts +13 -0
- package/src/api/interfaces/ILatLon.ts +19 -0
- package/src/api/interfaces/IOutdoor.ts +14 -0
- package/src/api/interfaces/IPathNode.ts +37 -0
- package/src/api/interfaces/IProject.ts +8 -0
- package/src/api/interfaces/IQueryBuilding.ts +37 -0
- package/src/api/interfaces/IResponse.ts +7 -0
- package/src/api/interfaces/ISequence.ts +16 -0
- package/src/api/interfaces/IUser.ts +13 -0
- package/src/api/interfaces/interfaces.ts +17 -0
- package/src/component/AttributionComponent.ts +48 -0
- package/src/component/BackgroundComponent.ts +39 -0
- package/src/component/BearingComponent.ts +282 -0
- package/src/component/CacheComponent.ts +295 -0
- package/src/component/Component.ts +130 -0
- package/src/component/ComponentService.ts +150 -0
- package/src/component/CoverComponent.ts +132 -0
- package/src/component/DebugComponent.ts +157 -0
- package/src/component/ImageComponent.ts +96 -0
- package/src/component/LoadingComponent.ts +85 -0
- package/src/component/NavigationComponent.ts +233 -0
- package/src/component/RouteComponent.ts +354 -0
- package/src/component/StatsComponent.ts +100 -0
- package/src/component/direction/DirectionComponent.ts +254 -0
- package/src/component/direction/DirectionDOMCalculator.ts +243 -0
- package/src/component/direction/DirectionDOMRenderer.ts +631 -0
- package/src/component/imageplane/ImagePlaneComponent.ts +497 -0
- package/src/component/imageplane/ImagePlaneFactory.ts +314 -0
- package/src/component/imageplane/ImagePlaneGLRenderer.ts +247 -0
- package/src/component/imageplane/ImagePlaneScene.ts +87 -0
- package/src/component/imageplane/ImagePlaneShaders.ts +16 -0
- package/src/component/imageplane/SliderComponent.ts +697 -0
- package/src/component/imageplane/interfaces/IBBoxShaderMaterial.ts +10 -0
- package/src/component/imageplane/interfaces/IShaderMaterial.ts +9 -0
- package/src/component/imageplane/interfaces/interfaces.ts +2 -0
- package/src/component/imageplane/shaders/equirectangular.fragment.glsl.ts +26 -0
- package/src/component/imageplane/shaders/equirectangular.vertex.glsl.ts +15 -0
- package/src/component/imageplane/shaders/perspective.fragment.glsl.ts +27 -0
- package/src/component/imageplane/shaders/perspective.vertex.glsl.ts +15 -0
- package/src/component/interfaces/ICacheConfiguration.ts +72 -0
- package/src/component/interfaces/IComponentConfiguration.ts +5 -0
- package/src/component/interfaces/ICoverConfiguration.ts +15 -0
- package/src/component/interfaces/IDirectionConfiguration.ts +63 -0
- package/src/component/interfaces/IImagePlaneConfiguration.ts +17 -0
- package/src/component/interfaces/IKeyboardConfiguration.ts +44 -0
- package/src/component/interfaces/IMarkerConfiguration.ts +31 -0
- package/src/component/interfaces/IMouseConfiguration.ts +52 -0
- package/src/component/interfaces/INavigationConfiguration.ts +35 -0
- package/src/component/interfaces/IRouteConfiguration.ts +20 -0
- package/src/component/interfaces/ISequenceConfiguration.ts +72 -0
- package/src/component/interfaces/IShader.ts +6 -0
- package/src/component/interfaces/ISliderConfiguration.ts +61 -0
- package/src/component/interfaces/ITagConfiguration.ts +40 -0
- package/src/component/interfaces/interfaces.ts +17 -0
- package/src/component/keyboard/KeySequenceNavigationHandler.ts +86 -0
- package/src/component/keyboard/KeySpatialNavigationHandler.ts +216 -0
- package/src/component/keyboard/KeyZoomHandler.ts +106 -0
- package/src/component/keyboard/KeyboardComponent.ts +125 -0
- package/src/component/marker/Marker.ts +5 -0
- package/src/component/marker/MarkerComponent.ts +856 -0
- package/src/component/marker/MarkerScene.ts +145 -0
- package/src/component/marker/MarkerSet.ts +142 -0
- package/src/component/marker/interfaces/IArrowMarkerOptions.ts +41 -0
- package/src/component/marker/interfaces/ICircleMarkerOptions.ts +30 -0
- package/src/component/marker/interfaces/IDotMarkerOptions.ts +18 -0
- package/src/component/marker/interfaces/IMarkerEvent.ts +28 -0
- package/src/component/marker/interfaces/ISimpleMarkerOptions.ts +54 -0
- package/src/component/marker/interfaces/interfaces.ts +5 -0
- package/src/component/marker/marker/ArrowMarker.ts +84 -0
- package/src/component/marker/marker/CircleMarker.ts +82 -0
- package/src/component/marker/marker/DotMarker.ts +68 -0
- package/src/component/marker/marker/ImageMarker.ts +45 -0
- package/src/component/marker/marker/Marker.ts +99 -0
- package/src/component/marker/marker/SimpleMarker.ts +187 -0
- package/src/component/mouse/BounceHandler.ts +148 -0
- package/src/component/mouse/DoubleClickZoomHandler.ts +106 -0
- package/src/component/mouse/DragPanHandler.ts +489 -0
- package/src/component/mouse/HandlerTypes.ts +13 -0
- package/src/component/mouse/MouseComponent.ts +170 -0
- package/src/component/mouse/ScrollZoomHandler.ts +137 -0
- package/src/component/mouse/TouchZoomHandler.ts +136 -0
- package/src/component/path/PathComponent.ts +75 -0
- package/src/component/path/PathEvent.ts +245 -0
- package/src/component/path/PathMarker.ts +42 -0
- package/src/component/path/PathRender.ts +163 -0
- package/src/component/popup/Popup.ts +2 -0
- package/src/component/popup/PopupComponent.ts +244 -0
- package/src/component/popup/interfaces/IPopupOffset.ts +37 -0
- package/src/component/popup/interfaces/IPopupOptions.ts +81 -0
- package/src/component/popup/popup/Popup.ts +594 -0
- package/src/component/popup/popup/PopupAlignment.ts +3 -0
- package/src/component/sequence/SequenceComponent.ts +500 -0
- package/src/component/sequence/SequenceDOMInteraction.ts +23 -0
- package/src/component/sequence/SequenceDOMRenderer.ts +179 -0
- package/src/component/tag/Tag.ts +9 -0
- package/src/component/tag/TagComponent.ts +787 -0
- package/src/component/tag/TagCreator.ts +138 -0
- package/src/component/tag/TagDOMRenderer.ts +35 -0
- package/src/component/tag/TagMode.ts +37 -0
- package/src/component/tag/TagOperation.ts +7 -0
- package/src/component/tag/TagScene.ts +216 -0
- package/src/component/tag/TagSet.ts +186 -0
- package/src/component/tag/error/GeometryTagError.ts +11 -0
- package/src/component/tag/geometry/Geometry.ts +62 -0
- package/src/component/tag/geometry/PointGeometry.ts +89 -0
- package/src/component/tag/geometry/PolygonGeometry.ts +349 -0
- package/src/component/tag/geometry/RectGeometry.ts +759 -0
- package/src/component/tag/geometry/VertexGeometry.ts +185 -0
- package/src/component/tag/handlers/CreateHandlerBase.ts +81 -0
- package/src/component/tag/handlers/CreatePointHandler.ts +35 -0
- package/src/component/tag/handlers/CreatePolygonHandler.ts +33 -0
- package/src/component/tag/handlers/CreateRectDragHandler.ts +199 -0
- package/src/component/tag/handlers/CreateRectHandler.ts +57 -0
- package/src/component/tag/handlers/CreateVertexHandler.ts +165 -0
- package/src/component/tag/handlers/EditVertexHandler.ts +275 -0
- package/src/component/tag/handlers/TagHandlerBase.ts +57 -0
- package/src/component/tag/interfaces/IInteraction.ts +14 -0
- package/src/component/tag/interfaces/IOutlineCreateTagOptions.ts +15 -0
- package/src/component/tag/interfaces/IOutlineTagOptions.ts +89 -0
- package/src/component/tag/interfaces/ISpotTagOptions.ts +37 -0
- package/src/component/tag/interfaces/interfaces.ts +4 -0
- package/src/component/tag/tag/OutlineCreateTag.ts +330 -0
- package/src/component/tag/tag/OutlineRenderTag.ts +569 -0
- package/src/component/tag/tag/OutlineTag.ts +380 -0
- package/src/component/tag/tag/RenderTag.ts +50 -0
- package/src/component/tag/tag/SpotRenderTag.ts +160 -0
- package/src/component/tag/tag/SpotTag.ts +170 -0
- package/src/component/tag/tag/Tag.ts +103 -0
- package/src/component/utils/HandlerBase.ts +71 -0
- package/src/error/ArgumentBeeviewError.ts +11 -0
- package/src/error/BeeviewError.ts +9 -0
- package/src/error/GraphBeeviewError.ts +11 -0
- package/src/geo/Camera.ts +149 -0
- package/src/geo/GeoCoords.ts +280 -0
- package/src/geo/GeoRBush.ts +25 -0
- package/src/geo/Spatial.ts +259 -0
- package/src/geo/Transform.ts +543 -0
- package/src/geo/ViewportCoords.ts +518 -0
- package/src/geo/interfaces/ILatLonAlt.ts +7 -0
- package/src/geo/interfaces/interfaces.ts +1 -0
- package/src/graph/FilterCreator.ts +106 -0
- package/src/graph/FilterExpression.ts +16 -0
- package/src/graph/Graph.ts +1516 -0
- package/src/graph/GraphCalculator.ts +197 -0
- package/src/graph/GraphService.ts +516 -0
- package/src/graph/ImageLoadingService.ts +44 -0
- package/src/graph/MeshReader.ts +19 -0
- package/src/graph/Node.ts +622 -0
- package/src/graph/NodeCache.ts +548 -0
- package/src/graph/Sequence.ts +117 -0
- package/src/graph/edge/EdgeCalculator.ts +919 -0
- package/src/graph/edge/EdgeCalculatorCoefficients.ts +43 -0
- package/src/graph/edge/EdgeCalculatorDirections.ts +80 -0
- package/src/graph/edge/EdgeCalculatorSettings.ts +61 -0
- package/src/graph/edge/EdgeDirection.ts +63 -0
- package/src/graph/edge/interfaces/IEdge.ts +26 -0
- package/src/graph/edge/interfaces/IEdgeData.ts +22 -0
- package/src/graph/edge/interfaces/IPano.ts +8 -0
- package/src/graph/edge/interfaces/IPotentialEdge.ts +106 -0
- package/src/graph/edge/interfaces/IStep.ts +7 -0
- package/src/graph/edge/interfaces/ITurn.ts +7 -0
- package/src/graph/edge/interfaces/interfaces.ts +6 -0
- package/src/graph/interfaces/IEdgeStatus.ts +25 -0
- package/src/graph/interfaces/IGraphConfiguration.ts +26 -0
- package/src/graph/interfaces/ILoadStatus.ts +18 -0
- package/src/graph/interfaces/ILoadStatusObject.ts +8 -0
- package/src/graph/interfaces/IMesh.ts +20 -0
- package/src/graph/interfaces/interfaces.ts +5 -0
- package/src/render/DOMRenderer.ts +288 -0
- package/src/render/GLRenderStage.ts +6 -0
- package/src/render/GLRenderer.ts +436 -0
- package/src/render/RenderCamera.ts +212 -0
- package/src/render/RenderMode.ts +34 -0
- package/src/render/RenderService.ts +264 -0
- package/src/render/interfaces/IGLRender.ts +10 -0
- package/src/render/interfaces/IGLRenderFunction.ts +10 -0
- package/src/render/interfaces/IGLRenderHash.ts +8 -0
- package/src/render/interfaces/ISize.ts +6 -0
- package/src/render/interfaces/IVNodeHash.ts +8 -0
- package/src/render/interfaces/interfaces.ts +5 -0
- package/src/state/FrameGenerator.ts +36 -0
- package/src/state/State.ts +6 -0
- package/src/state/StateContext.ts +180 -0
- package/src/state/StateService.ts +600 -0
- package/src/state/StateTransitionMatrix.ts +58 -0
- package/src/state/interfaces/ICurrentState.ts +21 -0
- package/src/state/interfaces/IFrame.ts +9 -0
- package/src/state/interfaces/IRotation.ts +6 -0
- package/src/state/interfaces/IState.ts +11 -0
- package/src/state/interfaces/IStateContext.ts +31 -0
- package/src/state/interfaces/interfaces.ts +5 -0
- package/src/state/states/StateBase.ts +425 -0
- package/src/state/states/TraversingState.ts +861 -0
- package/src/state/states/WaitingState.ts +109 -0
- package/src/tiles/ImageTileLoader.ts +121 -0
- package/src/tiles/ImageTileStore.ts +70 -0
- package/src/tiles/RegionOfInterestCalculator.ts +158 -0
- package/src/tiles/TextureProvider.ts +609 -0
- package/src/tiles/interfaces/IBoundingBox.ts +28 -0
- package/src/tiles/interfaces/IRegionOfInterest.ts +25 -0
- package/src/tiles/interfaces/interfaces.ts +2 -0
- package/src/utils/DOM.ts +28 -0
- package/src/utils/EventEmitter.ts +61 -0
- package/src/utils/Func.ts +3 -0
- package/src/utils/Settings.ts +39 -0
- package/src/utils/Support.ts +70 -0
- package/src/utils/Urls.ts +43 -0
- package/src/viewer/Alignment.ts +53 -0
- package/src/viewer/CacheService.ts +75 -0
- package/src/viewer/ComponentController.ts +237 -0
- package/src/viewer/Container.ts +100 -0
- package/src/viewer/EventNames.ts +192 -0
- package/src/viewer/ImageSize.ts +28 -0
- package/src/viewer/KeyboardService.ts +15 -0
- package/src/viewer/LoadingService.ts +66 -0
- package/src/viewer/MouseService.ts +541 -0
- package/src/viewer/Navigator.ts +362 -0
- package/src/viewer/Observer.ts +441 -0
- package/src/viewer/Projection.ts +162 -0
- package/src/viewer/SpriteService.ts +281 -0
- package/src/viewer/TouchService.ts +336 -0
- package/src/viewer/Viewer.ts +1132 -0
- package/src/viewer/interfaces/IComponentOptions.ts +176 -0
- package/src/viewer/interfaces/IMouseClaim.ts +6 -0
- package/src/viewer/interfaces/IMouseDeferPixels.ts +6 -0
- package/src/viewer/interfaces/IPinch.ts +81 -0
- package/src/viewer/interfaces/ISpriteAtlas.ts +12 -0
- package/src/viewer/interfaces/IUnprojection.ts +9 -0
- package/src/viewer/interfaces/IViewerMouseEvent.ts +56 -0
- package/src/viewer/interfaces/IViewerOptions.ts +88 -0
- package/src/viewer/interfaces/PointOfView.ts +19 -0
- package/src/viewer/interfaces/interfaces.ts +9 -0
- package/styles/AttributionComponent.css +26 -0
- package/styles/BackgroundComponent.css +21 -0
- package/styles/BearingComponent.css +48 -0
- package/styles/CoverComponent.css +169 -0
- package/styles/DebugComponent.css +28 -0
- package/styles/DirectionComponent.css +154 -0
- package/styles/LoadingComponent.css +14 -0
- package/styles/NavigationComponent.css +64 -0
- package/styles/NorthBg.png +0 -0
- package/styles/PopupComponent.css +188 -0
- package/styles/RouteComponent.css +21 -0
- package/styles/SequenceComponent.css +120 -0
- package/styles/SliderComponent.css +82 -0
- package/styles/TagComponent.css +105 -0
- package/styles/cover-logo.png +0 -0
- package/styles/mapillary-js.css +29 -0
- package/styles/pano-indicator.svg +3 -0
- package/styles/pano.svg +20 -0
- package/styles/pointer-wheat.svg +3 -0
- package/styles/pointer-white.svg +3 -0
- package/styles/spinner.svg +1 -0
- package/styles/stepper-left.svg +1 -0
- package/styles/stepper-play.svg +1 -0
- package/styles/stepper-right.svg +1 -0
- package/styles/stepper-stop.svg +1 -0
- package/styles/turn-around.svg +3 -0
- package/styles/turn.svg +3 -0
- package/tsconfig.json +28 -0
- package/tslint.json +81 -0
- package/types/graphql/index.d.ts +28 -0
- package/types/graphql/language/ast/index.d.ts +7 -0
- package/types/images/index.d.ts +7 -0
- package/types/pbf/index.d.ts +16 -0
- package/types/rbush/index.d.ts +28 -0
- package/version/beeview-0.1.0.css +2 -0
- package/version/beeview-0.1.0.js +1 -0
- package/version/beeview-0.1.1.css +2 -0
- package/version/beeview-0.1.1.js +1 -0
- package/version/beeview-0.1.2.css +2 -0
- package/version/beeview-0.1.2.js +1 -0
- package/version/beeview-0.2.0.css +2 -0
- package/version/beeview-0.2.0.js +1 -0
- package/version/beeview-0.2.1.css +2 -0
- package/version/beeview-0.2.1.js +1 -0
- package/version/beeview-0.3.0.css +2 -0
- package/version/beeview-0.3.0.js +1 -0
- package/version/beeview-0.4.0.css +2 -0
- package/version/beeview-0.4.0.js +1 -0
- package/version/beeview-0.4.1.css +2 -0
- package/version/beeview-0.4.1.js +1 -0
- package/version/mapxus-visual-1.0.0.css +2 -0
- package/version/mapxus-visual-1.0.0.js +1 -0
- package/version/mapxus-visual-1.1.0.css +2 -0
- package/version/mapxus-visual-1.1.0.js +1 -0
- package/version/mapxus-visual-1.1.1.css +2 -0
- package/version/mapxus-visual-1.1.1.js +1 -0
- package/version/mapxus-visual-1.1.2.css +2 -0
- package/version/mapxus-visual-1.1.2.js +1 -0
- package/version/mapxus-visual-1.2.0.css +2 -0
- package/version/mapxus-visual-1.2.0.js +1 -0
- package/version/mapxus-visual-1.3.0.css +2 -0
- package/version/mapxus-visual-1.3.0.js +1 -0
- package/LICENSE +0 -11
- package/README.md +0 -28
- package/index.css +0 -2
- package/index.d.ts +0 -163
- package/index.js +0 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default /* glsl */`
|
|
2
|
+
#ifdef GL_ES
|
|
3
|
+
precision highp float;
|
|
4
|
+
#endif
|
|
5
|
+
|
|
6
|
+
uniform sampler2D projectorTex;
|
|
7
|
+
uniform float opacity;
|
|
8
|
+
uniform float phiLength;
|
|
9
|
+
uniform float phiShift;
|
|
10
|
+
uniform float thetaLength;
|
|
11
|
+
uniform float thetaShift;
|
|
12
|
+
|
|
13
|
+
varying vec4 vRstq;
|
|
14
|
+
|
|
15
|
+
void main()
|
|
16
|
+
{
|
|
17
|
+
vec3 b = normalize(vRstq.xyz);
|
|
18
|
+
float lat = -asin(b.y);
|
|
19
|
+
float lon = atan(b.x, b.z);
|
|
20
|
+
float x = (lon - phiShift) / phiLength + 0.5;
|
|
21
|
+
float y = (lat - thetaShift) / thetaLength + 0.5;
|
|
22
|
+
vec4 baseColor = texture2D(projectorTex, vec2(x, y));
|
|
23
|
+
baseColor.a = opacity;
|
|
24
|
+
gl_FragColor = baseColor;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default /* glsl */`
|
|
2
|
+
#ifdef GL_ES
|
|
3
|
+
precision highp float;
|
|
4
|
+
#endif
|
|
5
|
+
|
|
6
|
+
uniform mat4 projectorMat;
|
|
7
|
+
|
|
8
|
+
varying vec4 vRstq;
|
|
9
|
+
|
|
10
|
+
void main()
|
|
11
|
+
{
|
|
12
|
+
vRstq = projectorMat * vec4(position, 1.0);
|
|
13
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default /* glsl */`
|
|
2
|
+
#ifdef GL_ES
|
|
3
|
+
precision highp float;
|
|
4
|
+
#endif
|
|
5
|
+
|
|
6
|
+
uniform sampler2D projectorTex;
|
|
7
|
+
uniform float opacity;
|
|
8
|
+
uniform vec4 bbox;
|
|
9
|
+
|
|
10
|
+
varying vec4 vRstq;
|
|
11
|
+
|
|
12
|
+
void main()
|
|
13
|
+
{
|
|
14
|
+
float x = vRstq.x / vRstq.w;
|
|
15
|
+
float y = vRstq.y / vRstq.w;
|
|
16
|
+
|
|
17
|
+
vec4 baseColor;
|
|
18
|
+
if (x > bbox[0] && y > bbox[1] && x < bbox[2] && y < bbox[3]) {
|
|
19
|
+
baseColor = texture2D(projectorTex, vec2(x, y));
|
|
20
|
+
baseColor.a = opacity;
|
|
21
|
+
} else {
|
|
22
|
+
baseColor = vec4(0.0, 0.0, 0.0, 0.0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
gl_FragColor = baseColor;
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default /* glsl */`
|
|
2
|
+
#ifdef GL_ES
|
|
3
|
+
precision highp float;
|
|
4
|
+
#endif
|
|
5
|
+
|
|
6
|
+
uniform mat4 projectorMat;
|
|
7
|
+
|
|
8
|
+
varying vec4 vRstq;
|
|
9
|
+
|
|
10
|
+
void main()
|
|
11
|
+
{
|
|
12
|
+
vRstq = projectorMat * vec4(position, 1.0);
|
|
13
|
+
gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of cache depth.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* cache: {
|
|
13
|
+
* depth: {
|
|
14
|
+
* pano: 2,
|
|
15
|
+
* sequence: 3,
|
|
16
|
+
* }
|
|
17
|
+
* },
|
|
18
|
+
* },
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export interface ICacheDepth {
|
|
23
|
+
/**
|
|
24
|
+
* Cache depth in the sequence directions.
|
|
25
|
+
*
|
|
26
|
+
* @description Max value is 4. Value will be coerced
|
|
27
|
+
* to the interval [0, 4].
|
|
28
|
+
* @default 2
|
|
29
|
+
*/
|
|
30
|
+
sequence: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Cache depth in the pano direction.
|
|
34
|
+
*
|
|
35
|
+
* @description Max value is 2. Value will be coerced
|
|
36
|
+
* to the interval [0, 2].
|
|
37
|
+
* @default 1
|
|
38
|
+
*/
|
|
39
|
+
pano: number;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Cache depth in the step directions.
|
|
43
|
+
*
|
|
44
|
+
* @description Max value is 3. Value will be coerced
|
|
45
|
+
* to the interval [0, 3].
|
|
46
|
+
* @default 1
|
|
47
|
+
*/
|
|
48
|
+
step: number;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Cache depth in the turn directions.
|
|
52
|
+
*
|
|
53
|
+
* @description Max value is 1. Value will be coerced
|
|
54
|
+
* to the interval [0, 1].
|
|
55
|
+
* @default 0
|
|
56
|
+
*/
|
|
57
|
+
turn: number;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Interface for configuration of cache component.
|
|
62
|
+
*
|
|
63
|
+
* @interface
|
|
64
|
+
*/
|
|
65
|
+
export interface ICacheConfiguration extends IComponentConfiguration {
|
|
66
|
+
/**
|
|
67
|
+
* Cache depth struct.
|
|
68
|
+
*/
|
|
69
|
+
depth?: ICacheDepth;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default ICacheConfiguration;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
export enum CoverState {
|
|
4
|
+
Hidden,
|
|
5
|
+
Loading,
|
|
6
|
+
Visible,
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface ICoverConfiguration extends IComponentConfiguration {
|
|
10
|
+
key?: string;
|
|
11
|
+
src?: string;
|
|
12
|
+
state?: CoverState;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default ICoverConfiguration;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of direction component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* direction: {
|
|
13
|
+
* minWidth: 140,
|
|
14
|
+
* maxWidth: 340,
|
|
15
|
+
* },
|
|
16
|
+
* },
|
|
17
|
+
* })
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export interface IDirectionConfiguration extends IComponentConfiguration {
|
|
21
|
+
/**
|
|
22
|
+
* Determines if the sequence arrow appearance should be different from
|
|
23
|
+
* the non sequence arrows.
|
|
24
|
+
*
|
|
25
|
+
* @description Needs to be set to true for the sequence suffixed classes
|
|
26
|
+
* to be applied to the navigation elements. Additional calculations will be
|
|
27
|
+
* performed resulting in a performance cost.
|
|
28
|
+
*
|
|
29
|
+
* @default false
|
|
30
|
+
*/
|
|
31
|
+
distinguishSequence?: boolean;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* The node key representing the direction arrow to be highlighted.
|
|
35
|
+
*
|
|
36
|
+
* @default undefined
|
|
37
|
+
*/
|
|
38
|
+
highlightKey?: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The min width of the non transformed container element holding
|
|
42
|
+
* the navigation arrows.
|
|
43
|
+
*
|
|
44
|
+
* @description If the min width is larger than the max width the
|
|
45
|
+
* min width value will be used.
|
|
46
|
+
*
|
|
47
|
+
* @default 260
|
|
48
|
+
*/
|
|
49
|
+
minWidth?: number;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* The max width of the non transformed container element holding
|
|
53
|
+
* the navigation arrows.
|
|
54
|
+
*
|
|
55
|
+
* @description If the min width is larger than the max width the
|
|
56
|
+
* min width value will be used.
|
|
57
|
+
*
|
|
58
|
+
* @default 460
|
|
59
|
+
*/
|
|
60
|
+
maxWidth?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export default IDirectionConfiguration;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for experimental configuration of image plane component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
*/
|
|
8
|
+
export interface IImagePlaneConfiguration extends IComponentConfiguration {
|
|
9
|
+
/**
|
|
10
|
+
* Experimental setting specifying if image tiling should be used
|
|
11
|
+
* on zoom. Support for this configuration may be
|
|
12
|
+
* changed or removed in a future minor release.
|
|
13
|
+
*/
|
|
14
|
+
imageTiling?: boolean;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default IImagePlaneConfiguration;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of keyboard component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* keyboard: {
|
|
13
|
+
* keyZoom: false,
|
|
14
|
+
* keySequenceNavigation: false,
|
|
15
|
+
* keySpatialNavigation: false,
|
|
16
|
+
* },
|
|
17
|
+
* },
|
|
18
|
+
* })
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export interface IKeyboardConfiguration extends IComponentConfiguration {
|
|
22
|
+
/**
|
|
23
|
+
* Enable or disable the `KeyHandler`.
|
|
24
|
+
*
|
|
25
|
+
* @default true
|
|
26
|
+
*/
|
|
27
|
+
keyZoom?: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Enable or disable the `KeySequenceNavigationHandler`.
|
|
31
|
+
*
|
|
32
|
+
* @default true
|
|
33
|
+
*/
|
|
34
|
+
keySequenceNavigation?: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Enable or disable the `KeySpatialNavigationHandler`.
|
|
38
|
+
*
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
keySpatialNavigation?: boolean;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default IKeyboardConfiguration;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of marker component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* marker: {
|
|
13
|
+
* visibleBBoxSize: 80,
|
|
14
|
+
* },
|
|
15
|
+
* },
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export interface IMarkerConfiguration extends IComponentConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* The size of the bounding box for which markers will be visible.
|
|
22
|
+
*
|
|
23
|
+
* @description Provided values will be clamped to the [1, 200]
|
|
24
|
+
* interval.
|
|
25
|
+
*
|
|
26
|
+
* @default 100
|
|
27
|
+
*/
|
|
28
|
+
visibleBBoxSize?: number;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export default IMarkerConfiguration;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of mouse component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* mouse: {
|
|
13
|
+
* doubleClickZoom: false,
|
|
14
|
+
* dragPan: false,
|
|
15
|
+
* scrollZoom: false,
|
|
16
|
+
* touchZoom: false,
|
|
17
|
+
* },
|
|
18
|
+
* },
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export interface IMouseConfiguration extends IComponentConfiguration {
|
|
23
|
+
/**
|
|
24
|
+
* Enable or disable the `DoubleClickZoomHandler`.
|
|
25
|
+
*
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
doubleClickZoom?: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Enable or disable the `DragPanHandler`.
|
|
32
|
+
*
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
dragPan?: boolean;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Enable or disable the `ScrollZoomHandler`.
|
|
39
|
+
*
|
|
40
|
+
* @default true
|
|
41
|
+
*/
|
|
42
|
+
scrollZoom?: boolean;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Enable or disable the `TouchZoomHandler`.
|
|
46
|
+
*
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
touchZoom?: boolean;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export default IMouseConfiguration;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of navigation component.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
* @example
|
|
8
|
+
* ```
|
|
9
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
10
|
+
* {
|
|
11
|
+
* component: {
|
|
12
|
+
* navigation: {
|
|
13
|
+
* spatial: false,
|
|
14
|
+
* },
|
|
15
|
+
* },
|
|
16
|
+
* })
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export interface INavigationConfiguration extends IComponentConfiguration {
|
|
20
|
+
/**
|
|
21
|
+
* Enable or disable the sequence arrows.
|
|
22
|
+
*
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
sequence?: boolean;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Enable or disable the spatial arrows.
|
|
29
|
+
*
|
|
30
|
+
* @default true
|
|
31
|
+
*/
|
|
32
|
+
spatial?: boolean;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export default INavigationConfiguration;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
export interface IRouteInfoKey {
|
|
4
|
+
key: string;
|
|
5
|
+
description: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface IRoutePath {
|
|
9
|
+
sequenceKey: string;
|
|
10
|
+
startKey: string;
|
|
11
|
+
stopKey: string;
|
|
12
|
+
infoKeys: IRouteInfoKey[];
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IRouteConfiguration extends IComponentConfiguration {
|
|
16
|
+
paths?: IRoutePath[];
|
|
17
|
+
playing?: boolean;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default IRouteConfiguration;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
import {EdgeDirection} from "../../Edge";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Interface for configuration of sequence component.
|
|
6
|
+
*
|
|
7
|
+
* @interface
|
|
8
|
+
* @example
|
|
9
|
+
* ```
|
|
10
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
11
|
+
* {
|
|
12
|
+
* component: {
|
|
13
|
+
* sequence: {
|
|
14
|
+
* minWidth: 40,
|
|
15
|
+
* maxWidth: 80,
|
|
16
|
+
* visible: false,
|
|
17
|
+
* },
|
|
18
|
+
* },
|
|
19
|
+
* })
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export interface ISequenceConfiguration extends IComponentConfiguration {
|
|
23
|
+
/**
|
|
24
|
+
* Set the direction to follow when playing.
|
|
25
|
+
*
|
|
26
|
+
* @default EdgeDirection.Next
|
|
27
|
+
*/
|
|
28
|
+
direction?: EdgeDirection;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The node key representing the direction arrow to be highlighted.
|
|
32
|
+
*
|
|
33
|
+
* @description When set to null no direction will be highlighted.
|
|
34
|
+
*
|
|
35
|
+
* @default undefined
|
|
36
|
+
*/
|
|
37
|
+
highlightKey?: string;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The max width of the sequence container.
|
|
41
|
+
*
|
|
42
|
+
* @description If the min width is larger than the max width the
|
|
43
|
+
* min width value will be used.
|
|
44
|
+
* @default 117
|
|
45
|
+
*/
|
|
46
|
+
maxWidth?: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* The min width of the sequence container.
|
|
50
|
+
*
|
|
51
|
+
* @description If the min width is larger than the max width the
|
|
52
|
+
* min width value will be used.
|
|
53
|
+
* @default 70
|
|
54
|
+
*/
|
|
55
|
+
minWidth?: number;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Indicating wheter the component is playing.
|
|
59
|
+
*
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
playing?: boolean;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Determine if the component should be visible.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
visible?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export default ISequenceConfiguration;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {IComponentConfiguration} from "../../Component";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface for configuration of slider keys.
|
|
5
|
+
*
|
|
6
|
+
* @interface
|
|
7
|
+
*/
|
|
8
|
+
export interface ISliderKeys {
|
|
9
|
+
/**
|
|
10
|
+
* Key for the image plane in the background.
|
|
11
|
+
*/
|
|
12
|
+
background: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Key for the image plane in the foreground.
|
|
16
|
+
*/
|
|
17
|
+
foreground: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Interface for configuration of slider component.
|
|
22
|
+
*
|
|
23
|
+
* @interface
|
|
24
|
+
* ```
|
|
25
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
26
|
+
* {
|
|
27
|
+
* component: {
|
|
28
|
+
* slider: {
|
|
29
|
+
* initialPosition: 0.5,
|
|
30
|
+
* keys: {
|
|
31
|
+
* background: '<background-key>',
|
|
32
|
+
* foreground: '<foreground-key>',
|
|
33
|
+
* },
|
|
34
|
+
* sliderVisible: true,
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* })
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export interface ISliderConfiguration extends IComponentConfiguration {
|
|
41
|
+
/**
|
|
42
|
+
* Initial position of the slider on the interval [0, 1].
|
|
43
|
+
*
|
|
44
|
+
* @default 1
|
|
45
|
+
*/
|
|
46
|
+
initialPosition?: number;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Slider keys.
|
|
50
|
+
*/
|
|
51
|
+
keys?: ISliderKeys;
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Value indicating whether the slider should be visible.
|
|
55
|
+
*
|
|
56
|
+
* @default true
|
|
57
|
+
*/
|
|
58
|
+
sliderVisible?: boolean;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default ISliderConfiguration;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IComponentConfiguration,
|
|
3
|
+
TagMode,
|
|
4
|
+
} from "../../Component";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Interface for configuration of tag component.
|
|
8
|
+
*
|
|
9
|
+
* @interface
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* var viewer = new Beeview.Viewer('<element-id>', '<client-id>', '<photo-key>',
|
|
13
|
+
* {
|
|
14
|
+
* component: {
|
|
15
|
+
* tag: {
|
|
16
|
+
* createColor: 0xFF0000,
|
|
17
|
+
* mode: Beeview.TagComponent.TagMode.CreateRect,
|
|
18
|
+
* },
|
|
19
|
+
* },
|
|
20
|
+
* })
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export interface ITagConfiguration extends IComponentConfiguration {
|
|
24
|
+
/**
|
|
25
|
+
* The color of vertices and edges for tags that
|
|
26
|
+
* are being created.
|
|
27
|
+
*
|
|
28
|
+
* @default 0xFFFFFF
|
|
29
|
+
*/
|
|
30
|
+
createColor?: number;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The interaction mode of the tag component.
|
|
34
|
+
*
|
|
35
|
+
* @default TagMode.Default
|
|
36
|
+
*/
|
|
37
|
+
mode?: TagMode;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default ITagConfiguration;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export {ICacheConfiguration, ICacheDepth} from "./ICacheConfiguration";
|
|
2
|
+
export {CoverState, ICoverConfiguration} from "./ICoverConfiguration";
|
|
3
|
+
export {IDirectionConfiguration} from "./IDirectionConfiguration";
|
|
4
|
+
export {IImagePlaneConfiguration} from "./IImagePlaneConfiguration";
|
|
5
|
+
export {IKeyboardConfiguration} from "./IKeyboardConfiguration";
|
|
6
|
+
export {IMarkerConfiguration} from "./IMarkerConfiguration";
|
|
7
|
+
export {IMouseConfiguration} from "./IMouseConfiguration";
|
|
8
|
+
export {INavigationConfiguration} from "./INavigationConfiguration";
|
|
9
|
+
export {IRouteConfiguration, IRoutePath, IRouteInfoKey} from "./IRouteConfiguration";
|
|
10
|
+
export {ISliderConfiguration, ISliderKeys} from "./ISliderConfiguration";
|
|
11
|
+
export {IComponentConfiguration} from "./IComponentConfiguration";
|
|
12
|
+
export {ISequenceConfiguration} from "./ISequenceConfiguration";
|
|
13
|
+
export {ITagConfiguration} from "./ITagConfiguration";
|
|
14
|
+
export {IShader} from "./IShader";
|
|
15
|
+
export * from "../imageplane/interfaces/interfaces";
|
|
16
|
+
export * from "../marker/interfaces/interfaces";
|
|
17
|
+
export * from "../tag/interfaces/interfaces";
|