onResize(action: ()=>void): void Register an event that runs when the canvas resizes.paramaction- The function to run when the event is triggered.returnsThe event controller.sincev3000.0groupEvents