📎 Minor docstring change.

This commit is contained in:
Andrey Antukh 2021-01-27 20:04:00 +01:00 committed by Hirunatan
parent 2c89b611b5
commit 2359abf8a5

View file

@ -569,12 +569,14 @@
(rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true})))))) (rx/of (dwc/commit-changes rchanges uchanges {:commit-local? true}))))))
(defn update-component (defn update-component
"Modify the component linked to the shape with the given id, in the current page, so that "Modify the component linked to the shape with the given id, in the
all attributes of its shapes are equal to the shape and its children. Also set all attributes current page, so that all attributes of its shapes are equal to the
of the shape untouched. shape and its children. Also set all attributes of the shape
untouched.
NOTE: It's possible that the component to update is defined in an external library file, so NOTE: It's possible that the component to update is defined in an
this function may cause to modify a file different of that the one we are currently editing." external library file, so this function may cause to modify a file
different of that the one we are currently editing."
[id] [id]
(us/assert ::us/uuid id) (us/assert ::us/uuid id)
(ptk/reify ::update-component (ptk/reify ::update-component
@ -630,10 +632,10 @@
(declare sync-file-2nd-stage) (declare sync-file-2nd-stage)
(defn sync-file (defn sync-file
"Syhchronize the given file from ghe given library. Walk through all shapes "Synchronize the given file from the given library. Walk through all
in all pages in the file that use some color, typography or component of the shapes in all pages in the file that use some color, typography or
library, and copy the new values to the shapes. Do it also for shapes inside component of the library, and copy the new values to the shapes. Do
components of the local file library." it also for shapes inside components of the local file library."
[file-id library-id] [file-id library-id]
(us/assert ::us/uuid file-id) (us/assert ::us/uuid file-id)
(us/assert ::us/uuid library-id) (us/assert ::us/uuid library-id)