4 ms·
No, the underlying flatgraph (which is used to generate the drawing commands) is cached and only updated on first call. Reset it by calling scene.updateFlatG
by falsedan 7y ago
No, the underlying flatgraph (which is used to generate the drawing commands) is cached and only updated on first call. Reset it by calling
scene.updateFlatGraph();
after adding new shapes, before updating the graph & rendering
(see https://github.com/metafizzy/zdog/blob/master/js/anchor.js#L126 https://github.com/metafizzy/zdog/blob/master/js/anchor.js#L...)
edit: made an issue https://github.com/metafizzy/zdog/issues/21 https://github.com/metafizzy/zdog/issues/21
- The_Amp_Walrus 7y agoCheers!