Skip to content

Class: RoundRectShape3D

Define class for drawing rounded rectangles on the xz plane

Export

Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

constructor

new RoundRectShape3D(structs, sharedPoints, sharedIndecies, matrixIndex): RoundRectShape3D

Parameters

NameType
structsShape3DStruct
sharedPointsFloat32Array
sharedIndeciesUint32Array
matrixIndexnumber

Returns

RoundRectShape3D

Inherited from

Shape3D.constructor

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:113

Properties

shapeType

Readonly shapeType: number

Overrides

Shape3D.shapeType

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:17


shapeIndex

Readonly shapeIndex: number = 0

Inherited from

Shape3D.shapeIndex

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:109


computeEveryFrame

Optional Readonly computeEveryFrame: boolean

Inherited from

Shape3D.computeEveryFrame

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:111

Accessors

width

get width(): number

Returns

number

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:29

set width(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:32


height

get height(): number

Returns

number

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:38

set height(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:41


radius

get radius(): number

Returns

number

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:48

set radius(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:51


cornerSegment

get cornerSegment(): number

Returns

number

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:58

set cornerSegment(value): void

Parameters

NameType
valuenumber

Returns

void

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:61


isRect

get isRect(): boolean

Returns

boolean

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:72


isChange

get isChange(): boolean

Returns

boolean

Inherited from

Shape3D.isChange

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:120


lineColor

get lineColor(): Color

Returns

Color

Inherited from

Shape3D.lineColor

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:135

set lineColor(value): void

Parameters

NameType
valueColor

Returns

void

Inherited from

Shape3D.lineColor

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:130


fillColor

get fillColor(): Color

Returns

Color

Inherited from

Shape3D.fillColor

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:144

set fillColor(value): void

Parameters

NameType
valueColor

Returns

void

Inherited from

Shape3D.fillColor

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:139


lineTextureID

get lineTextureID(): number

Returns

number

Inherited from

Shape3D.lineTextureID

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:148

set lineTextureID(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.lineTextureID

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:151


fillTextureID

get fillTextureID(): number

Returns

number

Inherited from

Shape3D.fillTextureID

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:157

set fillTextureID(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.fillTextureID

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:160


fillRotation

get fillRotation(): number

Returns

number

Inherited from

Shape3D.fillRotation

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:167

set fillRotation(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.fillRotation

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:170


shapeOrder

get shapeOrder(): number

Returns

number

Inherited from

Shape3D.shapeOrder

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:177

set shapeOrder(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.shapeOrder

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:180


srcPointStart

get srcPointStart(): number

Returns

number

Inherited from

Shape3D.srcPointStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:188

set srcPointStart(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.srcPointStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:191


srcPointCount

get srcPointCount(): number

Returns

number

Inherited from

Shape3D.srcPointCount

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:198


srcIndexStart

get srcIndexStart(): number

Returns

number

Inherited from

Shape3D.srcIndexStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:202

set srcIndexStart(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.srcIndexStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:205


srcIndexCount

get srcIndexCount(): number

Returns

number

Inherited from

Shape3D.srcIndexCount

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:212


destPointStart

get destPointStart(): number

Returns

number

Inherited from

Shape3D.destPointStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:216

set destPointStart(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.destPointStart

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:219


destPointCount

get destPointCount(): number

Returns

number

Inherited from

Shape3D.destPointCount

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:225


points3D

get points3D(): Point3D[]

Returns

Point3D[]

Inherited from

Shape3D.points3D

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:229

set points3D(value): void

Parameters

NameType
valuePoint3D[]

Returns

void

Inherited from

Shape3D.points3D

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:232


isClosed

get isClosed(): boolean

Returns

boolean

Inherited from

Shape3D.isClosed

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:238

set isClosed(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Shape3D.isClosed

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:241


fill

get fill(): boolean

Returns

boolean

Inherited from

Shape3D.fill

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:248

set fill(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Shape3D.fill

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:251


line

get line(): boolean

Returns

boolean

Inherited from

Shape3D.line

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:257

set line(value): void

Parameters

NameType
valueboolean

Returns

void

Inherited from

Shape3D.line

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:260


lineWidth

get lineWidth(): number

Returns

number

Inherited from

Shape3D.lineWidth

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:267

set lineWidth(value): void

Parameters

NameType
valuenumber

Returns

void

Inherited from

Shape3D.lineWidth

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:271


lineUVRect

get lineUVRect(): Vector4

x: u offset of line. y: v offset of line. z: u scale of line. w: v scale of line.

Returns

Vector4

Memberof

Shape3D

Inherited from

Shape3D.lineUVRect

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:288

set lineUVRect(value): void

Parameters

NameType
valueVector4

Returns

void

Inherited from

Shape3D.lineUVRect

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:291


fillUVRect

get fillUVRect(): Vector4

x: u offset of filled area. y: v offset of filled area. z: u scale of filled area. w: v scale of filled area.

Returns

Vector4

Memberof

Shape3D

Inherited from

Shape3D.fillUVRect

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:305

set fillUVRect(value): void

Parameters

NameType
valueVector4

Returns

void

Inherited from

Shape3D.fillUVRect

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:308


uvSpeed

get uvSpeed(): Vector4

x: u speed of filled area. y: v speed of filled area. z: u speed of line. w: v speed of line.

Returns

Vector4

Memberof

Shape3D

Inherited from

Shape3D.uvSpeed

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:322

set uvSpeed(value): void

Parameters

NameType
valueVector4

Returns

void

Inherited from

Shape3D.uvSpeed

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:325

Methods

set

set(width, height, radius, lineWidth, fill, line, cornerSegment?): void

Parameters

NameTypeDefault value
widthnumberundefined
heightnumberundefined
radiusnumberundefined
lineWidthnumberundefined
fillbooleanundefined
linebooleanundefined
cornerSegmentnumber10

Returns

void

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:19


calcRequireSource

calcRequireSource(): void

Returns

void

Overrides

Shape3D.calcRequireSource

Defined in

packages/graphic/renderer/shape3d/RoundRectShape3D.ts:68


writeData

writeData(): void

Returns

void

Inherited from

Shape3D.writeData

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:124


clean

clean(): void

Returns

void

Inherited from

Shape3D.clean

Defined in

packages/graphic/renderer/shape3d/Shape3D.ts:330

Released under the MIT License