WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

A Symbol Type.

Symbol types are typically not used directly, instead being passed to symbol.type. However, you can define your own sumbol type implementation should none of the built-in types satisfy your needs using the following interface. You can also use this low-level interface with a built-in symbol type as an alternative to the symbol generator

Hierarchy

  • SymbolType

Index

Methods

Methods

draw

  • draw(context: CanvasPathMethods, size: number): void
  • Renders this symbol type to the specified context with the specified size in square pixels. The context implements the CanvasPathMethods interface. (Note that this is a subset of the CanvasRenderingContext2D interface!)

    Parameters

    • context: CanvasPathMethods

      A rendering context implementing CanvasPathMethods.

    • size: number

      Size of the symbol to draw.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc