Home Reference Source
import glEditableSpline from './ui/glpatch/gleditablespline.js'
public class | source

glEditableSpline

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

snapToGrid: boolean

Private Members
private

_points3d: *[]

private
private

_rects: *[]

private
private

Method Summary

Public Methods
public

setPoints(arr2d: *)

public

snapX(x: *): *

public

snapY(y: *): *

public

Public Constructors

public constructor() source

Public Members

public snapToGrid: boolean source

Private Members

private _points3d: *[] source

private _rectInstancer: * source

private _rects: *[] source

private _splineDrawer: * source

private _splineIdx: * source

Public Methods

public setPoints(arr2d: *) source

Params:

NameTypeAttributeDescription
arr2d *

public snapX(x: *): * source

Params:

NameTypeAttributeDescription
x *

Return:

*

public snapY(y: *): * source

Params:

NameTypeAttributeDescription
y *

Return:

*

public updatePoints() source