@mlightcad/cad-simple-viewer-cli 1.6.1 → 1.6.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.
@@ -1,87 +1,87 @@
1
- {
2
- "fixtureDrawing": "https://cdn.jsdelivr.net/gh/mlightcad/cad-data@main/data/canteen.dwg",
3
- "defaultOutputDir": "tmp/examples-gallery",
4
- "examples": [
5
- {
6
- "id": "create-drawing-dxf",
7
- "title": "Create drawing -> DXF",
8
- "description": "qnew, draw a closed rectangle with LINE, export DXF. No input file.",
9
- "script": "create-drawing-dxf.scr",
10
- "mode": "write",
11
- "inputKind": "none",
12
- "runnable": true
13
- },
14
- {
15
- "id": "create-shapes-dxf",
16
- "title": "Create shapes -> DXF",
17
- "description": "qnew, draw a rectangle and a circle, export DXF.",
18
- "script": "create-shapes-dxf.scr",
19
- "mode": "write",
20
- "inputKind": "none",
21
- "runnable": true
22
- },
23
- {
24
- "id": "create-drawing-png",
25
- "title": "Create drawing -> PNG",
26
- "description": "qnew, draw geometry, zoom extents, export PNG.",
27
- "script": "create-drawing-png.scr",
28
- "mode": "write",
29
- "inputKind": "none",
30
- "runnable": true
31
- },
32
- {
33
- "id": "export-png",
34
- "title": "Export PNG",
35
- "description": "Zoom extents and export the drawing as PNG (long side 2048).",
36
- "script": "export-png.scr",
37
- "mode": "read",
38
- "inputKind": "file",
39
- "runnable": true
40
- },
41
- {
42
- "id": "export-html",
43
- "title": "Export HTML",
44
- "description": "Export a self-contained offline HTML viewer (-chtml).",
45
- "script": "export-html.scr",
46
- "mode": "read",
47
- "inputKind": "file",
48
- "runnable": true
49
- },
50
- {
51
- "id": "export-dxf",
52
- "title": "Export DXF",
53
- "description": "Convert the open drawing to DXF (cdxf).",
54
- "script": "export-dxf.scr",
55
- "mode": "read",
56
- "inputKind": "file",
57
- "runnable": true
58
- },
59
- {
60
- "id": "freeze-layer-png",
61
- "title": "Layer off -> PNG",
62
- "description": "Turn off a layer with -LAYER, then export PNG. Edit LAYER_NAME in the script first.",
63
- "script": "freeze-layer-png.scr",
64
- "mode": "write",
65
- "inputKind": "file",
66
- "runnable": true
67
- },
68
- {
69
- "id": "batch-export-png",
70
- "title": "Batch export PNG",
71
- "description": "Scan a folder of DWG/DXF files and export each to PNG.",
72
- "script": "batch-export-png.mjs",
73
- "kind": "batch",
74
- "inputKind": "directory",
75
- "runnable": true
76
- },
77
- {
78
- "id": "batch-export-html",
79
- "title": "Batch export HTML",
80
- "description": "Scan a folder and export each drawing to HTML.",
81
- "script": "batch-export-html.mjs",
82
- "kind": "batch",
83
- "inputKind": "directory",
84
- "runnable": true
85
- }
86
- ]
87
- }
1
+ {
2
+ "fixtureDrawing": "https://cdn.jsdelivr.net/gh/mlightcad/cad-data@main/data/canteen.dwg",
3
+ "defaultOutputDir": "tmp/examples-gallery",
4
+ "examples": [
5
+ {
6
+ "id": "create-drawing-dxf",
7
+ "title": "Create drawing -> DXF",
8
+ "description": "qnew, draw a closed rectangle with LINE, export DXF. No input file.",
9
+ "script": "create-drawing-dxf.scr",
10
+ "mode": "write",
11
+ "inputKind": "none",
12
+ "runnable": true
13
+ },
14
+ {
15
+ "id": "create-shapes-dxf",
16
+ "title": "Create shapes -> DXF",
17
+ "description": "qnew, draw a rectangle and a circle, export DXF.",
18
+ "script": "create-shapes-dxf.scr",
19
+ "mode": "write",
20
+ "inputKind": "none",
21
+ "runnable": true
22
+ },
23
+ {
24
+ "id": "create-drawing-png",
25
+ "title": "Create drawing -> PNG",
26
+ "description": "qnew, draw geometry, zoom extents, export PNG.",
27
+ "script": "create-drawing-png.scr",
28
+ "mode": "write",
29
+ "inputKind": "none",
30
+ "runnable": true
31
+ },
32
+ {
33
+ "id": "export-png",
34
+ "title": "Export PNG",
35
+ "description": "Zoom extents and export the drawing as PNG (long side 2048).",
36
+ "script": "export-png.scr",
37
+ "mode": "read",
38
+ "inputKind": "file",
39
+ "runnable": true
40
+ },
41
+ {
42
+ "id": "export-html",
43
+ "title": "Export HTML",
44
+ "description": "Export a self-contained offline HTML viewer (-chtml).",
45
+ "script": "export-html.scr",
46
+ "mode": "read",
47
+ "inputKind": "file",
48
+ "runnable": true
49
+ },
50
+ {
51
+ "id": "export-dxf",
52
+ "title": "Export DXF",
53
+ "description": "Convert the open drawing to DXF (cdxf).",
54
+ "script": "export-dxf.scr",
55
+ "mode": "read",
56
+ "inputKind": "file",
57
+ "runnable": true
58
+ },
59
+ {
60
+ "id": "freeze-layer-png",
61
+ "title": "Layer off -> PNG",
62
+ "description": "Turn off a layer with -LAYER, then export PNG. Edit LAYER_NAME in the script first.",
63
+ "script": "freeze-layer-png.scr",
64
+ "mode": "write",
65
+ "inputKind": "file",
66
+ "runnable": true
67
+ },
68
+ {
69
+ "id": "batch-export-png",
70
+ "title": "Batch export PNG",
71
+ "description": "Scan a folder of DWG/DXF files and export each to PNG.",
72
+ "script": "batch-export-png.mjs",
73
+ "kind": "batch",
74
+ "inputKind": "directory",
75
+ "runnable": true
76
+ },
77
+ {
78
+ "id": "batch-export-html",
79
+ "title": "Batch export HTML",
80
+ "description": "Scan a folder and export each drawing to HTML.",
81
+ "script": "batch-export-html.mjs",
82
+ "kind": "batch",
83
+ "inputKind": "directory",
84
+ "runnable": true
85
+ }
86
+ ]
87
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/cad-simple-viewer-cli",
3
- "version": "1.6.1",
3
+ "version": "1.6.3",
4
4
  "description": "AcCoreConsole-style headless CLI: run .scr command scripts against DXF/DWG drawings",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -42,15 +42,15 @@
42
42
  "script"
43
43
  ],
44
44
  "dependencies": {
45
- "@mlightcad/data-model": "^1.13.0",
46
- "@mlightcad/libredwg-converter": "^3.13.0",
45
+ "@mlightcad/data-model": "^1.14.2",
46
+ "@mlightcad/libredwg-converter": "^3.14.2",
47
47
  "@mlightcad/mtext-renderer": "^0.12.4",
48
48
  "commander": "^12.1.0",
49
49
  "playwright": "^1.49.1",
50
- "@mlightcad/cad-pdf-plugin": "1.6.1",
51
- "@mlightcad/cad-html-plugin": "1.6.1",
52
- "@mlightcad/cad-simple-viewer": "1.6.1",
53
- "@mlightcad/cad-svg-plugin": "1.6.1"
50
+ "@mlightcad/cad-pdf-plugin": "1.6.3",
51
+ "@mlightcad/cad-svg-plugin": "1.6.3",
52
+ "@mlightcad/cad-simple-viewer": "1.6.3",
53
+ "@mlightcad/cad-html-plugin": "1.6.3"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/node": "^20.14.9",