@elmethis/draw.io 0.1.6 → 0.1.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.
package/README.md CHANGED
@@ -17,8 +17,8 @@ pnpm --filter @elmethis/draw.io run build
17
17
 
18
18
  The generated configuration uses explicit `light-dark()` color pairs with
19
19
  simple adaptive colors, Elmethis color palettes and named color schemes, and
20
- the Elmethis sans-serif fonts for shapes, connectors, standalone text, and SVG
21
- font embedding.
20
+ the Elmethis sans-serif and monospace fonts for shapes, connectors, standalone
21
+ text, and SVG font embedding.
22
22
 
23
23
  ## Package Export
24
24
 
@@ -6,6 +6,11 @@
6
6
  "version": "elmethis-1",
7
7
  "defaultAdaptiveColors": "simple",
8
8
  "embedSvgFonts": true,
9
+ "shadowColor": "#000000",
10
+ "shadowOpacity": 0.1,
11
+ "shadowOffsetX": 0,
12
+ "shadowOffsetY": 0,
13
+ "shadowBlur": 2,
9
14
  "styles": [
10
15
  {
11
16
  "commonStyle": {
@@ -25,22 +30,22 @@
25
30
  "border": "4px solid"
26
31
  },
27
32
  {
28
- "title": "Display Red Surface",
29
- "fill": "light-dark(#e9dddd, #291313)",
33
+ "title": "Display Red 20% Fill",
34
+ "fill": "#ae6e6e33",
30
35
  "stroke": "#ae6e6e",
31
36
  "font": "#ae6e6e",
32
37
  "border": "4px solid"
33
38
  },
34
39
  {
35
- "title": "Display Red 20% Fill",
36
- "fill": "#ae6e6e33",
40
+ "title": "Display Red 10% Fill",
41
+ "fill": "#ae6e6e1A",
37
42
  "stroke": "#ae6e6e",
38
43
  "font": "#ae6e6e",
39
44
  "border": "4px solid"
40
45
  },
41
46
  {
42
- "title": "Display Red Transparent Fill",
43
- "fill": "none",
47
+ "title": "Display Red 5% Fill",
48
+ "fill": "#ae6e6e0D",
44
49
  "stroke": "#ae6e6e",
45
50
  "font": "#ae6e6e",
46
51
  "border": "4px solid"
@@ -53,22 +58,22 @@
53
58
  "border": "4px solid"
54
59
  },
55
60
  {
56
- "title": "Display Orange Surface",
57
- "fill": "light-dark(#ebdfdb, #3f251c)",
61
+ "title": "Display Orange 20% Fill",
62
+ "fill": "#b8816e33",
58
63
  "stroke": "#b8816e",
59
64
  "font": "#b8816e",
60
65
  "border": "4px solid"
61
66
  },
62
67
  {
63
- "title": "Display Orange 20% Fill",
64
- "fill": "#b8816e33",
68
+ "title": "Display Orange 10% Fill",
69
+ "fill": "#b8816e1A",
65
70
  "stroke": "#b8816e",
66
71
  "font": "#b8816e",
67
72
  "border": "4px solid"
68
73
  },
69
74
  {
70
- "title": "Display Orange Transparent Fill",
71
- "fill": "none",
75
+ "title": "Display Orange 5% Fill",
76
+ "fill": "#b8816e0D",
72
77
  "stroke": "#b8816e",
73
78
  "font": "#b8816e",
74
79
  "border": "4px solid"
@@ -81,22 +86,22 @@
81
86
  "border": "4px solid"
82
87
  },
83
88
  {
84
- "title": "Display Yellow Surface",
85
- "fill": "light-dark(#ebe6db, #332b19)",
89
+ "title": "Display Yellow 20% Fill",
90
+ "fill": "#b09a6633",
86
91
  "stroke": "#b09a66",
87
92
  "font": "#b09a66",
88
93
  "border": "4px solid"
89
94
  },
90
95
  {
91
- "title": "Display Yellow 20% Fill",
92
- "fill": "#b09a6633",
96
+ "title": "Display Yellow 10% Fill",
97
+ "fill": "#b09a661A",
93
98
  "stroke": "#b09a66",
94
99
  "font": "#b09a66",
95
100
  "border": "4px solid"
96
101
  },
97
102
  {
98
- "title": "Display Yellow Transparent Fill",
99
- "fill": "none",
103
+ "title": "Display Yellow 5% Fill",
104
+ "fill": "#b09a660D",
100
105
  "stroke": "#b09a66",
101
106
  "font": "#b09a66",
102
107
  "border": "4px solid"
@@ -109,22 +114,22 @@
109
114
  "border": "4px solid"
110
115
  },
111
116
  {
112
- "title": "Display Green Surface",
113
- "fill": "light-dark(#dde9e2, #15281d)",
117
+ "title": "Display Green 20% Fill",
118
+ "fill": "#65987833",
114
119
  "stroke": "#659878",
115
120
  "font": "#659878",
116
121
  "border": "4px solid"
117
122
  },
118
123
  {
119
- "title": "Display Green 20% Fill",
120
- "fill": "#65987833",
124
+ "title": "Display Green 10% Fill",
125
+ "fill": "#6598781A",
121
126
  "stroke": "#659878",
122
127
  "font": "#659878",
123
128
  "border": "4px solid"
124
129
  },
125
130
  {
126
- "title": "Display Green Transparent Fill",
127
- "fill": "none",
131
+ "title": "Display Green 5% Fill",
132
+ "fill": "#6598780D",
128
133
  "stroke": "#659878",
129
134
  "font": "#659878",
130
135
  "border": "4px solid"
@@ -137,22 +142,22 @@
137
142
  "border": "4px solid"
138
143
  },
139
144
  {
140
- "title": "Display Cyan Surface",
141
- "fill": "light-dark(#dde9e7, #203b37)",
145
+ "title": "Display Cyan 20% Fill",
146
+ "fill": "#6091a033",
142
147
  "stroke": "#6091a0",
143
148
  "font": "#6091a0",
144
149
  "border": "4px solid"
145
150
  },
146
151
  {
147
- "title": "Display Cyan 20% Fill",
148
- "fill": "#6091a033",
152
+ "title": "Display Cyan 10% Fill",
153
+ "fill": "#6091a01A",
149
154
  "stroke": "#6091a0",
150
155
  "font": "#6091a0",
151
156
  "border": "4px solid"
152
157
  },
153
158
  {
154
- "title": "Display Cyan Transparent Fill",
155
- "fill": "none",
159
+ "title": "Display Cyan 5% Fill",
160
+ "fill": "#6091a00D",
156
161
  "stroke": "#6091a0",
157
162
  "font": "#6091a0",
158
163
  "border": "4px solid"
@@ -165,22 +170,22 @@
165
170
  "border": "4px solid"
166
171
  },
167
172
  {
168
- "title": "Display Blue Surface",
169
- "fill": "light-dark(#dde2e9, #242d3e)",
173
+ "title": "Display Blue 20% Fill",
174
+ "fill": "#68779f33",
170
175
  "stroke": "#68779f",
171
176
  "font": "#68779f",
172
177
  "border": "4px solid"
173
178
  },
174
179
  {
175
- "title": "Display Blue 20% Fill",
176
- "fill": "#68779f33",
180
+ "title": "Display Blue 10% Fill",
181
+ "fill": "#68779f1A",
177
182
  "stroke": "#68779f",
178
183
  "font": "#68779f",
179
184
  "border": "4px solid"
180
185
  },
181
186
  {
182
- "title": "Display Blue Transparent Fill",
183
- "fill": "none",
187
+ "title": "Display Blue 5% Fill",
188
+ "fill": "#68779f0D",
184
189
  "stroke": "#68779f",
185
190
  "font": "#68779f",
186
191
  "border": "4px solid"
@@ -193,22 +198,22 @@
193
198
  "border": "4px solid"
194
199
  },
195
200
  {
196
- "title": "Display Purple Surface",
197
- "fill": "light-dark(#e3dde9, #271836)",
201
+ "title": "Display Purple 20% Fill",
202
+ "fill": "#8d799f33",
198
203
  "stroke": "#8d799f",
199
204
  "font": "#8d799f",
200
205
  "border": "4px solid"
201
206
  },
202
207
  {
203
- "title": "Display Purple 20% Fill",
204
- "fill": "#8d799f33",
208
+ "title": "Display Purple 10% Fill",
209
+ "fill": "#8d799f1A",
205
210
  "stroke": "#8d799f",
206
211
  "font": "#8d799f",
207
212
  "border": "4px solid"
208
213
  },
209
214
  {
210
- "title": "Display Purple Transparent Fill",
211
- "fill": "none",
215
+ "title": "Display Purple 5% Fill",
216
+ "fill": "#8d799f0D",
212
217
  "stroke": "#8d799f",
213
218
  "font": "#8d799f",
214
219
  "border": "4px solid"
@@ -221,22 +226,22 @@
221
226
  "border": "4px solid"
222
227
  },
223
228
  {
224
- "title": "Display Magenta Surface",
225
- "fill": "light-dark(#eadce4, #3c1f2f)",
229
+ "title": "Display Magenta 20% Fill",
230
+ "fill": "#b1739633",
226
231
  "stroke": "#b17396",
227
232
  "font": "#b17396",
228
233
  "border": "4px solid"
229
234
  },
230
235
  {
231
- "title": "Display Magenta 20% Fill",
232
- "fill": "#b1739633",
236
+ "title": "Display Magenta 10% Fill",
237
+ "fill": "#b173961A",
233
238
  "stroke": "#b17396",
234
239
  "font": "#b17396",
235
240
  "border": "4px solid"
236
241
  },
237
242
  {
238
- "title": "Display Magenta Transparent Fill",
239
- "fill": "none",
243
+ "title": "Display Magenta 5% Fill",
244
+ "fill": "#b173960D",
240
245
  "stroke": "#b17396",
241
246
  "font": "#b17396",
242
247
  "border": "4px solid"
@@ -329,8 +334,16 @@
329
334
  "colorNames": {
330
335
  "242629": "Slate 900",
331
336
  "271836": "Purple 900",
337
+ "274232": "Green 800",
332
338
  "291313": "Red 900",
339
+ "472727": "Red 800",
340
+ "566385": "Blue 600",
341
+ "573247": "Magenta 800",
342
+ "574668": "Purple 700",
333
343
  "659878": "Green 500",
344
+ "744760": "Magenta 700",
345
+ "795143": "Orange 700",
346
+ "986858": "Orange 600",
334
347
  "D7D9E1": "Slate 100",
335
348
  "B0B5BE": "Slate 200",
336
349
  "949BA7": "Slate 300",
@@ -349,34 +362,74 @@
349
362
  "8E7356": "Gold 800",
350
363
  "6E583F": "Gold 900",
351
364
  "E9DDDD": "Red 100",
365
+ "DBC1C0": "Red 200",
366
+ "CDA5A4": "Red 300",
367
+ "BE8989": "Red 400",
352
368
  "AE6E6E": "Red 500",
353
- "LIGHT-DARK(#E9DDDD, #291313)": "Red Surface",
369
+ "8A5555": "Red 600",
370
+ "683E3E": "Red 700",
371
+ "LIGHT-DARK(#E4DFDF, #211817)": "Red Surface",
354
372
  "EBDFDB": "Orange 100",
373
+ "DFC7BF": "Orange 200",
374
+ "D2AFA3": "Orange 300",
375
+ "C59888": "Orange 400",
355
376
  "B8816E": "Orange 500",
377
+ "5B3A2F": "Orange 800",
356
378
  "3F251C": "Orange 900",
357
- "LIGHT-DARK(#EBDFDB, #3F251C)": "Orange Surface",
379
+ "LIGHT-DARK(#E6E1DF, #352A26)": "Orange Surface",
358
380
  "EBE6DB": "Yellow 100",
381
+ "DCD3BE": "Yellow 200",
382
+ "CDC0A0": "Yellow 300",
383
+ "BFAD83": "Yellow 400",
359
384
  "B09A66": "Yellow 500",
385
+ "8E7C51": "Yellow 600",
386
+ "6E603D": "Yellow 700",
387
+ "50442B": "Yellow 800",
360
388
  "332B19": "Yellow 900",
361
- "LIGHT-DARK(#EBE6DB, #332B19)": "Yellow Surface",
389
+ "LIGHT-DARK(#E8E6E2, #2F2C24)": "Yellow Surface",
362
390
  "DDE9E2": "Green 100",
391
+ "BFD4C7": "Green 200",
392
+ "A1C0AC": "Green 300",
393
+ "83AC92": "Green 400",
394
+ "4F7A5F": "Green 600",
395
+ "3B5D48": "Green 700",
363
396
  "15281D": "Green 900",
364
- "LIGHT-DARK(#DDE9E2, #15281D)": "Green Surface",
397
+ "LIGHT-DARK(#E2E7E4, #1E2521)": "Green Surface",
365
398
  "DDE9E7": "Cyan 100",
399
+ "BDD2D5": "Cyan 200",
400
+ "9EBCC3": "Cyan 300",
401
+ "7FA6B1": "Cyan 400",
366
402
  "6091A0": "Cyan 500",
403
+ "4F7A84": "Cyan 600",
404
+ "3F6469": "Cyan 700",
405
+ "2F4F4F": "Cyan 800",
367
406
  "203B37": "Cyan 900",
368
- "LIGHT-DARK(#DDE9E7, #203B37)": "Cyan Surface",
407
+ "LIGHT-DARK(#E2E7E6, #2D3836)": "Cyan Surface",
369
408
  "DDE2E9": "Blue 100",
409
+ "BEC6D6": "Blue 200",
410
+ "A1ABC4": "Blue 300",
411
+ "8491B2": "Blue 400",
370
412
  "68779F": "Blue 500",
413
+ "45516D": "Blue 700",
414
+ "343E55": "Blue 800",
371
415
  "242D3E": "Blue 900",
372
- "LIGHT-DARK(#DDE2E9, #242D3E)": "Blue Surface",
416
+ "LIGHT-DARK(#E0E2E5, #292D34)": "Blue Surface",
373
417
  "E3DDE9": "Purple 100",
418
+ "CDC3D6": "Purple 200",
419
+ "B7AAC4": "Purple 300",
420
+ "A291B1": "Purple 400",
374
421
  "8D799F": "Purple 500",
375
- "LIGHT-DARK(#E3DDE9, #271836)": "Purple Surface",
422
+ "725F83": "Purple 600",
423
+ "3E2E4F": "Purple 800",
424
+ "LIGHT-DARK(#E1DFE4, #231D2A)": "Purple Surface",
376
425
  "EADCE4": "Magenta 100",
426
+ "DCC1D0": "Magenta 200",
427
+ "CEA7BC": "Magenta 300",
428
+ "C08DA9": "Magenta 400",
377
429
  "B17396": "Magenta 500",
430
+ "925D7A": "Magenta 600",
378
431
  "3C1F2F": "Magenta 900",
379
- "LIGHT-DARK(#EADCE4, #3C1F2F)": "Magenta Surface",
432
+ "LIGHT-DARK(#E4DFE2, #32262C)": "Magenta Surface",
380
433
  "LIGHT-DARK(#949BA7, #949BA7)": "Neutral Weak",
381
434
  "LIGHT-DARK(#6C7483, #B0B5BE)": "Neutral",
382
435
  "LIGHT-DARK(#555B67, #D7D9E1)": "Neutral Strong",
@@ -395,23 +448,30 @@
395
448
  {
396
449
  "fontFamily": "Zen Kaku Gothic New",
397
450
  "fontUrl": "https://fonts.googleapis.com/css?family=Zen+Kaku+Gothic+New"
451
+ },
452
+ {
453
+ "fontFamily": "DM Mono",
454
+ "fontUrl": "https://fonts.googleapis.com/css?family=DM+Mono"
398
455
  }
399
456
  ],
400
- "defaultTextStyle": "text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;fontFamily=\"DM Sans\", \"Zen Kaku Gothic New\", -apple-system, BlinkMacSystemFont, \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif;fontSize=16;fontColor=light-dark(#6c7483, #b0b5be);fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew;",
457
+ "defaultTextStyle": "text;html=1;whiteSpace=wrap;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;rounded=0;fontFamily=\"DM Sans\", \"Zen Kaku Gothic New\", -apple-system, BlinkMacSystemFont, \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif;fontSize=16;fontColor=light-dark(#6c7483, #b0b5be);fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew%7CDM%2BMono;",
401
458
  "defaultVertexStyle": {
402
459
  "fontFamily": "\"DM Sans\", \"Zen Kaku Gothic New\", -apple-system, BlinkMacSystemFont, \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif",
403
460
  "fontSize": "16",
404
461
  "fontColor": "light-dark(#6c7483, #b0b5be)",
405
- "fontSource": "https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew"
462
+ "fontSource": "https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew%7CDM%2BMono",
463
+ "spacing": "8"
406
464
  },
407
465
  "defaultEdgeStyle": {
408
466
  "fontFamily": "\"DM Sans\", \"Zen Kaku Gothic New\", -apple-system, BlinkMacSystemFont, \"Hiragino Kaku Gothic ProN\", Meiryo, sans-serif",
409
467
  "fontSize": "16",
410
468
  "fontColor": "light-dark(#6c7483, #b0b5be)",
411
- "fontSource": "https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew",
469
+ "fontSource": "https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DDM%2BSans%7CZen%2BKaku%2BGothic%2BNew%7CDM%2BMono",
412
470
  "strokeColor": "light-dark(#6c7483, #b0b5be)",
413
471
  "startFillColor": "light-dark(#6c7483, #b0b5be)",
414
472
  "endFillColor": "light-dark(#6c7483, #b0b5be)",
473
+ "sourcePerimeterSpacing": "8",
474
+ "targetPerimeterSpacing": "8",
415
475
  "rounded": "1",
416
476
  "jumpStyle": "gap",
417
477
  "jumpSize": "8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/draw.io",
3
- "version": "0.1.6",
3
+ "version": "0.1.9",
4
4
  "author": {
5
5
  "name": "Ikuma Yamashita",
6
6
  "url": "https://www.ikuma.cloud/"
@@ -33,23 +33,20 @@
33
33
  },
34
34
  "sideEffects": false,
35
35
  "devDependencies": {
36
- "@eslint/js": "latest",
37
- "@types/node": "26.2.0",
38
- "eslint": "^10.9.0",
39
- "globals": "^17.11.0",
40
- "jiti": "2.7.0",
41
- "prettier": "3.9.6",
42
- "tsx": "^4.23.12",
36
+ "@types/node": "26.6.5",
37
+ "oxfmt": "0.80.0",
38
+ "oxlint": "1.95.0",
39
+ "oxlint-tsgolint": "7.0.2008",
40
+ "tsx": "^4.23.15",
43
41
  "typescript": "5.9.3",
44
- "typescript-eslint": "^8.67.0",
45
- "@elmethis/core": "^0.24.0"
42
+ "@elmethis/core": "^0.25.0"
46
43
  },
47
44
  "scripts": {
48
45
  "build": "tsx scripts/build-drawio-config.ts",
49
46
  "build.types": "tsc --noEmit",
50
- "fmt": "prettier --write ./scripts ./README.md",
51
- "fmt.check": "prettier --check ./scripts ./README.md",
52
- "lint": "eslint \"scripts/**/*.ts\" eslint.config.ts",
47
+ "fmt": "oxfmt --write ./scripts ./README.md",
48
+ "fmt.check": "oxfmt --check ./scripts ./README.md",
49
+ "lint": "oxlint --type-aware --report-unused-disable-directives-severity=error --deny-warnings scripts",
53
50
  "check": "pnpm run fmt.check && pnpm run lint && pnpm run build.types && pnpm run build",
54
51
  "check.ci": "pnpm run check"
55
52
  }