Options
All
  • Public
  • Public/Protected
  • All
Menu

Enumeration ShapeType

An enumeration of shape types. Shapes can have more than one shape type, so always check the shape type using ShapeType.contains

Overview

Enumeration members

ARC

ARC: = 524288

An elliptical arc defined by a center point, semi-major axis and semi-minor axis

ARC_BAND

ARC_BAND: = 1048576

A circular arc band defined by a center point, a min radius, a max radius, a start azimuth and a sweep angle

BOUNDS

BOUNDS: = 512

A bounds.

CIRCLE

CIRCLE: = 64

A circle by center point

CIRCLE_BY_3_POINTS

CIRCLE_BY_3_POINTS: = 256

A circle by 3 points

CIRCLE_BY_CENTER_POINT

CIRCLE_BY_CENTER_POINT: = 128

A circle defined by a center point and radius

CIRCULAR_ARC

CIRCULAR_ARC: = 4096

A circular arc

CIRCULAR_ARC_BY_3_POINTS

CIRCULAR_ARC_BY_3_POINTS: = 16384

A circular arc defined by 3 points

CIRCULAR_ARC_BY_BULGE

CIRCULAR_ARC_BY_BULGE: = 32768

A circular arc defined by 2 points and a bulge

CIRCULAR_ARC_BY_CENTER_POINT

CIRCULAR_ARC_BY_CENTER_POINT: = 8192

A circular arc defined by a center point and radius

COMPLEXPOLYGON

COMPLEXPOLYGON: = 8

A complex polygon.

deprecated

use COMPLEX_POLYGON instead

COMPLEX_POLYGON

COMPLEX_POLYGON: = 8

A complex polygon.

ELLIPSE

ELLIPSE: = 131072

An Ellipse

EXTRUDED_SHAPE

EXTRUDED_SHAPE: = 2097152

An extrusion of a shape

GEO_BUFFER

GEO_BUFFER: = 262144

A buffer around a shape

ORIENTED_BOX

ORIENTED_BOX: = 8388608

An oriented box, defined by its 8 corner points.

POINT

POINT: = 1

A point.

POLYGON

POLYGON: = 4

A polygon.

POLYLINE

POLYLINE: = 2

A polyline.

SECTOR

SECTOR: = 4194304

A sector of a circle, defined by a center point, a radius, a start azimuth and a sweep angle

SHAPELIST

SHAPELIST: = 16

A shape list.

deprecated

use SHAPE_LIST instead

SHAPE_LIST

SHAPE_LIST: = 16

A shape list.

Functions

contains

  • Checks if the given shape type matches the expected type.

    Parameters

    Returns boolean

    true if the given shape type is of the expected shape type, false otherwise

    var polygon = new ...
    ShapeType.contains(polygon.type, ShapeType.POLYGON); //true

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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