Electrical Instruments Entities
Ammeter
- Preview
- Usage
- Definition
import { Ammeter } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Ammeter/>
// or
import { extendStyle } from "@dinghy/base-components";
import { AMMETER } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Shape
{...props}
_style={extendStyle(props, AMMETER)}
/>
{
_style: {
entity: 'verticalLabelPosition=middle;shadow=0;dashed=0;align=center;html=1;verticalAlign=middle;strokeWidth=1;shape=ellipse;aspect=fixed;fontSize=50;',
},
_original_width: 90,
_original_height: 90,
}
Galvanometer
- Preview
- Usage
- Definition
import { Galvanometer } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Galvanometer/>
// or
import { extendStyle } from "@dinghy/base-components";
import { GALVANOMETER } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Shape
{...props}
_style={extendStyle(props, GALVANOMETER)}
/>
{
_style: {
entity: 'perimeter=ellipsePerimeter;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;shape=mxgraph.electrical.instruments.galvanometer;',
},
_original_width: 90,
_original_height: 90,
}
Oscilloscope
- Preview
- Usage
- Definition
import { Oscilloscope } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Oscilloscope/>
// or
import { extendStyle } from "@dinghy/base-components";
import { OSCILLOSCOPE } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Shape
{...props}
_style={extendStyle(props, OSCILLOSCOPE)}
/>
{
_style: {
entity: 'perimeter=ellipsePerimeter;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;shape=mxgraph.electrical.instruments.oscilloscope;',
},
_original_width: 90,
_original_height: 90,
}
Signal Generator
- Preview
- Usage
- Definition
import { SignalGenerator } from '@dinghy/diagrams/entitiesElectricalInstruments'
<SignalGenerator/>
// or
import { extendStyle } from "@dinghy/base-components";
import { SIGNAL_GENERATOR } from '@dinghy/diagrams/entitiesElectricalInstruments'
<Shape
{...props}
_style={extendStyle(props, SIGNAL_GENERATOR)}
/>
{
_style: {
entity: 'perimeter=ellipsePerimeter;verticalLabelPosition=bottom;shadow=0;dashed=0;align=center;html=1;verticalAlign=top;shape=mxgraph.electrical.instruments.signal_generator;',
},
_original_width: 90,
_original_height: 90,
}