Skip to content

Commit 10adc05

Browse files
committed
update node property
1 parent 8d60274 commit 10adc05

File tree

11 files changed

+1386
-4841
lines changed

11 files changed

+1386
-4841
lines changed

libs/x-viewer-core/dist/index.esm.js

Lines changed: 1237 additions & 4727 deletions
Large diffs are not rendered by default.

libs/x-viewer-core/dist/types/Locale.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export declare const en: {
22
ProgressBar: {
33
Loading: string;
4+
LoadingFailed: string;
45
Comparing: string;
56
};
67
Tooltip: {
@@ -11,6 +12,7 @@ export declare const en: {
1112
export declare const cn: {
1213
ProgressBar: {
1314
Loading: string;
15+
LoadingFailed: string;
1416
Comparing: string;
1517
};
1618
Tooltip: {

libs/x-viewer-core/dist/types/core/interactions/Viewer3dInteraction.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export declare class Viewer3dInteraction extends Interaction {
1212
private isSelected;
1313
selectedObject?: Object3D | Drawable;
1414
constructor(viewer: Viewer3d);
15+
private onObjectSelected;
16+
private onObjectDeselected;
1517
private isCloseToLastPosition;
1618
private isDoubleClick;
1719
private handle_pointerdown;

libs/x-viewer-plugins/dist/index.esm.js

Lines changed: 106 additions & 103 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
1+
import { BaseViewer } from "@x-viewer/core";
12
/**
23
* @internal
34
*/
45
export declare class IUploader {
6+
protected viewer: BaseViewer;
57
protected input: HTMLInputElement;
6-
constructor(elementId?: string);
8+
protected dropZone: HTMLDivElement;
9+
constructor(viewer: BaseViewer, elementId?: string);
710
protected formats(): string[];
811
protected uploadFiles(files: FileList): void;
912
openFileBrowserToUpload(): void;
13+
destroy(): void;
14+
protected handleDragEnter: (e: DragEvent) => void;
15+
protected handleDragLeave: (e: DragEvent) => void;
16+
protected handleDragOver: (e: DragEvent) => void;
17+
protected handleDrop: (e: DragEvent) => void;
1018
}

libs/x-viewer-plugins/dist/types/local-model-uploader/LocalDxfUploader.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { IUploader } from "./IUploader";
44
* @internal
55
*/
66
export declare class LocalDxfUploader extends IUploader {
7-
private viewer;
87
private pdfWorker;
98
onSuccess?: (event: any) => void;
109
readonly defaultModelConfig: ModelConfig;

libs/x-viewer-plugins/dist/types/local-model-uploader/LocalModelUploader.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { IUploader } from "./IUploader";
44
* @internal
55
*/
66
export declare class LocalModelUploader extends IUploader {
7-
private viewer;
87
readonly defaultModelConfig: ModelConfig;
98
constructor(viewer: Viewer3d, elementId?: string);
109
protected formats(): string[];
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
import "./uploader.scss";
12
export * from "./LocalModelUploader";
23
export * from "./LocalDxfUploader";

libs/x-viewer-plugins/dist/types/property/PropertyPlugin.d.ts

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,21 @@ export declare class PropertyPlugin extends Plugin<PropertyPluginEvents> {
3232
protected basePanel?: BasePanel;
3333
protected container?: HTMLDivElement;
3434
protected content?: HTMLDivElement;
35-
protected tabsBar?: HTMLDivElement;
3635
protected details?: HTMLDivElement;
37-
protected tabs: HTMLDivElement[];
3836
protected selectedObject: THREE.Object3D | undefined;
3937
protected lastActiveTabIdx: number;
38+
protected nodePanel?: HTMLDivElement;
39+
protected nodeModeButtons?: {
40+
local: HTMLButtonElement;
41+
global: HTMLButtonElement;
42+
};
43+
protected nodeInputs?: {
44+
translation: HTMLInputElement[];
45+
rotation: HTMLInputElement[];
46+
scale: HTMLInputElement[];
47+
};
48+
protected geometrySection?: HTMLDivElement;
49+
protected boundingBoxSection?: HTMLDivElement;
4050
constructor(viewer: Viewer3d, cfg?: PropertyPluginConfig);
4151
protected updateContent(): void;
4252
private initLocalization;
@@ -54,6 +64,13 @@ export declare class PropertyPlugin extends Plugin<PropertyPluginEvents> {
5464
private clearDetails;
5565
private renderMaterial;
5666
private renderNode;
67+
protected updateNodeInputs(target: THREE.Object3D): void;
68+
protected applyNodeInputs(target: THREE.Object3D): void;
69+
private updateGeometryInfo;
70+
private updateBoundingBoxInfo;
71+
private getVertexCount;
72+
private getTriangleCount;
73+
private getGlobalSize;
5774
private renderProperty;
5875
}
5976
export {};

libs/x-viewer-plugins/dist/types/tree-view/TreeViewPlugin.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Viewer3d, Plugin, PluginConfig } from "@x-viewer/core";
1+
import { Viewer3d, Plugin, PluginConfig, THREE } from "@x-viewer/core";
22
import { BasePanel } from "@x-viewer/ui";
33
/**
44
* Tree view plugin config.
@@ -32,17 +32,21 @@ export declare class TreeViewPlugin extends Plugin<TreeViewPluginEvents> {
3232
protected basePanel?: BasePanel;
3333
protected container?: HTMLDivElement;
3434
protected content?: HTMLDivElement;
35+
protected lastHighlightedObject?: THREE.Object3D;
3536
constructor(viewer: Viewer3d, cfg?: TreeViewPluginConfig);
3637
protected updateContent(): void;
3738
private initLocalization;
3839
setVisible(visible: boolean): void;
3940
isVisible(): boolean;
4041
protected onModelLoadOrRemove: () => void;
42+
protected onObjectSelected: (evt: any) => void;
43+
protected onObjectDeselected: (evt: any) => void;
4144
private onClose;
4245
destroy(): void;
4346
protected addContent(): void;
4447
private buildTreeForNodeRecursive;
4548
private selectTreeNodeAndHighlightSceneObject;
49+
private highlightTreeNodeBySceneObject;
4650
private highlightSceneObject;
4751
private focusSceneObject;
4852
/**

0 commit comments

Comments
 (0)