mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
fix(pdf): support browser to insert pdf highlight into page blocks
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
(:require [promesa.core :as p]
|
||||
[cljs-bean.core :as bean]
|
||||
[frontend.util :as util]
|
||||
[frontend.config :as config]
|
||||
[frontend.state :as state]
|
||||
["/frontend/extensions/pdf/utils" :as js-utils]
|
||||
[datascript.core :as d]
|
||||
[clojure.string :as string]))
|
||||
@@ -14,6 +16,11 @@
|
||||
[filename]
|
||||
(and filename (string? filename) (string/starts-with? filename "hls__")))
|
||||
|
||||
(defn support-area?
|
||||
[]
|
||||
(and (util/electron?)
|
||||
(not (config/db-based-graph? (state/get-current-repo)))))
|
||||
|
||||
(defn get-bounding-rect
|
||||
[rects]
|
||||
(bean/->clj (js-utils/getBoundingRect (bean/->js rects))))
|
||||
|
||||
Reference in New Issue
Block a user