updatesSize

← All Butter documentation
Parameters
updatesSize(): this

You may want to determine the size of your canvas based on the size of content you load by referring to its size in createCavas. If you do so, when you create or load the content, chain .updatesSize() to the end of the call, e.g. let img = loadImage('').updatesSize(). It will return the original return value of your load* function call, but marked as size-updating.

For more info, check out: