Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RoundRectangle

Hierarchy

  • RoundRectangle

Implements

Index

Constructors

Properties

Constructors

constructor

  • 根据宽度、高度和角半径创建圆形矩形.

    Example:

    var r = new vjgeo.models.RoundRectangle(100, 50, 5);
    

    Parameters

    • width: number

      Width of the rectangle.

    • height: number

      Height of the rectangle.

    • radius: number

      Corner radius.

    • Optional data: IProperties

      属性数据

    Returns RoundRectangle

  • 创建一个围绕模型的圆形矩形.

    Example:

    var b = new vjgeo.models.BoltRectangle(30, 20, 1); //draw a bolt rectangle so we have something to surround
    var r = new vjgeo.models.RoundRectangle(b, 2.5);   //surround it
    

    Parameters

    • modelToSurround: IModel

      IModel object.

    • margin: number

      与模型的距离。这也将成为拐角半径.

    • Optional data: IProperties

      属性数据

    Returns RoundRectangle

Properties

data

origin

origin: IPoint

paths

paths: IPathMap

Generated using TypeDoc