fix: multiple fixes related to lookup-by-name

- only use it for user properties
- don't use create ident fn to lookup names
- fixed get-area-block-asset-url which didn't work for db graphs without
  the frontend
This commit is contained in:
Gabriel Horner
2024-05-02 15:14:01 -04:00
parent 3df9b595ea
commit 24c48e7a87
6 changed files with 27 additions and 28 deletions

View File

@@ -4,9 +4,7 @@
[frontend.util :as util]
["/frontend/extensions/pdf/utils" :as js-utils]
[datascript.core :as d]
[logseq.publishing.db :as publish-db]
[clojure.string :as string]
[frontend.handler.property.util :as pu]))
[clojure.string :as string]))
(defonce MAX-SCALE 5.0)
(defonce MIN-SCALE 0.25)
@@ -16,9 +14,6 @@
[filename]
(and filename (string? filename) (string/starts-with? filename "hls__")))
(def get-area-block-asset-url
#(publish-db/get-area-block-asset-url %1 %2 {:prop-lookup-fn pu/lookup-by-name}))
(defn get-bounding-rect
[rects]
(bean/->clj (js-utils/getBoundingRect (bean/->js rects))))