@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.
- package/dist/index.esm.js +99 -99
- package/dist/types/context-menu/ContextMenuPlugin.d.ts +1 -1
- package/dist/types/context-menu/Locale.d.ts +1 -1
- package/dist/types/export/ExportPlugin.d.ts +1 -1
- package/dist/types/measurements/Locale.d.ts +1 -1
- package/dist/types/measurements/MeasurementPlugin.d.ts +1 -1
- package/dist/types/nav-cube/Locale.d.ts +1 -1
- package/dist/types/nav-cube/NavCubePlugin.d.ts +1 -1
- package/dist/types/property/Locale.d.ts +1 -1
- package/dist/types/property/PropertyPlugin.d.ts +1 -1
- package/dist/types/sections/Locale.d.ts +1 -1
- package/dist/types/sections/SectionPlugin.d.ts +1 -1
- package/dist/types/settings-2d/Locale.d.ts +1 -1
- package/dist/types/settings-2d/Settings2dPlugin.d.ts +1 -1
- package/dist/types/settings-3d/Locale.d.ts +1 -1
- package/dist/types/settings-3d/Settings3dPlugin.d.ts +1 -1
- package/dist/types/toolbars/Locale.d.ts +1 -1
- package/dist/types/toolbars/Viewer2dToolbarPlugin.d.ts +1 -1
- package/dist/types/toolbars/Viewer3dToolbarPlugin.d.ts +1 -1
- package/dist/types/tree-view/Locale.d.ts +1 -1
- package/dist/types/tree-view/TreeViewPlugin.d.ts +1 -1
- package/dist/types/view-cube/Locale.d.ts +1 -1
- package/dist/types/view-cube/ViewCubePlugin.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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?: "
|
|
14
|
+
language?: "en" | "zh";
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
17
|
* Export plugin is used to export scene to a 3d model.
|
|
@@ -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?: "
|
|
9
|
+
language?: "en" | "zh";
|
|
10
10
|
}
|
|
11
11
|
export declare class MeasurementPlugin extends Plugin {
|
|
12
12
|
static readonly DEFAULT_ID = "MeasurementPlugin";
|
|
@@ -5,7 +5,7 @@ import { NavCube } from "./NavCube";
|
|
|
5
5
|
*/
|
|
6
6
|
export interface NavCubePluginConfig extends Partial<PluginConfig> {
|
|
7
7
|
containerId: string;
|
|
8
|
-
language?: "
|
|
8
|
+
language?: "en" | "zh";
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
* This renderer monitors the host renderer's camera, and keeps a NavCube
|
|
@@ -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?: "
|
|
16
|
+
language?: "en" | "zh";
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Section plugin, can be used by Viewer3d and BimTilesViewer.
|
|
@@ -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?: "
|
|
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?: "
|
|
8
|
+
language?: "en" | "zh";
|
|
9
9
|
menuConfig: ToolbarConfig;
|
|
10
10
|
groupConfig?: ToolbarMenuId[][] | string[][];
|
|
11
11
|
}
|
|
@@ -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?: "
|
|
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.
|
|
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",
|