@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,43 @@
|
|
|
1
|
+
export class EdgeCalculatorCoefficients {
|
|
2
|
+
public panoPreferredDistance: number;
|
|
3
|
+
public panoMotion: number;
|
|
4
|
+
public panoSequencePenalty: number;
|
|
5
|
+
public panoMergeCCPenalty: number;
|
|
6
|
+
|
|
7
|
+
public stepPreferredDistance: number;
|
|
8
|
+
public stepMotion: number;
|
|
9
|
+
public stepRotation: number;
|
|
10
|
+
public stepSequencePenalty: number;
|
|
11
|
+
public stepMergeCCPenalty: number;
|
|
12
|
+
|
|
13
|
+
public similarDistance: number;
|
|
14
|
+
public similarRotation: number;
|
|
15
|
+
|
|
16
|
+
public turnDistance: number;
|
|
17
|
+
public turnMotion: number;
|
|
18
|
+
public turnSequencePenalty: number;
|
|
19
|
+
public turnMergeCCPenalty: number;
|
|
20
|
+
|
|
21
|
+
constructor() {
|
|
22
|
+
this.panoPreferredDistance = 2;
|
|
23
|
+
this.panoMotion = 2;
|
|
24
|
+
this.panoSequencePenalty = 1;
|
|
25
|
+
this.panoMergeCCPenalty = 4;
|
|
26
|
+
|
|
27
|
+
this.stepPreferredDistance = 4;
|
|
28
|
+
this.stepMotion = 3;
|
|
29
|
+
this.stepRotation = 4;
|
|
30
|
+
this.stepSequencePenalty = 2;
|
|
31
|
+
this.stepMergeCCPenalty = 6;
|
|
32
|
+
|
|
33
|
+
this.similarDistance = 2;
|
|
34
|
+
this.similarRotation = 3;
|
|
35
|
+
|
|
36
|
+
this.turnDistance = 4;
|
|
37
|
+
this.turnMotion = 2;
|
|
38
|
+
this.turnSequencePenalty = 1;
|
|
39
|
+
this.turnMergeCCPenalty = 4;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default EdgeCalculatorCoefficients;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import type { IPano, IStep, ITurn } from "./interfaces/interfaces";
|
|
2
|
+
import { EdgeDirection } from "./EdgeDirection";
|
|
3
|
+
|
|
4
|
+
export class EdgeCalculatorDirections {
|
|
5
|
+
public steps: { [direction: string]: IStep } = {};
|
|
6
|
+
public turns: { [direction: string]: ITurn } = {};
|
|
7
|
+
public panos: { [direction: string]: IPano } = {};
|
|
8
|
+
|
|
9
|
+
constructor() {
|
|
10
|
+
this.steps[EdgeDirection.StepForward] = {
|
|
11
|
+
direction: EdgeDirection.StepForward,
|
|
12
|
+
motionChange: 0,
|
|
13
|
+
useFallback: true,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
this.steps[EdgeDirection.StepBackward] = {
|
|
17
|
+
direction: EdgeDirection.StepBackward,
|
|
18
|
+
motionChange: Math.PI,
|
|
19
|
+
useFallback: true,
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
this.steps[EdgeDirection.StepLeft] = {
|
|
23
|
+
direction: EdgeDirection.StepLeft,
|
|
24
|
+
motionChange: Math.PI / 2,
|
|
25
|
+
useFallback: false,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
this.steps[EdgeDirection.StepRight] = {
|
|
29
|
+
direction: EdgeDirection.StepRight,
|
|
30
|
+
motionChange: -Math.PI / 2,
|
|
31
|
+
useFallback: false,
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
this.turns[EdgeDirection.TurnLeft] = {
|
|
35
|
+
direction: EdgeDirection.TurnLeft,
|
|
36
|
+
directionChange: Math.PI / 2,
|
|
37
|
+
motionChange: Math.PI / 4,
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
this.turns[EdgeDirection.TurnRight] = {
|
|
41
|
+
direction: EdgeDirection.TurnRight,
|
|
42
|
+
directionChange: -Math.PI / 2,
|
|
43
|
+
motionChange: -Math.PI / 4,
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
this.turns[EdgeDirection.TurnU] = {
|
|
47
|
+
direction: EdgeDirection.TurnU,
|
|
48
|
+
directionChange: Math.PI,
|
|
49
|
+
motionChange: null,
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
this.panos[EdgeDirection.StepForward] = {
|
|
53
|
+
direction: EdgeDirection.StepForward,
|
|
54
|
+
directionChange: 0,
|
|
55
|
+
next: EdgeDirection.StepLeft,
|
|
56
|
+
prev: EdgeDirection.StepRight,
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
this.panos[EdgeDirection.StepBackward] = {
|
|
60
|
+
direction: EdgeDirection.StepBackward,
|
|
61
|
+
directionChange: Math.PI,
|
|
62
|
+
next: EdgeDirection.StepRight,
|
|
63
|
+
prev: EdgeDirection.StepLeft,
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
this.panos[EdgeDirection.StepLeft] = {
|
|
67
|
+
direction: EdgeDirection.StepLeft,
|
|
68
|
+
directionChange: Math.PI / 2,
|
|
69
|
+
next: EdgeDirection.StepBackward,
|
|
70
|
+
prev: EdgeDirection.StepForward,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
this.panos[EdgeDirection.StepRight] = {
|
|
74
|
+
direction: EdgeDirection.StepRight,
|
|
75
|
+
directionChange: -Math.PI / 2,
|
|
76
|
+
next: EdgeDirection.StepForward,
|
|
77
|
+
prev: EdgeDirection.StepBackward,
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export class EdgeCalculatorSettings {
|
|
2
|
+
public panoMinDistance: number;
|
|
3
|
+
public panoMaxDistance: number;
|
|
4
|
+
public panoPreferredDistance: number;
|
|
5
|
+
public panoMaxItems: number;
|
|
6
|
+
public panoMaxStepTurnChange: number;
|
|
7
|
+
|
|
8
|
+
public rotationMaxDistance: number;
|
|
9
|
+
public rotationMaxDirectionChange: number;
|
|
10
|
+
public rotationMaxVerticalDirectionChange: number;
|
|
11
|
+
|
|
12
|
+
public similarMaxDirectionChange: number;
|
|
13
|
+
public similarMaxDistance: number;
|
|
14
|
+
public similarMinTimeDifference: number;
|
|
15
|
+
|
|
16
|
+
public stepMaxDistance: number;
|
|
17
|
+
public stepMaxDirectionChange: number;
|
|
18
|
+
public stepMaxDrift: number;
|
|
19
|
+
public stepPreferredDistance: number;
|
|
20
|
+
|
|
21
|
+
public turnMaxDistance: number;
|
|
22
|
+
public turnMaxDirectionChange: number;
|
|
23
|
+
public turnMaxRigDistance: number;
|
|
24
|
+
public turnMinRigDirectionChange: number;
|
|
25
|
+
|
|
26
|
+
constructor() {
|
|
27
|
+
this.panoMinDistance = 0.1;
|
|
28
|
+
this.panoMaxDistance = 20;
|
|
29
|
+
this.panoPreferredDistance = 5;
|
|
30
|
+
this.panoMaxItems = 4;
|
|
31
|
+
this.panoMaxStepTurnChange = Math.PI / 8;
|
|
32
|
+
|
|
33
|
+
this.rotationMaxDistance = this.turnMaxRigDistance;
|
|
34
|
+
this.rotationMaxDirectionChange = Math.PI / 6;
|
|
35
|
+
this.rotationMaxVerticalDirectionChange = Math.PI / 8;
|
|
36
|
+
|
|
37
|
+
this.similarMaxDirectionChange = Math.PI / 8;
|
|
38
|
+
this.similarMaxDistance = 12;
|
|
39
|
+
this.similarMinTimeDifference = 12 * 3600 * 1000;
|
|
40
|
+
|
|
41
|
+
this.stepMaxDistance = 20;
|
|
42
|
+
this.stepMaxDirectionChange = Math.PI / 6;
|
|
43
|
+
this.stepMaxDrift = Math.PI / 6;
|
|
44
|
+
this.stepPreferredDistance = 4;
|
|
45
|
+
|
|
46
|
+
this.turnMaxDistance = 15;
|
|
47
|
+
this.turnMaxDirectionChange = 2 * Math.PI / 9;
|
|
48
|
+
this.turnMaxRigDistance = 0.65;
|
|
49
|
+
this.turnMinRigDirectionChange = Math.PI / 6;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
public get maxDistance(): number {
|
|
53
|
+
return Math.max(
|
|
54
|
+
this.panoMaxDistance,
|
|
55
|
+
this.similarMaxDistance,
|
|
56
|
+
this.stepMaxDistance,
|
|
57
|
+
this.turnMaxDistance);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export default EdgeCalculatorSettings;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enumeration for edge directions
|
|
3
|
+
* @enum {number}
|
|
4
|
+
* @readonly
|
|
5
|
+
* @description Directions for edges in node graph describing
|
|
6
|
+
* sequence, spatial and node type relations between nodes.
|
|
7
|
+
*/
|
|
8
|
+
export enum EdgeDirection {
|
|
9
|
+
/**
|
|
10
|
+
* Next node in the sequence.
|
|
11
|
+
*/
|
|
12
|
+
Next,
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Previous node in the sequence.
|
|
16
|
+
*/
|
|
17
|
+
Prev,
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Step to the left keeping viewing direction.
|
|
21
|
+
*/
|
|
22
|
+
StepLeft,
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Step to the right keeping viewing direction.
|
|
26
|
+
*/
|
|
27
|
+
StepRight,
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Step forward keeping viewing direction.
|
|
31
|
+
*/
|
|
32
|
+
StepForward,
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Step backward keeping viewing direction.
|
|
36
|
+
*/
|
|
37
|
+
StepBackward,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Turn 90 degrees counter clockwise.
|
|
41
|
+
*/
|
|
42
|
+
TurnLeft,
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Turn 90 degrees clockwise.
|
|
46
|
+
*/
|
|
47
|
+
TurnRight,
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Turn 180 degrees.
|
|
51
|
+
*/
|
|
52
|
+
TurnU,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Panorama in general direction.
|
|
56
|
+
*/
|
|
57
|
+
Pano,
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Looking in roughly the same direction at rougly the same position.
|
|
61
|
+
*/
|
|
62
|
+
Similar,
|
|
63
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {IEdgeData} from "../../../Edge";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface that describes the properties for an edge from
|
|
5
|
+
* a source node to a destination node.
|
|
6
|
+
*
|
|
7
|
+
* @interface IEdge
|
|
8
|
+
*/
|
|
9
|
+
export interface IEdge {
|
|
10
|
+
/**
|
|
11
|
+
* The key of the source node.
|
|
12
|
+
*/
|
|
13
|
+
from: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* The key of the destination node.
|
|
17
|
+
*/
|
|
18
|
+
to: string;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Additional data describing properties of the edge.
|
|
22
|
+
*/
|
|
23
|
+
data: IEdgeData;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default IEdge;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {EdgeDirection} from "../../../Edge";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface that describes additional properties of an edge.
|
|
5
|
+
*
|
|
6
|
+
* @interface IEdgeData
|
|
7
|
+
*/
|
|
8
|
+
export interface IEdgeData {
|
|
9
|
+
/**
|
|
10
|
+
* The edge direction.
|
|
11
|
+
*/
|
|
12
|
+
direction: EdgeDirection;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The counter clockwise horizontal rotation angle from
|
|
16
|
+
* the X-axis in a spherical coordiante system of the
|
|
17
|
+
* motion from the source node to the destination node.
|
|
18
|
+
*/
|
|
19
|
+
worldMotionAzimuth: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export default IEdgeData;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface that describes the properties for a node that is the destination of a
|
|
3
|
+
* potential edge from an origin node.
|
|
4
|
+
*
|
|
5
|
+
* @interface IPotentialEdge
|
|
6
|
+
*/
|
|
7
|
+
export interface IPotentialEdge {
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Timestamp when the image was captured.
|
|
11
|
+
* @property {number} capturedAt
|
|
12
|
+
*/
|
|
13
|
+
capturedAt: number;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Determines if the destination node is a cropped panorama.
|
|
17
|
+
* @property {boolean} croppedPano
|
|
18
|
+
*/
|
|
19
|
+
croppedPano: boolean;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Change in viewing direction with respect to the origin node.
|
|
23
|
+
* @property {number} directionChange
|
|
24
|
+
*/
|
|
25
|
+
directionChange: number;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Distance to the origin node.
|
|
29
|
+
* @property {number} distance
|
|
30
|
+
*/
|
|
31
|
+
distance: number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Determines if the destination node is a full panorama.
|
|
35
|
+
* @property {boolean} fullPano
|
|
36
|
+
*/
|
|
37
|
+
fullPano: boolean;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Unique image key.
|
|
41
|
+
* @property {string} key
|
|
42
|
+
*/
|
|
43
|
+
key: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Change in motion with respect to the viewing direction
|
|
47
|
+
* of the origin node.
|
|
48
|
+
* @property {number} motionChange
|
|
49
|
+
*/
|
|
50
|
+
motionChange: number;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* General camera rotation with respect to the origin node.
|
|
54
|
+
* @property {number} rotation
|
|
55
|
+
*/
|
|
56
|
+
rotation: number;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Determines if the origin and destination node are considered
|
|
60
|
+
* to be in the same merge connected component.
|
|
61
|
+
* @property {boolean} sameMergeCC
|
|
62
|
+
*/
|
|
63
|
+
sameMergeCC: boolean;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Determines if the origin and destination node are in the
|
|
67
|
+
* same sequence.
|
|
68
|
+
* @property {boolean} sameSequence
|
|
69
|
+
*/
|
|
70
|
+
sameSequence: boolean;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Determines if the origin and destination node have been captured
|
|
74
|
+
* by the same user.
|
|
75
|
+
* @property {boolean} sameUser
|
|
76
|
+
*/
|
|
77
|
+
sameUser: boolean;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Determines which sequence the destination node of the potential edge
|
|
81
|
+
* belongs to.
|
|
82
|
+
* @property {string} sequenceKey
|
|
83
|
+
*/
|
|
84
|
+
sequenceKey: string;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Change in viewing direction with respect to the XY-plane.
|
|
88
|
+
* @property {number} verticalDirectionChange
|
|
89
|
+
*/
|
|
90
|
+
verticalDirectionChange: number;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* The angle between motion vector and the XY-plane
|
|
94
|
+
* @property {number} verticalMotion
|
|
95
|
+
*/
|
|
96
|
+
verticalMotion: number;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The counter clockwise horizontal rotation angle from
|
|
100
|
+
* the X-axis in a spherical coordiante system.
|
|
101
|
+
* @propery {number} worldMotionAzimuth
|
|
102
|
+
*/
|
|
103
|
+
worldMotionAzimuth: number;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export default IPotentialEdge;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {IEdge} from "../../Edge";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Interface that indicates edge status.
|
|
5
|
+
*
|
|
6
|
+
* @interface IEdgeStatus
|
|
7
|
+
*/
|
|
8
|
+
export interface IEdgeStatus {
|
|
9
|
+
/**
|
|
10
|
+
* Value indicating whether the edges have been cached.
|
|
11
|
+
*/
|
|
12
|
+
cached: boolean;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* The edges.
|
|
16
|
+
*
|
|
17
|
+
* @description If the cached property is false the edges
|
|
18
|
+
* property will always be an empty array. If the cached
|
|
19
|
+
* property is true, there will exist edges in the the
|
|
20
|
+
* array if the node has edges.
|
|
21
|
+
*/
|
|
22
|
+
edges: IEdge[];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default IEdgeStatus;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface for graph configuration.
|
|
3
|
+
*
|
|
4
|
+
* @interface IGraphConfiguration
|
|
5
|
+
*/
|
|
6
|
+
export interface IGraphConfiguration {
|
|
7
|
+
/**
|
|
8
|
+
* The maximum number of cached sequences left
|
|
9
|
+
* after uncache.
|
|
10
|
+
*/
|
|
11
|
+
maxSequences: number;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The maximum number of unused cached nodes left
|
|
15
|
+
* after uncache.
|
|
16
|
+
*/
|
|
17
|
+
maxUnusedNodes: number;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* The maximum number of unused cached tiles left
|
|
21
|
+
* after uncache.
|
|
22
|
+
*/
|
|
23
|
+
maxUnusedTiles: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default IGraphConfiguration;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface that indicates load status.
|
|
3
|
+
*
|
|
4
|
+
* @interface ILoadStatus
|
|
5
|
+
*/
|
|
6
|
+
export interface ILoadStatus {
|
|
7
|
+
/**
|
|
8
|
+
* Number of loaded bytes.
|
|
9
|
+
*/
|
|
10
|
+
loaded: number;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Total number of bytes to load.
|
|
14
|
+
*/
|
|
15
|
+
total: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default ILoadStatus;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface that describes SfM triangulated meshes.
|
|
3
|
+
*
|
|
4
|
+
* @interface IMesh
|
|
5
|
+
*/
|
|
6
|
+
export interface IMesh {
|
|
7
|
+
/**
|
|
8
|
+
* Flattened array of faces for the mesh. Each face consist
|
|
9
|
+
* three vertex indices.
|
|
10
|
+
*/
|
|
11
|
+
faces: number[];
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Flattened array of vertices for the mesh. Each vertex
|
|
15
|
+
* consists of X, Y and Z coordinates in the camera frame.
|
|
16
|
+
*/
|
|
17
|
+
vertices: number[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export default IMesh;
|