-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #117 from pattern-x/feature/section
Enable to clip the building with dxf
- Loading branch information
Showing
349 changed files
with
14,443 additions
and
13,155 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
52 changes: 26 additions & 26 deletions
52
demo/libs/types/components/dxf-layout-bar/DxfLayoutBar.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./DxfLayoutBar"; | ||
export * from "./DxfLayoutBar"; |
36 changes: 18 additions & 18 deletions
36
demo/libs/types/components/pop-panel/AxisSectionPopPanel.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
36
demo/libs/types/components/pop-panel/PickSectionPopPanel.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./ProgressBar"; | ||
export * from "./ProgressBar"; |
88 changes: 44 additions & 44 deletions
88
demo/libs/types/components/settings/ProjectSettingsDef.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./ProjectSettingsDef"; | ||
export * from "./ProjectSettingsDef"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./Tooltip"; | ||
export * from "./Tooltip"; |
Oops, something went wrong.