OptionaladdOptionaldestroyOptionaldrawReturning false skips texture invalidation only; compositing still runs. Do not return false before your canvas has been rendered at least once. Plugins with static canvases should still implement draw() and return false after first render to skip per-frame texture invalidation.
Optionaltransform
Release plugin-owned resources before the plugin canvas is destroyed.
Implementations must be idempotent because NiconiComments.destroy() may be called repeatedly by SPA lifecycles.