Skip to content

Commit

Permalink
fix page attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
sprocketc committed Feb 6, 2024
1 parent 65b23c4 commit 1fd14c8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/renderer/document/db.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,5 @@
:parent :canvas
:attrs {:width 800
:height 600
:x 0
:y 0
:fill "#ffffff"}
:children []}}})
6 changes: 5 additions & 1 deletion src/renderer/tools/page.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@
{:icon "page"
:description "The page is a top level SVG element with some extra custom
attributes."
:attrs [:overflow]})
:attrs [:x
:y
:width
:height
:overflow]})

(defmethod tools/drag :page
[{:keys [adjusted-pointer-pos adjusted-pointer-offset] :as db} e]
Expand Down

0 comments on commit 1fd14c8

Please sign in to comment.