Function onResize(action: () => void): void Register an event that runs when the canvas resizes. param action - The function to run when the event is triggered.returns The event controller.since v3000.0group Events