Home Reference Source Repository
import Properties from 'awv3/src/plugins/properties/index.js'
public class | source

Properties

Extends:

src/session/plugin.js~Plugin → Properties

Class Properties is based on awv3's plugin architecture. It can be used to define bend- and signature-lines in the 2D view.

Constructor Summary

Public Constructor
public

constructor(session: *, objectPattern1: {"name": *, "icon": *})

Member Summary

Public Members
public
public

angle: *

public

bend: *

public
public
public
public

bending: *

public
public
public
public
public
public
public
public
public
public
public

foldUp: *

public
public
public
public
public

kFactor: *

public
public

radius: *

public
public
public

Method Summary

Public Methods
public

getOwner(element: *): *

public

getOwnerId(selectedElement: *): *

public

getOwnerIds(selectedElements: array): array

Get the ids of the owner of the selected elements.

public

getOwners(selectedElements: *): *

public

getSketchId(lineId: *): *

Climbs up the object tree to find the sketch this line belongs to.

public

Called when the plugin is being disabled.

public

Called when the plugin is enabled.

public

Public Constructors

public constructor(session: *, objectPattern1: {"name": *, "icon": *}) source

Params:

NameTypeAttributeDescription
session *
objectPattern1 {"name": *, "icon": *}
  • optional
  • default: {}

Public Members

public acceptButton: * source

public angle: * source

public bend: * source

public bendDeduction: * source

public bendLineColor: * source

public bendProperties: undefined[] source

public bending: * source

public contourLineColor: * source

public deleteButton: * source

public foldDown: * source

public foldDownAngle: * source

public foldDownPreAngle: * source

public foldLock: boolean source

public foldMethod: number source

public foldRadius: number source

public foldTechnique: number source

public foldType: number source

public foldUp: * source

public foldUpAngle: number source

public foldUpPreAngle: number source

public isBendLine: * source

public isLaserSignature: * source

public kFactor: * source

public laserGroup: * source

public radius: * source

public selection: * source

public selectionGroup: * source

public signatureLineColor: * source

Public Methods

public getOwner(element: *): * source

Params:

NameTypeAttributeDescription
element *

Return:

*

public getOwnerId(selectedElement: *): * source

Params:

NameTypeAttributeDescription
selectedElement *

Return:

*

public getOwnerIds(selectedElements: array): array source

Get the ids of the owner of the selected elements.

Params:

NameTypeAttributeDescription
selectedElements array

array of materials with meta-info

Return:

array

owners of the selected elements

public getOwners(selectedElements: *): * source

Params:

NameTypeAttributeDescription
selectedElements *

Return:

*

public getSketchId(lineId: *): * source

Climbs up the object tree to find the sketch this line belongs to.

Params:

NameTypeAttributeDescription
lineId *

Return:

*

undefined, if no sketch was found.

public onDisabled() source

Called when the plugin is being disabled. Clean up plugin-specific things in here.

public onEnabled() source

Called when the plugin is enabled.

public resetProperties() source