@nebula-spatial/cad-loader 0.2.0 → 0.2.2

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.
@@ -28,6 +28,8 @@ export interface LoadExternalVariantDeltaOptions {
28
28
  signal?: AbortSignal;
29
29
  beforeTextAppend?: (texts: readonly TextEntity[]) => void | Promise<void>;
30
30
  hiddenInstanceIds?: readonly number[];
31
+ workerUrl?: string | URL;
32
+ workerFactory?: () => Worker;
31
33
  externalVariantFetchSource?: ExternalVariantFetchSource;
32
34
  externalVariantBuffers: ReadonlyMap<number, ArrayBuffer>;
33
35
  requiredExternalVariantIds: readonly number[];
@@ -143,6 +143,10 @@ export interface CadDocumentSessionOptions {
143
143
  readonly documentKey?: string;
144
144
  readonly filename?: string;
145
145
  readonly loadAnnotations?: boolean;
146
+ /** Override the package-relative geometry preparation Worker URL. */
147
+ readonly workerUrl?: string | URL;
148
+ /** Create the geometry preparation Worker. Takes precedence over `workerUrl`. */
149
+ readonly workerFactory?: () => Worker;
146
150
  readonly fontResolver?: CadFontResolver;
147
151
  readonly resolveTextFont?: ResolveTextFont;
148
152
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nebula-spatial/cad-loader",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Browser-side DXB3/DXBS CAD pack loader runtime",
5
5
  "license": "ISC",
6
6
  "engines": {