copper3d 3.11.5 → 4.0.0

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 (78) hide show
  1. package/README.md +53 -4
  2. package/ai-index/guides/4D-MRI-LV-rendering.md +1 -1
  3. package/ai-index/guides/copper3d-rendering-optimization.md +37 -0
  4. package/ai-index/guides/load-callbacks.md +35 -0
  5. package/ai-index/guides/nrrd-tools.md +10 -0
  6. package/ai-index/guides/upgrading-to-4.md +118 -0
  7. package/ai-index/manifest.json +15 -7
  8. package/ai-index/symbols.json +1 -1
  9. package/dist/Controls/Copper3dOrbitControls.d.ts +1 -1
  10. package/dist/Controls/Copper3dOrbitControls.js +1 -1
  11. package/dist/Controls/Copper3dOrbitControls.js.map +1 -1
  12. package/dist/Loader/copperGltfLoader.d.ts +1 -2
  13. package/dist/Loader/copperGltfLoader.js +3 -3
  14. package/dist/Loader/copperGltfLoader.js.map +1 -1
  15. package/dist/Loader/copperNrrdLoader.d.ts +34 -1
  16. package/dist/Loader/copperNrrdLoader.js +31 -9
  17. package/dist/Loader/copperNrrdLoader.js.map +1 -1
  18. package/dist/Loader/copperOBJLoader.d.ts +1 -2
  19. package/dist/Loader/copperOBJLoader.js +1 -1
  20. package/dist/Loader/copperOBJLoader.js.map +1 -1
  21. package/dist/Loader/copperVtkLoader.d.ts +1 -2
  22. package/dist/Loader/copperVtkLoader.js +1 -1
  23. package/dist/Loader/copperVtkLoader.js.map +1 -1
  24. package/dist/Loader/nrrdWorkerCore.js +2 -2
  25. package/dist/Loader/nrrdWorkerCore.js.map +1 -1
  26. package/dist/Renderer/baseRenderer.d.ts +1 -1
  27. package/dist/Renderer/baseRenderer.js +2 -2
  28. package/dist/Renderer/baseRenderer.js.map +1 -1
  29. package/dist/Renderer/copperMSceneRenderer.js +1 -1
  30. package/dist/Renderer/copperMSceneRenderer.js.map +1 -1
  31. package/dist/Renderer/copperRenderer.js +2 -2
  32. package/dist/Renderer/copperRenderer.js.map +1 -1
  33. package/dist/Scene/commonSceneMethod.d.ts +2 -2
  34. package/dist/Scene/commonSceneMethod.js +1 -1
  35. package/dist/Scene/commonSceneMethod.js.map +1 -1
  36. package/dist/Scene/copperMScene.js +1 -1
  37. package/dist/Scene/copperMScene.js.map +1 -1
  38. package/dist/Scene/copperScene.d.ts +3 -3
  39. package/dist/Scene/copperScene.js +7 -4
  40. package/dist/Scene/copperScene.js.map +1 -1
  41. package/dist/Scene/copperSceneOnDemond.d.ts +2 -2
  42. package/dist/Scene/copperSceneOnDemond.js +2 -2
  43. package/dist/Scene/copperSceneOnDemond.js.map +1 -1
  44. package/dist/Utils/segmentation/RenderingUtils.d.ts +2 -1
  45. package/dist/Utils/segmentation/RenderingUtils.js +4 -1
  46. package/dist/Utils/segmentation/RenderingUtils.js.map +1 -1
  47. package/dist/Utils/segmentation/tools/SliceRenderPipeline.js +3 -0
  48. package/dist/Utils/segmentation/tools/SliceRenderPipeline.js.map +1 -1
  49. package/dist/Utils/surfaceAnnotation/SurfaceAnnotator.js +1 -1
  50. package/dist/Utils/surfaceAnnotation/SurfaceAnnotator.js.map +1 -1
  51. package/dist/Utils/surfaceAnnotation/contourRender.d.ts +1 -1
  52. package/dist/Utils/surfaceAnnotation/contourRender.js +3 -3
  53. package/dist/Utils/surfaceAnnotation/contourRender.js.map +1 -1
  54. package/dist/Utils/threeRevisionCheck.d.ts +14 -0
  55. package/dist/Utils/threeRevisionCheck.js +21 -0
  56. package/dist/Utils/threeRevisionCheck.js.map +1 -0
  57. package/dist/Utils/volumeShader.js +1 -1
  58. package/dist/Utils/volumeShader.js.map +1 -1
  59. package/dist/bundle.esm.mjs +21761 -0
  60. package/dist/bundle.umd.js +21834 -118625
  61. package/dist/index.d.ts +2 -2
  62. package/dist/index.js +13 -2
  63. package/dist/index.js.map +1 -1
  64. package/dist/types/Controls/Copper3dOrbitControls.d.ts +1 -1
  65. package/dist/types/Loader/copperGltfLoader.d.ts +1 -1
  66. package/dist/types/Loader/copperNrrdLoader.d.ts +34 -1
  67. package/dist/types/Loader/copperOBJLoader.d.ts +1 -1
  68. package/dist/types/Loader/copperVtkLoader.d.ts +1 -1
  69. package/dist/types/Renderer/baseRenderer.d.ts +1 -1
  70. package/dist/types/Scene/commonSceneMethod.d.ts +2 -2
  71. package/dist/types/Scene/copperScene.d.ts +3 -3
  72. package/dist/types/Scene/copperSceneOnDemond.d.ts +2 -2
  73. package/dist/types/Utils/segmentation/RenderingUtils.d.ts +2 -1
  74. package/dist/types/Utils/surfaceAnnotation/contourRender.d.ts +1 -1
  75. package/dist/types/Utils/threeRevisionCheck.d.ts +14 -0
  76. package/dist/types/index.d.ts +2 -2
  77. package/package.json +23 -5
  78. package/dist/bundle.esm.js +0 -118554
package/README.md CHANGED
@@ -2,16 +2,59 @@
2
2
 
3
3
  [![CI][ci]][ci-url]
4
4
  [![NPM Package][npm]][npm-url]
5
- [![Read the Docs][readthedocs]][readthedocs-url]
5
+ [![Documentation][docs]][docs-url]
6
6
  [![Copper3d Examples][examples]][examples-url]
7
7
  [![NRRD_Segmentation_Tool example][nrrd_example]][nrrd_example-url]
8
8
  [![MedTech Heart example][heart_example]][heart_example-url]
9
9
 
10
10
  A 3D visualisation package based on three.js — multiple scenes, NRRD/DICOM image loading, and a full medical image segmentation annotation engine.
11
11
 
12
+ ### Installation
13
+
14
+ ```bash
15
+ npm install copper3d three@~0.186.0
16
+ ```
17
+
18
+ **`three` is a peer dependency since 4.0.0** — you install it, and copper3d shares your copy.
19
+ It is not bundled, so there is exactly one three on the page: bundling it would give you a
20
+ second (three warns *"Multiple instances of Three.js being imported"*), and a `Mesh` built by
21
+ your code would not be an `instanceof` the `Mesh` copper3d checks against.
22
+
23
+ TypeScript users also want the types, which are an optional peer:
24
+
25
+ ```bash
26
+ npm install -D @types/three@~0.186.0
27
+ ```
28
+
29
+ copper3d imports three's addons through `three/addons/*`, which three exposes only via its
30
+ package `exports` map. If your `tsconfig.json` still has `"moduleResolution": "node"`, move it
31
+ to `"bundler"` (or `"node16"`/`"nodenext"`) — `"node"` predates exports maps and cannot
32
+ resolve those paths.
33
+
34
+ At import, copper3d compares the three it was built against with the one actually loaded and
35
+ logs a `console.error` if they differ. npm refuses a mismatched peer at install time; yarn 1
36
+ and pnpm only warn, so the check is repeated where it cannot be scrolled past.
37
+
12
38
  ### Documentation
13
39
 
14
- https://copper3d-visualisation.readthedocs.io/en/latest/
40
+ **https://linkungao.github.io/copper3d_visualisation/** — guides and the full generated API
41
+ reference, in English and 简体中文.
42
+
43
+ | | |
44
+ |---|---|
45
+ | [Upgrading to 4.0](https://linkungao.github.io/copper3d_visualisation/guide/upgrading-to-4) | **Start here if you are on 3.x** — three is now a peer dependency |
46
+ | [NrrdTools Usage Guide](https://linkungao.github.io/copper3d_visualisation/guide/nrrd-tools) | The segmentation engine, end to end |
47
+ | [Segmentation Module](https://linkungao.github.io/copper3d_visualisation/guide/segmentation-module) | Its architecture and internals |
48
+ | [Load Progress & Errors](https://linkungao.github.io/copper3d_visualisation/guide/load-callbacks) | `loadNrrd` / `loadGltf` options and callbacks |
49
+ | [AI Coding Assistants (MCP)](https://linkungao.github.io/copper3d_visualisation/guide/mcp-server) | Point your assistant at the real API |
50
+ | [API reference](https://linkungao.github.io/copper3d_visualisation/apidist/modules) | Generated from source by TypeDoc |
51
+
52
+ The site is built from [`apidocs/`](apidocs/) with VitePress and deploys to GitHub Pages.
53
+
54
+ > The old Sphinx site on readthedocs was retired at 3.11.6. It had not been updated since
55
+ > v2.0.7 (December 2023) and documented an API that no longer exists — `Copper.Renderer`
56
+ > rather than `copperRenderer`, and nothing from the 3.x segmentation engine. Everything now
57
+ > lives at the link above. Its sources remain in git history if you need them.
15
58
 
16
59
  ### Previous versions
17
60
 
@@ -238,6 +281,12 @@ Skipped a plane and need it later? `ensureAxisExtracted(slices, axis, meshes?)`
238
281
  demand, mutating `slices` (and `meshes`) in place. `NrrdTools.setSliceOrientation()` already
239
282
  calls it for you, so an axial-only load can still switch to sagittal or coronal.
240
283
 
284
+ Extracting a slice yourself with `Volume.extractSlice`? Run `prepareVolumeSlices(...slices)`
285
+ on the result. It gives the slice's readback buffer a `willReadFrequently` context (three
286
+ creates it without the flag, so every repaint copies the canvas back from the GPU) and
287
+ restores the geometry three's `VolumeSlice` constructor wipes. The loader does this for
288
+ everything it extracts.
289
+
241
290
  ---
242
291
 
243
292
  ## NrrdTools Usage Guide
@@ -839,8 +888,8 @@ Special thanks to [Duke University dataset](https://wiki.cancerimagingarchive.ne
839
888
  [ci-url]: https://github.com/LinkunGao/copper3d_visualisation/actions/workflows/ci.yml
840
889
  [npm]: https://img.shields.io/npm/v/copper3d
841
890
  [npm-url]: https://www.npmjs.com/package/copper3d
842
- [readthedocs]: https://img.shields.io/readthedocs/copper3d_visualisation
843
- [readthedocs-url]: https://copper3d-visualisation.readthedocs.io/en/latest/
891
+ [docs]: https://img.shields.io/badge/docs-copper3d-blue
892
+ [docs-url]: https://linkungao.github.io/copper3d_visualisation/
844
893
  [examples]: https://img.shields.io/badge/copper3d__visualisation-examples-orange
845
894
  [examples-url]: https://linkungao.github.io/copper3d_examples
846
895
  [nrrd_example]: https://img.shields.io/badge/Nrrd__Segmentation__tool-example-orange
@@ -440,7 +440,7 @@ Versus `setInterval`, rAF syncs to the display refresh and auto-pauses when the
440
440
  animate = (time?) => {
441
441
  if (!this.running) return;
442
442
  requestAnimationFrame(this.animate); // self-scheduling
443
- this.delta += this.renderClock.getDelta();
443
+ this.delta += this.renderClock.update().getDelta(); // THREE.Timer: advance, then read
444
444
  if (this.delta > this.interval) { // only draw once enough time has accumulated (frame-rate cap)
445
445
  this.render();
446
446
  }
@@ -118,6 +118,43 @@ All lighting and rendering parameters are exposed through a dat.GUI panel for re
118
118
 
119
119
  ---
120
120
 
121
+ ## 7. Frame timing — `THREE.Timer` <Badge type="tip" text="3.11.6" />
122
+
123
+ three r185 deprecates `THREE.Clock` and warns on **every construction**. copper3d built one
124
+ per renderer and one per scene, so a viewer panel produced a warning pair each time it was
125
+ created. Both are now `THREE.Timer`.
126
+
127
+ ::: warning Breaking: `copperScene.clock` is a `THREE.Timer`
128
+ It is a public field, so code that types or constructs it has to change:
129
+
130
+ ```ts
131
+ scene.clock; // THREE.Clock → THREE.Timer
132
+ scene.clock.getDelta(); // unchanged, but see below
133
+ ```
134
+
135
+ The behavioural difference is that a `Timer` **only advances when you call `update()`** —
136
+ `getDelta()` on its own returns the same value twice.
137
+ :::
138
+
139
+ Both call sites update before reading:
140
+
141
+ ```ts
142
+ // copperRenderer.animate
143
+ this.delta += this.renderClock.update().getDelta();
144
+
145
+ // copperScene.render — every frame, not only once a model is ready
146
+ this.clock.update();
147
+ if (this.modelReady) this.mixer?.update(this.clock.getDelta() * this.playRate);
148
+ ```
149
+
150
+ `copperScene` updating unconditionally is a **fix**, not bookkeeping. `Clock.getDelta()`
151
+ measured from the previous `getDelta()` — or, on the first call, from construction. A scene
152
+ whose model finished loading five seconds after the scene was built therefore handed its
153
+ mixer a five-second first step, and the animation jumped. Updating every frame makes the
154
+ first step one frame long.
155
+
156
+ ---
157
+
121
158
  ## Architecture Diagram
122
159
 
123
160
  ```
@@ -182,6 +182,41 @@ Two consequences worth knowing:
182
182
  asset file to serve. A UMD bundle mounted at a base path unknown at build time still
183
183
  works.
184
184
 
185
+ ## `prepareVolumeSlices()`: the fixups every slice needs <Badge type="tip" text="3.11.6" />
186
+
187
+ `loadNrrd` and `ensureAxisExtracted` already call this on everything they extract. You only
188
+ need it if you call `Volume.extractSlice` yourself — for a preview plane, say:
189
+
190
+ ```ts
191
+ import { prepareVolumeSlices } from "copper3d";
192
+
193
+ const slice = volume.extractSlice("z", index * spacing[2]);
194
+ prepareVolumeSlices(slice); // variadic; `undefined` entries are skipped
195
+ ```
196
+
197
+ It does two things.
198
+
199
+ **1. Gives the readback buffer a `willReadFrequently` context.** Stock
200
+ `VolumeSlice.repaint` reads `ctxBuffer` back with `getImageData` on *every* repaint, and
201
+ three creates that context without the flag — so the canvas may live on the GPU and each
202
+ repaint copies it back to the CPU. Chrome warns once per such context.
203
+
204
+ A context's attributes are fixed by the first `getContext` call on its canvas, so the flag
205
+ cannot be added afterwards; the buffer canvas is replaced with one whose context is created
206
+ with it. A later `updateGeometry` re-fetches the same context, so the flag survives.
207
+
208
+ **2. Restores the geometry three's constructor wipes.** `VolumeSlice`'s constructor calls
209
+ `updateGeometry()` and `repaint()` and *then* assigns `iLength = 0`, `jLength = 0`,
210
+ `sliceAccess = null`, undoing what it just computed. `repaint()` only recomputes them after an
211
+ `index` change, so any repaint not preceded by one calls `ctx.getImageData(0, 0, 0, 0)` and
212
+ throws `IndexSizeError: The source width is 0`. Present in three r175 through at least r185;
213
+ a harmless recompute on r174 and earlier.
214
+
215
+ ::: tip Renamed from `repairSliceGeometry`
216
+ It was internal and only did (2). It is exported now because the preview-slice flow builds
217
+ slices outside the loader and needs both.
218
+ :::
219
+
185
220
  ## Detecting a stalled download
186
221
 
187
222
  A flat timeout is the wrong instrument for a large volume: a 53MB NRRD on a
@@ -126,6 +126,16 @@ Slice scrubbing, zoom, pan, window/level and the crosshair all work as usual. Th
126
126
  tools have no layer to target and skip their work rather than failing: `setCurrentLayer()`
127
127
  returns `null` and every caller checks it.
128
128
 
129
+ The rest of the pipeline follows the same rule <Badge type="tip" text="3.11.6" />:
130
+ `getVolumeForLayer()` returns `undefined` **without** the "unknown layer, falling back to…"
131
+ warning — there is no first layer to fall back to, and the warning was noise on a viewer that
132
+ is working as designed — and `reloadMasksFromVolume()` returns early, since there is nothing
133
+ to reload. An unknown layer id on a viewer that *does* have layers still warns and falls back,
134
+ as before.
135
+
136
+ Pairs naturally with `setMaskMirror` (§6.7): a layerless viewer still composites, so it can
137
+ show another viewer's masks over its own image.
138
+
129
139
  ::: tip Which one to reach for
130
140
  `layers: []` is a **structural** choice — this instance will never annotate.
131
141
  `setAnnotationSuspended(true)` (§5.6) is a **temporary** one on an instance that will, such as
@@ -0,0 +1,118 @@
1
+ # Upgrading to 4.0 <Badge type="warning" text="breaking" />
2
+
3
+ 4.0.0 is a packaging release. The copper3d API itself is unchanged — every class, method and
4
+ type from 3.11.x still works the same way. What changed is **how three.js reaches you**, and
5
+ that needs a change on your side.
6
+
7
+ ## The one required change
8
+
9
+ ```bash
10
+ npm install copper3d three@~0.186.0
11
+ ```
12
+
13
+ `three` is now a **peer dependency**. Previously copper3d depended on three and bundled it;
14
+ now you install it and copper3d shares your copy.
15
+
16
+ TypeScript users also want the types, which are an *optional* peer:
17
+
18
+ ```bash
19
+ npm install -D @types/three@~0.186.0
20
+ ```
21
+
22
+ ::: tip Why peer, not bundled
23
+ Bundling three gave the page two copies. three itself warns about this —
24
+ *"Multiple instances of Three.js being imported"* — and the consequence is worse than the
25
+ warning: a `Mesh` your code builds is not an `instanceof` the `Mesh` copper3d checks against,
26
+ because they come from different modules. Anything you pass across the boundary — a camera,
27
+ a scene, a geometry — had to survive that.
28
+
29
+ With a peer dependency there is exactly one three on the page, and objects cross freely.
30
+ :::
31
+
32
+ ## What else changed
33
+
34
+ | | 3.11.x | 4.0.0 |
35
+ |---|---|---|
36
+ | three | bundled dependency, `^0.185.1` | **peer** dependency, `~0.186.0` |
37
+ | `@types/three` | dependency | optional peer, `~0.186.0` |
38
+ | ESM bundle | `dist/bundle.esm.js` | `dist/bundle.esm.mjs` |
39
+ | `package.json` `module` field | `"moudle"` *(typo — never resolved)* | `"module"`, plus a real `exports` map |
40
+ | three addon imports | `three/examples/jsm/…` | `three/addons/…` |
41
+
42
+ ### The `exports` map
43
+
44
+ `package.json` now declares one:
45
+
46
+ ```json
47
+ {
48
+ "exports": {
49
+ ".": {
50
+ "types": "./dist/types/index.d.ts",
51
+ "import": "./dist/bundle.esm.mjs",
52
+ "require": "./dist/bundle.umd.js"
53
+ },
54
+ "./dist/css/*": "./dist/css/*",
55
+ "./package.json": "./package.json"
56
+ }
57
+ }
58
+ ```
59
+
60
+ `import` and `require` now resolve to the right build automatically. The ESM file is `.mjs`
61
+ so Node loads it as ESM without the package needing `"type": "module"`.
62
+
63
+ ::: warning Deep imports are no longer reachable
64
+ An `exports` map is a boundary. If you were reaching into the package —
65
+ `import … from "copper3d/dist/bundle.esm.js"` — it will stop resolving. Import from the
66
+ package root, or from `copper3d/dist/css/...` for the stylesheet.
67
+ :::
68
+
69
+ ### `moduleResolution` in your tsconfig
70
+
71
+ copper3d imports three's addons as `three/addons/*`, which three exposes **only** through its
72
+ `exports` map. TypeScript's legacy `"node"` resolution predates exports maps and cannot follow
73
+ those paths, so if your `tsconfig.json` says:
74
+
75
+ ```jsonc
76
+ { "compilerOptions": { "moduleResolution": "node" } }
77
+ ```
78
+
79
+ move it to `"bundler"` (Vite, webpack, Rollup) or `"node16"` / `"nodenext"` (Node). Leaving it
80
+ on `"node"` also means TypeScript ignores copper3d's own `exports` map and may not find its
81
+ types at all.
82
+
83
+ ### The revision check
84
+
85
+ At import, copper3d compares the three revision it was **built** against with the one actually
86
+ **loaded**, and logs a `console.error` on a mismatch:
87
+
88
+ ```
89
+ copper3d was built against three r186, but three r180 is loaded.
90
+ Install the three version copper3d's peerDependencies name.
91
+ ```
92
+
93
+ npm refuses an incompatible peer at install time, but yarn 1 and pnpm only warn — and three
94
+ changes behaviour between minor releases, so a mismatch is worth seeing somewhere it cannot be
95
+ scrolled past. The check never throws; it reports and carries on.
96
+
97
+ A build from source with nothing injected skips the comparison.
98
+
99
+ ## What did *not* change
100
+
101
+ - Every copper3d class, method, option and type. No call sites need editing.
102
+ - `copperRenderer`, `copperScene`, `NrrdTools`, the loaders, the segmentation engine.
103
+ - The UMD build is still at `dist/bundle.umd.js`, now with `three` mapped to the `THREE`
104
+ global.
105
+
106
+ ::: tip The UMD build is for `require`, not a `<script>` tag
107
+ Only three's **core** has a browser global. `three/addons/*` has none, so a bare script tag
108
+ cannot satisfy copper3d's addon imports. Use a bundler, or the ESM build.
109
+ :::
110
+
111
+ ## Checklist
112
+
113
+ 1. `npm install copper3d three@~0.186.0` (and `-D @types/three@~0.186.0` for TypeScript).
114
+ 2. If your `tsconfig.json` has `"moduleResolution": "node"`, change it.
115
+ 3. Replace any deep import of `copper3d/dist/...` with a root import.
116
+ 4. Load the app once and check the console for the revision-mismatch error.
117
+
118
+ Nothing else. If step 4 is quiet and the app builds, you are done.
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
- "copper3dVersion": "3.11.5",
4
- "generatedAt": "2026-09-30T23:00:30.674Z",
5
- "symbolCount": 1202,
3
+ "copper3dVersion": "4.0.0",
4
+ "generatedAt": "2026-10-11T23:08:15.526Z",
5
+ "symbolCount": 1203,
6
6
  "guides": [
7
7
  {
8
8
  "id": "4D-MRI-LV-rendering",
@@ -10,7 +10,7 @@
10
10
  "title": "4D Heart (MRI + LV Surfaces) Aligned Rendering — Deep Dive",
11
11
  "summary": "Using `src/pages/example15_mri_lv_4d.vue` as the worked example, this explains how \"32 MRI images + 64 VTK models\" are loaded, aligned, and played back together on a single cardiac clock.",
12
12
  "lang": "en",
13
- "bytes": 27260
13
+ "bytes": 27306
14
14
  },
15
15
  {
16
16
  "id": "ai-assist-api",
@@ -50,7 +50,7 @@
50
50
  "title": "Copper3D GLB Rendering Optimization",
51
51
  "summary": "This document describes the rendering optimizations applied to the Copper3D library's Three.js pipeline to improve GLB model visual quality in the medical image annotator. The original rendering produced dull, dark, and detail-less models.…",
52
52
  "lang": "en",
53
- "bytes": 6770
53
+ "bytes": 8193
54
54
  },
55
55
  {
56
56
  "id": "gltf-decoders",
@@ -74,7 +74,7 @@
74
74
  "title": "Load Progress & Errors",
75
75
  "summary": "Every loader in copper3d gained `onProgress` and `onError` in **3.9.0**. Before that there was no way to find out that a load had failed — a broken URL, a 404, a corrupt file and a very slow download all looked identical from outside: the …",
76
76
  "lang": "en",
77
- "bytes": 9327
77
+ "bytes": 11087
78
78
  },
79
79
  {
80
80
  "id": "mcp-server",
@@ -90,7 +90,7 @@
90
90
  "title": "NrrdTools Usage Guide",
91
91
  "summary": "Copper3D `NrrdTools` — Medical Image Segmentation Annotation Engine",
92
92
  "lang": "en",
93
- "bytes": 81036
93
+ "bytes": 81653
94
94
  },
95
95
  {
96
96
  "id": "on-demand-controls",
@@ -132,6 +132,14 @@
132
132
  "lang": "en",
133
133
  "bytes": 22495
134
134
  },
135
+ {
136
+ "id": "upgrading-to-4",
137
+ "file": "upgrading-to-4.md",
138
+ "title": "Upgrading to 4.0 <Badge type=\"warning\" text=\"breaking\" />",
139
+ "summary": "4.0.0 is a packaging release. The copper3d API itself is unchanged — every class, method and type from 3.11.x still works the same way. What changed is **how three.js reaches you**, and that needs a change on your side.",
140
+ "lang": "en",
141
+ "bytes": 4439
142
+ },
135
143
  {
136
144
  "id": "volume-display",
137
145
  "file": "volume-display.md",