|
|
@@ -130,7 +130,7 @@
|
|
|
props (cond->
|
|
|
{(pu/get-pid :logseq.property/ls-type) :annotation
|
|
|
(pu/get-pid :logseq.property.pdf/hl-page) page
|
|
|
- (pu/get-pid :logseq.property/hl-color) (:color properties)}
|
|
|
+ (pu/get-pid :logseq.property.pdf/hl-color) (:color properties)}
|
|
|
|
|
|
db-base?
|
|
|
(assoc (pu/get-pid :logseq.property.pdf/hl-value) hl)
|
|
|
@@ -158,12 +158,12 @@
|
|
|
properties (cond->
|
|
|
{:block/tags :logseq.class/Pdf-annotation
|
|
|
:logseq.property/ls-type :annotation
|
|
|
- :logseq.property/hl-color (:color properties)
|
|
|
+ :logseq.property.pdf/hl-color (:color properties)
|
|
|
:logseq.property/asset (:db/id pdf-block)
|
|
|
:logseq.property.pdf/hl-page page
|
|
|
:logseq.property.pdf/hl-value hl}
|
|
|
(:image content)
|
|
|
- (assoc :logseq.property/hl-type :area
|
|
|
+ (assoc :logseq.property.pdf/hl-type :area
|
|
|
:logseq.property.pdf/hl-image (:image content)))]
|
|
|
(when (string? text)
|
|
|
(editor-handler/api-insert-new-block!
|
|
|
@@ -282,7 +282,7 @@
|
|
|
[highlight]
|
|
|
(when-let [block (db-model/get-block-by-uuid (:id highlight))]
|
|
|
(when-let [color (get-in highlight [:properties :color])]
|
|
|
- (let [k (pu/get-pid :logseq.property/hl-color)]
|
|
|
+ (let [k (pu/get-pid :logseq.property.pdf/hl-color)]
|
|
|
(property-handler/set-block-property! (state/get-current-repo) (:block/uuid block) k color)))))
|
|
|
|
|
|
(defn unlink-hl-area-image$
|