@x-viewer/plugins 0.11.2 → 0.12.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.
@@ -4,7 +4,7 @@ import { Context, ContextMenuItem } from "./Constants";
4
4
  * Context menu plugin config.
5
5
  */
6
6
  export interface ContextMenuPluginConfig extends Partial<PluginConfig> {
7
- language?: "cn" | "en";
7
+ language?: "en" | "zh";
8
8
  }
9
9
  /**
10
10
  * Context menu plugin.
@@ -22,7 +22,7 @@ export declare const en: {
22
22
  hideAxisSection: string;
23
23
  undoSection: string;
24
24
  };
25
- export declare const cn: {
25
+ export declare const zh: {
26
26
  viewFitAll: string;
27
27
  hideAll: string;
28
28
  showAll: string;
@@ -11,7 +11,7 @@ export declare enum ExportFormats {
11
11
  * Export plugin config.
12
12
  */
13
13
  export interface ExportPluginConfig extends Partial<PluginConfig> {
14
- language?: "cn" | "en";
14
+ language?: "en" | "zh";
15
15
  }
16
16
  /**
17
17
  * Export plugin is used to export scene to a 3d model.
@@ -3,7 +3,7 @@ export declare const en: {
3
3
  measure: string;
4
4
  areaMeasurement: string;
5
5
  };
6
- export declare const cn: {
6
+ export declare const zh: {
7
7
  measure: string;
8
8
  areaMeasurement: string;
9
9
  };
@@ -6,7 +6,7 @@ import { MeasurementData, MeasurementType } from "./BaseMeasurement";
6
6
  * Measurement plugin config.
7
7
  */
8
8
  export interface MeasurementPluginConfig extends Partial<PluginConfig> {
9
- language?: "cn" | "en";
9
+ language?: "en" | "zh";
10
10
  }
11
11
  export declare class MeasurementPlugin extends Plugin {
12
12
  static readonly DEFAULT_ID = "MeasurementPlugin";
@@ -7,7 +7,7 @@ export declare const en: {
7
7
  left: string;
8
8
  right: string;
9
9
  };
10
- export declare const cn: {
10
+ export declare const zh: {
11
11
  front: string;
12
12
  back: string;
13
13
  top: string;
@@ -5,7 +5,7 @@ import { NavCube } from "./NavCube";
5
5
  */
6
6
  export interface NavCubePluginConfig extends Partial<PluginConfig> {
7
7
  containerId: string;
8
- language?: "cn" | "en";
8
+ language?: "en" | "zh";
9
9
  }
10
10
  /**
11
11
  * This renderer monitors the host renderer's camera, and keeps a NavCube
@@ -2,7 +2,7 @@ import { i18next } from "@x-viewer/core";
2
2
  export declare const en: {
3
3
  property: string;
4
4
  };
5
- export declare const cn: {
5
+ export declare const zh: {
6
6
  property: string;
7
7
  };
8
8
  export declare const i18n: i18next.i18n;
@@ -12,7 +12,7 @@ export interface PropertyPluginConfig extends Partial<PluginConfig> {
12
12
  * If panel is visible. It is visible by default.
13
13
  */
14
14
  visible?: boolean;
15
- language?: "cn" | "en";
15
+ language?: "en" | "zh";
16
16
  }
17
17
  /**
18
18
  * Tree view plugin events.
@@ -6,7 +6,7 @@ export declare const en: {
6
6
  showSectionPlane: string;
7
7
  reset: string;
8
8
  };
9
- export declare const cn: {
9
+ export declare const zh: {
10
10
  pickSectionPlane: string;
11
11
  axisSection: string;
12
12
  hideSectionPlane: string;
@@ -13,7 +13,7 @@ export declare enum SectionType {
13
13
  * Section plugin config.
14
14
  */
15
15
  export interface SectionPluginConfig extends Partial<PluginConfig> {
16
- language?: "cn" | "en";
16
+ language?: "en" | "zh";
17
17
  }
18
18
  /**
19
19
  * Section plugin, can be used by Viewer3d and BimTilesViewer.
@@ -5,7 +5,7 @@ export declare const en: {
5
5
  backgroundColor: string;
6
6
  scaleRate: string;
7
7
  };
8
- export declare const cn: {
8
+ export declare const zh: {
9
9
  settings: string;
10
10
  hideSmallObjects: string;
11
11
  backgroundColor: string;
@@ -12,7 +12,7 @@ export interface Settings2dPluginConfig extends Partial<PluginConfig> {
12
12
  * If panel is visible. It is visible by default.
13
13
  */
14
14
  visible?: boolean;
15
- language?: "cn" | "en";
15
+ language?: "en" | "zh";
16
16
  }
17
17
  /**
18
18
  * Setting 2d plugin events.
@@ -23,7 +23,7 @@ export declare const en: {
23
23
  grass: string;
24
24
  sunshine: string;
25
25
  };
26
- export declare const cn: {
26
+ export declare const zh: {
27
27
  settings: string;
28
28
  showOutline: string;
29
29
  doubleSidedMaterials: string;
@@ -12,7 +12,7 @@ export interface Settings3dPluginConfig extends Partial<PluginConfig> {
12
12
  * If panel is visible. It is visible by default.
13
13
  */
14
14
  visible?: boolean;
15
- language?: "cn" | "en";
15
+ language?: "en" | "zh";
16
16
  }
17
17
  /**
18
18
  * Setting 3d plugin events.
@@ -48,7 +48,7 @@ export declare const en: {
48
48
  zoomToExtent: string;
49
49
  screenshot: string;
50
50
  };
51
- export declare const cn: {
51
+ export declare const zh: {
52
52
  homeView: string;
53
53
  orthoView: string;
54
54
  measurement: string;
@@ -5,7 +5,7 @@ import { ToolbarConfig, ToolbarMenuId } from "./Toolbar.constants";
5
5
  * Viewer2d toolbar plugin config.
6
6
  */
7
7
  export interface Viewer2dToolbarPluginConfig extends Partial<PluginConfig> {
8
- language?: "cn" | "en";
8
+ language?: "en" | "zh";
9
9
  menuConfig: ToolbarConfig;
10
10
  groupConfig?: ToolbarMenuId[][] | string[][];
11
11
  markupMenuCfg?: ToolbarConfig;
@@ -5,7 +5,7 @@ import { ToolbarConfig, ToolbarMenuId } from "./Toolbar.constants";
5
5
  * Viewer3d toolbar plugin config.
6
6
  */
7
7
  export interface Viewer3dToolbarPluginConfig extends Partial<PluginConfig> {
8
- language?: "cn" | "en";
8
+ language?: "en" | "zh";
9
9
  menuConfig: ToolbarConfig;
10
10
  groupConfig?: ToolbarMenuId[][] | string[][];
11
11
  }
@@ -2,7 +2,7 @@ import { i18next } from "@x-viewer/core";
2
2
  export declare const en: {
3
3
  treeView: string;
4
4
  };
5
- export declare const cn: {
5
+ export declare const zh: {
6
6
  treeView: string;
7
7
  };
8
8
  export declare const i18n: i18next.i18n;
@@ -12,7 +12,7 @@ export interface TreeViewPluginConfig extends Partial<PluginConfig> {
12
12
  * If panel is visible. It is visible by default.
13
13
  */
14
14
  visible?: boolean;
15
- language?: "cn" | "en";
15
+ language?: "en" | "zh";
16
16
  }
17
17
  /**
18
18
  * Tree view plugin events.
@@ -7,7 +7,7 @@ export declare const en: {
7
7
  left: string;
8
8
  right: string;
9
9
  };
10
- export declare const cn: {
10
+ export declare const zh: {
11
11
  front: string;
12
12
  back: string;
13
13
  top: string;
@@ -1,7 +1,7 @@
1
1
  import { type BaseViewer, Plugin, PluginConfig } from "@x-viewer/core";
2
2
  export interface ViewCubePluginConfig extends Partial<PluginConfig> {
3
3
  containerId?: string;
4
- language?: "cn" | "en";
4
+ language?: "en" | "zh";
5
5
  showAxes?: boolean;
6
6
  lineColor?: number;
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x-viewer/plugins",
3
- "version": "0.11.2",
3
+ "version": "0.12.0",
4
4
  "description": "Plugin package providing extensible functionality modules for x-viewer. Includes measurement tools, markup annotations, section planes, toolbars, layer management, export/screenshot capabilities, and various UI enhancements.",
5
5
  "author": "x-viewer",
6
6
  "license": "UNLICENSED",