desck 0.4.3 → 0.4.4
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/desck.cjs +1 -1
- package/package.json +3 -4
- package/public/script.js +6 -2
- package/settings.json +10 -0
package/desck.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
require(
|
|
2
|
+
require(`${__dirname}/server.cjs`);
|
package/package.json
CHANGED
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desck",
|
|
3
|
-
"
|
|
3
|
+
"author": "Akos Plesznivy",
|
|
4
|
+
"version": "0.4.4",
|
|
4
5
|
"description": "A card layout editor made for creating example images for our card games using the standard deck.",
|
|
5
6
|
"main": "server.cjs",
|
|
6
7
|
"scripts": {
|
|
7
8
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
9
|
"build": "elm make src/Main.elm --output=public/main.js --optimize && cp README.md public/",
|
|
9
|
-
"prepare": "npm run build",
|
|
10
10
|
"prepack": "npm run build",
|
|
11
|
-
"postinstall": "npm run build",
|
|
12
11
|
"start": "node server.cjs"
|
|
13
12
|
},
|
|
14
|
-
"author": "Akos Plesznivy",
|
|
15
13
|
"license": "ISC",
|
|
16
14
|
"dependencies": {
|
|
17
15
|
"express": "^4.21.1",
|
|
@@ -23,6 +21,7 @@
|
|
|
23
21
|
"./public/",
|
|
24
22
|
"./src/",
|
|
25
23
|
"./server.cjs",
|
|
24
|
+
"./settings.json",
|
|
26
25
|
"./desck.cjs"
|
|
27
26
|
],
|
|
28
27
|
"bin": {
|
package/public/script.js
CHANGED
|
@@ -134,13 +134,13 @@ function exportSymbols(settings) {
|
|
|
134
134
|
|
|
135
135
|
const backface = svg.querySelector("#backface");
|
|
136
136
|
|
|
137
|
-
if (settings.stripBackface) {
|
|
137
|
+
if (backface && settings.stripBackface) {
|
|
138
138
|
backface.id = null;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
let data = new XMLSerializer().serializeToString(svg.querySelector("#defs"));
|
|
142
142
|
|
|
143
|
-
if (settings.stripBackface) {
|
|
143
|
+
if (backface && settings.stripBackface) {
|
|
144
144
|
backface.id = "backface";
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -453,6 +453,10 @@ async function init() {
|
|
|
453
453
|
// "./svg/backface.svg",
|
|
454
454
|
// document.querySelector(symbol_container),
|
|
455
455
|
// );
|
|
456
|
+
// loadSymbolsInto(
|
|
457
|
+
// "./svg/backface.svg",
|
|
458
|
+
// document.querySelector(symbol_container),
|
|
459
|
+
// );
|
|
456
460
|
|
|
457
461
|
let mods = {
|
|
458
462
|
ctrl: false,
|