@nebula-spatial/cad-loader 0.2.1 → 0.2.3
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/CHANGELOG.md +12 -0
- package/dist/core/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1774 -1596
- package/dist/loader/internal/external-variant-sidecar-fetch.d.ts +1 -0
- package/dist/loader/internal/geo-loader-pipeline.d.ts +9 -0
- package/dist/loader/internal/geo-loader-worker-adapter.d.ts +6 -0
- package/dist/loader/internal/geo-node-builder.d.ts +4 -0
- package/dist/loader/internal/geo-prepare-worker-types.d.ts +7 -1
- package/dist/session/cad-document-session.d.ts +21 -0
- package/dist/workers/geo-prepare.worker.js +696 -672
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this package are documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.2.3
|
|
6
|
+
|
|
7
|
+
- Render base geometry before external block sidecars finish loading.
|
|
8
|
+
- Defer external variant geometry and append it progressively after sidecar loading.
|
|
9
|
+
- Reuse a geometry Worker across sequential parses within a CAD document session.
|
|
10
|
+
- Retain the main DXB3 buffer in the Worker to avoid retransferring it for variant delta parses.
|
|
11
|
+
- Added CAD session load timing information for initial render and external content readiness.
|
|
12
|
+
|
|
13
|
+
## 0.2.2
|
|
14
|
+
|
|
15
|
+
- Fixed INSERT bounding boxes being truncated when external variant delta content arrives incrementally.
|
|
16
|
+
|
|
5
17
|
## 0.2.1
|
|
6
18
|
|
|
7
19
|
- Added geometry Worker overrides to document sessions and external variant delta loading.
|
package/dist/core/index.js
CHANGED
|
@@ -1709,7 +1709,7 @@ function Wn(t, n) {
|
|
|
1709
1709
|
let cn = V ? 0 : O.line.count, ln = V ? 0 : O.fill.count, un = V ? 0 : O.dot.count;
|
|
1710
1710
|
for (const g of U) {
|
|
1711
1711
|
const I = v[g.variantId];
|
|
1712
|
-
|
|
1712
|
+
n.deferExternalVariantGeometry && I.lineSnapshot.count === 0 && I.fillSnapshot.count === 0 && I.dotSnapshot.count === 0 || !Nt(g.instanceId, n) || (cn += I.line_count, ln += I.fill_count, un += I.dot_count);
|
|
1713
1713
|
}
|
|
1714
1714
|
const xt = ke(k, H, n), Qn = {
|
|
1715
1715
|
bounds: m.bounds ?? [0, 0, 0, 0],
|
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,6 @@ export type { CadTextDetails, CadTextPickOptions, CadTextSelection, CadTextSelec
|
|
|
29
29
|
export { CAD_SESSION_PHASES } from './session/cad-document-session';
|
|
30
30
|
export { createCadDocumentSession, getCadDocumentRenderResource } from './session/create-cad-document-session';
|
|
31
31
|
export { formatCadInsertId, parseCadInsertId } from './session/cad-insert-id';
|
|
32
|
-
export type { CadDisplayContext, CadDocumentHeader, CadDocumentSession, CadDocumentSessionOptions, CadFontResolver, CadInsertUsageSummary, CadLayerMeta, CadSessionEventMap, CadSessionPhase, CadViewportDemand, CadViewportRect, CadVisibilityFilter, CadWorldBounds, CadWorldPoint, } from './session/cad-document-session';
|
|
32
|
+
export type { CadDisplayContext, CadDocumentHeader, CadDocumentSession, CadDocumentSessionOptions, CadFontResolver, CadInsertUsageSummary, CadLayerMeta, CadSessionEventMap, CadSessionLoadTiming, CadSessionPhase, CadViewportDemand, CadViewportRect, CadVisibilityFilter, CadWorldBounds, CadWorldPoint, } from './session/cad-document-session';
|
|
33
33
|
export { CAD_RENDER_NODE_EDIT_METHODS, isCadRenderNodeEditMethod } from './render-resource/cad-render-node';
|
|
34
34
|
export type { CadInsertPreviewResource, CadRenderContentChunk, CadRenderNode, } from './render-resource/cad-render-node';
|