Options when destroying a text object. Controls whether associated text styles should be cleaned up along with the text object itself.
// Basic text cleanuptext.destroy({ style: false }); // Keep style for reusetext.destroy({ style: true }); // Destroy style as well Copy
// Basic text cleanuptext.destroy({ style: false }); // Keep style for reusetext.destroy({ style: true }); // Destroy style as well
Optional
Whether to destroy the text style object along with the text. Use carefully with shared styles.
false Copy
false
Options when destroying a text object. Controls whether associated text styles should be cleaned up along with the text object itself.