@vsleem-realsee-viewer/realsee-plugin 2.0.21 → 2.0.22

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.
@@ -1,3 +1,9 @@
1
+ /** 全局默认配置 */
2
+ export declare const APP_SETTING: {
3
+ obsType: string;
4
+ baseUrl: string;
5
+ authorizeCode: string;
6
+ };
1
7
  /** 轨迹的颜色 */
2
8
  export declare const TRACK_COLOR_LIST: string[];
3
9
  /** 全景设置 */
@@ -27,6 +33,7 @@ export declare const VIEWER_CONFIG: {
27
33
  height: string;
28
34
  }; /** 视图尺寸 */
29
35
  };
36
+ /**地图瓦片图层配置 */
30
37
  export declare const TILE_LAYERS: ({
31
38
  url: string;
32
39
  options: {
@@ -87,8 +94,8 @@ export declare const PLAYBAR_CONFIG: {
87
94
  /** 全景组件配置 */
88
95
  export declare const REALSEE_CONFIG: {
89
96
  appSetting: {
90
- baseUrl: string;
91
97
  obsType: string;
98
+ baseUrl: string;
92
99
  authorizeCode: string;
93
100
  }; /** 全局设置 */
94
101
  realseeSetting: {
@@ -4,16 +4,10 @@ import { TrackRecord } from '../core';
4
4
  import { TrackRecordModel } from './data';
5
5
  import { MapElement, MapProps } from './map';
6
6
  import { PlaybarElement, PlaybarProps } from './playbar';
7
- import { RealseeStore } from './store';
7
+ import { ObsConfig, RealseeStore } from './store';
8
8
  import { MarkerElement, MarkerProps, ViewerElement, ViewerProps } from './viewer';
9
9
  /**应用设置 */
10
- export type AppSetting = AppConfig & {
11
- /**对象存储瓦片数量 */
12
- obsTiles?: {
13
- cols: number;
14
- rows: number;
15
- };
16
- };
10
+ export type AppSetting = AppConfig & ObsConfig;
17
11
  /** 搜索参数 */
18
12
  export type SearchInfo = {
19
13
  projectId: number /** 项目id */;
@@ -1,6 +1,15 @@
1
1
  import { Coordinate } from '@vsleem-realsee-viewer/shared';
2
2
  import { TrackMarker, TrackPoint, TrackRecord } from '../core';
3
3
  import { SearchInfo, ViewerOptions } from '../types';
4
+ /**对象存储服务配置 */
5
+ export type ObsConfig = {
6
+ obsPrefix?: string /**用于在对象存储中组织文件的目录路径(不可用) */;
7
+ obsType?: string /**指定使用的对象存储服务提供商 huawei | aliyun | hs 等 */;
8
+ obsTiles?: {
9
+ cols: number;
10
+ rows: number;
11
+ } /**对象存储瓦片数量(需与obsType同时使用) */;
12
+ };
4
13
  export type RealseeStore = {
5
14
  /** 是否加载完成 */
6
15
  ready: boolean;
@@ -1,5 +1,6 @@
1
1
  import { PanoramaOptions, Viewer, ViewerConfig } from '@photo-sphere-viewer/core';
2
2
  import { events, MarkerConfig as MarkerOptions, MarkersPluginConfig } from '@photo-sphere-viewer/markers-plugin';
3
+ import { TrackPoint } from '../core';
3
4
  export type { AnimateOptions, PanoramaOptions, Position, UpdatableViewerConfig, } from '@photo-sphere-viewer/core';
4
5
  export type { MarkersPlugin as MarkerElement, MarkerConfig as MarkerOptions, } from '@photo-sphere-viewer/markers-plugin';
5
6
  /** 参考视图选项 */
@@ -25,6 +26,7 @@ export type UpdatableMarkerProps = Partial<MarkerProps>;
25
26
  export type ViewerProps = Omit<ViewerConfig, 'container' | 'panorama' | 'keyboard' | 'keyboardActions'>;
26
27
  /** 可更新视图配置 */
27
28
  export type UpdatableViewerProps = Partial<ViewerProps & {
29
+ playing?: boolean /**是否播放 */;
28
30
  mousedown?: boolean /** 鼠标是否按下 */;
29
31
  moveover?: boolean /** 鼠标是否移入 */;
30
32
  panoramaOptions?: PanoramaOptions;
@@ -37,7 +39,7 @@ export type ViewerElement = Viewer & {
37
39
  isMousedown: () => boolean /** 检查鼠标是否按下视图 */;
38
40
  setMousedown: (state: boolean) => void /** 设置鼠标按下状态 */;
39
41
  setMouseover: (state: boolean) => void /** 设置鼠标悬停状态 */;
40
- setPanoramaPath: (path: any, options?: PanoramaOptions) => Promise<void> /** 加载新的全景图 */;
42
+ setPanoramaPath: (currentPoint: TrackPoint, options?: PanoramaOptions) => Promise<void> /** 加载新的全景图 */;
41
43
  setPanoramaOptions: (options?: PanoramaOptions) => void /** 设置全景图显示参数 */;
42
44
  setVewerStatus: (options: ViewerOptions) => void /** 设置视图状态 */;
43
45
  updateMarkers: () => void /** 更新在全景图上的标记 */;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vsleem-realsee-viewer/realsee-plugin",
3
- "version": "2.0.21",
3
+ "version": "2.0.22",
4
4
  "description": "Realsee plugin for VSLeem RealSee Viewer",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.mjs",
@@ -13,11 +13,11 @@
13
13
  "dist"
14
14
  ],
15
15
  "dependencies": {
16
- "@vsleem-realsee-viewer/shared": "2.0.21"
16
+ "@vsleem-realsee-viewer/shared": "2.0.22"
17
17
  },
18
18
  "peerDependencies": {
19
19
  "vue": ">=3.5.0",
20
- "@vsleem-realsee-viewer/shared": "2.0.21"
20
+ "@vsleem-realsee-viewer/shared": "2.0.22"
21
21
  },
22
22
  "peerDependenciesMeta": {
23
23
  "vue": {