Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxDrawingCanvasDirective

Drawing Canvas Directive

See the ngx3js docs page for details. See the ngx directives page for a live demo.

<canvas ngx3jsDrawingCanvas
[clearColor]="'#ffffff'"
[lineColor]="'#000000'"
/>

Hierarchy

  • NgxDrawingCanvasDirective

Implements

  • OnChanges

Index

Constructors

constructor

Properties

clearColor

clearColor: INgxColor = 0xffffff

The canvas background color

lineColor

lineColor: INgxColor = 0x000000

The drawing line color

lineDash

lineDash: string = 'solid'

The drawing line dash

lineWidth

lineWidth: number = 1

The drawing line width

Methods

clearCanvas

  • clearCanvas(): void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

ngOnInit

  • ngOnInit(): void

Generated using TypeDoc