@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.
- package/CHANGELOG.md +8 -0
- package/README.md +11 -0
- package/dist/index.js +324 -299
- package/dist/loader/geo-loader.d.ts +2 -0
- package/dist/session/cad-document-session.d.ts +4 -0
- package/package.json +1 -1
|
@@ -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
|
/**
|