mirror of
https://github.com/penpot/penpot.git
synced 2025-07-23 03:57:22 +02:00
⚡ Add thumbnail renderer
And integrate the dashboard thumbnails to use that service
This commit is contained in:
parent
64ddfa0c31
commit
d11b007795
19 changed files with 579 additions and 183 deletions
|
@ -254,7 +254,15 @@
|
|||
([tag]
|
||||
(.createElement globals/document tag))
|
||||
([ns tag]
|
||||
(.createElementNS globals/document ns tag)))
|
||||
(.createElementNS globals/document ns tag))
|
||||
([document ns tag]
|
||||
(.createElementNS document ns tag)))
|
||||
|
||||
(defn create-text
|
||||
([^js text]
|
||||
(create-text globals/document text))
|
||||
([document ^js text]
|
||||
(.createTextNode document text)))
|
||||
|
||||
(defn set-html!
|
||||
[^js el html]
|
||||
|
|
|
@ -130,6 +130,10 @@
|
|||
(map #(.item file-list %))
|
||||
(filter #(str/starts-with? (.-type %) "image/"))))))
|
||||
|
||||
(defn create-image-bitmap
|
||||
[image]
|
||||
(js/createImageBitmap image))
|
||||
|
||||
(defn request-fullscreen
|
||||
[el]
|
||||
(cond
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue