bimplus-renderer 1.6.97 → 1.6.99
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/openAllFiles.ps1
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# security warning about running scripts, you need to change the execution policy
|
|
2
|
+
# to allow running scripts. You can do this by running the following command in PowerShell:
|
|
3
|
+
# Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
4
|
+
|
|
5
|
+
# Define the path to the projects directory
|
|
6
|
+
$projectsPath = ".\src"
|
|
7
|
+
|
|
8
|
+
# Get all .ts, .less, and .html files, excluding node_modules and dist directories
|
|
9
|
+
$files = Get-ChildItem -Path $projectsPath -Recurse -Include *.js, *.less, *.html | Where-Object {
|
|
10
|
+
$_.FullName -notmatch '\\node_modules\\' -and $_.FullName -notmatch '\\dist\\'
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
# Open each file in Visual Studio Code
|
|
14
|
+
$files | ForEach-Object { code $_.FullName }
|
|
15
|
+
|
|
16
|
+
# Output the count of opened files
|
|
17
|
+
$files.Count
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bimplus-renderer",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.99",
|
|
4
4
|
"description": "bim+ renderer",
|
|
5
5
|
"types": "types/bimplus-renderer.d.ts",
|
|
6
6
|
"keywords": [
|
|
@@ -85,25 +85,25 @@
|
|
|
85
85
|
"sync-modelviewer-ddt-long": "node ../simple-ddt-server/syncFromRemote --folder modelviewer-data-driven-tests/ddt-test-data-long"
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
|
-
"@babel/core": "^7.25.
|
|
89
|
-
"@babel/plugin-transform-async-to-generator": "^7.
|
|
90
|
-
"@babel/plugin-transform-runtime": "^7.25.
|
|
91
|
-
"@babel/preset-env": "^7.25.
|
|
88
|
+
"@babel/core": "^7.25.8",
|
|
89
|
+
"@babel/plugin-transform-async-to-generator": "^7.25.7",
|
|
90
|
+
"@babel/plugin-transform-runtime": "^7.25.7",
|
|
91
|
+
"@babel/preset-env": "^7.25.8",
|
|
92
92
|
"@pollyjs/adapter-xhr": "^6.0.6",
|
|
93
93
|
"@pollyjs/cli": "^6.0.6",
|
|
94
94
|
"@pollyjs/core": "^6.0.6",
|
|
95
95
|
"@pollyjs/persister-rest": "^6.0.6",
|
|
96
96
|
"arraybuffer-loader": "^1.0.8",
|
|
97
97
|
"babel-loader": "^9.2.1",
|
|
98
|
-
"bimplus-websdk": "^1.0.
|
|
98
|
+
"bimplus-websdk": "^1.0.22",
|
|
99
99
|
"clean-webpack-plugin": "^4.0.0",
|
|
100
100
|
"copy-webpack-plugin": "^12.0.2",
|
|
101
101
|
"coverage-istanbul-loader": "^3.0.5",
|
|
102
102
|
"cpy-cli": "^5.0.0",
|
|
103
103
|
"documentation": "^14.0.3",
|
|
104
|
-
"eslint": "^9.
|
|
104
|
+
"eslint": "^9.13.0",
|
|
105
105
|
"file-loader": "6.2.0",
|
|
106
|
-
"globals": "15.
|
|
106
|
+
"globals": "15.11.0",
|
|
107
107
|
"karma": "^6.4.4",
|
|
108
108
|
"karma-chrome-launcher": "^3.2.0",
|
|
109
109
|
"karma-coverage-istanbul-reporter": "^3.0.2",
|
|
@@ -126,11 +126,11 @@
|
|
|
126
126
|
"webpack-merge": "^6.0.1"
|
|
127
127
|
},
|
|
128
128
|
"dependencies": {
|
|
129
|
-
"@babel/runtime": "^7.25.
|
|
129
|
+
"@babel/runtime": "^7.25.7",
|
|
130
130
|
"async": "^3.2.6",
|
|
131
|
-
"dexie": "^4.0.
|
|
131
|
+
"dexie": "^4.0.9",
|
|
132
132
|
"fit_transform": "^0.0.6",
|
|
133
|
-
"moment-timezone": "^0.5.
|
|
133
|
+
"moment-timezone": "^0.5.46",
|
|
134
134
|
"numeric": "^1.2.6",
|
|
135
135
|
"three": "0.128.0",
|
|
136
136
|
"web-ifc": "0.0.48"
|
|
@@ -7,9 +7,9 @@ declare module 'bimplus-renderer' {
|
|
|
7
7
|
export type HexColor = string;
|
|
8
8
|
|
|
9
9
|
export class Background {
|
|
10
|
-
static BackgroundType_None: number = 0
|
|
11
|
-
static BackgroundType_Color: number = 1
|
|
12
|
-
static BackgroundType_LinearGradient: number = 2
|
|
10
|
+
static BackgroundType_None: number; // = 0
|
|
11
|
+
static BackgroundType_Color: number; // = 1
|
|
12
|
+
static BackgroundType_LinearGradient: number; // = 2
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface ColorStop {
|
|
@@ -137,13 +137,13 @@ declare module 'bimplus-renderer' {
|
|
|
137
137
|
forEachLayer(func: (layer: ProjectLayer) => void): void;
|
|
138
138
|
getLayerArray(): ProjectLayer[];
|
|
139
139
|
|
|
140
|
-
setVisible(isVisible: boolean);
|
|
140
|
+
setVisible(isVisible: boolean) : void;
|
|
141
141
|
isVisible(): boolean;
|
|
142
142
|
forEachTopologyLeafNode(func: (node: ProjectTopologyNode) => void): void;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
export class ContentLoader {
|
|
146
|
-
|
|
146
|
+
checkAndRefreshProject(project: ProjectContent, models: ProjectModel[]): Promise<boolean>;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export interface ProjectLoaderSettings {
|
|
@@ -155,15 +155,15 @@ declare module 'bimplus-renderer' {
|
|
|
155
155
|
export class ProjectViewer {
|
|
156
156
|
constructor(api: WebSdk.Api, viewport?: Viewport3D, concurrentModelLoadingLimit?: number, includeIfcLoader?: boolean);
|
|
157
157
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
158
|
+
loadProject(projectId: WebSdk.ProjectId, settings: ProjectLoaderSettings | undefined): Promise<ProjectContent | null>;
|
|
159
|
+
reloadProjectDetails(): Promise<boolean>;
|
|
160
|
+
checkModelModified(modelId: WebSdk.ModelId, clearResponseStore: boolean, clearNodeStore: boolean): Promise<boolean>;
|
|
161
161
|
getProject(): ProjectContent;
|
|
162
162
|
getContentLoader(): ContentLoader;
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
loadModelStructure(model: ProjectModel): Promise<void>;
|
|
164
|
+
reloadModelGeometry(modelId: WebSdk.ModelId): Promise<void>;
|
|
165
165
|
getModelViewState(modelId: WebSdk.ModelId): ModelViewState;
|
|
166
|
-
|
|
166
|
+
setModelViewState(modelState: ModelViewState | undefined, viewStateStructureChangedCallback?: () => void) : Promise<void>;
|
|
167
167
|
draw(): void;
|
|
168
168
|
_mainViewport?: Viewport3D;
|
|
169
169
|
_viewports: Array<Viewport3D>;
|
|
@@ -203,9 +203,9 @@ declare module 'bimplus-renderer' {
|
|
|
203
203
|
setViewportSize(width?: number, height?: number): void;
|
|
204
204
|
|
|
205
205
|
// Define functions for setting up the viewport renderer
|
|
206
|
-
setAmbientOcclusionOptions(settings: AmbientOcclusionSettings);
|
|
207
|
-
setBackground(type:
|
|
208
|
-
setUseHoverEffect(useHoverEffect: boolean);
|
|
206
|
+
setAmbientOcclusionOptions(settings: AmbientOcclusionSettings) : void;
|
|
207
|
+
setBackground(type: Background, params: BackgroundParams) : void;
|
|
208
|
+
setUseHoverEffect(useHoverEffect: boolean) : void;
|
|
209
209
|
|
|
210
210
|
restoreViewbox(): Promise<void>;
|
|
211
211
|
resetClashScene(): void;
|
|
@@ -214,7 +214,7 @@ declare module 'bimplus-renderer' {
|
|
|
214
214
|
setSectionAxis(a?: string): void;
|
|
215
215
|
resetViewport(): void;
|
|
216
216
|
draw(): void;
|
|
217
|
-
|
|
217
|
+
dispose(): void;
|
|
218
218
|
setSelectionMode(mode: string): void;
|
|
219
219
|
checkSelectionMode(mode: string): boolean;
|
|
220
220
|
resetSelectionMode(): void;
|
|
@@ -228,9 +228,9 @@ declare module 'bimplus-renderer' {
|
|
|
228
228
|
zoomToObjects(objectIdList: string[]): void;
|
|
229
229
|
subscribeToSelectionModeChanges(handler: (selectionMode: string) => void): void;
|
|
230
230
|
subscribeToConnectionElementSelected(handler: (
|
|
231
|
-
object:
|
|
231
|
+
object: VisualObject | null,
|
|
232
232
|
mousePos: THREE.Vector2 | null,
|
|
233
|
-
attributes: Record<string,
|
|
233
|
+
attributes: Record<string, Attribute> | null,
|
|
234
234
|
) => void): void;
|
|
235
235
|
highlightObjects(ids: string[], multiselect: boolean, skipBubbleUp: boolean): void;
|
|
236
236
|
hoverObject(id: string): void;
|