Options
All
  • Public
  • Public/Protected
  • All
Menu
classdesc

A wrapper for image objects. Has an upper left and a lower right corner point.

requires

Vertex

requires

SVGSerializable

Hierarchy

  • PBImage

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • The constructor.

    name

    PBImage

    Parameters

    • image: HTMLImageElement

      The actual image.

    • upperLeft: Vertex

      The upper left corner.

    • lowerRight: Vertex

      The lower right corner.

    Returns PBImage

Properties

Readonly className

className: string = "PBImage"

Required to generate proper CSS classes and other class related IDs.

image

image: HTMLImageElement
member

{Vertex}

memberof

PBImage

instance

lowerRight

lowerRight: Vertex
member

{Vertex}

memberof

PBImage

instance

upperLeft

upperLeft: Vertex
member

{Vertex}

memberof

PBImage

instance

Methods

toSVGString

  • toSVGString(options: { className?: string }): string
  • Convert this vertex to SVG code.

    method

    toSVGString

    instance
    memberof

    PBImage

    Parameters

    • options: { className?: string }

      An optional set of options, like 'className'.

      • Optional className?: string

    Returns string

    A string representing the SVG code for this vertex.

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Private property
  • Private method
  • Static property
  • Static method

Generated using TypeDoc