Replies: 2 comments
-
cc @mattpap for guidance on this question |
Beta Was this translation helpful? Give feedback.
0 replies
-
JS has no concept of deep cloning. Using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all,
I’d like to show an Image to which an image transform is applied client-side before rendering. The parameters of the transform are controlled by UI widgets. When writing a CustomJSTransform for this, I ran into the following issue: how do I correctly allocate a “blank” array to hold the results? The xs variable in this case holds an array of one Float64Array2d, so the output should be the same type. Deep-copying xs using JSON.parse(JSON.stringify(xs)) did not work (and was very slow). Would it be hard to add a copy() method for the objects BokehJS uses to represent 2D images?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions