@x-viewer/plugins 0.11.0 → 0.11.2

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.
Files changed (46) hide show
  1. package/dist/index.esm.js +89 -89
  2. package/dist/types/axis-gizmo/AxisGizmoPlugin.d.ts +0 -26
  3. package/dist/types/axis-gizmo/CoordinateAxes.d.ts +1 -14
  4. package/dist/types/bottom-bar/BottomBarPlugin.d.ts +0 -6
  5. package/dist/types/context-menu/Constants.d.ts +4 -4
  6. package/dist/types/context-menu/ContextMenuPlugin.d.ts +0 -11
  7. package/dist/types/dat-gui/Viewer3dDatGui.d.ts +1 -1
  8. package/dist/types/explode/ExplodePlugin.d.ts +1 -1
  9. package/dist/types/explode/ObjectExploder.d.ts +1 -1
  10. package/dist/types/export/ExportPlugin.d.ts +1 -1
  11. package/dist/types/ground-shaow/GroundShadowPlugin.d.ts +0 -6
  12. package/dist/types/hotpoint/HotpointPlugin.d.ts +1 -1
  13. package/dist/types/layer-manager/LayerManagerPlugin.d.ts +1 -2
  14. package/dist/types/local-model-uploader/IUploader.d.ts +1 -1
  15. package/dist/types/local-model-uploader/LocalDxfUploader.d.ts +1 -10
  16. package/dist/types/local-model-uploader/LocalModelUploader.d.ts +1 -7
  17. package/dist/types/markups/ArrowMarkup.d.ts +0 -2
  18. package/dist/types/markups/BaseMarkup.d.ts +0 -1
  19. package/dist/types/markups/CloudRectMarkup.d.ts +0 -1
  20. package/dist/types/markups/CloudRectWithTextMarkup.d.ts +0 -7
  21. package/dist/types/markups/LeaderLineMarkup.d.ts +0 -4
  22. package/dist/types/markups/MarkupPlugin.d.ts +0 -21
  23. package/dist/types/measurements/AreaMeasurement.d.ts +0 -4
  24. package/dist/types/measurements/BaseMeasurement.d.ts +1 -2
  25. package/dist/types/measurements/DistanceMeasureDrawable.d.ts +0 -2
  26. package/dist/types/measurements/DistanceMeasurement.d.ts +0 -4
  27. package/dist/types/measurements/MeasurementPlugin.d.ts +0 -20
  28. package/dist/types/nav-cube/NavCubePlugin.d.ts +0 -1
  29. package/dist/types/overview-map/OverviewMapPlugin.d.ts +0 -2
  30. package/dist/types/property/PropertyPlugin.d.ts +0 -14
  31. package/dist/types/screenshot/ScreenshotPlugin.d.ts +4 -14
  32. package/dist/types/sections/BaseSection.d.ts +1 -1
  33. package/dist/types/sections/SectionPlugin.d.ts +0 -12
  34. package/dist/types/settings-2d/Settings2dPlugin.d.ts +1 -3
  35. package/dist/types/settings-3d/Settings3dPlugin.d.ts +0 -7
  36. package/dist/types/skybox/SkyboxPlugin.d.ts +0 -4
  37. package/dist/types/stats/StatsPlugin.d.ts +0 -1
  38. package/dist/types/toolbars/MarkupToolbar.d.ts +3 -3
  39. package/dist/types/toolbars/Toolbar.config.d.ts +2 -2
  40. package/dist/types/toolbars/Toolbar.constants.d.ts +1 -1
  41. package/dist/types/toolbars/Toolbar.d.ts +1 -1
  42. package/dist/types/toolbars/Viewer2dToolbarPlugin.d.ts +0 -1
  43. package/dist/types/toolbars/Viewer3dToolbarPlugin.d.ts +0 -2
  44. package/dist/types/tree-view/TreeViewPlugin.d.ts +0 -25
  45. package/dist/types/view-cube/ViewCubePlugin.d.ts +0 -40
  46. package/package.json +1 -1
@@ -18,34 +18,8 @@ export interface AxisGizmoPluginConfig extends Partial<PluginConfig> {
18
18
  */
19
19
  export declare class AxisGizmoPlugin extends Plugin {
20
20
  static readonly DEFAULT_ID = "AxisGizmoPlugin";
21
- private cfg;
22
- private hostCamera?;
23
- private container?;
24
- private coordinateAxes?;
25
- private ignoreZAxis;
26
- private camera?;
27
- private scene?;
28
- private renderer?;
29
- private css2dRenderer?;
30
21
  constructor(viewer: BaseViewer, cfg?: AxisGizmoPluginConfig);
31
- private init;
32
- private initRenderer;
33
- private initScene;
34
- /**
35
- * Sets hostCamera in case it is changed.
36
- * It is possible for a viewer to switch camera between a OrthographicCamera and a PerspectiveCamera.
37
- */
38
- private setHostCamera;
39
22
  setVisible(visible: boolean): void;
40
23
  isVisible(): boolean;
41
- private render;
42
- private animate;
43
- private update;
44
- /**
45
- * Update axes according to camera direction.
46
- * Camera's direction is the only input factor for this class. It always look at the origin.
47
- * @param direction
48
- */
49
- private updateCameraDirection;
50
24
  destroy(): void;
51
25
  }
@@ -1,14 +1 @@
1
- import { THREE, THREEAddons } from "@x-viewer/core";
2
- /**
3
- * CoordinateAxes class.
4
- */
5
- export declare class CoordinateAxes extends THREE.Object3D {
6
- name: string;
7
- private readonly AXIS_LENGTH;
8
- private readonly AXIS_COLOR_X;
9
- private readonly AXIS_COLOR_Y;
10
- private readonly AXIS_COLOR_Z;
11
- constructor(addTexts?: boolean, ignoreZAxis?: boolean);
12
- addTexts(ignoreZAxis?: boolean): void;
13
- createText(text: string, color: string, size?: number): THREEAddons.CSS2DObject;
14
- }
1
+ export {};
@@ -17,25 +17,19 @@ interface BottomBarItemConfig {
17
17
  * Bottom bar plugin is a debug tool for developers.
18
18
  */
19
19
  export declare class BottomBarPlugin extends Plugin {
20
- private element;
21
20
  itemList: Map<string, BottomBarItem>;
22
21
  constructor(viewer: BaseViewer);
23
22
  update(): void;
24
- private init;
25
- private createItem;
26
23
  }
27
24
  declare class BottomBarItem {
28
25
  readonly viewer: BaseViewer;
29
26
  private readonly bottomBar;
30
27
  protected readonly menuId: string;
31
28
  protected cfg: BottomBarItemConfig;
32
- private eventBus;
33
- private itemconfig;
34
29
  tooltip: Tooltip;
35
30
  element: HTMLElement;
36
31
  active: boolean;
37
32
  constructor(viewer: BaseViewer, bottomBar: BottomBarPlugin, menuId: string, cfg: BottomBarItemConfig);
38
- private createButton;
39
33
  setActive(active: boolean): void;
40
34
  update(): void;
41
35
  }
@@ -3,7 +3,7 @@ import type { AxisPlaneSection, ObjectsBoxSection, PickPlaneSection } from "../s
3
3
  import type { Toolbar } from "../toolbars";
4
4
  /**
5
5
  * Context for ContextMenu
6
- * @internal
6
+ * @hidden
7
7
  */
8
8
  export interface Context {
9
9
  viewer: BaseViewer;
@@ -12,16 +12,16 @@ export interface Context {
12
12
  batchId?: number;
13
13
  /**
14
14
  * For Viewer3d
15
- * @internal
15
+ * @hidden
16
16
  */
17
17
  section?: ObjectsBoxSection | PickPlaneSection | AxisPlaneSection;
18
18
  toolbar?: Toolbar;
19
19
  }
20
20
  /**
21
- * @internal
21
+ * @hidden
22
22
  */
23
23
  /**
24
- * @internal
24
+ * @hidden
25
25
  */
26
26
  export interface ContextMenuItem {
27
27
  title?: string;
@@ -18,18 +18,7 @@ export declare class ContextMenuPlugin extends Plugin {
18
18
  protected context: Context;
19
19
  protected itemList: [ContextMenuItem, HTMLElement][];
20
20
  constructor(viewer: BaseViewer, cfg?: ContextMenuPluginConfig);
21
- private initLocalization;
22
- private initEvents;
23
21
  protected handleClick: () => void;
24
- private showContextMenu;
25
- private isEnabled;
26
- private isShown;
27
- private getTitle;
28
- private createMenuUI;
29
- private createMenuGroup;
30
- private createMenuItem;
31
- private updateMenuItems;
32
- private showMenuElement;
33
22
  show(pageX: number, pageY: number): void;
34
23
  hide(): void;
35
24
  destroy(): void;
@@ -2,7 +2,7 @@ import { Plugin, Viewer3d } from "@x-viewer/core";
2
2
  import * as dat from "dat.gui";
3
3
  /**
4
4
  * Can be used by Viewer3d and BimTilesViewer.
5
- * @internal
5
+ * @hidden
6
6
  */
7
7
  export declare class Viewer3dDatGuiPlugin extends Plugin {
8
8
  protected viewer: Viewer3d;
@@ -16,7 +16,7 @@ export interface ExplodePluginConfig extends Partial<PluginConfig> {
16
16
  /**
17
17
  * Exploder class is used to explode objects in a viewer.
18
18
  * Can be used by Viewer3d.
19
- * @internal
19
+ * @hidden
20
20
  */
21
21
  export declare class ExplodePlugin extends Plugin {
22
22
  static readonly DEFAULT_ID = "ExplodePlugin";
@@ -1,7 +1,7 @@
1
1
  import { THREE } from "@x-viewer/core";
2
2
  /**
3
3
  * ObjectExploder class is used to explode an object
4
- * @internal
4
+ * @hidden
5
5
  */
6
6
  export declare class ObjectExploder {
7
7
  private scene;
@@ -27,7 +27,7 @@ export declare class ExportPlugin extends Plugin {
27
27
  * Exports to gltf or glb format.
28
28
  * @param filename pure filename without extension.
29
29
  * @param binary true to export as binary glb, false to export as text gltf.
30
- * @internal
30
+ * @hidden
31
31
  */
32
32
  exportGltf(filename: string, options?: THREEAddons.GLTFExporterOptions, targetObject?: THREE.Object3D | null): void;
33
33
  /**
@@ -42,8 +42,6 @@ export declare class GroundShadowPlugin extends Plugin {
42
42
  protected shadowCamera?: THREE.OrthographicCamera;
43
43
  protected renderTarget?: THREE.WebGLRenderTarget;
44
44
  protected renderTargetBlur?: THREE.WebGLRenderTarget;
45
- private shouldRender;
46
- private timeout?;
47
45
  constructor(viewer: BaseViewer, cfg?: GroundShadowPluginConfig);
48
46
  protected get scene(): THREE.Scene<THREE.Object3DEventMap>;
49
47
  protected get renderer(): THREE.WebGLRenderer;
@@ -55,10 +53,6 @@ export declare class GroundShadowPlugin extends Plugin {
55
53
  update(): void;
56
54
  protected onModelUpdate: () => void;
57
55
  protected onShadowRender: () => void;
58
- private initMaterial;
59
- private initRenderTarget;
60
- private updateGroundShadow;
61
- private blurShadow;
62
56
  protected render(): void;
63
57
  destroy(): void;
64
58
  }
@@ -65,7 +65,7 @@ export declare class HotpointPlugin extends Plugin {
65
65
  /**
66
66
  * Checks if hotpoint with specific id already exist
67
67
  * Caller should set a hotpointId that is unique in the session of current Viewer2d.
68
- * @internal
68
+ * @hidden
69
69
  */
70
70
  has(hotpointId: string): boolean;
71
71
  /**
@@ -7,7 +7,7 @@ export interface LayerManagerPluginConfig extends Partial<PluginConfig> {
7
7
  /**
8
8
  * Container div id.
9
9
  */
10
- containerId: string;
10
+ containerId?: string;
11
11
  /**
12
12
  * If panel is visible. It is visible by default.
13
13
  */
@@ -39,7 +39,6 @@ export declare class LayerManagerPlugin extends Plugin<LayerManagerPluginEvents>
39
39
  protected init(): void;
40
40
  setVisible(visible: boolean): void;
41
41
  isVisible(): boolean;
42
- private onClose;
43
42
  destroy(): void;
44
43
  addContent(): void;
45
44
  generateListItem(layer: string, visible: boolean, color?: string): string;
@@ -1,6 +1,6 @@
1
1
  import { BaseViewer } from "@x-viewer/core";
2
2
  /**
3
- * @internal
3
+ * @hidden
4
4
  */
5
5
  export declare class IUploader {
6
6
  protected viewer: BaseViewer;
@@ -1,21 +1,12 @@
1
1
  import { Viewer2d, ModelConfig } from "@x-viewer/core";
2
2
  import { IUploader } from "./IUploader";
3
3
  /**
4
- * @internal
4
+ * @hidden
5
5
  */
6
6
  export declare class LocalDxfUploader extends IUploader {
7
- private pdfWorker;
8
7
  readonly defaultModelConfig: ModelConfig;
9
8
  constructor(viewer: Viewer2d, elementId?: string, formats?: string[]);
10
9
  setPdfWorker(pdfWorker: string): void;
11
10
  protected formats(): string[];
12
11
  protected uploadFiles(files: FileList): void;
13
- /**
14
- * Upload single dxf file.
15
- */
16
- private uploadSingleDxf;
17
- /**
18
- * Upload single pdf file.
19
- */
20
- private uploadSinglePdf;
21
12
  }
@@ -1,7 +1,7 @@
1
1
  import type { ModelConfig, Viewer3d } from "@x-viewer/core";
2
2
  import { IUploader } from "./IUploader";
3
3
  /**
4
- * @internal
4
+ * @hidden
5
5
  */
6
6
  export declare class LocalModelUploader extends IUploader {
7
7
  readonly defaultModelConfig: ModelConfig;
@@ -15,10 +15,4 @@ export declare class LocalModelUploader extends IUploader {
15
15
  * It doesn't support the case to upload many model files, and one or more of them contains external files.
16
16
  */
17
17
  protected uploadFiles(files: FileList): void;
18
- private checkAllFilesWithTheSameFormat;
19
- /**
20
- * Upload single model file without external texture/bin, etc.
21
- * With this function, caller can upload many gltf/glb at one time.
22
- */
23
- private uploadSingleFile;
24
18
  }
@@ -5,8 +5,6 @@ export declare class ArrowMarkup extends BaseMarkup {
5
5
  type: MarkupType;
6
6
  constructor(id: string, points: THREE.Vector3[]);
7
7
  draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
8
- private drawArrowLine;
9
- private drawArrowHead;
10
8
  isPointInPath(p: THREE.Vector3): boolean;
11
9
  getClassType(): string;
12
10
  }
@@ -21,7 +21,6 @@ export declare abstract class BaseMarkup extends PathDrawable {
21
21
  constructor(id: string);
22
22
  isSelected(): boolean;
23
23
  drawSelect(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
24
- private drawPoints;
25
24
  isPointInPath(p: THREE.Vector3): boolean;
26
25
  setData(data: DrawableData): void;
27
26
  getData(): DrawableData;
@@ -3,7 +3,6 @@ import { BaseMarkup } from "../markups/BaseMarkup";
3
3
  import { MarkupType } from "../markups/Constants";
4
4
  export declare class CloudRectMarkup extends BaseMarkup {
5
5
  type: MarkupType;
6
- private vertexes?;
7
6
  constructor(id: string, points: THREE.Vector3[]);
8
7
  draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
9
8
  isPointInPath(p: THREE.Vector3): boolean;
@@ -9,17 +9,11 @@ export interface CloudRectWithTextShape extends DrawableData {
9
9
  }
10
10
  export declare class CloudRectWithTextMarkup extends TextMarkup {
11
11
  type: MarkupType;
12
- private textPosition;
13
- private controlPoints?;
14
- private vertexes?;
15
- private textBounds;
16
12
  text: string;
17
13
  fontSize: number;
18
14
  static LEADER_LINE_WIDTH: number;
19
15
  constructor(id: string, points: THREE.Vector3[], text?: string);
20
16
  draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
21
- private drawCloudRect;
22
- private drawLeaderLine;
23
17
  protected drawText(ctx: CanvasRenderingContext2D, camera: THREE.Camera, text: string): void;
24
18
  translate(tx: number, ty: number): this;
25
19
  update(points: THREE.Vector3[]): this;
@@ -38,5 +32,4 @@ export declare class CloudRectWithTextMarkup extends TextMarkup {
38
32
  handleClick: () => void;
39
33
  handleInput: () => void;
40
34
  handleCompositionEnd: () => void;
41
- private calcInputPositionByText;
42
35
  }
@@ -6,11 +6,8 @@ export declare class LeaderLineMarkup extends TextMarkup {
6
6
  type: MarkupType;
7
7
  text: string;
8
8
  fontSize: number;
9
- private textBounds;
10
9
  constructor(id: string, points: THREE.Vector3[], text: string);
11
10
  draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
12
- private drawArrowHead;
13
- private drawArrowLine;
14
11
  protected drawText(ctx: CanvasRenderingContext2D, camera: THREE.Camera, text: string): void;
15
12
  getVertexes(): THREE.Vector3[];
16
13
  update(points: THREE.Vector3[]): this;
@@ -21,5 +18,4 @@ export declare class LeaderLineMarkup extends TextMarkup {
21
18
  addInput(manager: MarkupPlugin, x: number, y: number): void;
22
19
  handleInput: () => void;
23
20
  handleCompositionEnd: () => void;
24
- private calcuTextInputPositionByText;
25
21
  }
@@ -10,24 +10,10 @@ export declare enum MarkupPluginEvent {
10
10
  export declare class MarkupPlugin extends Plugin<Record<MarkupPluginEvent, any>> {
11
11
  static readonly DEFAULT_ID = "MarkupPlugin";
12
12
  overlayRender: CanvasRender;
13
- private inputManager;
14
- private drawableList;
15
- private lineWidth;
16
- private lineColor;
17
- private fillColor;
18
- private fontSize;
19
13
  protected mouseDown: boolean;
20
14
  protected mouseDownPositionX?: number;
21
15
  protected mouseDownPositionY?: number;
22
16
  protected mousedownPoint?: THREE.Vector2;
23
- private isSelectLeaderText;
24
- private selectedShape?;
25
- private type?;
26
- private isDrawing;
27
- private initialDataForEditing?;
28
- private creatingShape?;
29
- private tempPoints;
30
- private activated;
31
17
  constructor(viewer: BaseViewer);
32
18
  get viewerCanvas(): HTMLCanvasElement;
33
19
  get camera(): THREE.OrthographicCamera | THREE.PerspectiveCamera;
@@ -80,12 +66,5 @@ export declare class MarkupPlugin extends Plugin<Record<MarkupPluginEvent, any>>
80
66
  * Sets markup data.
81
67
  */
82
68
  setData(markupDatas: DrawableData[]): void;
83
- private isCreateLineMode;
84
- private isCreateDotMode;
85
- private isCreateTextMode;
86
- private isCreateShapeMode;
87
- private drawShape;
88
- private drawLine;
89
- private drawText;
90
69
  destroy(): void;
91
70
  }
@@ -3,10 +3,6 @@ import { type BaseViewer, EventInfo, InputManager, OSnapHelper, DrawableList } f
3
3
  import { AreaMeasureDrawable } from "./AreaMeasureDrawable";
4
4
  import { BaseMeasurement } from "./BaseMeasurement";
5
5
  export declare class AreaMeasurement extends BaseMeasurement {
6
- /**
7
- * The ratio of real world value and the value in three.js(pdf, a map, etc.).
8
- */
9
- private scale?;
10
6
  constructor(viewer: BaseViewer, input: InputManager, drawList: DrawableList, osnapHelper: OSnapHelper);
11
7
  activate(): void;
12
8
  deactivate(): void;
@@ -9,7 +9,7 @@ export declare enum MeasurementType {
9
9
  Area = "Area",
10
10
  Angle = "Angle",
11
11
  /**
12
- * @internal
12
+ * @hidden
13
13
  */
14
14
  Coordinate = "Coordinate"
15
15
  }
@@ -58,7 +58,6 @@ type MeasurementEvents = {
58
58
  export declare abstract class BaseMeasurement extends Event<MeasurementEvents> {
59
59
  protected type: MeasurementType;
60
60
  protected viewer: BaseViewer;
61
- private inputManager;
62
61
  protected drawList: DrawableList;
63
62
  protected osnapHelper: OSnapHelper;
64
63
  protected actived: boolean;
@@ -8,8 +8,6 @@ export declare class DistanceMeasureDrawable extends BaseMeasureDrawable {
8
8
  constructor(id: string, points: THREE.Vector3[], scale?: number);
9
9
  draw(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
10
10
  drawText(ctx: CanvasRenderingContext2D, camera: THREE.Camera): void;
11
- private drawVerticalLine;
12
- private getShortLineBySegments;
13
11
  getClassType(): string;
14
12
  setScale(scale: number): void;
15
13
  }
@@ -2,10 +2,6 @@ import { type BaseViewer, EventInfo, InputManager, OSnapHelper, DrawableList } f
2
2
  import { BaseMeasurement } from "./BaseMeasurement";
3
3
  import { DistanceMeasureDrawable } from "./DistanceMeasureDrawable";
4
4
  export declare class DistanceMeasurement extends BaseMeasurement {
5
- /**
6
- * The ratio of real world value and the value in three.js(pdf, a map, etc.).
7
- */
8
- private scale?;
9
5
  constructor(viewer: BaseViewer, input: InputManager, drawList: DrawableList, osnapHelper: OSnapHelper);
10
6
  protected createMeasureDrawable(): DistanceMeasureDrawable | undefined;
11
7
  protected onMouseClick(e: EventInfo): void;
@@ -10,21 +10,8 @@ export interface MeasurementPluginConfig extends Partial<PluginConfig> {
10
10
  }
11
11
  export declare class MeasurementPlugin extends Plugin {
12
12
  static readonly DEFAULT_ID = "MeasurementPlugin";
13
- private cfg;
14
13
  selectedDrawable: BaseMeasureDrawable | undefined;
15
- private overlayRender?;
16
- private drawableList;
17
- private drawableHelperList;
18
- private inputManager;
19
- private osnapHelper;
20
- private snapToleranceInPixel;
21
- private measurements;
22
- private activeMeasurementType;
23
- private mobileTouchHelper?;
24
- private enableSelection?;
25
14
  constructor(viewer: BaseViewer, cfg?: MeasurementPluginConfig);
26
- private initLocalization;
27
- private initEvents;
28
15
  protected get canvas(): HTMLCanvasElement;
29
16
  protected get raycaster(): THREE.Raycaster;
30
17
  add(drawable: BaseMeasureDrawable, needFireEvent?: boolean): void;
@@ -34,11 +21,6 @@ export declare class MeasurementPlugin extends Plugin {
34
21
  * Set osnap tolerance in pixcel size. The pixcel size will be converted to a size in world coordinate and pass to OSnapHelper.
35
22
  */
36
23
  setSnapTolerance(toleranceInPixel: number): void;
37
- /**
38
- * Updates osnap tolerance.
39
- * We should call this once camera's zoom, fov or position/target changed, etc.
40
- */
41
- private updateSnapTolerance;
42
24
  /**
43
25
  *
44
26
  * @param {MeasurementType} type
@@ -135,6 +117,4 @@ export declare class MeasurementPlugin extends Plugin {
135
117
  * @description Destroy measure plugin
136
118
  */
137
119
  destroy(): void;
138
- private keydown;
139
- private render;
140
120
  }
@@ -20,7 +20,6 @@ export declare class NavCubePlugin extends Plugin {
20
20
  protected scene?: THREE.Scene;
21
21
  constructor(viewer: BaseViewer, cfg?: NavCubePluginConfig);
22
22
  protected init(): void;
23
- private initLocalization;
24
23
  protected initRenderer(): void;
25
24
  protected initScene(): void;
26
25
  protected render(): void;
@@ -8,9 +8,7 @@ export interface OverviewMapPluginConfig extends Partial<PluginConfig> {
8
8
  }
9
9
  export declare class OverviewMapPlugin extends Plugin<Record<ViewerEvent, any>> {
10
10
  static readonly DEFAULT_ID = "OverviewMapPlugin";
11
- private cfg;
12
11
  mapViewer: OverviewMapViewer;
13
12
  constructor(viewer: BaseViewer, cfg: OverviewMapPluginConfig);
14
13
  get inputManager(): import("@x-viewer/core").InputManager;
15
- private initEvents;
16
14
  }
@@ -49,28 +49,14 @@ export declare class PropertyPlugin extends Plugin<PropertyPluginEvents> {
49
49
  protected boundingBoxSection?: HTMLDivElement;
50
50
  constructor(viewer: Viewer3d, cfg?: PropertyPluginConfig);
51
51
  protected updateContent(): void;
52
- private initLocalization;
53
52
  setVisible(visible: boolean): void;
54
53
  isVisible(): boolean;
55
54
  protected onObjectSelected: () => void;
56
55
  protected onObjectDeselected: () => void;
57
- private onClose;
58
56
  destroy(): void;
59
57
  protected addContent(): void;
60
- private isMaterialTabEnabled;
61
- private isNodeTabEnabled;
62
- private isPropertyTabEnabled;
63
58
  renderTab(idx: number): void;
64
- private clearDetails;
65
- private renderMaterial;
66
- private renderNode;
67
59
  protected updateNodeInputs(target: THREE.Object3D): void;
68
60
  protected applyNodeInputs(target: THREE.Object3D): void;
69
- private updateGeometryInfo;
70
- private updateBoundingBoxInfo;
71
- private getVertexCount;
72
- private getTriangleCount;
73
- private getGlobalSize;
74
- private renderProperty;
75
61
  }
76
62
  export {};
@@ -32,7 +32,7 @@ export interface ScreenshotPluginConfig extends Partial<PluginConfig> {
32
32
  /**
33
33
  * Sets background transparent, this must be used for "image/png" format.
34
34
  * @default false
35
- * @internal
35
+ * @hidden
36
36
  */
37
37
  setBackgroundTransparent?: boolean;
38
38
  }
@@ -50,15 +50,15 @@ export interface ScreenshotResult {
50
50
  viewExtent?: THREE.Box2;
51
51
  /**
52
52
  * Used for Viewer3d
53
- * @internal
53
+ * @hidden
54
54
  */
55
55
  /**
56
56
  * Used for Viewer3d
57
- * @internal
57
+ * @hidden
58
58
  */
59
59
  /**
60
60
  * Image type, which is "image/png" by default
61
- * @internal
61
+ * @hidden
62
62
  */
63
63
  imageType: string;
64
64
  /**
@@ -140,14 +140,4 @@ export declare class ScreenshotPlugin extends Plugin {
140
140
  * Cancel current operation if any.
141
141
  */
142
142
  cancel(): void;
143
- /**
144
- * Sets scene background transparent.
145
- * This is useful when taking screenshop of png format.
146
- * In some cases, user don't want the background with a fixed background color.
147
- */
148
- private setBackgroundTransparent;
149
- /**
150
- * Recovers to original background settings.
151
- */
152
- private recoverBackgroundTransparency;
153
143
  }
@@ -26,7 +26,7 @@ export declare abstract class BaseSection {
26
26
  showSectionPlane: boolean;
27
27
  capsScene: THREE.Scene;
28
28
  /**
29
- * @internal
29
+ * @hidden
30
30
  */
31
31
  clippingObjetIds?: number[];
32
32
  constructor(viewer: BaseViewer, input: InputManager);
@@ -20,20 +20,8 @@ export interface SectionPluginConfig extends Partial<PluginConfig> {
20
20
  */
21
21
  export declare class SectionPlugin extends Plugin {
22
22
  static readonly DEFAULT_ID = "SectionPlugin";
23
- private cfg;
24
- private sections;
25
- private activeSectionType?;
26
- private lastRenderAutoClear;
27
- private backMaterial?;
28
- private frontMaterial?;
29
- private enableSelection?;
30
23
  constructor(viewer: BaseViewer, cfg?: SectionPluginConfig);
31
- private initLocalization;
32
24
  protected get raycaster(): THREE.Raycaster;
33
- private onBeforeRender;
34
- private onAfterRender;
35
- private createCapStencilMaterials;
36
- private render;
37
25
  /**
38
26
  * Activates one of "ObjectsBoxSection", "AxisPlaneSection" or "PickPlaneSection" Section
39
27
  * @param {SectionType} type
@@ -7,7 +7,7 @@ export interface Settings2dPluginConfig extends Partial<PluginConfig> {
7
7
  /**
8
8
  * Container div id.
9
9
  */
10
- containerId: string;
10
+ containerId?: string;
11
11
  /**
12
12
  * If panel is visible. It is visible by default.
13
13
  */
@@ -35,10 +35,8 @@ export declare class Settings2dPlugin extends Plugin<Settings2dPluginEvents> {
35
35
  protected content?: HTMLDivElement;
36
36
  constructor(viewer: Viewer2d, cfg?: Settings2dPluginConfig);
37
37
  protected init(): void;
38
- private initLocalization;
39
38
  setVisible(visible: boolean): void;
40
39
  isVisible(): boolean;
41
- private onClose;
42
40
  destroy(): void;
43
41
  addContent(): void;
44
42
  protected addEventHandlers(): void;
@@ -33,17 +33,10 @@ export declare class Settings3dPlugin extends Plugin<Settings3dPluginEvents> {
33
33
  protected basePanel?: BasePanel;
34
34
  protected container?: HTMLDivElement;
35
35
  protected content?: HTMLDivElement;
36
- private skyboxPlugin;
37
- private groundGridPlugin;
38
- private groundShadowPlugin;
39
- private viewCubePlugin;
40
- private axisGizmoPlugin;
41
36
  constructor(viewer: Viewer3d, cfg?: Settings3dPluginConfig);
42
37
  protected init(): void;
43
- private initLocalization;
44
38
  setVisible(visible: boolean): void;
45
39
  isVisible(): boolean;
46
- private onClose;
47
40
  destroy(): void;
48
41
  addContent(): void;
49
42
  protected addEventHandlers(): void;
@@ -37,10 +37,6 @@ export declare class SkyboxPlugin extends Plugin {
37
37
  * Sets skybox by cube texture (6 images).
38
38
  */
39
39
  setSkyboxByCubeTexture(urls: string[]): void;
40
- /**
41
- * Updates gradient color skybox when models' bbox changed.
42
- */
43
- private updateGradientColorSkybox;
44
40
  destroy(): void;
45
41
  /**
46
42
  * Converts rgb color number array to THREE.Color.
@@ -6,7 +6,6 @@ import Stats from "stats.js";
6
6
  export declare class StatsPlugin extends Plugin {
7
7
  protected stats?: Stats;
8
8
  constructor(viewer: BaseViewer);
9
- private init;
10
9
  /**
11
10
  * Shows the stats panel, which indicates current FPS, MS, MB, etc.
12
11
  */