@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,96 @@
|
|
|
1
|
+
/// <reference path="../../typings/index.d.ts" />
|
|
2
|
+
|
|
3
|
+
import {Subject} from "rxjs/Subject";
|
|
4
|
+
|
|
5
|
+
import {EventEmitter} from "../../src/Utils";
|
|
6
|
+
import {
|
|
7
|
+
Navigator,
|
|
8
|
+
Observer,
|
|
9
|
+
Viewer,
|
|
10
|
+
} from "../../src/Viewer";
|
|
11
|
+
|
|
12
|
+
import {ContainerMockCreator} from "../helper/ContainerMockCreator.spec";
|
|
13
|
+
import {NavigatorMockCreator} from "../helper/NavigatorMockCreator.spec";
|
|
14
|
+
|
|
15
|
+
describe("Observer.ctor", () => {
|
|
16
|
+
it("should be defined", () => {
|
|
17
|
+
const eventEmitter: EventEmitter = new EventEmitter();
|
|
18
|
+
|
|
19
|
+
const observer: Observer =
|
|
20
|
+
new Observer(
|
|
21
|
+
eventEmitter,
|
|
22
|
+
new NavigatorMockCreator().create(),
|
|
23
|
+
new ContainerMockCreator().create());
|
|
24
|
+
|
|
25
|
+
expect(observer).toBeDefined();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
describe("Observer.loading", () => {
|
|
30
|
+
it("should emit loading when not started", (done: Function) => {
|
|
31
|
+
const eventEmitter: EventEmitter = new EventEmitter();
|
|
32
|
+
const navigatorMock: Navigator = new NavigatorMockCreator().create();
|
|
33
|
+
|
|
34
|
+
const observer: Observer = new Observer(
|
|
35
|
+
eventEmitter,
|
|
36
|
+
navigatorMock,
|
|
37
|
+
new ContainerMockCreator().create());
|
|
38
|
+
|
|
39
|
+
expect(observer).toBeDefined();
|
|
40
|
+
|
|
41
|
+
eventEmitter.on(
|
|
42
|
+
Viewer.loadingchanged,
|
|
43
|
+
(loading: boolean) => {
|
|
44
|
+
expect(loading).toBe(true);
|
|
45
|
+
done();
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
(<Subject<boolean>>navigatorMock.loadingService.loading$).next(true);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
it("should emit loading when started", (done: Function) => {
|
|
52
|
+
const eventEmitter: EventEmitter = new EventEmitter();
|
|
53
|
+
const navigatorMock: Navigator = new NavigatorMockCreator().create();
|
|
54
|
+
|
|
55
|
+
const observer: Observer =
|
|
56
|
+
new Observer(
|
|
57
|
+
eventEmitter,
|
|
58
|
+
navigatorMock,
|
|
59
|
+
new ContainerMockCreator().create());
|
|
60
|
+
|
|
61
|
+
eventEmitter.on(
|
|
62
|
+
Viewer.loadingchanged,
|
|
63
|
+
(loading: boolean) => {
|
|
64
|
+
expect(loading).toBe(true);
|
|
65
|
+
done();
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
observer.startEmit();
|
|
69
|
+
|
|
70
|
+
(<Subject<boolean>>navigatorMock.loadingService.loading$).next(true);
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
it("should emit loading when started and stopped", (done: Function) => {
|
|
75
|
+
const eventEmitter: EventEmitter = new EventEmitter();
|
|
76
|
+
const navigatorMock: Navigator = new NavigatorMockCreator().create();
|
|
77
|
+
|
|
78
|
+
const observer: Observer =
|
|
79
|
+
new Observer(
|
|
80
|
+
eventEmitter,
|
|
81
|
+
navigatorMock,
|
|
82
|
+
new ContainerMockCreator().create());
|
|
83
|
+
|
|
84
|
+
eventEmitter.on(
|
|
85
|
+
Viewer.loadingchanged,
|
|
86
|
+
(loading: boolean) => {
|
|
87
|
+
expect(loading).toBe(true);
|
|
88
|
+
done();
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
observer.startEmit();
|
|
92
|
+
observer.stopEmit();
|
|
93
|
+
|
|
94
|
+
(<Subject<boolean>>navigatorMock.loadingService.loading$).next(true);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
/// <reference path="../../typings/index.d.ts" />
|
|
2
|
+
|
|
3
|
+
import {ISpriteAtlas, SpriteService} from "../../src/Viewer";
|
|
4
|
+
|
|
5
|
+
class XMLHTTPRequestMock {
|
|
6
|
+
public response: string;
|
|
7
|
+
public responseType: string;
|
|
8
|
+
|
|
9
|
+
public onload: (e: Event) => any;
|
|
10
|
+
|
|
11
|
+
private _extension: string;
|
|
12
|
+
|
|
13
|
+
public open(...args: any[]): void {
|
|
14
|
+
this._extension = args[1].split(".").pop();
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public send(...args: any[]): void { return; }
|
|
18
|
+
|
|
19
|
+
public fireLoad(extension: string): void {
|
|
20
|
+
if (extension === this._extension) {
|
|
21
|
+
this.onload(new Event("load"));
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
class ImageMock {
|
|
27
|
+
public src: string;
|
|
28
|
+
public onload: (e: Event) => any;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
describe("SpriteService.ctor", () => {
|
|
32
|
+
it("should be initialized without retrieving sprite", () => {
|
|
33
|
+
let xmlHTTPRequestSpy: jasmine.Spy = spyOn(window, "XMLHttpRequest");
|
|
34
|
+
|
|
35
|
+
let spriteService: SpriteService = new SpriteService();
|
|
36
|
+
|
|
37
|
+
expect(xmlHTTPRequestSpy.calls.count()).toBe(0);
|
|
38
|
+
|
|
39
|
+
return spriteService;
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
describe("SpriteService.spriteAtlas$", () => {
|
|
44
|
+
it("should emit a defined item when no sprite is provided", (done: Function) => {
|
|
45
|
+
let spriteService: SpriteService = new SpriteService();
|
|
46
|
+
|
|
47
|
+
spriteService.spriteAtlas$
|
|
48
|
+
.subscribe(
|
|
49
|
+
(atlas: ISpriteAtlas): void => {
|
|
50
|
+
expect(atlas).toBeDefined();
|
|
51
|
+
|
|
52
|
+
done();
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
|
|
56
|
+
it("should throw when trying to get a GL sprite for none loaded atlas", (done: Function) => {
|
|
57
|
+
let spriteService: SpriteService = new SpriteService();
|
|
58
|
+
|
|
59
|
+
spriteService.spriteAtlas$
|
|
60
|
+
.subscribe(
|
|
61
|
+
(atlas: ISpriteAtlas): void => {
|
|
62
|
+
expect(atlas.loaded).toBe(false);
|
|
63
|
+
|
|
64
|
+
expect(atlas.getGLSprite).toThrowError(Error);
|
|
65
|
+
|
|
66
|
+
done();
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
it("should throw when trying to get a GL sprite for none loaded atlas", (done: Function) => {
|
|
71
|
+
let spriteService: SpriteService = new SpriteService();
|
|
72
|
+
|
|
73
|
+
spriteService.spriteAtlas$
|
|
74
|
+
.subscribe(
|
|
75
|
+
(atlas: ISpriteAtlas): void => {
|
|
76
|
+
expect(atlas.loaded).toBe(false);
|
|
77
|
+
|
|
78
|
+
expect(atlas.getDOMSprite).toThrowError(Error);
|
|
79
|
+
|
|
80
|
+
done();
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
it("should emit an item that is not loaded when no sprite is provided", (done: Function) => {
|
|
85
|
+
let spriteService: SpriteService = new SpriteService();
|
|
86
|
+
|
|
87
|
+
spriteService.spriteAtlas$
|
|
88
|
+
.subscribe(
|
|
89
|
+
(atlas: ISpriteAtlas): void => {
|
|
90
|
+
expect(atlas.loaded).toBe(false);
|
|
91
|
+
|
|
92
|
+
done();
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
it("should retrieve an image if a sprite is provided", (done: Function) => {
|
|
97
|
+
let pngXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
98
|
+
let jsonXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
99
|
+
let imageMock: ImageMock = new ImageMock();
|
|
100
|
+
|
|
101
|
+
let json: boolean = false;
|
|
102
|
+
|
|
103
|
+
spyOn(window, "XMLHttpRequest").and
|
|
104
|
+
.callFake((): XMLHTTPRequestMock => {
|
|
105
|
+
if (json) {
|
|
106
|
+
return jsonXmlHTTPRequestMock;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
json = true;
|
|
110
|
+
|
|
111
|
+
return pngXmlHTTPRequestMock;
|
|
112
|
+
});
|
|
113
|
+
|
|
114
|
+
spyOn(window, "Blob").and.returnValue({});
|
|
115
|
+
spyOn(window.URL, "createObjectURL").and.returnValue("url");
|
|
116
|
+
|
|
117
|
+
let imageSpy: jasmine.Spy = spyOn(window, "Image");
|
|
118
|
+
imageSpy.and.returnValue(imageMock);
|
|
119
|
+
|
|
120
|
+
let jsonSpy: jasmine.Spy = spyOn(JSON, "parse");
|
|
121
|
+
|
|
122
|
+
let spriteService: SpriteService = new SpriteService("sprite");
|
|
123
|
+
|
|
124
|
+
spriteService.spriteAtlas$
|
|
125
|
+
.skip(1)
|
|
126
|
+
.subscribe(
|
|
127
|
+
(atlas: ISpriteAtlas): void => {
|
|
128
|
+
expect(atlas.loaded).toBe(false);
|
|
129
|
+
|
|
130
|
+
expect(imageSpy.calls.count()).toBe(1);
|
|
131
|
+
expect(jsonSpy.calls.count()).toBe(0);
|
|
132
|
+
|
|
133
|
+
done();
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
pngXmlHTTPRequestMock.fireLoad("png");
|
|
137
|
+
imageMock.onload(new Event("load"));
|
|
138
|
+
});
|
|
139
|
+
|
|
140
|
+
it("should retrieve json definition if a sprite is provided", (done: Function) => {
|
|
141
|
+
let pngXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
142
|
+
let jsonXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
143
|
+
|
|
144
|
+
let json: boolean = false;
|
|
145
|
+
|
|
146
|
+
spyOn(window, "XMLHttpRequest").and
|
|
147
|
+
.callFake((): XMLHTTPRequestMock => {
|
|
148
|
+
if (json) {
|
|
149
|
+
return jsonXmlHTTPRequestMock;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
json = true;
|
|
153
|
+
|
|
154
|
+
return pngXmlHTTPRequestMock;
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
let imageSpy: jasmine.Spy = spyOn(window, "Image");
|
|
158
|
+
let jsonSpy: jasmine.Spy = spyOn(JSON, "parse");
|
|
159
|
+
jsonSpy.and.returnValue({});
|
|
160
|
+
|
|
161
|
+
let spriteService: SpriteService = new SpriteService("sprite");
|
|
162
|
+
|
|
163
|
+
spriteService.spriteAtlas$
|
|
164
|
+
.skip(1)
|
|
165
|
+
.subscribe(
|
|
166
|
+
(atlas: ISpriteAtlas): void => {
|
|
167
|
+
expect(atlas.loaded).toBe(false);
|
|
168
|
+
|
|
169
|
+
expect(imageSpy.calls.count()).toBe(0);
|
|
170
|
+
expect(jsonSpy.calls.count()).toBe(1);
|
|
171
|
+
|
|
172
|
+
done();
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
jsonXmlHTTPRequestMock.fireLoad("json");
|
|
176
|
+
});
|
|
177
|
+
|
|
178
|
+
it("should be loaded when both image and json has been retrieved", (done: Function) => {
|
|
179
|
+
let pngXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
180
|
+
let jsonXmlHTTPRequestMock: XMLHTTPRequestMock = new XMLHTTPRequestMock();
|
|
181
|
+
let imageMock: ImageMock = new ImageMock();
|
|
182
|
+
|
|
183
|
+
let json: boolean = false;
|
|
184
|
+
|
|
185
|
+
spyOn(window, "XMLHttpRequest").and
|
|
186
|
+
.callFake((): XMLHTTPRequestMock => {
|
|
187
|
+
if (json) {
|
|
188
|
+
return jsonXmlHTTPRequestMock;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
json = true;
|
|
192
|
+
|
|
193
|
+
return pngXmlHTTPRequestMock;
|
|
194
|
+
});
|
|
195
|
+
|
|
196
|
+
spyOn(window, "Blob").and.returnValue({});
|
|
197
|
+
spyOn(window.URL, "createObjectURL").and.returnValue("url");
|
|
198
|
+
|
|
199
|
+
let imageSpy: jasmine.Spy = spyOn(window, "Image");
|
|
200
|
+
imageSpy.and.returnValue(imageMock);
|
|
201
|
+
|
|
202
|
+
let jsonSpy: jasmine.Spy = spyOn(JSON, "parse");
|
|
203
|
+
jsonSpy.and.returnValue({});
|
|
204
|
+
|
|
205
|
+
let spriteService: SpriteService = new SpriteService("sprite");
|
|
206
|
+
|
|
207
|
+
spriteService.spriteAtlas$
|
|
208
|
+
.skip(2)
|
|
209
|
+
.subscribe(
|
|
210
|
+
(atlas: ISpriteAtlas): void => {
|
|
211
|
+
expect(atlas.loaded).toBe(true);
|
|
212
|
+
|
|
213
|
+
expect(imageSpy.calls.count()).toBe(1);
|
|
214
|
+
expect(jsonSpy.calls.count()).toBe(1);
|
|
215
|
+
|
|
216
|
+
done();
|
|
217
|
+
});
|
|
218
|
+
|
|
219
|
+
pngXmlHTTPRequestMock.fireLoad("png");
|
|
220
|
+
imageMock.onload(new Event("load"));
|
|
221
|
+
|
|
222
|
+
jsonXmlHTTPRequestMock.fireLoad("json");
|
|
223
|
+
});
|
|
224
|
+
});
|
package/src/API.ts
ADDED
package/src/Component.ts
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export {Component} from "./component/Component";
|
|
2
|
+
export {ComponentService} from "./component/ComponentService";
|
|
3
|
+
export {HandlerBase} from "./component/utils/HandlerBase";
|
|
4
|
+
// export {AttributionComponent} from "./component/AttributionComponent";
|
|
5
|
+
export {BackgroundComponent} from "./component/BackgroundComponent";
|
|
6
|
+
export {BearingComponent} from "./component/BearingComponent";
|
|
7
|
+
export {CacheComponent} from "./component/CacheComponent";
|
|
8
|
+
export {CoverComponent} from "./component/CoverComponent";
|
|
9
|
+
export {DebugComponent} from "./component/DebugComponent";
|
|
10
|
+
export {DirectionComponent} from "./component/direction/DirectionComponent";
|
|
11
|
+
export {DirectionDOMCalculator} from "./component/direction/DirectionDOMCalculator";
|
|
12
|
+
export {DirectionDOMRenderer} from "./component/direction/DirectionDOMRenderer";
|
|
13
|
+
export {ImageComponent} from "./component/ImageComponent";
|
|
14
|
+
export {KeyboardComponent} from "./component/keyboard/KeyboardComponent";
|
|
15
|
+
export {KeyZoomHandler} from "./component/keyboard/KeyZoomHandler";
|
|
16
|
+
export {KeySequenceNavigationHandler} from "./component/keyboard/KeySequenceNavigationHandler";
|
|
17
|
+
export {KeySpatialNavigationHandler} from "./component/keyboard/KeySpatialNavigationHandler";
|
|
18
|
+
export {LoadingComponent} from "./component/LoadingComponent";
|
|
19
|
+
export {Marker} from "./component/marker/marker/Marker";
|
|
20
|
+
export {MarkerComponent} from "./component/marker/MarkerComponent";
|
|
21
|
+
export {MarkerScene} from "./component/marker/MarkerScene";
|
|
22
|
+
export {MarkerSet} from "./component/marker/MarkerSet";
|
|
23
|
+
export {MouseComponent} from "./component/mouse/MouseComponent";
|
|
24
|
+
export * from "./component/mouse/HandlerTypes";
|
|
25
|
+
export {BounceHandler} from "./component/mouse/BounceHandler";
|
|
26
|
+
export {DragPanHandler} from "./component/mouse/DragPanHandler";
|
|
27
|
+
export {DoubleClickZoomHandler} from "./component/mouse/DoubleClickZoomHandler";
|
|
28
|
+
export {ScrollZoomHandler} from "./component/mouse/ScrollZoomHandler";
|
|
29
|
+
export {TouchZoomHandler} from "./component/mouse/TouchZoomHandler";
|
|
30
|
+
export {Popup} from "./component/popup/popup/Popup";
|
|
31
|
+
export {PopupComponent} from "./component/popup/PopupComponent";
|
|
32
|
+
export {PopupAlignment} from "./component/popup/popup/PopupAlignment";
|
|
33
|
+
export {IPopupOffset} from "./component/popup/interfaces/IPopupOffset";
|
|
34
|
+
export {IPopupOptions} from "./component/popup/interfaces/IPopupOptions";
|
|
35
|
+
export {NavigationComponent} from "./component/NavigationComponent";
|
|
36
|
+
export {RouteComponent} from "./component/RouteComponent";
|
|
37
|
+
export {SequenceComponent} from "./component/sequence/SequenceComponent";
|
|
38
|
+
export {SequenceDOMRenderer} from "./component/sequence/SequenceDOMRenderer";
|
|
39
|
+
export {SequenceDOMInteraction} from "./component/sequence/SequenceDOMInteraction";
|
|
40
|
+
export {ImagePlaneComponent} from "./component/imageplane/ImagePlaneComponent";
|
|
41
|
+
export {ImagePlaneFactory} from "./component/imageplane/ImagePlaneFactory";
|
|
42
|
+
export {ImagePlaneGLRenderer} from "./component/imageplane/ImagePlaneGLRenderer";
|
|
43
|
+
export {ImagePlaneScene} from "./component/imageplane/ImagePlaneScene";
|
|
44
|
+
export {ImagePlaneShaders} from "./component/imageplane/ImagePlaneShaders";
|
|
45
|
+
export {SimpleMarker} from "./component/marker/marker/SimpleMarker";
|
|
46
|
+
export {CircleMarker} from "./component/marker/marker/CircleMarker";
|
|
47
|
+
export {SliderComponent} from "./component/imageplane/SliderComponent";
|
|
48
|
+
export {PathComponent} from "./component/path/PathComponent";
|
|
49
|
+
export {TagHandlerBase} from "./component/tag/handlers/TagHandlerBase";
|
|
50
|
+
export {CreateHandlerBase} from "./component/tag/handlers/CreateHandlerBase";
|
|
51
|
+
export {CreatePointHandler} from "./component/tag/handlers/CreatePointHandler";
|
|
52
|
+
export {CreateVertexHandler} from "./component/tag/handlers/CreateVertexHandler";
|
|
53
|
+
export {CreatePolygonHandler} from "./component/tag/handlers/CreatePolygonHandler";
|
|
54
|
+
export {CreateRectHandler} from "./component/tag/handlers/CreateRectHandler";
|
|
55
|
+
export {CreateRectDragHandler} from "./component/tag/handlers/CreateRectDragHandler";
|
|
56
|
+
export {EditVertexHandler} from "./component/tag/handlers/EditVertexHandler";
|
|
57
|
+
export {Tag} from "./component/tag/tag/Tag";
|
|
58
|
+
export {OutlineTag} from "./component/tag/tag/OutlineTag";
|
|
59
|
+
export {RenderTag} from "./component/tag/tag/RenderTag";
|
|
60
|
+
export {OutlineRenderTag} from "./component/tag/tag/OutlineRenderTag";
|
|
61
|
+
export {OutlineCreateTag} from "./component/tag/tag/OutlineCreateTag";
|
|
62
|
+
export {SpotTag} from "./component/tag/tag/SpotTag";
|
|
63
|
+
export {SpotRenderTag} from "./component/tag/tag/SpotRenderTag";
|
|
64
|
+
export {TagComponent} from "./component/tag/TagComponent";
|
|
65
|
+
export {TagCreator} from "./component/tag/TagCreator";
|
|
66
|
+
export {TagDOMRenderer} from "./component/tag/TagDOMRenderer";
|
|
67
|
+
export {TagMode} from "./component/tag/TagMode";
|
|
68
|
+
export {TagOperation} from "./component/tag/TagOperation";
|
|
69
|
+
export {TagScene} from "./component/tag/TagScene";
|
|
70
|
+
export {TagSet} from "./component/tag/TagSet";
|
|
71
|
+
export {Geometry} from "./component/tag/geometry/Geometry";
|
|
72
|
+
export {VertexGeometry} from "./component/tag/geometry/VertexGeometry";
|
|
73
|
+
export {RectGeometry} from "./component/tag/geometry/RectGeometry";
|
|
74
|
+
export {PointGeometry} from "./component/tag/geometry/PointGeometry";
|
|
75
|
+
export {PolygonGeometry} from "./component/tag/geometry/PolygonGeometry";
|
|
76
|
+
export {GeometryTagError} from "./component/tag/error/GeometryTagError";
|
|
77
|
+
export * from "./component/interfaces/interfaces";
|
package/src/Edge.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export {EdgeDirection} from "./graph/edge/EdgeDirection";
|
|
2
|
+
export {EdgeCalculatorSettings} from "./graph/edge/EdgeCalculatorSettings";
|
|
3
|
+
export {EdgeCalculatorDirections} from "./graph/edge/EdgeCalculatorDirections";
|
|
4
|
+
export {EdgeCalculatorCoefficients} from "./graph/edge/EdgeCalculatorCoefficients";
|
|
5
|
+
export {EdgeCalculator} from "./graph/edge/EdgeCalculator";
|
|
6
|
+
export * from "./graph/edge/interfaces/interfaces";
|
package/src/Error.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Node, FilterExpression } from "./Graph";
|
|
2
|
+
import {
|
|
3
|
+
Navigator,
|
|
4
|
+
} from "./Viewer";
|
|
5
|
+
export class FilterRender {
|
|
6
|
+
private _number: number;
|
|
7
|
+
private _navigator: Navigator;
|
|
8
|
+
|
|
9
|
+
constructor(navigator?: Navigator) {
|
|
10
|
+
this._navigator = navigator;
|
|
11
|
+
}
|
|
12
|
+
public setFilter(filter: FilterExpression): Promise<void> {
|
|
13
|
+
return new Promise<void>(
|
|
14
|
+
(resolve: (value: void) => void, reject: (reason: Error) => void): void => {
|
|
15
|
+
this._navigator.setFilter$(filter)
|
|
16
|
+
.subscribe(
|
|
17
|
+
(): void => {
|
|
18
|
+
resolve(undefined);
|
|
19
|
+
},
|
|
20
|
+
(error: Error): void => {
|
|
21
|
+
reject(error);
|
|
22
|
+
});
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export default FilterRender;
|
package/src/Geo.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export {Camera} from "./geo/Camera";
|
|
2
|
+
export {GeoCoords} from "./geo/GeoCoords";
|
|
3
|
+
export {ViewportCoords} from "./geo/ViewportCoords";
|
|
4
|
+
export {Spatial} from "./geo/Spatial";
|
|
5
|
+
export {Transform} from "./geo/Transform";
|
|
6
|
+
export {GeoRBush} from "./geo/GeoRBush";
|
|
7
|
+
export * from "./geo/interfaces/interfaces";
|
package/src/Graph.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export {
|
|
2
|
+
FilterCreator,
|
|
3
|
+
FilterFunction,
|
|
4
|
+
} from "./graph/FilterCreator";
|
|
5
|
+
export {
|
|
6
|
+
FilterExpression,
|
|
7
|
+
FilterOperation,
|
|
8
|
+
FilterOperator,
|
|
9
|
+
FilterValue,
|
|
10
|
+
} from "./graph/FilterExpression";
|
|
11
|
+
export {Graph} from "./graph/Graph";
|
|
12
|
+
export {GraphCalculator} from "./graph/GraphCalculator";
|
|
13
|
+
export {GraphService} from "./graph/GraphService";
|
|
14
|
+
export {ImageLoadingService} from "./graph/ImageLoadingService";
|
|
15
|
+
export {MeshReader} from "./graph/MeshReader";
|
|
16
|
+
export {Node} from "./graph/Node";
|
|
17
|
+
export {NodeCache} from "./graph/NodeCache";
|
|
18
|
+
export {Sequence} from "./graph/Sequence";
|
|
19
|
+
export * from "./graph/interfaces/interfaces";
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapxusVisual is a WebGL JavaScript library for exploring street level imagery
|
|
3
|
+
* @name MapxusVisual
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export * from "./Support";
|
|
7
|
+
|
|
8
|
+
export { EdgeDirection } from "./Edge";
|
|
9
|
+
export { RenderMode } from "./Render";
|
|
10
|
+
export { Alignment, ImageSize, Viewer } from "./Viewer";
|
|
11
|
+
|
|
12
|
+
/** export component */
|
|
13
|
+
export * from "./component/tag/Tag";
|
|
14
|
+
export * from "./component/marker/Marker";
|
|
15
|
+
export * from "./component/popup/Popup";
|
|
16
|
+
|
|
17
|
+
/** export typescript type */
|
|
18
|
+
export type { Node } from "./graph/Node";
|
|
19
|
+
export type { Sequence } from "./graph/Sequence";
|
|
20
|
+
export * from "./api/interfaces/interfaces";
|
|
21
|
+
export * from "./viewer/interfaces/interfaces";
|
|
22
|
+
export * from "./component/interfaces/interfaces";
|
|
23
|
+
export * from "./geo/interfaces/interfaces";
|
|
24
|
+
|
|
25
|
+
/** register all over the components */
|
|
26
|
+
import {
|
|
27
|
+
ComponentService,
|
|
28
|
+
CoverComponent,
|
|
29
|
+
BackgroundComponent,
|
|
30
|
+
BearingComponent,
|
|
31
|
+
CacheComponent,
|
|
32
|
+
DebugComponent,
|
|
33
|
+
ImageComponent,
|
|
34
|
+
LoadingComponent,
|
|
35
|
+
NavigationComponent,
|
|
36
|
+
RouteComponent,
|
|
37
|
+
DirectionComponent,
|
|
38
|
+
ImagePlaneComponent,
|
|
39
|
+
SliderComponent,
|
|
40
|
+
KeyboardComponent,
|
|
41
|
+
MarkerComponent,
|
|
42
|
+
MouseComponent,
|
|
43
|
+
PathComponent,
|
|
44
|
+
PopupComponent,
|
|
45
|
+
SequenceComponent,
|
|
46
|
+
TagComponent,
|
|
47
|
+
} from "./Component";
|
|
48
|
+
ComponentService.registerCover(CoverComponent);
|
|
49
|
+
ComponentService.register(BackgroundComponent);
|
|
50
|
+
ComponentService.register(BearingComponent);
|
|
51
|
+
ComponentService.register(CacheComponent);
|
|
52
|
+
ComponentService.register(DebugComponent);
|
|
53
|
+
ComponentService.register(ImageComponent);
|
|
54
|
+
ComponentService.register(LoadingComponent);
|
|
55
|
+
ComponentService.register(NavigationComponent);
|
|
56
|
+
ComponentService.register(RouteComponent);
|
|
57
|
+
ComponentService.register(DirectionComponent);
|
|
58
|
+
ComponentService.register(ImagePlaneComponent);
|
|
59
|
+
ComponentService.register(SliderComponent);
|
|
60
|
+
ComponentService.register(KeyboardComponent);
|
|
61
|
+
ComponentService.register(MarkerComponent);
|
|
62
|
+
ComponentService.register(MouseComponent);
|
|
63
|
+
ComponentService.register(PathComponent);
|
|
64
|
+
ComponentService.register(PopupComponent);
|
|
65
|
+
ComponentService.register(SequenceComponent);
|
|
66
|
+
ComponentService.register(TagComponent);
|
package/src/Render.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export {DOMRenderer} from "./render/DOMRenderer";
|
|
2
|
+
export {GLRenderer} from "./render/GLRenderer";
|
|
3
|
+
export {GLRenderStage} from "./render/GLRenderStage";
|
|
4
|
+
export {RenderCamera} from "./render/RenderCamera";
|
|
5
|
+
export {RenderMode} from "./render/RenderMode";
|
|
6
|
+
export {RenderService} from "./render/RenderService";
|
|
7
|
+
export * from "./render/interfaces/interfaces";
|
package/src/State.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export {State} from "./state/State";
|
|
2
|
+
export {StateBase} from "./state/states/StateBase";
|
|
3
|
+
export {StateContext} from "./state/StateContext";
|
|
4
|
+
export {StateService} from "./state/StateService";
|
|
5
|
+
export {TraversingState} from "./state/states/TraversingState";
|
|
6
|
+
export {WaitingState} from "./state/states/WaitingState";
|
|
7
|
+
export {FrameGenerator} from "./state/FrameGenerator";
|
|
8
|
+
export * from "./state/interfaces/interfaces";
|
package/src/Support.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import * as support from "./utils/Support";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Test whether the current browser supports the full
|
|
5
|
+
* functionality of BeeviewJs.
|
|
6
|
+
*
|
|
7
|
+
* @description The full functionality includes WebGL rendering.
|
|
8
|
+
*
|
|
9
|
+
* @return {boolean}
|
|
10
|
+
*
|
|
11
|
+
* @example `var supported = Beeview.isSupported();`
|
|
12
|
+
*/
|
|
13
|
+
export function isSupported(): boolean {
|
|
14
|
+
return isFallbackSupported() &&
|
|
15
|
+
support.isWebGLSupportedCached();
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Test whether the current browser supports the fallback
|
|
20
|
+
* functionality of BeeviewJs.
|
|
21
|
+
*
|
|
22
|
+
* @description The fallback functionality does not include WebGL
|
|
23
|
+
* rendering, only 2D canvas rendering.
|
|
24
|
+
*
|
|
25
|
+
* @return {boolean}
|
|
26
|
+
*
|
|
27
|
+
* @example `var fallbackSupported = Beeview.isFallbackSupported();`
|
|
28
|
+
*/
|
|
29
|
+
export function isFallbackSupported(): boolean {
|
|
30
|
+
return support.isBrowser() &&
|
|
31
|
+
support.isArraySupported() &&
|
|
32
|
+
support.isFunctionSupported() &&
|
|
33
|
+
support.isJSONSupported() &&
|
|
34
|
+
support.isObjectSupported();
|
|
35
|
+
}
|
package/src/Tiles.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export {ImageTileLoader} from "./tiles/ImageTileLoader";
|
|
2
|
+
export {ImageTileStore} from "./tiles/ImageTileStore";
|
|
3
|
+
export {TextureProvider} from "./tiles/TextureProvider";
|
|
4
|
+
export {RegionOfInterestCalculator} from "./tiles/RegionOfInterestCalculator";
|
|
5
|
+
export * from "./tiles/interfaces/interfaces";
|
package/src/Utils.ts
ADDED
package/src/Viewer.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export {Alignment} from "./viewer/Alignment";
|
|
2
|
+
export {CacheService} from "./viewer/CacheService";
|
|
3
|
+
export {ComponentController} from "./viewer/ComponentController";
|
|
4
|
+
export {Container} from "./viewer/Container";
|
|
5
|
+
export {Observer} from "./viewer/Observer";
|
|
6
|
+
export {ImageSize} from "./viewer/ImageSize";
|
|
7
|
+
export {KeyboardService} from "./viewer/KeyboardService";
|
|
8
|
+
export {LoadingService} from "./viewer/LoadingService";
|
|
9
|
+
export {MouseService} from "./viewer/MouseService";
|
|
10
|
+
export {Navigator} from "./viewer/Navigator";
|
|
11
|
+
export {Projection} from "./viewer/Projection";
|
|
12
|
+
export {SpriteService} from "./viewer/SpriteService";
|
|
13
|
+
export {TouchService} from "./viewer/TouchService";
|
|
14
|
+
export {Viewer} from "./viewer/Viewer";
|
|
15
|
+
export {EventNames} from "./viewer/EventNames";
|
|
16
|
+
export * from "./viewer/interfaces/interfaces";
|