Class: Trace

Trace

Members

(non-null) ctx_ :up.api.Context

@private
Type:
  • up.api.Context
Inherited From:

id :string

The id of the trace segment.
Type:
  • string

isFootprint :boolean

Type:
  • boolean
Inherited From:

isPadstack :boolean

Type:
  • boolean
Inherited From:

isPlatedThroughHole :boolean

Type:
  • boolean
Inherited From:

isPour :boolean

Type:
  • boolean
Inherited From:

isTrace :boolean

Type:
  • boolean

isVia :boolean

Type:
  • boolean
Inherited From:

(non-null) layer :up.api.pcb.Layer

The layer that the trace is on.
Type:

(non-null) layers :Array.<up.api.pcb.Layer>

The layer than the trace is on, as a single element list.
Type:

net :up.api.core.Net|!Array.<!up.api.core.Net>|null

The net the trace is part of. An array of nets if the trace is over connected. null if the trace is un-connected.
Type:

(non-null) nets :Array.<up.api.core.Net>

The list of nets that the trace is part of. Always returns a list.
Type:

(non-null) obj_ :up.design.pcb.Pour|up.design.pcb.TraceSegment|up.design.pcb.Path|up.genObj.GeneratedObject|up.design.pcb.LayoutElementBody|up.pcb.Flood

@private
Type:
  • up.design.pcb.Pour | up.design.pcb.TraceSegment | up.design.pcb.Path | up.genObj.GeneratedObject | up.design.pcb.LayoutElementBody | up.pcb.Flood
Inherited From:

(non-null) p1 :up.api.core.Point

The location of the p1 end point in nm.
Type:

(non-null) p2 :up.api.core.Point

The location of the p2 end point in nm.
Type:

shapeType :string

The type of shape use for the segment ('arc' or 'line').
Type:
  • string

width :number

The width of the segment in nm.
Type:
  • number

Methods

closeCheckAndCall(toCall) → {function}

Parameters:
Name Type Description
toCall function
Inherited From:
Returns:
Type
function

defineGetAndSetFunctions(propertyName, getFunction, setFunction)

Parameters:
Name Type Description
propertyName string
getFunction function
setFunction function
Inherited From:

defineGetFunction(propertyName, getFunction)

Parameters:
Name Type Description
propertyName string
getFunction function
Inherited From:

isNet(netName) → {boolean}

Returns true <=> the object is in the provided net.
Parameters:
Name Type Description
netName string
Inherited From:
Returns:
Type
boolean

isValid() → {boolean}

This:
Returns:
Type
boolean

onLayer(layer) → {boolean}

Returns true <=> the pcb object is on the provided layer.
This:
Parameters:
Name Type Description
layer string
Inherited From:
Returns:
Type
boolean