@mlightcad/libredwg-web 0.7.8 → 0.7.9

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.
@@ -1,4 +0,0 @@
1
- export * from '../database';
2
- export * from './libredwg';
3
- export * from '../types';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- export * from '../database';
2
- export * from './libredwg';
3
- export * from '../types';
4
- //# sourceMappingURL=index.js.map
@@ -1,13 +0,0 @@
1
- import type { MainModule } from '../../wasm64/libredwg-web';
2
- import createModule from '../../wasm64/libredwg-web.js';
3
- import { DwgThumbnailImageType, LibreDwgCore } from '../libredwg-core';
4
- export { createModule };
5
- export { DwgThumbnailImageType };
6
- export type { DwgThumbnail } from '../libredwg-core';
7
- export type LibreDwgEx = LibreDwg & MainModule;
8
- export declare class LibreDwg extends LibreDwgCore {
9
- static instance: LibreDwgEx;
10
- static createByWasmInstance(wasmInstance: MainModule): LibreDwgEx;
11
- static create(filepath?: string): Promise<LibreDwgEx>;
12
- }
13
- //# sourceMappingURL=libredwg.d.ts.map
@@ -1,23 +0,0 @@
1
- import createModule from '../../wasm64/libredwg-web.js';
2
- import { DwgThumbnailImageType, LibreDwgCore } from '../libredwg-core';
3
- export { createModule };
4
- export { DwgThumbnailImageType };
5
- export class LibreDwg extends LibreDwgCore {
6
- static instance;
7
- static createByWasmInstance(wasmInstance) {
8
- return this.instance == null
9
- ? new LibreDwg(wasmInstance)
10
- : this.instance;
11
- }
12
- static async create(filepath) {
13
- const wasmInstance = filepath == null
14
- ? await createModule()
15
- : await createModule({
16
- locateFile: (filename) => {
17
- return `${filepath}/${filename}`;
18
- }
19
- });
20
- return this.createByWasmInstance(wasmInstance);
21
- }
22
- }
23
- //# sourceMappingURL=libredwg.js.map
@@ -1,4 +0,0 @@
1
- export declare const isModelSpace: (name: string) => boolean | "";
2
- export declare const isPaperSpace: (name: string) => boolean | "";
3
- export declare const idToString: (id: number | bigint) => string;
4
- //# sourceMappingURL=common.d.ts.map
@@ -1,12 +0,0 @@
1
- const MODEL_SPACE = '*MODEL_SPACE';
2
- const MODEL_SPACE_PREFIX = '*PAPER_SPACE';
3
- export const isModelSpace = (name) => {
4
- return name && name.toUpperCase() == MODEL_SPACE;
5
- };
6
- export const isPaperSpace = (name) => {
7
- return name && name.toUpperCase().startsWith(MODEL_SPACE_PREFIX);
8
- };
9
- export const idToString = (id) => {
10
- return id.toString(16).toUpperCase();
11
- };
12
- //# sourceMappingURL=common.js.map
@@ -1,2 +0,0 @@
1
- export * from './common';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './common';
2
- //# sourceMappingURL=index.js.map