Home Reference Source Test
public class | source

FZPConnector

FZPConnector class

Example:

const {FZPConnector} = require('fzp-js')

let connector = new FZPConnector({id: 'sample-id', name: 'sample-name'})
connector.type = 'sample-type'
connector.description = 'sample-description'
connector.views.breadboard.setLayer('sample-b-layer')
connector.views.breadboard.setSvgId('sample-b-svg')
connector.views.breadboard.setLegId('sample-b-leg')
connector.views.breadboard.setTerminalId('sample-b-terminal')

Constructor Summary

Public Constructor
public

FZPConnector constructor

Member Summary

Public Members
public

The description of the FZP connector

public

The id of the FZP connector.

public

The name of the FZP connector.

public

The type of the FZP connector

public

views: {"breadboard": *, "schematic": *, "pcb": *}

The FZP connector views for breadboard, schematic and pcb.

Public Constructors

public constructor(opt: Object) source

FZPConnector constructor

Params:

NameTypeAttributeDescription
opt Object

the options

Public Members

public description: String source

The description of the FZP connector

public id: String source

The id of the FZP connector.

public name: String source

The name of the FZP connector.

public type: String source

The type of the FZP connector

public views: {"breadboard": *, "schematic": *, "pcb": *} source

The FZP connector views for breadboard, schematic and pcb. Note that the pcb view has an object for copper0, copper1 etc.