Skip to content

Commit

Permalink
Merge pull request #117 from pattern-x/feature/section
Browse files Browse the repository at this point in the history
Enable to clip the building with dxf
  • Loading branch information
pattern-x committed Nov 6, 2023
1 parent 36200cc commit 76ac7b9
Show file tree
Hide file tree
Showing 349 changed files with 14,443 additions and 13,155 deletions.
178 changes: 100 additions & 78 deletions asset-manifest.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/libs/gemini-viewer.esm.min.js

Large diffs are not rendered by default.

52 changes: 26 additions & 26 deletions demo/libs/types/components/dxf-layout-bar/DxfLayoutBar.d.ts
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
import type { DxfViewer } from "../../core/viewers";
export declare class DxfLayoutBar {
protected readonly viewer: DxfViewer;
private element?;
private content?;
private itemList;
constructor(viewer: DxfViewer);
init(): void;
private handleMouseWheel;
private createItem;
destroy(): void;
show(): void;
hide(): void;
}
export declare class ModelLayoutSwitchItem {
protected readonly viewer: DxfViewer;
private eventBus;
element: HTMLElement;
resetActivate?: () => void;
active: boolean;
constructor(viewer: DxfViewer, name: string);
private createItem;
setActive(active: boolean): void;
resetActive(): void;
destroy(): void;
}
import type { DxfViewer } from "../../core/viewers";
export declare class DxfLayoutBar {
protected readonly viewer: DxfViewer;
private element?;
private content?;
private itemList;
constructor(viewer: DxfViewer);
init(): void;
private handleMouseWheel;
private createItem;
destroy(): void;
show(): void;
hide(): void;
}
export declare class ModelLayoutSwitchItem {
protected readonly viewer: DxfViewer;
private eventBus;
element: HTMLElement;
resetActivate?: () => void;
active: boolean;
constructor(viewer: DxfViewer, name: string);
private createItem;
setActive(active: boolean): void;
resetActive(): void;
destroy(): void;
}
2 changes: 1 addition & 1 deletion demo/libs/types/components/dxf-layout-bar/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./DxfLayoutBar";
export * from "./DxfLayoutBar";
36 changes: 18 additions & 18 deletions demo/libs/types/components/pop-panel/AxisSectionPopPanel.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { PopPanel } from "./PopPanel";
import type { BaseViewer } from "../../core/viewers/BaseViewer";
import { AxisPlaneSection } from "../../plugins/sections/AxisPlaneSection";
export declare class AxisSectionPopPanel extends PopPanel {
protected axis: string;
protected activeItem?: string;
protected groupSelectNode?: HTMLElement;
protected activeSelectNode?: HTMLElement;
protected isVisible: boolean;
protected section: AxisPlaneSection;
constructor(viewer: BaseViewer);
keydown: (e: KeyboardEvent) => void;
destroy(): void;
createGroupSelectLayout(): void;
addGroupSelectItems(): void;
createActiveSelectLayout(): void;
addActiveItems(): void;
}
import { PopPanel } from "./PopPanel";
import type { BaseViewer } from "../../core/viewers/BaseViewer";
import { AxisPlaneSection } from "../../plugins/sections/AxisPlaneSection";
export declare class AxisSectionPopPanel extends PopPanel {
protected axis: string;
protected activeItem?: string;
protected groupSelectNode?: HTMLElement;
protected activeSelectNode?: HTMLElement;
protected isVisible: boolean;
protected section: AxisPlaneSection;
constructor(viewer: BaseViewer);
keydown: (e: KeyboardEvent) => void;
destroy(): void;
createGroupSelectLayout(): void;
addGroupSelectItems(): void;
createActiveSelectLayout(): void;
addActiveItems(): void;
}
36 changes: 18 additions & 18 deletions demo/libs/types/components/pop-panel/PickSectionPopPanel.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { PopPanel } from "./PopPanel";
import type { BaseViewer } from "../../core/viewers/BaseViewer";
import type { PickPlaneSection } from "../../plugins/sections/PickPlaneSection";
export declare class PickSectionPopPanel extends PopPanel {
protected activeSelectNode?: Element;
protected isVisible: boolean;
protected enabled: boolean;
protected visibleNode?: HTMLElement;
protected resetNode?: HTMLElement;
protected section: PickPlaneSection;
constructor(viewer: BaseViewer);
keydown: (e: KeyboardEvent) => void;
destroy(): void;
createActiveSelectLayout(): void;
addActiveItems(): void;
enable(): void;
disable(): void;
}
import { PopPanel } from "./PopPanel";
import type { BaseViewer } from "../../core/viewers/BaseViewer";
import { PickPlaneSection } from "../../plugins/sections";
export declare class PickSectionPopPanel extends PopPanel {
protected activeSelectNode?: Element;
protected isVisible: boolean;
protected enabled: boolean;
protected visibleNode?: HTMLElement;
protected resetNode?: HTMLElement;
protected section: PickPlaneSection;
constructor(viewer: BaseViewer);
keydown: (e: KeyboardEvent) => void;
destroy(): void;
createActiveSelectLayout(): void;
addActiveItems(): void;
enable(): void;
disable(): void;
}
28 changes: 14 additions & 14 deletions demo/libs/types/components/pop-panel/PopPanel.d.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export declare class PopPanel {
private readonly container;
private element;
header: HTMLElement;
body: HTMLElement;
private isFollowing;
private diffX;
private diffY;
constructor(id: string, content: string | HTMLElement, container?: HTMLElement);
start: (event: MouseEvent) => void;
stop: () => void;
follow: (event: MouseEvent) => void;
destroy(): void;
}
export declare class PopPanel {
private readonly container;
private element;
header: HTMLElement;
body: HTMLElement;
private isFollowing;
private diffX;
private diffY;
constructor(id: string, content: string | HTMLElement, container?: HTMLElement);
start: (event: MouseEvent) => void;
stop: () => void;
follow: (event: MouseEvent) => void;
destroy(): void;
}
6 changes: 3 additions & 3 deletions demo/libs/types/components/pop-panel/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export * from "./PopPanel";
export * from "./AxisSectionPopPanel";
export * from "./PickSectionPopPanel";
export * from "./PopPanel";
export * from "./AxisSectionPopPanel";
export * from "./PickSectionPopPanel";
68 changes: 34 additions & 34 deletions demo/libs/types/components/progress-bar/ProgressBar.d.ts
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
export interface ProgressItem {
id: string;
div: HTMLDivElement;
}
export declare class ProgressBar {
private element;
private progresseItems;
constructor(parentElement: HTMLElement);
setVisible(visible: boolean): void;
/**
* Adds a progress item
* @param progressItemId
* @param message Initial message
* @param progress number between 0-100
*/
addProgressItem(progressItemId: string, message?: string): void;
/**
* Updates a progress item
* @param progressItemId
* @param message
* @param progress number between 0-100
*/
updateProgress(progressItemId: string, message?: string, progress?: number): void;
/**
* Removes a progress item
* @param progressItemId
*/
removeProgressItem(progressItemId: string): void;
/**
* Removes a progress item after some time
* @param progressItemId
*/
delayRemoveProgressItem(progressItemId: string, delayInMs?: number): void;
}
export interface ProgressItem {
id: string;
div: HTMLDivElement;
}
export declare class ProgressBar {
private element;
private progresseItems;
constructor(parentElement: HTMLElement);
setVisible(visible: boolean): void;
/**
* Adds a progress item
* @param progressItemId
* @param message Initial message
* @param progress number between 0-100
*/
addProgressItem(progressItemId: string, message?: string): void;
/**
* Updates a progress item
* @param progressItemId
* @param message
* @param progress number between 0-100
*/
updateProgress(progressItemId: string, message?: string, progress?: number): void;
/**
* Removes a progress item
* @param progressItemId
*/
removeProgressItem(progressItemId: string): void;
/**
* Removes a progress item after some time
* @param progressItemId
*/
delayRemoveProgressItem(progressItemId: string, delayInMs?: number): void;
}
2 changes: 1 addition & 1 deletion demo/libs/types/components/progress-bar/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./ProgressBar";
export * from "./ProgressBar";
88 changes: 44 additions & 44 deletions demo/libs/types/components/settings/ProjectSettingsDef.d.ts
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
/**
* Perspective and Orthographic camera share the same settings
* @internal
*/
export interface CameraSettings {
near: number;
far: number;
}
/**
* @internal
*/
export interface MouseSetting {
sensitivity: number;
}
/**
* @internal
*/
export interface KeyboardSetting {
sensitivity: number;
}
/**
* @internal
*/
export interface Settings {
unit: string;
decimalPrecision: number;
camera: CameraSettings;
mouse: MouseSetting;
keyboard: KeyboardSetting;
}
/**
* @internal
*/
export declare const defaultSettings: Settings;
export declare const cameraNearRange: number[];
export declare const cameraFarRange: number[];
export declare const unitRange: {
[key: string]: string;
};
export declare const sensitivityRange: number[];
export declare const decimalPrecisionRange: {
[key: string]: number;
};
export declare const settingStoreKeyName = "THREE_RENDER_SETTING";
/**
* Perspective and Orthographic camera share the same settings
* @internal
*/
export interface CameraSettings {
near: number;
far: number;
}
/**
* @internal
*/
export interface MouseSetting {
sensitivity: number;
}
/**
* @internal
*/
export interface KeyboardSetting {
sensitivity: number;
}
/**
* @internal
*/
export interface Settings {
unit: string;
decimalPrecision: number;
camera: CameraSettings;
mouse: MouseSetting;
keyboard: KeyboardSetting;
}
/**
* @internal
*/
export declare const defaultSettings: Settings;
export declare const cameraNearRange: number[];
export declare const cameraFarRange: number[];
export declare const unitRange: {
[key: string]: string;
};
export declare const sensitivityRange: number[];
export declare const decimalPrecisionRange: {
[key: string]: number;
};
export declare const settingStoreKeyName = "THREE_RENDER_SETTING";
2 changes: 1 addition & 1 deletion demo/libs/types/components/settings/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./ProjectSettingsDef";
export * from "./ProjectSettingsDef";
40 changes: 20 additions & 20 deletions demo/libs/types/components/tool-tip/Tooltip.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
interface TooltipConfig {
showOnCreate?: boolean;
followPointer?: boolean;
parentNode?: HTMLElement;
target?: HTMLElement;
}
export declare class Tooltip {
private node;
private parentNode;
private target;
private childNode;
constructor(id: string, content?: string | HTMLElement | null, cfg?: TooltipConfig);
setContent(content: string | HTMLElement): void;
updateChildContent(content: string | HTMLElement): void;
follow: (event: MouseEvent) => void;
show: () => false | void;
hide: () => false | void;
destroy: () => void;
}
export {};
interface TooltipConfig {
showOnCreate?: boolean;
followPointer?: boolean;
parentNode?: HTMLElement;
target?: HTMLElement;
}
export declare class Tooltip {
private node;
private parentNode;
private target;
private childNode;
constructor(id: string, content?: string | HTMLElement | null, cfg?: TooltipConfig);
setContent(content: string | HTMLElement): void;
updateChildContent(content: string | HTMLElement): void;
follow: (event: MouseEvent) => void;
show: () => false | void;
hide: () => false | void;
destroy: () => void;
}
export {};
2 changes: 1 addition & 1 deletion demo/libs/types/components/tool-tip/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from "./Tooltip";
export * from "./Tooltip";
Loading

0 comments on commit 76ac7b9

Please sign in to comment.