Selaa lähdekoodia

fix: demo elements

Konstantinos Kaloutas 3 vuotta sitten
vanhempi
sitoutus
c91cdc6c1b
2 muutettua tiedostoa jossa 6 lisäystä ja 7 poistoa
  1. 4 5
      tldraw/cljs-demo/src/main/playground/tldraw.cljs
  2. 2 2
      tldraw/demo/src/App.jsx

+ 4 - 5
tldraw/cljs-demo/src/main/playground/tldraw.cljs

@@ -18,8 +18,8 @@
        "scale" [1 1],
        "label" "",
        "id" "0jy4JuM61pS9QQthBDme-",
-       "stroke" "#fcb0b0",
-       "fill" "#ffffff",
+       "stroke" "",
+       "fill" "",
        "strokeWidth" 1,
        "type" "line",
        "decorations" {"end" "arrow"},
@@ -33,8 +33,8 @@
        "collapsedHeight" 0,
        "scale" [1 1],
        "id" "hRp0fnc0i2BZIjEbZqO6_",
-       "stroke" "var(--ls-primary-text-color)",
-       "fill" "var(--ls-secondary-background-color)",
+       "stroke" "",
+       "fill" "",
        "strokeWidth" 2,
        "type" "logseq-portal",
        "nonce" 1655952865192,
@@ -66,4 +66,3 @@
   (tldraw/App (clj->js {:PageComponent test-comp
                         :onPersist on-persist
                         :model model})))
-

+ 2 - 2
tldraw/demo/src/App.jsx

@@ -30,8 +30,8 @@ const documentModel = onLoad() ?? {
           parentId: 'page1',
           point: [369.109375, 170.5546875],
           size: [0, 0],
-          stroke: '#000000',
-          fill: '#ffffff',
+          stroke: '',
+          fill: '',
           strokeWidth: 2,
           opacity: 1,
           pageId: 'aaasssdddfff',