@file-viewer/renderer-3d 3.3.1 → 3.3.4

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/GEO3D.md CHANGED
@@ -82,10 +82,16 @@ with static decoder scripts under a nested custom asset path.
82
82
 
83
83
  ## Usage
84
84
 
85
- Raw LAS/LAZ with unresolved CRS metadata is rejected by default. Citation text
86
- is descriptive and is never converted into a guessed EPSG code. When the data
87
- owner has verified the source CRS, configure it explicitly without rewriting
88
- the original file:
85
+ LAS/LAZ reads numeric GeoKeys, decoded WKT, and exact CRS names or historical
86
+ authority aliases referenced by GeoASCII citation keys. Definitions and aliases
87
+ are bundled offline. Projected coordinates are never labelled with their base
88
+ geographic CRS. Ambiguous names, conflicting codes or units, missing datum
89
+ grids, and unresolved declarations fail explicitly.
90
+
91
+ With no explicit scene CRS, the point-cloud viewer uses the resolved dataset
92
+ CRS. Recognized citation-only files need no `sourceCrs` setting. For an
93
+ unrecognized declaration whose CRS the data owner has verified, configure a
94
+ fallback without rewriting the original file:
89
95
 
90
96
  ```ts
91
97
  const renderer = createGeo3dRenderer({
@@ -97,7 +103,7 @@ const renderer = createGeo3dRenderer({
97
103
  ```
98
104
 
99
105
  Use the dataset's verified CRS, rather than the example code above. For a CRS
100
- without a built-in definition, pass `{ id, definition }` as `sourceCrs`, with an
106
+ without an offline authority definition, pass `{ id, definition }` as `sourceCrs`, with an
101
107
  offline WKT or PROJ definition, or register it through `crsDefinitions`.
102
108
  This fallback applies only to unresolved raw LAS/LAZ. A conflicting GeoKey or
103
109
  decoded WKT CRS is rejected; a resolved file definition remains authoritative.
@@ -6,7 +6,17 @@ runtime packages.
6
6
 
7
7
  ## Runtime packages
8
8
 
9
- ### @giro3d/giro3d 2.0.4
9
+ ### Offline CRS authority data
10
+
11
+ - `epsg-index` 2.0.0 supplies coordinate-system names and definitions under ISC.
12
+ - Historical authority aliases come from PROJ 9.9.0, commit
13
+ `1df2be61c0e4732aa1326126113776b291ae7657`, under its MIT-style license.
14
+ - The source alias module and this notice retain the original license. The package and
15
+ copied assets also retain `licenses/PROJ-COPYING.txt` and the EPSG index license.
16
+ - These are offline lookup tables. File Viewer does not request a public CRS
17
+ registry or download datum grids while opening a document.
18
+
19
+ ### @giro3d/giro3d 2.0.5
10
20
 
11
21
  - License: MIT
12
22
  - Role: streaming/rendering engine for COPC, LAS/LAZ, GeoTIFF/COG and 3D Tiles.
@@ -61,3 +71,45 @@ The vendored CityJSON compatibility fixture under
61
71
  Real LAZ/COPC validation URLs documented in `EXTERNAL_SAMPLES.md` come from
62
72
  `PDAL/data`, which is licensed CC BY 4.0. Those large Git-LFS payloads are not
63
73
  vendored in this package.
74
+
75
+ <!-- BEGIN PROJ ALIAS NOTICE -->
76
+
77
+ ## Retained PROJ alias-table grant
78
+
79
+ PROJ 9.9.0 CRS aliases; upstream commit 1df2be61c0e4732aa1326126113776b291ae7657.
80
+
81
+ All source, data files and other contents of the PROJ package are
82
+ available under the following terms. Note that the PROJ 4.3 and earlier
83
+ was "public domain" as is common with US government work, but apparently
84
+ this is not a well defined legal term in many countries. Frank Warmerdam placed
85
+ everything under the following MIT style license because he believed it is
86
+ effectively the same as public domain, allowing anyone to use the code as
87
+ they wish, including making proprietary derivatives.
88
+
89
+ Initial PROJ 4.3 public domain code was put as Frank Warmerdam as copyright
90
+ holder, but he didn't mean to imply he did the work. Essentially all work was
91
+ done by Gerald Evenden.
92
+
93
+ Copyright information can be found in source files.
94
+
95
+ --------------
96
+
97
+ Permission is hereby granted, free of charge, to any person obtaining a
98
+ copy of this software and associated documentation files (the "Software"),
99
+ to deal in the Software without restriction, including without limitation
100
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
101
+ and/or sell copies of the Software, and to permit persons to whom the
102
+ Software is furnished to do so, subject to the following conditions:
103
+
104
+ The above copyright notice and this permission notice shall be included
105
+ in all copies or substantial portions of the Software.
106
+
107
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
108
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
109
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
110
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
111
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
112
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
113
+ DEALINGS IN THE SOFTWARE.
114
+
115
+ <!-- END PROJ ALIAS NOTICE -->
package/IFC.md CHANGED
@@ -15,7 +15,7 @@ metadata describes the base package, not an SDK-free version of the IFC API.
15
15
  ## Install and self-host
16
16
 
17
17
  ```sh
18
- npm install @file-viewer/renderer-3d @thatopen/components@3.4.8 @thatopen/fragments@3.4.7 web-ifc@0.0.77
18
+ npm install @file-viewer/renderer-3d @thatopen/components@3.6.0 @thatopen/fragments@3.6.0 web-ifc@0.0.77
19
19
  npm install -D esbuild@0.28.2
20
20
  npx file-viewer-ifc-assets public/file-viewer/vendor/ifc
21
21
  ```
@@ -76,9 +76,10 @@ export async function copyGeo3dAssets(destination) {
76
76
  const giro = await packageDir('@giro3d/giro3d')
77
77
  if (giro.metadata.version !== '2.0.5') throw new Error(`Geo3D assets require tested @giro3d/giro3d@2.0.5, found ${giro.metadata.version}`)
78
78
  const giroRequire = createRequire(join(giro.path, 'package.json'))
79
- const [lazPerf, three] = await Promise.all([
79
+ const [lazPerf, three, epsg] = await Promise.all([
80
80
  packageDir('laz-perf', giroRequire),
81
81
  packageDir('three', giroRequire),
82
+ packageDir('epsg-index'),
82
83
  ])
83
84
  const lazWasm = await findNamedFile(lazPerf.path, 'laz-perf.wasm')
84
85
  if (!lazWasm) throw new Error('Cannot locate laz-perf.wasm in the installed laz-perf package')
@@ -106,13 +107,16 @@ export async function copyGeo3dAssets(destination) {
106
107
  }
107
108
  }
108
109
  await copyDirectory(workerDir, join(stage, 'workers'))
109
- await copyLicenses([giro, lazPerf, three], join(stage, 'licenses'))
110
+ await copyLicenses([giro, lazPerf, three, epsg], join(stage, 'licenses'))
111
+ await copyFile(new URL('../licenses/PROJ-COPYING.txt', import.meta.url), join(stage, 'licenses/PROJ-COPYING.txt'))
110
112
  const notice = [
111
113
  'Optional Geo3D runtime assets for File Viewer.',
112
114
  'These assets are loaded only by @file-viewer/renderer-3d/geo3d.',
113
115
  `@giro3d/giro3d@${giro.metadata.version}: ${giro.metadata.license || 'See package license'}`,
114
116
  `laz-perf@${lazPerf.metadata.version}: ${lazPerf.metadata.license || 'See package license'}`,
115
117
  `three@${three.metadata.version}: ${three.metadata.license || 'See package license'}`,
118
+ `epsg-index@${epsg.metadata.version}: ISC. Offline coordinate-system authority definitions.`,
119
+ 'PROJ 9.9.0 CRS aliases: MIT-style license, upstream commit 1df2be61c0e4732aa1326126113776b291ae7657.',
116
120
  'laz-perf.wasm is served locally for COPC and LAZ decoding.',
117
121
  'workers/las-worker.js, geotiff-worker.js and texture-worker.js are source-owned.',
118
122
  'Preserve workers/licenses/, workers/raster-licenses/ and workers/manifest.json.',
@@ -123,7 +127,7 @@ export async function copyGeo3dAssets(destination) {
123
127
  const files = await collectFiles(stage)
124
128
  await writeFile(join(stage, 'manifest.json'), JSON.stringify({
125
129
  schema: 1,
126
- packages: [giro, lazPerf, three].map(pkg => ({ name: pkg.metadata.name, version: pkg.metadata.version, license: pkg.metadata.license })),
130
+ packages: [giro, lazPerf, three, epsg].map(pkg => ({ name: pkg.metadata.name, version: pkg.metadata.version, license: pkg.metadata.license })),
127
131
  files,
128
132
  }, null, 2) + '\n')
129
133
  await copyDirectory(stage, destination)
@@ -70,13 +70,13 @@ export async function copyIfcAssets(destination) {
70
70
  ];
71
71
  if (
72
72
  webIfc.metadata.version !== "0.0.77" ||
73
- fragments.metadata.version !== "3.4.8" ||
74
- components.metadata.version !== "3.4.9" ||
73
+ fragments.metadata.version !== "3.6.0" ||
74
+ components.metadata.version !== "3.6.0" ||
75
75
  realpathSync(importerWebIfc.path) !== realpathSync(webIfc.path) ||
76
76
  realpathSync(componentFragments.path) !== realpathSync(fragments.path)
77
77
  )
78
78
  throw new Error(
79
- "IFC assets and importer must share the tested web-ifc@0.0.77, @thatopen/fragments@3.4.8 and @thatopen/components@3.4.9 engines",
79
+ "IFC assets and importer must share the tested web-ifc@0.0.77, @thatopen/fragments@3.6.0 and @thatopen/components@3.6.0 engines",
80
80
  );
81
81
  const { build } = await import("esbuild");
82
82
  destination = resolve(destination);
@@ -133,8 +133,8 @@ export async function copyIfcAssets(destination) {
133
133
  "These assets are not loaded by the ordinary model/Office entry.",
134
134
  "web-ifc is MPL-2.0. Its WASM and bundled import code are unmodified upstream implementations.",
135
135
  "Corresponding source and build instructions: https://github.com/ThatOpen/engine_web-ifc/tree/f26c4beef0a668ebdb180d2b95a94097a1e21cef (release 0.0.77).",
136
- "Fragments is MIT: https://github.com/ThatOpen/engine_fragment/tree/2ba7e9ddbc02689b8c1044e31daed26f3005f3c5 (release 3.4.8).",
137
- "Components is MIT: https://github.com/ThatOpen/engine_components/tree/8479a7c5c6a3c0cf8c7ceab1d1fb329a3f7d1922 (release 3.4.9).",
136
+ "Fragments is MIT: https://github.com/ThatOpen/engine_fragment/tree/baa139d1899bc5fddd90e0d83d21567e1bd50b00 (release 3.6.0).",
137
+ "Components is MIT: https://github.com/ThatOpen/engine_components/tree/bd53d29cf22bf89526b74bf05fdfe919d1189dfa (release 3.6.0).",
138
138
  "Preserve licenses/, the linked worker legal notices and this notice when redistributing.",
139
139
  ...packages.map(
140
140
  (pkg) =>