Class: Symbol

Symbol

Members

(non-null) annotations :Array.<up.api.sketch.Label>

The annotations associated with a symbol.
Type:

(non-null) component :up.api.core.Component

The component the symbol represents, if it exists.
Type:

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

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

(non-null) flag :up.api.core.Component

The flag that the symbol represents, if it exists.
Type:

flipped :boolean

True iff the schematic object is horizontally flipped.
Type:
  • boolean
Inherited From:

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
Inherited From:

isVia :boolean

Type:
  • boolean
Inherited From:

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

Type:
Inherited From:

(non-null) obj_ :up.scene.ShapeBody

@private
Type:
  • up.scene.ShapeBody
Inherited From:

(non-null) pins :Array.<up.api.sketch.Pin>

The pins on the symbol.
Type:

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

The position of the schematic object.
Type:
Inherited From:

rotation :number

The rotation of the schematic object.
Type:
  • number
Inherited From:

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

move()

Inherited From:

onLayer(layer) → {boolean}

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