@fabwcie/free-drawing / utils/search
utils/search
Functions
findTexts()
findTexts(
layer,search):Text[]
Defined in: packages/free-drawing/src/utils/search.ts:25
Texts of a drawing containing a search (case and accents ignored): free texts, texts of shapes and labels of arrows, titles of frames; visible ones, in reading order (rows from top to bottom, each one from left to right)
Parameters
layer
Container
Draw layer
search
string
Searched text (spaces around it ignored)
Returns
Text[]
Texts found, none for an empty search
normalizeSearch()
normalizeSearch(
text):string
Defined in: packages/free-drawing/src/utils/search.ts:16
Text compared with a search: lower case, without accents
Parameters
text
string
Search, text of the drawing or of a command (label, group, id)
Returns
string
Text decomposed (NFD), without accents, in lower case