@thatopen/services 0.34.5 → 0.35.1

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.
Files changed (118) hide show
  1. package/README.md +66 -66
  2. package/dist/cli.js +54 -12
  3. package/dist/cli.js.map +1 -1
  4. package/dist/core/app-cache.d.ts +32 -0
  5. package/dist/core/app-cache.test.d.ts +1 -0
  6. package/dist/core/client.d.ts +9 -1
  7. package/dist/index.cjs.js +5 -5
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +1 -0
  10. package/dist/index.es.js +974 -917
  11. package/dist/index.es.js.map +1 -1
  12. package/dist/types/context.d.ts +6 -0
  13. package/dist/vite-env.d.ts +1 -1
  14. package/docs/ai-quickstart.md +548 -548
  15. package/docs/builtin/paths.json +130 -130
  16. package/docs/cli/create.md +29 -29
  17. package/docs/cli/local-server.md +38 -38
  18. package/docs/cli/login.md +32 -32
  19. package/docs/cli/mcp.md +46 -46
  20. package/docs/cli/publish.md +31 -31
  21. package/docs/cli/run.md +26 -26
  22. package/docs/cli/serve.md +43 -43
  23. package/docs/cli/swap.md +30 -30
  24. package/docs/cloud/GaussianSplatConverter.md +43 -43
  25. package/docs/cloud/PointCloudConverter.md +53 -53
  26. package/docs/flow-architecture.md +393 -393
  27. package/docs/flow-plugin-guide.md +354 -354
  28. package/docs/platform-token.md +81 -81
  29. package/docs/rate-limits.md +133 -133
  30. package/docs/recipes-guide.md +243 -243
  31. package/docs/revit-collab-quickstart.md +445 -445
  32. package/docs/rhino-interop-quickstart.md +387 -387
  33. package/docs/sheet-sets-guide.md +69 -69
  34. package/package.json +4 -4
  35. package/resources/AGENTS.md +57 -57
  36. package/src/built-in/CDEManager/example.ts +214 -214
  37. package/src/built-in/CDEManager/examples/FileEditing/example.ts +226 -226
  38. package/src/built-in/CDEManager/examples/FileMoves/example.ts +186 -186
  39. package/src/built-in/CDEManager/examples/FileOperations/example.ts +295 -295
  40. package/src/built-in/CDEManager/examples/FileTransfers/example.ts +210 -210
  41. package/src/built-in/CDEManager/examples/FolderManagement/example.ts +230 -230
  42. package/src/built-in/CDEManager/examples/MetadataSchema/example.ts +230 -230
  43. package/src/built-in/CDEManager/examples/MetadataViews/example.ts +166 -166
  44. package/src/built-in/CDEManager/examples/ProjectConfig/example.ts +177 -177
  45. package/src/built-in/ClashesManager/example.ts +283 -283
  46. package/src/built-in/GISManager/example.ts +355 -355
  47. package/src/built-in/ProjectManager/example.ts +124 -124
  48. package/src/built-in/UIManager/src/app/example.ts +97 -97
  49. package/src/built-in/UIManager/src/app/examples/AppState/example.ts +140 -140
  50. package/src/built-in/UIManager/src/app/examples/Banner/example.ts +159 -159
  51. package/src/built-in/UIManager/src/app/examples/Contexts/example.ts +123 -123
  52. package/src/built-in/UIManager/src/app/examples/FileDrop/example.ts +124 -124
  53. package/src/built-in/UIManager/src/app/examples/FloatingLayout/example.ts +90 -90
  54. package/src/built-in/UIManager/src/app/examples/Modal/example.ts +163 -163
  55. package/src/built-in/UIManager/src/app/examples/Notifications/example.ts +133 -133
  56. package/src/built-in/UIManager/src/app/examples/ProjectFileStorage/example.ts +150 -150
  57. package/src/built-in/UIManager/src/app/examples/Sidebar/example.ts +105 -105
  58. package/src/built-in/UIManager/src/clashes-panel/example.ts +183 -183
  59. package/src/built-in/UIManager/src/gis-panel/example.ts +163 -163
  60. package/src/built-in/UIManager/src/gis-properties-panel/example.ts +168 -168
  61. package/src/built-in/UIManager/src/git-history-panel/example.ts +70 -70
  62. package/src/built-in/UIManager/src/map-panel/example.ts +189 -189
  63. package/src/built-in/UIManager/src/models-list/example.ts +181 -181
  64. package/src/built-in/UIManager/src/settings-panel/example.ts +303 -303
  65. package/src/built-in/UIManager/src/topics-panel/example.ts +170 -170
  66. package/src/built-in/UIManager/src/viewer/example.ts +182 -182
  67. package/src/built-in/UIManager/src/viewer-toolbar/example.ts +376 -376
  68. package/src/built-in/index.ts +2995 -2995
  69. package/src/cli/templates/app/README.md +250 -250
  70. package/src/cli/templates/app/index.html +35 -35
  71. package/src/cli/templates/app/package.json +32 -32
  72. package/src/cli/templates/app/src/app.ts +37 -37
  73. package/src/cli/templates/app/src/assets/tool-placeholder.ts +50 -50
  74. package/src/cli/templates/app/src/bim-components/CloudRunner/index.ts +95 -95
  75. package/src/cli/templates/app/src/bim-components/CloudRunner/src/index.ts +1 -1
  76. package/src/cli/templates/app/src/bim-components/CloudRunner/src/types.ts +5 -5
  77. package/src/cli/templates/app/src/bim-components/index.ts +1 -1
  78. package/src/cli/templates/app/src/globals.ts +1 -1
  79. package/src/cli/templates/app/src/main.history.ts +191 -191
  80. package/src/cli/templates/app/src/main.ts +226 -226
  81. package/src/cli/templates/app/src/setups/channel.ts +76 -76
  82. package/src/cli/templates/app/src/setups/reality-capture/lib/hidden-tiles-plugin.ts +88 -88
  83. package/src/cli/templates/app/src/setups/reality-capture/lib/point-tile-plugin.ts +166 -166
  84. package/src/cli/templates/app/src/setups/reality-capture/lib/render-frame.ts +31 -31
  85. package/src/cli/templates/app/src/setups/reality-capture/lib/splat-tile-plugin.ts +51 -51
  86. package/src/cli/templates/app/src/setups/reality-capture-viewer.ts +1383 -1383
  87. package/src/cli/templates/app/src/ui-components/app-info-section/index.ts +26 -26
  88. package/src/cli/templates/app/src/ui-components/app-info-section/src/index.ts +1 -1
  89. package/src/cli/templates/app/src/ui-components/app-info-section/src/types.ts +15 -15
  90. package/src/cli/templates/app/src/ui-components/cloud-runner-section/index.ts +37 -37
  91. package/src/cli/templates/app/src/ui-components/cloud-runner-section/src/index.ts +1 -1
  92. package/src/cli/templates/app/src/ui-components/cloud-runner-section/src/types.ts +14 -14
  93. package/src/cli/templates/app/src/ui-components/index.ts +2 -2
  94. package/src/cli/templates/app/tsconfig.json +16 -16
  95. package/src/cli/templates/app/vite.config.js +57 -57
  96. package/src/cli/templates/cloud-component/README.md +205 -205
  97. package/src/cli/templates/cloud-component/_thatopen +5 -5
  98. package/src/cli/templates/cloud-component/declarations.json +4 -4
  99. package/src/cli/templates/cloud-component/package.json +21 -21
  100. package/src/cli/templates/cloud-component/src/main.ts +70 -70
  101. package/src/cli/templates/cloud-component/tsconfig.json +16 -16
  102. package/src/cli/templates/cloud-component/vite.config.js +46 -46
  103. package/src/cli/templates/shared/AGENTS.md +8 -8
  104. package/src/cli/templates/shared/CLAUDE.md +1 -1
  105. package/src/cli/templates/shared/_gitignore +5 -5
  106. package/src/core/examples/.env.example +7 -7
  107. package/src/core/examples/apps.ts +67 -67
  108. package/src/core/examples/batch-reads.ts +99 -99
  109. package/src/core/examples/channel.ts +65 -65
  110. package/src/core/examples/components.ts +91 -91
  111. package/src/core/examples/execution.ts +75 -75
  112. package/src/core/examples/file-metadata.ts +94 -94
  113. package/src/core/examples/files.ts +81 -81
  114. package/src/core/examples/folders.ts +82 -82
  115. package/src/core/examples/hidden-files.ts +88 -88
  116. package/src/core/examples/history.ts +103 -103
  117. package/src/core/examples/icons.ts +68 -68
  118. package/src/core/examples/permissions.ts +87 -87
@@ -1,31 +1,31 @@
1
- ---
2
- description: "Build and upload the project to the platform. Automatically detects app vs cloud component from the local .thatopen config. On first publish, saves the assigned item ID back to .thatopen so subsequent runs update the same item instead of creating a new one."
3
- ---
4
-
5
- ## thatopen publish
6
-
7
- Builds the project and uploads it to the platform. Works for both apps and cloud components — the project type is read from `.thatopen` (`itemType: APP | COMPONENT`).
8
-
9
- First publish creates the item and auto-saves its ID to `.thatopen`. Subsequent publishes update that same item.
10
-
11
- **Usage:**
12
- ```bash
13
- thatopen publish [flags]
14
- ```
15
-
16
- **Flags:**
17
-
18
- - `--name <name>` — Item name on the platform. Defaults to `name` in `package.json`.
19
- - `--version-tag <tag>` — Version tag. Defaults to `version` in `package.json`.
20
- - `--app-id <id>` — Target an existing app by ID (overrides `.thatopen`).
21
- - `--component-id <id>` — Target an existing cloud component by ID (overrides `.thatopen`).
22
- - `--skip-build` — Skip the build step and upload the existing `dist/bundle.js`.
23
- - `--icon <path>` — Path to an icon file (PNG, WebP, or ICO, max 512 KB). Saved to `.thatopen` for future publishes.
24
-
25
- **Examples:**
26
- ```bash
27
- thatopen publish
28
- thatopen publish --version-tag 2.0.0
29
- thatopen publish --skip-build
30
- thatopen publish --icon assets/icon.png
31
- ```
1
+ ---
2
+ description: "Build and upload the project to the platform. Automatically detects app vs cloud component from the local .thatopen config. On first publish, saves the assigned item ID back to .thatopen so subsequent runs update the same item instead of creating a new one."
3
+ ---
4
+
5
+ ## thatopen publish
6
+
7
+ Builds the project and uploads it to the platform. Works for both apps and cloud components — the project type is read from `.thatopen` (`itemType: APP | COMPONENT`).
8
+
9
+ First publish creates the item and auto-saves its ID to `.thatopen`. Subsequent publishes update that same item.
10
+
11
+ **Usage:**
12
+ ```bash
13
+ thatopen publish [flags]
14
+ ```
15
+
16
+ **Flags:**
17
+
18
+ - `--name <name>` — Item name on the platform. Defaults to `name` in `package.json`.
19
+ - `--version-tag <tag>` — Version tag. Defaults to `version` in `package.json`.
20
+ - `--app-id <id>` — Target an existing app by ID (overrides `.thatopen`).
21
+ - `--component-id <id>` — Target an existing cloud component by ID (overrides `.thatopen`).
22
+ - `--skip-build` — Skip the build step and upload the existing `dist/bundle.js`.
23
+ - `--icon <path>` — Path to an icon file (PNG, WebP, or ICO, max 512 KB). Saved to `.thatopen` for future publishes.
24
+
25
+ **Examples:**
26
+ ```bash
27
+ thatopen publish
28
+ thatopen publish --version-tag 2.0.0
29
+ thatopen publish --skip-build
30
+ thatopen publish --icon assets/icon.png
31
+ ```
package/docs/cli/run.md CHANGED
@@ -1,26 +1,26 @@
1
- ---
2
- description: "Build and run a cloud component locally as a child process, mirroring the backend execution environment. Accepts execution parameters as JSON via --params, validates them against declarations.json, and streams progress output to the terminal."
3
- ---
4
-
5
- ## thatopen run
6
-
7
- Builds and executes a cloud component locally, replicating what the platform's cloud engine does. Useful for testing component logic and parameters before publishing.
8
-
9
- Execution output (`MESSAGE`, `PROGRESS`, `SUCCESS`, `FAIL`) is streamed to the terminal with elapsed time.
10
-
11
- **Usage:**
12
- ```bash
13
- thatopen run [flags]
14
- ```
15
-
16
- **Flags:**
17
-
18
- - `--params <json>` — Execution parameters as a JSON string. Default: `'{}'`. Validated against `declarations.json` if present (warns, does not fail).
19
- - `--skip-build` — Skip the build step and run the existing `dist/bundle.js`.
20
-
21
- **Examples:**
22
- ```bash
23
- thatopen run
24
- thatopen run --params '{"fileId": "abc123"}'
25
- thatopen run --skip-build
26
- ```
1
+ ---
2
+ description: "Build and run a cloud component locally as a child process, mirroring the backend execution environment. Accepts execution parameters as JSON via --params, validates them against declarations.json, and streams progress output to the terminal."
3
+ ---
4
+
5
+ ## thatopen run
6
+
7
+ Builds and executes a cloud component locally, replicating what the platform's cloud engine does. Useful for testing component logic and parameters before publishing.
8
+
9
+ Execution output (`MESSAGE`, `PROGRESS`, `SUCCESS`, `FAIL`) is streamed to the terminal with elapsed time.
10
+
11
+ **Usage:**
12
+ ```bash
13
+ thatopen run [flags]
14
+ ```
15
+
16
+ **Flags:**
17
+
18
+ - `--params <json>` — Execution parameters as a JSON string. Default: `'{}'`. Validated against `declarations.json` if present (warns, does not fail).
19
+ - `--skip-build` — Skip the build step and run the existing `dist/bundle.js`.
20
+
21
+ **Examples:**
22
+ ```bash
23
+ thatopen run
24
+ thatopen run --params '{"fileId": "abc123"}'
25
+ thatopen run --skip-build
26
+ ```
package/docs/cli/serve.md CHANGED
@@ -1,43 +1,43 @@
1
- ---
2
- description: "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on platform.thatopen.com, click the Local App icon, then Get Started."
3
- ---
4
-
5
- ## thatopen serve
6
-
7
- Builds the app in watch mode and serves the IIFE bundle locally. On every save, esbuild rebuilds and the platform reloads the bundle automatically via SSE.
8
-
9
- Does **not** open a browser tab — the app runs inside the platform iframe. Open your project on the platform, then click the debug button to connect it to the local server.
10
-
11
- **Usage:**
12
- ```bash
13
- thatopen serve [flags]
14
- ```
15
-
16
- **Flags:**
17
-
18
- - `--port <port>` — Port to serve the bundle on. Default: `4000`.
19
-
20
- **Endpoints served:**
21
-
22
- - `GET /bundle.js` — The compiled IIFE bundle.
23
- - `GET /bundle.js.map` — Source map.
24
- - `GET /events` — SSE stream for live reload.
25
-
26
- **Example:**
27
- ```bash
28
- thatopen serve
29
- thatopen serve --port 4321
30
- ```
31
-
32
- **Connecting the platform to your local server:**
33
-
34
- 1. Go to [https://platform.thatopen.com](https://platform.thatopen.com) and open a project (create one first if needed).
35
- 2. In the top right corner, click the **Local App** icon.
36
- 3. Click **Get Started**.
37
-
38
- The platform loads the bundle from port 4000 and renders the app inside the project context, with full access to its models, data, and users. The dev server must be running before opening this URL — if nothing is served on port 4000, the platform will fail to load the app.
39
-
40
- The resulting URL follows this pattern:
41
- ```
42
- https://platform.thatopen.com/dashboard/projects/{projectId}/apps/local-app
43
- ```
1
+ ---
2
+ description: "Start a local dev server for a browser app. Uses esbuild in watch mode and serves the IIFE bundle on port 4000 with SSE live reload. To connect: open the project on platform.thatopen.com, click the Local App icon, then Get Started."
3
+ ---
4
+
5
+ ## thatopen serve
6
+
7
+ Builds the app in watch mode and serves the IIFE bundle locally. On every save, esbuild rebuilds and the platform reloads the bundle automatically via SSE.
8
+
9
+ Does **not** open a browser tab — the app runs inside the platform iframe. Open your project on the platform, then click the debug button to connect it to the local server.
10
+
11
+ **Usage:**
12
+ ```bash
13
+ thatopen serve [flags]
14
+ ```
15
+
16
+ **Flags:**
17
+
18
+ - `--port <port>` — Port to serve the bundle on. Default: `4000`.
19
+
20
+ **Endpoints served:**
21
+
22
+ - `GET /bundle.js` — The compiled IIFE bundle.
23
+ - `GET /bundle.js.map` — Source map.
24
+ - `GET /events` — SSE stream for live reload.
25
+
26
+ **Example:**
27
+ ```bash
28
+ thatopen serve
29
+ thatopen serve --port 4321
30
+ ```
31
+
32
+ **Connecting the platform to your local server:**
33
+
34
+ 1. Go to [https://platform.thatopen.com](https://platform.thatopen.com) and open a project (create one first if needed).
35
+ 2. In the top right corner, click the **Local App** icon.
36
+ 3. Click **Get Started**.
37
+
38
+ The platform loads the bundle from port 4000 and renders the app inside the project context, with full access to its models, data, and users. The dev server must be running before opening this URL — if nothing is served on port 4000, the platform will fail to load the app.
39
+
40
+ The resulting URL follows this pattern:
41
+ ```
42
+ https://platform.thatopen.com/dashboard/projects/{projectId}/apps/local-app
43
+ ```
package/docs/cli/swap.md CHANGED
@@ -1,30 +1,30 @@
1
- ---
2
- description: "Toggle or explicitly set the engine library mode between stable public packages (@thatopen/*) and private beta packages (@thatopen-platform/*-beta). Updates package.json and .thatopen, then runs npm install. Source code never changes — aliases handle resolution."
3
- ---
4
-
5
- ## thatopen swap
6
-
7
- Switches the project between stable and beta engine libraries. Without flags, it toggles from the current state. Updates `package.json` dependencies and sets `beta` in `.thatopen` so `thatopen serve`, `thatopen local-server`, and `vite build` all pick up the change automatically.
8
-
9
- Source code stays unchanged — `@thatopen/components` imports resolve to the correct package via esbuild/vite aliases based on the `beta` flag in `.thatopen`.
10
-
11
- **Usage:**
12
- ```bash
13
- thatopen swap # toggle: stable → beta or beta → stable
14
- thatopen swap --beta # force beta
15
- thatopen swap --stable # force stable
16
- ```
17
-
18
- **Flags:**
19
-
20
- - `--beta` — Switch to beta libraries (`@thatopen-platform/*-beta`).
21
- - `--stable` — Switch back to stable public libraries (`@thatopen/*`).
22
-
23
- **Examples:**
24
- ```bash
25
- thatopen swap
26
- thatopen swap --beta
27
- thatopen swap --stable
28
- ```
29
-
30
- > Beta packages are private and the access must be explicitly granted by That Open Company.
1
+ ---
2
+ description: "Toggle or explicitly set the engine library mode between stable public packages (@thatopen/*) and private beta packages (@thatopen-platform/*-beta). Updates package.json and .thatopen, then runs npm install. Source code never changes — aliases handle resolution."
3
+ ---
4
+
5
+ ## thatopen swap
6
+
7
+ Switches the project between stable and beta engine libraries. Without flags, it toggles from the current state. Updates `package.json` dependencies and sets `beta` in `.thatopen` so `thatopen serve`, `thatopen local-server`, and `vite build` all pick up the change automatically.
8
+
9
+ Source code stays unchanged — `@thatopen/components` imports resolve to the correct package via esbuild/vite aliases based on the `beta` flag in `.thatopen`.
10
+
11
+ **Usage:**
12
+ ```bash
13
+ thatopen swap # toggle: stable → beta or beta → stable
14
+ thatopen swap --beta # force beta
15
+ thatopen swap --stable # force stable
16
+ ```
17
+
18
+ **Flags:**
19
+
20
+ - `--beta` — Switch to beta libraries (`@thatopen-platform/*-beta`).
21
+ - `--stable` — Switch back to stable public libraries (`@thatopen/*`).
22
+
23
+ **Examples:**
24
+ ```bash
25
+ thatopen swap
26
+ thatopen swap --beta
27
+ thatopen swap --stable
28
+ ```
29
+
30
+ > Beta packages are private and the access must be explicitly granted by That Open Company.
@@ -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
+ ```
@@ -1,53 +1,53 @@
1
- # PointCloudConverter
2
-
3
- Convert a LAS point cloud into a streamable Potree 2.0 octree.
4
-
5
- Reads an uploaded .las and builds a Potree 2.0 octree (metadata.json + hierarchy.bin + chopped octree pieces), published as one visible `.potree` entry whose hidden files hold the streamed chunks. The viewer byte-ranges those chunks, so a cloud opens without downloading it whole.
6
-
7
- The conversion itself lives in @thatopen-platform/components-beta (realityCapture); this component is only the platform I/O around it.
8
-
9
- - **Accepts:** `.las`
10
- - **Produces:** `.potree`
11
- - **Result:** the execution's `resultMessage` contains `[potreeFileId=<id>]`
12
-
13
- ## Actions
14
-
15
- | action | what it does | params |
16
- |---|---|---|
17
- | `SIMPLE` | Build the whole cloud in ONE execution. The default, and what you almost always want. | `fileId` |
18
- | `PLAN` | For clouds too big for SIMPLE: stream the source once and return an adaptive set of tiles that each fit a worker. | `fileId`, `K` |
19
- | `BUILD` | Build ONE tile of a PLAN as an aligned subtree of the global octree. Fired once per tile. | `grid`, `cell`, `entryId`, `shards` |
20
- | `MERGE` | Graft the built tiles into one global octree and publish the `.potree` entry. The tiles' bytes are referenced, never copied. | `grid`, `tiles`, `entryId` |
21
-
22
- ## Params
23
-
24
- | id | type | label |
25
- |---|---|---|
26
- | `action` | string | Action (SIMPLE|PLAN|BUILD|MERGE) |
27
- | `fileId` | string | LAS Point Cloud File ID |
28
- | `K` | number | Split level (PLAN) |
29
- | `grid` | string | Global grid JSON (BUILD/MERGE) |
30
- | `cell` | string | Cell name (BUILD) |
31
- | `tiles` | string | Tile descriptors JSON (MERGE) |
32
- | `entryId` | string | Shared entry item id (BUILD/MERGE) |
33
- | `shards` | string | Cell LAS shard hidden-file ids JSON (BUILD cell-file mode) |
34
-
35
- ## Notes
36
-
37
- - PLAN/BUILD/MERGE is a MEMORY workaround, not a speed feature — a billion-point cloud cannot fit in one worker. It needs many chained executions, and the platform's file API is whole-file-only (it ignores HTTP Range) at ~7 MB/s, so a 50GB / 2B-point cloud would spend ~9 hours just moving bytes, most of it network. Convert those OFFLINE and upload the .potree directly.
38
- - LAZ is not supported (it is compressed; the LASF signature check rejects it).
39
-
40
- ## Usage
41
-
42
- ```ts
43
- import { LasToPotree } from "@thatopen/services";
44
-
45
- const { executionId } = await client.executeComponent(componentId, {
46
- projectId,
47
- fileId,
48
- action: "SIMPLE",
49
- });
50
-
51
- const exec = await client.getExecution(executionId);
52
- const producedFileId = LasToPotree.parseResult(exec.resultMessage);
53
- ```
1
+ # PointCloudConverter
2
+
3
+ Convert a LAS point cloud into a streamable Potree 2.0 octree.
4
+
5
+ Reads an uploaded .las and builds a Potree 2.0 octree (metadata.json + hierarchy.bin + chopped octree pieces), published as one visible `.potree` entry whose hidden files hold the streamed chunks. The viewer byte-ranges those chunks, so a cloud opens without downloading it whole.
6
+
7
+ The conversion itself lives in @thatopen-platform/components-beta (realityCapture); this component is only the platform I/O around it.
8
+
9
+ - **Accepts:** `.las`
10
+ - **Produces:** `.potree`
11
+ - **Result:** the execution's `resultMessage` contains `[potreeFileId=<id>]`
12
+
13
+ ## Actions
14
+
15
+ | action | what it does | params |
16
+ |---|---|---|
17
+ | `SIMPLE` | Build the whole cloud in ONE execution. The default, and what you almost always want. | `fileId` |
18
+ | `PLAN` | For clouds too big for SIMPLE: stream the source once and return an adaptive set of tiles that each fit a worker. | `fileId`, `K` |
19
+ | `BUILD` | Build ONE tile of a PLAN as an aligned subtree of the global octree. Fired once per tile. | `grid`, `cell`, `entryId`, `shards` |
20
+ | `MERGE` | Graft the built tiles into one global octree and publish the `.potree` entry. The tiles' bytes are referenced, never copied. | `grid`, `tiles`, `entryId` |
21
+
22
+ ## Params
23
+
24
+ | id | type | label |
25
+ |---|---|---|
26
+ | `action` | string | Action (SIMPLE|PLAN|BUILD|MERGE) |
27
+ | `fileId` | string | LAS Point Cloud File ID |
28
+ | `K` | number | Split level (PLAN) |
29
+ | `grid` | string | Global grid JSON (BUILD/MERGE) |
30
+ | `cell` | string | Cell name (BUILD) |
31
+ | `tiles` | string | Tile descriptors JSON (MERGE) |
32
+ | `entryId` | string | Shared entry item id (BUILD/MERGE) |
33
+ | `shards` | string | Cell LAS shard hidden-file ids JSON (BUILD cell-file mode) |
34
+
35
+ ## Notes
36
+
37
+ - PLAN/BUILD/MERGE is a MEMORY workaround, not a speed feature — a billion-point cloud cannot fit in one worker. It needs many chained executions, and the platform's file API is whole-file-only (it ignores HTTP Range) at ~7 MB/s, so a 50GB / 2B-point cloud would spend ~9 hours just moving bytes, most of it network. Convert those OFFLINE and upload the .potree directly.
38
+ - LAZ is not supported (it is compressed; the LASF signature check rejects it).
39
+
40
+ ## Usage
41
+
42
+ ```ts
43
+ import { LasToPotree } from "@thatopen/services";
44
+
45
+ const { executionId } = await client.executeComponent(componentId, {
46
+ projectId,
47
+ fileId,
48
+ action: "SIMPLE",
49
+ });
50
+
51
+ const exec = await client.getExecution(executionId);
52
+ const producedFileId = LasToPotree.parseResult(exec.resultMessage);
53
+ ```