@thatopen/services 0.3.14 → 0.3.16
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/dist/built-in/index.d.ts +165 -2
- package/dist/cli/commands/revit.d.ts +1 -1
- package/dist/cli/lib/revit-addin.d.ts +1 -1
- package/dist/cli.js +24 -13
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +46 -36
- package/docs/ai-quickstart.md +130 -130
- package/docs/builtin/paths.json +94 -86
- package/docs/cloud/GaussianSplatConverter.md +43 -43
- package/docs/cloud/PointCloudConverter.md +53 -53
- package/docs/revit-collab-quickstart.md +256 -205
- package/package.json +1 -1
- package/src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts +150 -0
- package/src/built-in/UIManager/src/clashes-panel/example.ts +183 -160
- package/src/built-in/UIManager/src/models-list/example.ts +122 -122
- package/src/built-in/UIManager/src/topics-panel/example.ts +170 -0
- package/src/built-in/index.ts +1048 -881
- package/src/cli/templates/app/README.md +217 -217
- package/src/cli/templates/app/src/app.ts +37 -37
- package/src/cli/templates/app/src/assets/tool-placeholder.ts +50 -50
- package/src/cli/templates/app/src/main.ts +199 -199
- package/src/cli/templates/app/src/setups/reality-capture/lib/hidden-tiles-plugin.ts +88 -88
- package/src/cli/templates/app/src/setups/reality-capture/lib/point-tile-plugin.ts +166 -166
- package/src/cli/templates/app/src/setups/reality-capture/lib/render-frame.ts +31 -31
- package/src/cli/templates/app/src/setups/reality-capture/lib/splat-tile-plugin.ts +51 -51
- package/src/cli/templates/app/src/setups/reality-capture-viewer.ts +1383 -1383
package/docs/ai-quickstart.md
CHANGED
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
# That Open Platform — AI Quick Start (zero to a running app or cloud component)
|
|
2
|
-
|
|
3
|
-
You are an AI assistant. A user pointed you at this URL so you can scaffold and run something
|
|
4
|
-
on the [That Open Platform](https://platform.thatopen.com) from scratch, using
|
|
5
|
-
`@thatopen/services` (the `thatopen` CLI + client library). Follow the steps below in order.
|
|
6
|
-
|
|
7
|
-
> The only secret you need is a **platform API token** — **not** an npm token. The CLI
|
|
8
|
-
> derives private beta-registry access from the platform token automatically.
|
|
9
|
-
|
|
10
|
-
---
|
|
11
|
-
|
|
12
|
-
## First — what are you building? (ask if the user hasn't said)
|
|
13
|
-
|
|
14
|
-
There are two kinds of project. **If the user hasn't told you which they want, ASK them
|
|
15
|
-
before scaffolding** — explain it in plain terms and let them pick:
|
|
16
|
-
|
|
17
|
-
- **App** — something people *open and click around in*, running in the platform's browser
|
|
18
|
-
UI: a 3D BIM viewer, a dashboard, a form, a custom tool. Choose this when the goal is a
|
|
19
|
-
visual interface. Template: `app`.
|
|
20
|
-
- **Cloud component** — *server-side logic* with no UI of its own, running in the platform's
|
|
21
|
-
cloud and triggered by an app or an automation to do work on the project's data — e.g.
|
|
22
|
-
convert a file (IFC→fragments, point cloud→tiles), generate a report, run a calculation.
|
|
23
|
-
Choose this when the goal is processing/automation, not a screen. Template: `cloud-component`.
|
|
24
|
-
|
|
25
|
-
Steps 0–2 are identical for both; they diverge only at `create` (step 3) and how you run them
|
|
26
|
-
(step 4). This guide marks **[app]** / **[component]** where they differ.
|
|
27
|
-
|
|
28
|
-
## 0. Prerequisites (check, don't assume)
|
|
29
|
-
|
|
30
|
-
- **Node.js ≥ 18** and **npm** — verify with `node -v`.
|
|
31
|
-
- A **That Open Platform API token**. The user creates it themselves:
|
|
32
|
-
→ **https://platform.thatopen.com/dashboard/data → API Tokens → create → copy.**
|
|
33
|
-
Ask the user to paste it. **Never print it back, never write it into a file, never commit it.**
|
|
34
|
-
|
|
35
|
-
## 1. Install the CLI
|
|
36
|
-
|
|
37
|
-
```bash
|
|
38
|
-
npm install -g @thatopen/services@latest
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## 2. Log in (do this BEFORE creating the project)
|
|
42
|
-
|
|
43
|
-
Get the token from the platform dashboard — **https://platform.thatopen.com/dashboard/data**
|
|
44
|
-
→ **API Tokens** → create → copy. Ask the user to paste it, then run:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
thatopen login --token <platform-token>
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
This validates the token and stores it in `~/.thatopen/config.json`. Login **must** come
|
|
51
|
-
first: the next step's install pulls the private `@thatopen-platform/*-beta` packages, and
|
|
52
|
-
`create` uses your logged-in token to write an authenticated `.npmrc` so that install can
|
|
53
|
-
resolve them. No npm account or manual npm token is involved.
|
|
54
|
-
|
|
55
|
-
## 3. Scaffold a beta project
|
|
56
|
-
|
|
57
|
-
**[app]**
|
|
58
|
-
```bash
|
|
59
|
-
thatopen create my-app --beta
|
|
60
|
-
cd my-app
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
**[component]**
|
|
64
|
-
```bash
|
|
65
|
-
thatopen create my-component -t cloud-component --beta
|
|
66
|
-
cd my-component
|
|
67
|
-
```
|
|
68
|
-
|
|
69
|
-
`--beta` is required for now (the templates use engine APIs that currently live only in the
|
|
70
|
-
beta libraries; public support lands with the October release). `create` configures private
|
|
71
|
-
beta access from your platform token and runs `npm install` for you. The **app** scaffold is
|
|
72
|
-
a complete working viewer; the **cloud-component** scaffold is a `main()` entry point plus a
|
|
73
|
-
`declarations.json` (the parameters the component accepts) — read its `README.md`, which
|
|
74
|
-
explains the exactly-four globals the cloud engine injects (do NOT import them) and how to
|
|
75
|
-
read/write the project's data.
|
|
76
|
-
|
|
77
|
-
## 4. Run it
|
|
78
|
-
|
|
79
|
-
**[app]**
|
|
80
|
-
```bash
|
|
81
|
-
npm run dev
|
|
82
|
-
```
|
|
83
|
-
Serves the app and opens it inside the platform. **You now have a complete, working viewer** —
|
|
84
|
-
model loading, spatial tree, properties, measurement, sectioning, and more.
|
|
85
|
-
|
|
86
|
-
**[component]**
|
|
87
|
-
```bash
|
|
88
|
-
npm run run # executes the component locally against the platform (no browser)
|
|
89
|
-
```
|
|
90
|
-
Runs `main()` in a local emulation of the cloud engine so you can iterate before publishing.
|
|
91
|
-
|
|
92
|
-
## 5. Then build — read the in-project agent guide
|
|
93
|
-
|
|
94
|
-
The scaffold is real, working code — a complete viewer **[app]** or a runnable `main()`
|
|
95
|
-
**[component]** — not a blank page. **Before changing anything**, open and follow:
|
|
96
|
-
|
|
97
|
-
```
|
|
98
|
-
node_modules/@thatopen/services/resources/AGENTS.md
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
(The scaffolded project's own `AGENTS.md` points here too.) It is the canonical guide for
|
|
102
|
-
**both** project types: it indexes every platform built-in, the client API, the CLI, and the
|
|
103
|
-
engine / UI example sets. Load those indexes before writing code. For an **app**, **all UI
|
|
104
|
-
must be built with Lit + `@thatopen/ui` (`BUI`)** — consult the design system first. Run the
|
|
105
|
-
scaffold first, then extend it; don't rebuild from scratch.
|
|
106
|
-
|
|
107
|
-
## 6. Publish (when ready)
|
|
108
|
-
|
|
109
|
-
```bash
|
|
110
|
-
npm run publish
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
Builds, zips (`dist/bundle.zip`), and uploads a new version to the platform — for an **app**
|
|
114
|
-
or a **component** (a component also ships its `declarations.json`). Re-run it any time to
|
|
115
|
-
push a new version.
|
|
116
|
-
|
|
117
|
-
Once published, it shows up at **https://platform.thatopen.com/dashboard/data** — an **app**
|
|
118
|
-
under **Apps**, a **cloud component** under **Components**. Either way it isn't running
|
|
119
|
-
anywhere yet: to actually use it, **add it to one of your projects** from there. (A cloud
|
|
120
|
-
component, once added to a project, is then triggered by an app or an automation in it.)
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## Rules for you, the assistant
|
|
125
|
-
|
|
126
|
-
- **Platform token only.** Never introduce, request, or store an npm token.
|
|
127
|
-
- **Never echo or persist the user's token.** It belongs only in `~/.thatopen/config.json` /
|
|
128
|
-
`.npmrc`, both of which the CLI manages and git-ignores.
|
|
129
|
-
- **Propose a short plan and get the user's OK** before changing files.
|
|
130
|
-
- The scaffold already works — **extend it, don't replace it.**
|
|
1
|
+
# That Open Platform — AI Quick Start (zero to a running app or cloud component)
|
|
2
|
+
|
|
3
|
+
You are an AI assistant. A user pointed you at this URL so you can scaffold and run something
|
|
4
|
+
on the [That Open Platform](https://platform.thatopen.com) from scratch, using
|
|
5
|
+
`@thatopen/services` (the `thatopen` CLI + client library). Follow the steps below in order.
|
|
6
|
+
|
|
7
|
+
> The only secret you need is a **platform API token** — **not** an npm token. The CLI
|
|
8
|
+
> derives private beta-registry access from the platform token automatically.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## First — what are you building? (ask if the user hasn't said)
|
|
13
|
+
|
|
14
|
+
There are two kinds of project. **If the user hasn't told you which they want, ASK them
|
|
15
|
+
before scaffolding** — explain it in plain terms and let them pick:
|
|
16
|
+
|
|
17
|
+
- **App** — something people *open and click around in*, running in the platform's browser
|
|
18
|
+
UI: a 3D BIM viewer, a dashboard, a form, a custom tool. Choose this when the goal is a
|
|
19
|
+
visual interface. Template: `app`.
|
|
20
|
+
- **Cloud component** — *server-side logic* with no UI of its own, running in the platform's
|
|
21
|
+
cloud and triggered by an app or an automation to do work on the project's data — e.g.
|
|
22
|
+
convert a file (IFC→fragments, point cloud→tiles), generate a report, run a calculation.
|
|
23
|
+
Choose this when the goal is processing/automation, not a screen. Template: `cloud-component`.
|
|
24
|
+
|
|
25
|
+
Steps 0–2 are identical for both; they diverge only at `create` (step 3) and how you run them
|
|
26
|
+
(step 4). This guide marks **[app]** / **[component]** where they differ.
|
|
27
|
+
|
|
28
|
+
## 0. Prerequisites (check, don't assume)
|
|
29
|
+
|
|
30
|
+
- **Node.js ≥ 18** and **npm** — verify with `node -v`.
|
|
31
|
+
- A **That Open Platform API token**. The user creates it themselves:
|
|
32
|
+
→ **https://platform.thatopen.com/dashboard/data → API Tokens → create → copy.**
|
|
33
|
+
Ask the user to paste it. **Never print it back, never write it into a file, never commit it.**
|
|
34
|
+
|
|
35
|
+
## 1. Install the CLI
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
npm install -g @thatopen/services@latest
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 2. Log in (do this BEFORE creating the project)
|
|
42
|
+
|
|
43
|
+
Get the token from the platform dashboard — **https://platform.thatopen.com/dashboard/data**
|
|
44
|
+
→ **API Tokens** → create → copy. Ask the user to paste it, then run:
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
thatopen login --token <platform-token>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
This validates the token and stores it in `~/.thatopen/config.json`. Login **must** come
|
|
51
|
+
first: the next step's install pulls the private `@thatopen-platform/*-beta` packages, and
|
|
52
|
+
`create` uses your logged-in token to write an authenticated `.npmrc` so that install can
|
|
53
|
+
resolve them. No npm account or manual npm token is involved.
|
|
54
|
+
|
|
55
|
+
## 3. Scaffold a beta project
|
|
56
|
+
|
|
57
|
+
**[app]**
|
|
58
|
+
```bash
|
|
59
|
+
thatopen create my-app --beta
|
|
60
|
+
cd my-app
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
**[component]**
|
|
64
|
+
```bash
|
|
65
|
+
thatopen create my-component -t cloud-component --beta
|
|
66
|
+
cd my-component
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
`--beta` is required for now (the templates use engine APIs that currently live only in the
|
|
70
|
+
beta libraries; public support lands with the October release). `create` configures private
|
|
71
|
+
beta access from your platform token and runs `npm install` for you. The **app** scaffold is
|
|
72
|
+
a complete working viewer; the **cloud-component** scaffold is a `main()` entry point plus a
|
|
73
|
+
`declarations.json` (the parameters the component accepts) — read its `README.md`, which
|
|
74
|
+
explains the exactly-four globals the cloud engine injects (do NOT import them) and how to
|
|
75
|
+
read/write the project's data.
|
|
76
|
+
|
|
77
|
+
## 4. Run it
|
|
78
|
+
|
|
79
|
+
**[app]**
|
|
80
|
+
```bash
|
|
81
|
+
npm run dev
|
|
82
|
+
```
|
|
83
|
+
Serves the app and opens it inside the platform. **You now have a complete, working viewer** —
|
|
84
|
+
model loading, spatial tree, properties, measurement, sectioning, and more.
|
|
85
|
+
|
|
86
|
+
**[component]**
|
|
87
|
+
```bash
|
|
88
|
+
npm run run # executes the component locally against the platform (no browser)
|
|
89
|
+
```
|
|
90
|
+
Runs `main()` in a local emulation of the cloud engine so you can iterate before publishing.
|
|
91
|
+
|
|
92
|
+
## 5. Then build — read the in-project agent guide
|
|
93
|
+
|
|
94
|
+
The scaffold is real, working code — a complete viewer **[app]** or a runnable `main()`
|
|
95
|
+
**[component]** — not a blank page. **Before changing anything**, open and follow:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
node_modules/@thatopen/services/resources/AGENTS.md
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
(The scaffolded project's own `AGENTS.md` points here too.) It is the canonical guide for
|
|
102
|
+
**both** project types: it indexes every platform built-in, the client API, the CLI, and the
|
|
103
|
+
engine / UI example sets. Load those indexes before writing code. For an **app**, **all UI
|
|
104
|
+
must be built with Lit + `@thatopen/ui` (`BUI`)** — consult the design system first. Run the
|
|
105
|
+
scaffold first, then extend it; don't rebuild from scratch.
|
|
106
|
+
|
|
107
|
+
## 6. Publish (when ready)
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
npm run publish
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Builds, zips (`dist/bundle.zip`), and uploads a new version to the platform — for an **app**
|
|
114
|
+
or a **component** (a component also ships its `declarations.json`). Re-run it any time to
|
|
115
|
+
push a new version.
|
|
116
|
+
|
|
117
|
+
Once published, it shows up at **https://platform.thatopen.com/dashboard/data** — an **app**
|
|
118
|
+
under **Apps**, a **cloud component** under **Components**. Either way it isn't running
|
|
119
|
+
anywhere yet: to actually use it, **add it to one of your projects** from there. (A cloud
|
|
120
|
+
component, once added to a project, is then triggered by an app or an automation in it.)
|
|
121
|
+
|
|
122
|
+
---
|
|
123
|
+
|
|
124
|
+
## Rules for you, the assistant
|
|
125
|
+
|
|
126
|
+
- **Platform token only.** Never introduce, request, or store an npm token.
|
|
127
|
+
- **Never echo or persist the user's token.** It belongs only in `~/.thatopen/config.json` /
|
|
128
|
+
`.npmrc`, both of which the CLI manages and git-ignores.
|
|
129
|
+
- **Propose a short plan and get the user's OK** before changing files.
|
|
130
|
+
- The scaffold already works — **extend it, don't replace it.**
|
package/docs/builtin/paths.json
CHANGED
|
@@ -1,86 +1,94 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"path": "src/built-in/CDEManager/example.ts",
|
|
4
|
-
"description": "CDEManager — CDEManager is the central state machine for a Common Data Environment. It holds files, folders, metadata schemas, viewer groups, and user permissions, and exposes a typed state machine that all file operations — selecting, editing, uploading, viewing — route through. It has no DOM or Three.js dependencies and can run in Node, a browser, or a server-side worker wherever `@thatopen/components` is available."
|
|
5
|
-
},
|
|
6
|
-
{
|
|
7
|
-
"path": "src/built-in/CDEManager/examples/FileEditing/example.ts",
|
|
8
|
-
"description": "Bulk file editing — stage, preview, revert, and commit — A project manager preparing a deliverable handoff needs to update discipline tags across fifteen IFC files after a scope change, rename each to match the new naming convention, and archive three superseded models — all before anything is sent to the backend. Doing the changes one file at a time risks leaving the file list in a half-updated state if the session is interrupted, and there is no way to review exactly what will change before committing."
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"path": "src/built-in/CDEManager/examples/FileMoves/example.ts",
|
|
12
|
-
"description": "Drag-and-drop file and folder moves — A coordinator restructures the project after a scope change: structural files move from the root into a dedicated discipline folder, a MEP sub-folder needs to be promoted to the top level, and a few documents need to come back to root to appear in the general view. Drag-and-drop is the natural gesture for all of this, but each drag session has intermediate stages — the file is \"in the air\", hovering over a candidate target — and every panel watching the file table should see the right state without coordinating directly with the drag component."
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
"path": "src/built-in/CDEManager/examples/FileOperations/example.ts",
|
|
16
|
-
"description": "File operations — inline edit, rename, view, download, archive — BIM coordinators reviewing a model drop repeat the same small actions throughout their session: correcting a discipline tag that changed after a scope revision, renaming a file to match the agreed convention, opening it alongside the structural model to check for clashes, handing it off to a sub-consultant, or removing a superseded version from the live set. If every panel in the platform handles these separately, two panels looking at the same file at the same time can show contradictory states — one says \"uploading\", another still shows the old name."
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "src/built-in/CDEManager/examples/FileTransfers/example.ts",
|
|
20
|
-
"description": "File uploads, versioning, and the download cache — A site coordinator drops a batch of files onto the CDE every Monday after the weekend review: some are entirely new models, some are revised versions of files already in the project, and sometimes the metadata group they upload into should be stamped automatically onto the new files. If the platform makes the coordinator sort this out manually, it slows the handoff and introduces naming errors. And if an upload fails halfway through a batch, the file table should land in a safe state rather than freeze at a loading spinner."
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
"path": "src/built-in/CDEManager/examples/FolderManagement/example.ts",
|
|
24
|
-
"description": "Folder management — create, rename, archive, and commit — A project reaches the construction phase and the coordination team needs to restructure the folder hierarchy: add a \"Facades\" discipline folder, rename \"Structural\" to its official abbreviation, and archive two superseded folders that have been merged. Doing these one at a time through separate API calls means the folder tree flickers between invalid states as each change lands — a freshly created folder appears before its sibling is renamed, and the archived folders briefly disappear before the new one is visible."
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"path": "src/built-in/CDEManager/examples/MetadataSchema/example.ts",
|
|
28
|
-
"description": "Metadata schema — define, stage, and publish field definitions — Every project has its own vocabulary for describing files: discipline codes, revision phases, area zones, review statuses. A metadata schema defines which fields exist, what values they accept, and whether they are mandatory. Without a structured schema, each user invents their own labels and the file list becomes impossible to filter or report on consistently."
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"path": "src/built-in/CDEManager/examples/MetadataViews/example.ts",
|
|
32
|
-
"description": "Metadata views — organize fields into named table layouts — A structural engineer and an MEP coordinator look at the same file list but care about completely different metadata. Showing every field to everyone produces a wide table that is hard to navigate. Metadata views let each role define which fields appear in which order — saving the layout so the table opens correctly next time without requiring a manual setup every session."
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"path": "src/built-in/CDEManager/examples/ProjectConfig/example.ts",
|
|
36
|
-
"description": "Project configuration — read, write, and reload persistent data — A CDE application needs to store two kinds of configuration: project-wide settings that all team members share (the metadata schema, custom naming rules) and personal settings that belong to one user (which columns are visible, which metadata views are pinned). Both live inside the project's file storage under a reserved system folder, so they travel with the project and don't rely on a separate configuration service."
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"path": "src/built-in/ClashesManager/example.ts",
|
|
40
|
-
"description": "ClashesManager — Structural engineers and BIM coordinators routinely detect geometric clashes between disciplines — structural steel penetrating ductwork, pipes clashing with slabs — and need to track the status of each issue through resolution without leaving their BIM environment."
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"path": "src/built-in/UIManager/src/app/example.ts",
|
|
44
|
-
"description": "top-app — Front-end developers building BIM web apps need to coordinate several async initialization steps before the UI can be shown — loading the engine, preparing fragment workers, registering loaders — and users need visible feedback on what is happening during that wait, rather than a blank screen."
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"path": "src/built-in/UIManager/src/app/examples/AppState/example.ts",
|
|
48
|
-
"description": "Shared reactive state with AppState — Developers building interactive BIM panels often need sibling components — a filter selector and a results table, for example — to stay in sync without a shared parent. Lifting state to a common ancestor and threading it down as props works for shallow trees but becomes unwieldy as the component tree grows."
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"path": "src/built-in/UIManager/src/app/examples/Banner/example.ts",
|
|
52
|
-
"description": "Persistent banners with top:banner — Some application states need a persistent, visible indicator that stays on screen until the state is explicitly cleared — an archived-files mode, a read-only permission warning, a degraded-connectivity notice. A toast auto-dismisses after a few seconds, which is wrong for these cases. A modal blocks interaction entirely, which is too heavy."
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"path": "src/built-in/UIManager/src/app/examples/Contexts/example.ts",
|
|
56
|
-
"description": "Consuming platform contexts in child components — Developers building custom BIM panels need access to the 3D engine, the platform API, and the current project's metadata — but threading these objects down through props across multiple component layers forces every intermediate element to know about data it doesn't use, making trees brittle and hard to refactor."
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"path": "src/built-in/UIManager/src/app/examples/FileDrop/example.ts",
|
|
60
|
-
"description": "File drag-and-drop with top:files-dropped — Desktop BIM workflows often rely on dragging files straight from the OS file manager onto the browser window — but wiring a document-level dragenter, dragover, dragleave, and drop handler that correctly tracks nested enter/leave counts, shows a visual overlay, and forwards the files to the right component is tedious boilerplate to repeat for every app."
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"path": "src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts",
|
|
64
|
-
"description": "Floating layout — Developers building BIM coordination tools often want the 3D model to fill the entire window while control panels float above it — but standard grid layouts give every area equal standing, shrinking the viewer into one cell and leaving visible seams between it and the panels."
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"path": "src/built-in/UIManager/src/app/examples/Modal/example.ts",
|
|
68
|
-
"description": "Confirmation modals with top:modal — Destructive or irreversible actions — deleting records, overwriting files, leaving unsaved changes — should ask the user to confirm before proceeding. Opening a custom dialog element from a deeply nested component means threading a reference to a controller up through every layer of the tree."
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"path": "src/built-in/UIManager/src/app/examples/Notifications/example.ts",
|
|
72
|
-
"description": "Toasts and cross-component notifications — Developers building BIM processing UIs need to surface status updates, errors, and async feedback to users from different points in the component tree — but reaching back to the app root to trigger a notification from a deeply nested component requires threading a reference through every layer in between."
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"path": "src/built-in/UIManager/src/app/examples/
|
|
76
|
-
"description": "
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"path": "src/built-in/UIManager/src/
|
|
80
|
-
"description": "
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"path": "src/built-in/UIManager/src/
|
|
84
|
-
"description": "
|
|
85
|
-
}
|
|
86
|
-
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"path": "src/built-in/CDEManager/example.ts",
|
|
4
|
+
"description": "CDEManager — CDEManager is the central state machine for a Common Data Environment. It holds files, folders, metadata schemas, viewer groups, and user permissions, and exposes a typed state machine that all file operations — selecting, editing, uploading, viewing — route through. It has no DOM or Three.js dependencies and can run in Node, a browser, or a server-side worker wherever `@thatopen/components` is available."
|
|
5
|
+
},
|
|
6
|
+
{
|
|
7
|
+
"path": "src/built-in/CDEManager/examples/FileEditing/example.ts",
|
|
8
|
+
"description": "Bulk file editing — stage, preview, revert, and commit — A project manager preparing a deliverable handoff needs to update discipline tags across fifteen IFC files after a scope change, rename each to match the new naming convention, and archive three superseded models — all before anything is sent to the backend. Doing the changes one file at a time risks leaving the file list in a half-updated state if the session is interrupted, and there is no way to review exactly what will change before committing."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "src/built-in/CDEManager/examples/FileMoves/example.ts",
|
|
12
|
+
"description": "Drag-and-drop file and folder moves — A coordinator restructures the project after a scope change: structural files move from the root into a dedicated discipline folder, a MEP sub-folder needs to be promoted to the top level, and a few documents need to come back to root to appear in the general view. Drag-and-drop is the natural gesture for all of this, but each drag session has intermediate stages — the file is \"in the air\", hovering over a candidate target — and every panel watching the file table should see the right state without coordinating directly with the drag component."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "src/built-in/CDEManager/examples/FileOperations/example.ts",
|
|
16
|
+
"description": "File operations — inline edit, rename, view, download, archive — BIM coordinators reviewing a model drop repeat the same small actions throughout their session: correcting a discipline tag that changed after a scope revision, renaming a file to match the agreed convention, opening it alongside the structural model to check for clashes, handing it off to a sub-consultant, or removing a superseded version from the live set. If every panel in the platform handles these separately, two panels looking at the same file at the same time can show contradictory states — one says \"uploading\", another still shows the old name."
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "src/built-in/CDEManager/examples/FileTransfers/example.ts",
|
|
20
|
+
"description": "File uploads, versioning, and the download cache — A site coordinator drops a batch of files onto the CDE every Monday after the weekend review: some are entirely new models, some are revised versions of files already in the project, and sometimes the metadata group they upload into should be stamped automatically onto the new files. If the platform makes the coordinator sort this out manually, it slows the handoff and introduces naming errors. And if an upload fails halfway through a batch, the file table should land in a safe state rather than freeze at a loading spinner."
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "src/built-in/CDEManager/examples/FolderManagement/example.ts",
|
|
24
|
+
"description": "Folder management — create, rename, archive, and commit — A project reaches the construction phase and the coordination team needs to restructure the folder hierarchy: add a \"Facades\" discipline folder, rename \"Structural\" to its official abbreviation, and archive two superseded folders that have been merged. Doing these one at a time through separate API calls means the folder tree flickers between invalid states as each change lands — a freshly created folder appears before its sibling is renamed, and the archived folders briefly disappear before the new one is visible."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "src/built-in/CDEManager/examples/MetadataSchema/example.ts",
|
|
28
|
+
"description": "Metadata schema — define, stage, and publish field definitions — Every project has its own vocabulary for describing files: discipline codes, revision phases, area zones, review statuses. A metadata schema defines which fields exist, what values they accept, and whether they are mandatory. Without a structured schema, each user invents their own labels and the file list becomes impossible to filter or report on consistently."
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "src/built-in/CDEManager/examples/MetadataViews/example.ts",
|
|
32
|
+
"description": "Metadata views — organize fields into named table layouts — A structural engineer and an MEP coordinator look at the same file list but care about completely different metadata. Showing every field to everyone produces a wide table that is hard to navigate. Metadata views let each role define which fields appear in which order — saving the layout so the table opens correctly next time without requiring a manual setup every session."
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "src/built-in/CDEManager/examples/ProjectConfig/example.ts",
|
|
36
|
+
"description": "Project configuration — read, write, and reload persistent data — A CDE application needs to store two kinds of configuration: project-wide settings that all team members share (the metadata schema, custom naming rules) and personal settings that belong to one user (which columns are visible, which metadata views are pinned). Both live inside the project's file storage under a reserved system folder, so they travel with the project and don't rely on a separate configuration service."
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "src/built-in/ClashesManager/example.ts",
|
|
40
|
+
"description": "ClashesManager — Structural engineers and BIM coordinators routinely detect geometric clashes between disciplines — structural steel penetrating ductwork, pipes clashing with slabs — and need to track the status of each issue through resolution without leaving their BIM environment."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "src/built-in/UIManager/src/app/example.ts",
|
|
44
|
+
"description": "top-app — Front-end developers building BIM web apps need to coordinate several async initialization steps before the UI can be shown — loading the engine, preparing fragment workers, registering loaders — and users need visible feedback on what is happening during that wait, rather than a blank screen."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "src/built-in/UIManager/src/app/examples/AppState/example.ts",
|
|
48
|
+
"description": "Shared reactive state with AppState — Developers building interactive BIM panels often need sibling components — a filter selector and a results table, for example — to stay in sync without a shared parent. Lifting state to a common ancestor and threading it down as props works for shallow trees but becomes unwieldy as the component tree grows."
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "src/built-in/UIManager/src/app/examples/Banner/example.ts",
|
|
52
|
+
"description": "Persistent banners with top:banner — Some application states need a persistent, visible indicator that stays on screen until the state is explicitly cleared — an archived-files mode, a read-only permission warning, a degraded-connectivity notice. A toast auto-dismisses after a few seconds, which is wrong for these cases. A modal blocks interaction entirely, which is too heavy."
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "src/built-in/UIManager/src/app/examples/Contexts/example.ts",
|
|
56
|
+
"description": "Consuming platform contexts in child components — Developers building custom BIM panels need access to the 3D engine, the platform API, and the current project's metadata — but threading these objects down through props across multiple component layers forces every intermediate element to know about data it doesn't use, making trees brittle and hard to refactor."
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "src/built-in/UIManager/src/app/examples/FileDrop/example.ts",
|
|
60
|
+
"description": "File drag-and-drop with top:files-dropped — Desktop BIM workflows often rely on dragging files straight from the OS file manager onto the browser window — but wiring a document-level dragenter, dragover, dragleave, and drop handler that correctly tracks nested enter/leave counts, shows a visual overlay, and forwards the files to the right component is tedious boilerplate to repeat for every app."
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts",
|
|
64
|
+
"description": "Floating layout — Developers building BIM coordination tools often want the 3D model to fill the entire window while control panels float above it — but standard grid layouts give every area equal standing, shrinking the viewer into one cell and leaving visible seams between it and the panels."
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "src/built-in/UIManager/src/app/examples/Modal/example.ts",
|
|
68
|
+
"description": "Confirmation modals with top:modal — Destructive or irreversible actions — deleting records, overwriting files, leaving unsaved changes — should ask the user to confirm before proceeding. Opening a custom dialog element from a deeply nested component means threading a reference to a controller up through every layer of the tree."
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "src/built-in/UIManager/src/app/examples/Notifications/example.ts",
|
|
72
|
+
"description": "Toasts and cross-component notifications — Developers building BIM processing UIs need to surface status updates, errors, and async feedback to users from different points in the component tree — but reaching back to the app root to trigger a notification from a deeply nested component requires threading a reference through every layer in between."
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts",
|
|
76
|
+
"description": "Persisting project-scoped data with projectStorageContext — Most non-trivial apps built on top-app eventually need to persist some of their own data inside the project — user preferences, cached results, domain state that isn't a 3D model or a regular CDE file. The naive approach is for each panel/manager to talk to the CDE client directly: resolve or create a folder under `__project_data`, resolve or create the file, decide between uploading a new file and versioning an existing one. That's the same handful of steps every single consumer ends up re-implementing."
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"path": "src/built-in/UIManager/src/app/examples/Sidebar/example.ts",
|
|
80
|
+
"description": "Sidebar navigation — Product teams building BIM apps often need multiple distinct views — a 3D model viewer, a data browser, a settings screen — but wiring a custom nav bar and managing view transitions from scratch adds complexity before any real feature work begins."
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"path": "src/built-in/UIManager/src/clashes-panel/example.ts",
|
|
84
|
+
"description": "clashes-panel — BIM coordinators need a dedicated review environment where they can see all detected clashes, filter by status, navigate to each issue in the 3D viewer, and mark items as resolved — without writing any UI code themselves."
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"path": "src/built-in/UIManager/src/models-list/example.ts",
|
|
88
|
+
"description": "top-models-list — top-models-list is the project's 3D-viewable-files tree: it mirrors the real storage folder structure, converts IFC to fragments, and loads `.frag`/`.potree`/`.splat` models into the 3D scene. Its loaders are PLUGGABLE — the panel owns the UI and the orchestration (progress, refresh, association), but the HOST decides how each extra file format is loaded, so you can teach it new formats without forking the built-in."
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"path": "src/built-in/UIManager/src/topics-panel/example.ts",
|
|
92
|
+
"description": "topics-panel — Every coordination workflow needs a place to track issues, clashes, and action items against a 3D model — who's responsible, what still needs review, and where in the model it actually is. Building that from scratch means a BCF-compatible data model, a form, comment threads, viewpoint capture/navigation, document links, and a persistence layer — all before a single issue gets tracked."
|
|
93
|
+
}
|
|
94
|
+
]
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
# GaussianSplatConverter
|
|
2
|
-
|
|
3
|
-
Convert a 3D Gaussian Splat PLY into a streamable FQ LOD tree.
|
|
4
|
-
|
|
5
|
-
Reads an uploaded .ply (plain INRIA 3DGS, or a PlayCanvas compressed.ply) and builds an octree of flat-quant (FQ) LOD nodes, published as one visible `.splat` entry whose hidden files hold the streamed nodes. The viewer fetches only the nodes it needs at the LOD it needs.
|
|
6
|
-
|
|
7
|
-
Pure CPU: no GPU, no WebGPU, no WebP, no k-means — which is what lets it run in a cloud worker at all (the splat-transform toolchain it replaces requires WebGPU). The codec and converter live in @thatopen-platform/components-beta (realityCapture); this component is only the platform I/O around it.
|
|
8
|
-
|
|
9
|
-
- **Accepts:** `.ply`
|
|
10
|
-
- **Produces:** `.splat`
|
|
11
|
-
- **Result:** the execution's `resultMessage` contains `[splatFileId=<id>]`
|
|
12
|
-
|
|
13
|
-
## Actions
|
|
14
|
-
|
|
15
|
-
| action | what it does | params |
|
|
16
|
-
|---|---|---|
|
|
17
|
-
| `default` | Convert the splat in one execution. | `fileId`, `gaussianScale` |
|
|
18
|
-
|
|
19
|
-
## Params
|
|
20
|
-
|
|
21
|
-
| id | type | label |
|
|
22
|
-
|---|---|---|
|
|
23
|
-
| `fileId` | string | Gaussian-Splat PLY File ID |
|
|
24
|
-
| `gaussianScale` | string | Gaussian scale (metric calibration, default 1) |
|
|
25
|
-
|
|
26
|
-
## Notes
|
|
27
|
-
|
|
28
|
-
- gaussianScale is a METRIC CALIBRATION, not a quality knob: reality-capture splats are non-metric, so this scales them to real-world metres. It is PER-CAPTURE (alcardete calibrates to ~70) — default 1, and recalibrate in the viewer.
|
|
29
|
-
- Spherical harmonics (view-dependent colour) are NOT carried: the FQ codec stores a flat RGBA per splat, and the renderer evaluates no SH. A capture therefore renders matte compared to its source. This is a known fidelity gap, not a bug.
|
|
30
|
-
|
|
31
|
-
## Usage
|
|
32
|
-
|
|
33
|
-
```ts
|
|
34
|
-
import { SplatToFq } from "@thatopen/services";
|
|
35
|
-
|
|
36
|
-
const { executionId } = await client.executeComponent(componentId, {
|
|
37
|
-
projectId,
|
|
38
|
-
fileId,
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
const exec = await client.getExecution(executionId);
|
|
42
|
-
const producedFileId = SplatToFq.parseResult(exec.resultMessage);
|
|
43
|
-
```
|
|
1
|
+
# GaussianSplatConverter
|
|
2
|
+
|
|
3
|
+
Convert a 3D Gaussian Splat PLY into a streamable FQ LOD tree.
|
|
4
|
+
|
|
5
|
+
Reads an uploaded .ply (plain INRIA 3DGS, or a PlayCanvas compressed.ply) and builds an octree of flat-quant (FQ) LOD nodes, published as one visible `.splat` entry whose hidden files hold the streamed nodes. The viewer fetches only the nodes it needs at the LOD it needs.
|
|
6
|
+
|
|
7
|
+
Pure CPU: no GPU, no WebGPU, no WebP, no k-means — which is what lets it run in a cloud worker at all (the splat-transform toolchain it replaces requires WebGPU). The codec and converter live in @thatopen-platform/components-beta (realityCapture); this component is only the platform I/O around it.
|
|
8
|
+
|
|
9
|
+
- **Accepts:** `.ply`
|
|
10
|
+
- **Produces:** `.splat`
|
|
11
|
+
- **Result:** the execution's `resultMessage` contains `[splatFileId=<id>]`
|
|
12
|
+
|
|
13
|
+
## Actions
|
|
14
|
+
|
|
15
|
+
| action | what it does | params |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| `default` | Convert the splat in one execution. | `fileId`, `gaussianScale` |
|
|
18
|
+
|
|
19
|
+
## Params
|
|
20
|
+
|
|
21
|
+
| id | type | label |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `fileId` | string | Gaussian-Splat PLY File ID |
|
|
24
|
+
| `gaussianScale` | string | Gaussian scale (metric calibration, default 1) |
|
|
25
|
+
|
|
26
|
+
## Notes
|
|
27
|
+
|
|
28
|
+
- gaussianScale is a METRIC CALIBRATION, not a quality knob: reality-capture splats are non-metric, so this scales them to real-world metres. It is PER-CAPTURE (alcardete calibrates to ~70) — default 1, and recalibrate in the viewer.
|
|
29
|
+
- Spherical harmonics (view-dependent colour) are NOT carried: the FQ codec stores a flat RGBA per splat, and the renderer evaluates no SH. A capture therefore renders matte compared to its source. This is a known fidelity gap, not a bug.
|
|
30
|
+
|
|
31
|
+
## Usage
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
import { SplatToFq } from "@thatopen/services";
|
|
35
|
+
|
|
36
|
+
const { executionId } = await client.executeComponent(componentId, {
|
|
37
|
+
projectId,
|
|
38
|
+
fileId,
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
const exec = await client.getExecution(executionId);
|
|
42
|
+
const producedFileId = SplatToFq.parseResult(exec.resultMessage);
|
|
43
|
+
```
|