You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-9Lines changed: 16 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,28 +170,34 @@ on the root node.
170
170
171
171
#### adjustClonedNode
172
172
173
-
A function that will be invoked on each node as they are cloned. Useful to adjust nodes in any way needed before the conversion.
174
-
Note that this be invoked before the onclone callback.
175
-
The handler gets the original node, the cloned node, and a boolean that says if we've cloned the children already (so you can handle either before or after)
173
+
A function that will be invoked on each node as they are cloned. Useful to adjust nodes in
174
+
any way needed before the conversion. Note that this be invoked before the onclone
175
+
callback. The handler gets the original node, the cloned node, and a boolean that says if
176
+
we've cloned the children already (so you can handle either before or after)
A function taking the cloned and modified DOM node as argument. It allows to make final adjustements to the elements before rendering, on the whole clone, after all elements have been individually cloned. Note that this will be invoked after all the onclone callbacks have been fired.
193
+
A function taking the cloned and modified DOM node as argument. It allows to make final
194
+
adjustements to the elements before rendering, on the whole clone, after all elements have
195
+
been individually cloned. Note that this will be invoked after all the onclone callbacks
196
+
have been fired.
193
197
194
-
The cloned DOM might differ a lot from the original DOM, for example canvas will be replaced with image tags, some class might have changed, the style are inlined. It can be useful to log the clone to get a better senses of the transformations.
198
+
The cloned DOM might differ a lot from the original DOM, for example canvas will be
199
+
replaced with image tags, some class might have changed, the style are inlined. It can be
200
+
useful to log the clone to get a better senses of the transformations.
0 commit comments