Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OptimizeOptions

Whiteboard drawing performance optimization settings.

since

2.16.48

Hierarchy

  • OptimizeOptions

Index

Properties

useLowTaskAnimation

useLowTaskAnimation: LowTaskAnimationInterval

Sets the refresh interval for whiteboard drawing. See LowTaskAnimationInterval.

useSinglerCanvas

useSinglerCanvas: boolean

Whether to use a single canvas:

  • true: Use a single canvas and apply floating canvas optimization strategy.
  • false: (Default) Use two canvases for alternating drawing.

By default, the whiteboard uses two canvases for alternating drawing to prevent flickering on some devices during drawing. Using a single canvas for drawing can prevent redrawing and reduce performance consumption.

useTopFloatOriginCoord

useTopFloatOriginCoord: OriginCoordType

The correspondence between the position of the drawing point and the position of the floating canvas. The default is that the drawing point is located at the upper left corner of the floating canvas. See OriginCoordType.

Only effective when useSinglerCanvas is true.