@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,170 @@
|
|
|
1
|
+
import { Geometry } from "../geometry/Geometry";
|
|
2
|
+
import type { ISpotTagOptions } from "../interfaces/ISpotTagOptions";
|
|
3
|
+
import { Tag } from "../tag/Tag";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @class SpotTag
|
|
7
|
+
*
|
|
8
|
+
* @classdesc Tag holding properties for visualizing the centroid of a geometry.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* var geometry = new Beeview.TagComponent.PointGeometry([0.3, 0.3]);
|
|
13
|
+
* var tag = new Beeview.TagComponent.SpotTag(
|
|
14
|
+
* "id-1",
|
|
15
|
+
* geometry
|
|
16
|
+
* { editable: true, color: 0xff0000 });
|
|
17
|
+
*
|
|
18
|
+
* tagComponent.add([tag]);
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export class SpotTag extends Tag {
|
|
22
|
+
protected _geometry: Geometry;
|
|
23
|
+
|
|
24
|
+
private _color: number;
|
|
25
|
+
private _editable: boolean;
|
|
26
|
+
private _icon: string;
|
|
27
|
+
private _text: string;
|
|
28
|
+
private _textColor: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Create a spot tag.
|
|
32
|
+
*
|
|
33
|
+
* @override
|
|
34
|
+
* @constructor
|
|
35
|
+
* @param {string} id
|
|
36
|
+
* @param {Geometry} geometry
|
|
37
|
+
* @param {IOutlineTagOptions} options - Options defining the visual appearance and
|
|
38
|
+
* behavior of the spot tag.
|
|
39
|
+
*/
|
|
40
|
+
constructor(id: string, geometry: Geometry, options?: ISpotTagOptions) {
|
|
41
|
+
super(id, geometry);
|
|
42
|
+
|
|
43
|
+
options = !!options ? options : {};
|
|
44
|
+
|
|
45
|
+
this._color = options.color == null ? 0xffffff : options.color;
|
|
46
|
+
this._editable = options.editable == null ? false : options.editable;
|
|
47
|
+
this._icon = options.icon === undefined ? null : options.icon;
|
|
48
|
+
this._text = options.text === undefined ? null : options.text;
|
|
49
|
+
this._textColor =
|
|
50
|
+
options.textColor == null ? 0xffffff : options.textColor;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Get color property.
|
|
55
|
+
* @returns {number} The color of the spot as a hexagonal number;
|
|
56
|
+
*/
|
|
57
|
+
public get color(): number {
|
|
58
|
+
return this._color;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Set color property.
|
|
63
|
+
* @param {number}
|
|
64
|
+
*
|
|
65
|
+
* @fires Tag#changed
|
|
66
|
+
*/
|
|
67
|
+
public set color(value: number) {
|
|
68
|
+
this._color = value;
|
|
69
|
+
this._notifyChanged$.next(this);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Get editable property.
|
|
74
|
+
* @returns {boolean} Value indicating if tag is editable.
|
|
75
|
+
*/
|
|
76
|
+
public get editable(): boolean {
|
|
77
|
+
return this._editable;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Set editable property.
|
|
82
|
+
* @param {boolean}
|
|
83
|
+
*
|
|
84
|
+
* @fires Tag#changed
|
|
85
|
+
*/
|
|
86
|
+
public set editable(value: boolean) {
|
|
87
|
+
this._editable = value;
|
|
88
|
+
this._notifyChanged$.next(this);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Get icon property.
|
|
93
|
+
* @returns {string}
|
|
94
|
+
*/
|
|
95
|
+
public get icon(): string {
|
|
96
|
+
return this._icon;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Set icon property.
|
|
101
|
+
* @param {string}
|
|
102
|
+
*
|
|
103
|
+
* @fires Tag#changed
|
|
104
|
+
*/
|
|
105
|
+
public set icon(value: string) {
|
|
106
|
+
this._icon = value;
|
|
107
|
+
this._notifyChanged$.next(this);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Get text property.
|
|
112
|
+
* @returns {string}
|
|
113
|
+
*/
|
|
114
|
+
public get text(): string {
|
|
115
|
+
return this._text;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* Set text property.
|
|
120
|
+
* @param {string}
|
|
121
|
+
*
|
|
122
|
+
* @fires Tag#changed
|
|
123
|
+
*/
|
|
124
|
+
public set text(value: string) {
|
|
125
|
+
this._text = value;
|
|
126
|
+
this._notifyChanged$.next(this);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Get text color property.
|
|
131
|
+
* @returns {number}
|
|
132
|
+
*/
|
|
133
|
+
public get textColor(): number {
|
|
134
|
+
return this._textColor;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Set text color property.
|
|
139
|
+
* @param {number}
|
|
140
|
+
*
|
|
141
|
+
* @fires Tag#changed
|
|
142
|
+
*/
|
|
143
|
+
public set textColor(value: number) {
|
|
144
|
+
this._textColor = value;
|
|
145
|
+
this._notifyChanged$.next(this);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Set options for tag.
|
|
150
|
+
*
|
|
151
|
+
* @description Sets all the option properties provided and keps
|
|
152
|
+
* the rest of the values as is.
|
|
153
|
+
*
|
|
154
|
+
* @param {ISpotTagOptions} options - Spot tag options
|
|
155
|
+
*
|
|
156
|
+
* @fires {Tag#changed}
|
|
157
|
+
*/
|
|
158
|
+
public setOptions(options: ISpotTagOptions): void {
|
|
159
|
+
this._color = options.color == null ? this._color : options.color;
|
|
160
|
+
this._editable =
|
|
161
|
+
options.editable == null ? this._editable : options.editable;
|
|
162
|
+
this._icon = options.icon === undefined ? this._icon : options.icon;
|
|
163
|
+
this._text = options.text === undefined ? this._text : options.text;
|
|
164
|
+
this._textColor =
|
|
165
|
+
options.textColor == null ? this._textColor : options.textColor;
|
|
166
|
+
this._notifyChanged$.next(this);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export default SpotTag;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Observable, Subject } from "rxjs";
|
|
2
|
+
import {Geometry} from "../../../Component";
|
|
3
|
+
import {EventEmitter} from "../../../Utils";
|
|
4
|
+
import { map, share } from "rxjs/operators";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @class Tag
|
|
8
|
+
* @abstract
|
|
9
|
+
* @classdesc Abstract class representing the basic functionality of for a tag.
|
|
10
|
+
*/
|
|
11
|
+
export abstract class Tag extends EventEmitter {
|
|
12
|
+
/**
|
|
13
|
+
* Event fired when a property related to the visual appearance of the
|
|
14
|
+
* tag has changed.
|
|
15
|
+
*
|
|
16
|
+
* @event Tag#changed
|
|
17
|
+
* @type {Tag} The tag instance that has changed.
|
|
18
|
+
*/
|
|
19
|
+
public static changed: string = "changed";
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Event fired when the geometry of the tag has changed.
|
|
23
|
+
*
|
|
24
|
+
* @event Tag#geometrychanged
|
|
25
|
+
* @type {Tag} The tag instance whose geometry has changed.
|
|
26
|
+
*/
|
|
27
|
+
public static geometrychanged: string = "geometrychanged";
|
|
28
|
+
|
|
29
|
+
protected _id: string;
|
|
30
|
+
protected _geometry: Geometry;
|
|
31
|
+
|
|
32
|
+
protected _notifyChanged$: Subject<Tag>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Create a tag.
|
|
36
|
+
*
|
|
37
|
+
* @constructor
|
|
38
|
+
* @param {string} id
|
|
39
|
+
* @param {Geometry} geometry
|
|
40
|
+
*/
|
|
41
|
+
constructor(id: string, geometry: Geometry) {
|
|
42
|
+
super();
|
|
43
|
+
|
|
44
|
+
this._id = id;
|
|
45
|
+
this._geometry = geometry;
|
|
46
|
+
|
|
47
|
+
this._notifyChanged$ = new Subject<Tag>();
|
|
48
|
+
|
|
49
|
+
this._notifyChanged$
|
|
50
|
+
.subscribe(
|
|
51
|
+
(t: Tag): void => {
|
|
52
|
+
this.fire(Tag.changed, this);
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
this._geometry.changed$
|
|
56
|
+
.subscribe(
|
|
57
|
+
(g: Geometry): void => {
|
|
58
|
+
this.fire(Tag.geometrychanged, this);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Get id property.
|
|
64
|
+
* @returns {string}
|
|
65
|
+
*/
|
|
66
|
+
public get id(): string {
|
|
67
|
+
return this._id;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Get geometry property.
|
|
72
|
+
* @returns {Geometry} The geometry of the tag.
|
|
73
|
+
*/
|
|
74
|
+
public get geometry(): Geometry {
|
|
75
|
+
return this._geometry;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Get changed observable.
|
|
80
|
+
* @returns {Observable<Tag>}
|
|
81
|
+
* @ignore
|
|
82
|
+
*/
|
|
83
|
+
public get changed$(): Observable<Tag> {
|
|
84
|
+
return this._notifyChanged$;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get geometry changed observable.
|
|
89
|
+
* @returns {Observable<Tag>}
|
|
90
|
+
* @ignore
|
|
91
|
+
*/
|
|
92
|
+
public get geometryChanged$(): Observable<Tag> {
|
|
93
|
+
return this._geometry.changed$.pipe(
|
|
94
|
+
map(
|
|
95
|
+
(geometry: Geometry): Tag => {
|
|
96
|
+
return this;
|
|
97
|
+
}),
|
|
98
|
+
share(),
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export default Tag;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
IComponentConfiguration,
|
|
4
|
+
} from "../../Component";
|
|
5
|
+
import {
|
|
6
|
+
Container,
|
|
7
|
+
Navigator,
|
|
8
|
+
} from "../../Viewer";
|
|
9
|
+
|
|
10
|
+
export abstract class HandlerBase<TConfiguration extends IComponentConfiguration> {
|
|
11
|
+
protected _component: Component<TConfiguration>;
|
|
12
|
+
protected _container: Container;
|
|
13
|
+
protected _navigator: Navigator;
|
|
14
|
+
|
|
15
|
+
protected _enabled: boolean;
|
|
16
|
+
|
|
17
|
+
constructor(component: Component<TConfiguration>, container: Container, navigator: Navigator) {
|
|
18
|
+
this._component = component;
|
|
19
|
+
this._container = container;
|
|
20
|
+
this._navigator = navigator;
|
|
21
|
+
|
|
22
|
+
this._enabled = false;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Returns a Boolean indicating whether the interaction is enabled.
|
|
27
|
+
*
|
|
28
|
+
* @returns {boolean} `true` if the interaction is enabled.
|
|
29
|
+
*/
|
|
30
|
+
public get isEnabled(): boolean {
|
|
31
|
+
return this._enabled;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Enables the interaction.
|
|
36
|
+
*
|
|
37
|
+
* @example ```<component-name>.<handler-name>.enable();```
|
|
38
|
+
*/
|
|
39
|
+
public enable(): void {
|
|
40
|
+
if (this._enabled || !this._component.activated) { return; }
|
|
41
|
+
|
|
42
|
+
this._enable();
|
|
43
|
+
this._enabled = true;
|
|
44
|
+
|
|
45
|
+
this._component.configure(this._getConfiguration(true));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Disables the interaction.
|
|
50
|
+
*
|
|
51
|
+
* @example ```<component-name>.<handler-name>.disable();```
|
|
52
|
+
*/
|
|
53
|
+
public disable(): void {
|
|
54
|
+
if (!this._enabled) { return; }
|
|
55
|
+
|
|
56
|
+
this._disable();
|
|
57
|
+
this._enabled = false;
|
|
58
|
+
|
|
59
|
+
if (this._component.activated) {
|
|
60
|
+
this._component.configure(this._getConfiguration(false));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
protected abstract _enable(): void;
|
|
65
|
+
|
|
66
|
+
protected abstract _disable(): void;
|
|
67
|
+
|
|
68
|
+
protected abstract _getConfiguration(enable: boolean): TConfiguration;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export default HandlerBase;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {BeeviewError} from "./BeeviewError";
|
|
2
|
+
|
|
3
|
+
export class ArgumentBeeviewError extends BeeviewError {
|
|
4
|
+
constructor (message?: string) {
|
|
5
|
+
super(message != null ? message : "The argument is not valid.");
|
|
6
|
+
|
|
7
|
+
this.name = "ArgumentBeeviewError";
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default ArgumentBeeviewError;
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import * as THREE from "three";
|
|
2
|
+
|
|
3
|
+
import {Transform} from "../Geo";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @class Camera
|
|
7
|
+
*
|
|
8
|
+
* @classdesc Holds information about a camera.
|
|
9
|
+
*/
|
|
10
|
+
export class Camera {
|
|
11
|
+
private _position: THREE.Vector3;
|
|
12
|
+
private _lookat: THREE.Vector3;
|
|
13
|
+
private _up: THREE.Vector3;
|
|
14
|
+
private _focal: number;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Create a new camera instance.
|
|
18
|
+
* @param {Transform} [transform] - Optional transform instance.
|
|
19
|
+
*/
|
|
20
|
+
constructor(transform?: Transform) {
|
|
21
|
+
if (transform != null) {
|
|
22
|
+
this._position = new THREE.Vector3().fromArray(transform.unprojectSfM([0, 0], 0));
|
|
23
|
+
this._lookat = new THREE.Vector3().fromArray(transform.unprojectSfM([0, 0], 10));
|
|
24
|
+
this._up = transform.upVector();
|
|
25
|
+
this._focal = this._getFocal(transform);
|
|
26
|
+
} else {
|
|
27
|
+
this._position = new THREE.Vector3(0, 0, 0);
|
|
28
|
+
this._lookat = new THREE.Vector3(0, 0, 1);
|
|
29
|
+
this._up = new THREE.Vector3(0, -1, 0);
|
|
30
|
+
this._focal = 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Get position.
|
|
36
|
+
* @returns {THREE.Vector3} The position vector.
|
|
37
|
+
*/
|
|
38
|
+
public get position(): THREE.Vector3 {
|
|
39
|
+
return this._position;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get lookat.
|
|
44
|
+
* @returns {THREE.Vector3} The lookat vector.
|
|
45
|
+
*/
|
|
46
|
+
public get lookat(): THREE.Vector3 {
|
|
47
|
+
return this._lookat;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Get up.
|
|
52
|
+
* @returns {THREE.Vector3} The up vector.
|
|
53
|
+
*/
|
|
54
|
+
public get up(): THREE.Vector3 {
|
|
55
|
+
return this._up;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Get focal.
|
|
60
|
+
* @returns {number} The focal length.
|
|
61
|
+
*/
|
|
62
|
+
public get focal(): number {
|
|
63
|
+
return this._focal;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Set focal.
|
|
68
|
+
*/
|
|
69
|
+
public set focal(value: number) {
|
|
70
|
+
this._focal = value;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Update this camera to the linearly interpolated value of two other cameras.
|
|
75
|
+
*
|
|
76
|
+
* @param {Camera} a - First camera.
|
|
77
|
+
* @param {Camera} b - Second camera.
|
|
78
|
+
* @param {number} alpha - Interpolation value on the interval [0, 1].
|
|
79
|
+
*/
|
|
80
|
+
public lerpCameras(a: Camera, b: Camera, alpha: number): void {
|
|
81
|
+
this._position.subVectors(b.position, a.position).multiplyScalar(alpha).add(a.position);
|
|
82
|
+
this._lookat.subVectors(b.lookat, a.lookat).multiplyScalar(alpha).add(a.lookat);
|
|
83
|
+
this._up.subVectors(b.up, a.up).multiplyScalar(alpha).add(a.up);
|
|
84
|
+
this._focal = (1 - alpha) * a.focal + alpha * b.focal;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Copy the properties of another camera to this camera.
|
|
89
|
+
*
|
|
90
|
+
* @param {Camera} other - Another camera.
|
|
91
|
+
*/
|
|
92
|
+
public copy(other: Camera): void {
|
|
93
|
+
this._position.copy(other.position);
|
|
94
|
+
this._lookat.copy(other.lookat);
|
|
95
|
+
this._up.copy(other.up);
|
|
96
|
+
this._focal = other.focal;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Clone this camera.
|
|
101
|
+
*
|
|
102
|
+
* @returns {Camera} A camera with cloned properties equal to this camera.
|
|
103
|
+
*/
|
|
104
|
+
public clone(): Camera {
|
|
105
|
+
let camera: Camera = new Camera();
|
|
106
|
+
|
|
107
|
+
camera.position.copy(this._position);
|
|
108
|
+
camera.lookat.copy(this._lookat);
|
|
109
|
+
camera.up.copy(this._up);
|
|
110
|
+
camera.focal = this._focal;
|
|
111
|
+
|
|
112
|
+
return camera;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Determine the distance between this camera and another camera.
|
|
117
|
+
*
|
|
118
|
+
* @param {Camera} other - Another camera.
|
|
119
|
+
* @returns {number} The distance between the cameras.
|
|
120
|
+
*/
|
|
121
|
+
public diff(other: Camera): number {
|
|
122
|
+
let pd: number = this._position.distanceToSquared(other.position);
|
|
123
|
+
let ld: number = this._lookat.distanceToSquared(other.lookat);
|
|
124
|
+
let ud: number = this._up.distanceToSquared(other.up);
|
|
125
|
+
let fd: number = 100 * Math.abs(this._focal - other.focal);
|
|
126
|
+
|
|
127
|
+
return Math.max(pd, ld, ud, fd);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Get the focal length based on the transform.
|
|
132
|
+
*
|
|
133
|
+
* @description Returns the focal length of the transform if gpano info is not available.
|
|
134
|
+
* Returns a focal length corresponding to a vertical fov clamped to [45, 90] degrees based on
|
|
135
|
+
* the gpano information if available.
|
|
136
|
+
*
|
|
137
|
+
* @returns {number} Focal length.
|
|
138
|
+
*/
|
|
139
|
+
private _getFocal(transform: Transform): number {
|
|
140
|
+
if (transform.gpano == null) {
|
|
141
|
+
return transform.focal;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
let vFov: number = Math.PI * transform.gpano.CroppedAreaImageHeightPixels / transform.gpano.FullPanoHeightPixels;
|
|
145
|
+
let focal: number = 0.5 / Math.tan(vFov / 2);
|
|
146
|
+
|
|
147
|
+
return Math.min(1 / (2 * (Math.sqrt(2) - 1)), Math.max(0.5, focal));
|
|
148
|
+
}
|
|
149
|
+
}
|