desck 0.4.2 → 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/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,
package/.gitlab-ci.yml DELETED
@@ -1,21 +0,0 @@
1
- # The Docker image that will be used to build your app
2
- image: node:lts
3
- # Functions that should be executed before the build script is run
4
-
5
- before_script:
6
- - npm install -g elm
7
- pages:
8
- cache:
9
- paths:
10
- - elm-stuff/
11
- script:
12
- - elm make src/Main.elm --output=public/main.js --optimize
13
- - cp README.md public/
14
- artifacts:
15
- paths:
16
- # The folder that contains the files to be exposed at the Page URL
17
- - public
18
- rules:
19
- # This ensures that only pushes to the default branch will trigger
20
- # a pages deploy
21
- - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
package/elm.json DELETED
@@ -1,39 +0,0 @@
1
- {
2
- "type": "application",
3
- "source-directories": [
4
- "src"
5
- ],
6
- "elm-version": "0.19.2",
7
- "dependencies": {
8
- "direct": {
9
- "NoRedInk/elm-json-decode-pipeline": "1.0.1",
10
- "avh4/elm-color": "1.0.0",
11
- "elm/browser": "1.0.2",
12
- "elm/core": "1.0.5",
13
- "elm/file": "1.0.5",
14
- "elm/html": "1.0.0",
15
- "elm/json": "1.1.3",
16
- "elm/random": "1.0.0",
17
- "elm/svg": "1.0.1",
18
- "elm-community/list-extra": "8.7.0",
19
- "elm-community/random-extra": "3.2.0",
20
- "elm-explorations/linear-algebra": "1.0.3",
21
- "matthewsj/elm-ordering": "2.0.0",
22
- "pablohirafuji/elm-markdown": "2.0.5",
23
- "rtfeldman/elm-hex": "1.0.0",
24
- "zaboco/elm-draggable": "5.0.0"
25
- },
26
- "indirect": {
27
- "elm/bytes": "1.0.8",
28
- "elm/regex": "1.0.0",
29
- "elm/time": "1.0.0",
30
- "elm/url": "1.0.0",
31
- "elm/virtual-dom": "1.0.3",
32
- "mpizenberg/elm-pointer-events": "4.0.2"
33
- }
34
- },
35
- "test-dependencies": {
36
- "direct": {},
37
- "indirect": {}
38
- }
39
- }
package/justfile DELETED
@@ -1,13 +0,0 @@
1
- set shell := ["bash", "-c"]
2
-
3
- build:
4
- elm make src/Main.elm --output=public/main.js --optimize
5
-
6
- run:
7
- node server.cjs
8
-
9
- build-debug:
10
- elm make src/Main.elm --output=public/main.js --debug
11
-
12
- dev:
13
- node server.cjs & ls src/* | entr just build-debug