Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NgxCurveComponent

The Curve component.

See the ngx3js docs page for details. See the ngx curve page for a live curve demo.

An abstract base class for creating a [name] object that contains methods for interpolation. For an array of [name]s see CurvePath.

<ngx3js-curve
[type]="'catmullrom'" [points]="curvePath" [closed]="true "
[curveType]="'centripetal'"
></ngx3js-curve>

Hierarchy

Implements

  • OnInit

Index

Constructors

constructor

Properties

Protected OBJECT_ATTR

OBJECT_ATTR: string[] = ...

Object attr of abstract subscribe component

Protected _changeList

_changeList: string[] = null

Change list of abstract subscribe component

Protected _needUpdate

_needUpdate: boolean = true

Need update of abstract subscribe component

aClockwise

aClockwise: boolean = null

Whether the ellipse is drawn clockwise. Default is false.

aEndAngle

aEndAngle: number = null

The end angle of the curve in radians starting from the positive X axis. Default is 2 x Math.PI.

aRadius

aRadius: number = null

The aRadius of curve component

aRotation

aRotation: number = null

The rotation angle of the ellipse in radians, counterclockwise from the positive X axis (optional). Default is 0.

aStartAngle

aStartAngle: number = null

The start angle of the curve in radians starting from the positive X axis. Default is 0.

aX

aX: number = null

The X center of the ellipse. Default is 0.

aY

aY: number = null

The Y center of the ellipse. Default is 0.

closed

closed: boolean = null

Whether the curve is closed. Default is false.

curveType

curveType: string = null

Possible values are centripetal, chordal and catmullrom.

Notice - case insensitive.

debug

debug: boolean = false

Debug this Object

enabled

enabled: boolean = true

Enabled or Not

Protected id

id: string = ''

The Id of abstract subscribe component

onDestory

onDestory: EventEmitter<NgxCurveComponent> = ...

Will be called when before destory. The argument will be the loaded self

onLoad

onLoad: EventEmitter<NgxCurveComponent> = ...

Will be called when load completes. The argument will be the loaded self

overrideParams

overrideParams: {} = null

The override params

Type declaration

  • [key: string]: any

Protected parent

parent: any = null

The Parent of abstract subscribe component

points

points: INgxVector[] = null

array of Vector2s. Creates a Path from the points. The first point defines the offset, then successive points are added to the curves array as LineCurves. If no points are specified, an empty path is created and the LineCurve.currentPoint is set to the origin.

Protected selfAny

selfAny: any = ...

Protected subscribeType

subscribeType: string = null

Subscribe type of abstract subscribe component

tension

tension: number = null

When CatmullRomCurve3.curveType is catmullrom, defines catmullrom's tension.

tween

tween: {} = null

Tween animation params

Type declaration

  • [key: string]: any

type

type: string = 'spline'

The curve type

Three Type Value String(case insensitive)
THREE.ArcCurve ArcCurve, Arc
THREE.CatmullRomCurve3 CatmullRomCurve3, Spline3, Catmullrom
THREE.CubicBezierCurve CubicBezierCurve, CubicBezier
THREE.CubicBezierCurve3 CubicBezierCurve3, CubicBezier3
THREE.EllipseCurve EllipseCurve, Ellipse
THREE.LineCurve LineCurve, Line
THREE.LineCurve3 LineCurve3, Line3
THREE.QuadraticBezierCurve QuadraticBezierCurve, QuadraticBezier
THREE.QuadraticBezierCurve3 QuadraticBezierCurve3, QuadraticBezier3
THREE.SplineCurve SplineCurve, Spline

userData

userData: any = null

An object that can be used to store custom data about the Object3D. It should not hold references to functions as these will not be cloned.

windowExport

windowExport: string = null

Export this Object to window global variables

xRadius

xRadius: number = null

The radius of the ellipse in the x direction. Default is 1.

yRadius

yRadius: number = null

The radius of the ellipse in the y direction. Default is 1.

Accessors

needUpdate

  • set needUpdate(value: boolean): void
  • Sets need update

    Parameters

    • value: boolean

    Returns void

Methods

addChanges

  • addChanges(key: string | string[] | SimpleChanges): void

applyChanges

  • applyChanges(changes: string[]): void

Protected callOnLoad

  • callOnLoad(): void

Protected checkChanges

  • checkChanges(changes: SimpleChanges): SimpleChanges

Protected clearChanges

  • clearChanges(): void

Protected consoleLog

  • consoleLog(key: string, object: any, level?: string): void

Protected consoleLogTime

  • consoleLogTime(key: string, object: any, repeat?: number): void

Protected destroyLocalComponent

  • destroyLocalComponent(key: string): void

dispose

  • dispose(): void

Protected getChanges

  • getChanges(): string[]

getCurve

getId

  • getId(): string

getObject

  • getObject<T>(): T

getSubscribe

  • getSubscribe(): Observable<string[]>

Protected getTimeout

  • getTimeout(timeDelay?: number): Promise<void>

getUserData

  • getUserData(): {}

Protected initLocalComponent

  • initLocalComponent<T>(key: string, component: T): T

Protected isIdEuals

  • isIdEuals(id: string): boolean

ngAfterContentInit

  • ngAfterContentInit(): void

ngOnChanges

  • ngOnChanges(changes: SimpleChanges): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated. default change detector has checked data-bound properties if at least one has changed, and before the view and content children are checked.

    Parameters

    • changes: SimpleChanges

      The changed properties.

    Returns void

ngOnDestroy

  • ngOnDestroy(): void

ngOnInit

  • ngOnInit(): void
  • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

    Returns void

resetTween

  • resetTween(): void

runSubscribeNext

  • runSubscribeNext(key: string | string[]): void

Protected setObject

  • setObject(obj: any): void

setParent

  • setParent(parent: any): boolean

setSubscribeNext

  • setSubscribeNext(key: string | string[]): void

setSubscribeType

  • setSubscribeType(subscribeType: string): void

setTween

  • setTween(tweenData: {}): void

setTweenTarget

  • setTweenTarget(tweenTarget: any): void

setUserData

  • setUserData(key: string, value: any): void

Protected subscribeListQuery

  • subscribeListQuery(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeListQueryChange

  • subscribeListQueryChange(queryList: QueryList<any>, subscribeKey: string, changeKey: string): void

Protected subscribeRefer

  • subscribeRefer(key: string, subscription: Subscription): void

Protected subscribeReferList

  • subscribeReferList(key: string, subscription: Subscription): void

Protected unSubscribeRefer

  • unSubscribeRefer(key: string): void

Protected unSubscribeReferList

  • unSubscribeReferList(key: string): void

Protected unSubscription

  • unSubscription(subscriptions: Subscription[]): Subscription[]

updateInputParams

  • updateInputParams(params: {}, firstChange?: boolean, changes?: SimpleChanges, type?: string): void

Generated using TypeDoc