Perspective - Pump

Component Palette Icon:
An animated component that looks like a pump. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class. The Pump has two pre-configured variants:
- Centrifugal: Component appearance is that of a centrifugal pump.
- Vacuum: Component appearance is that of a vacuum pump.
Properties
Most Properties have binding options. For more information on Bindings, see Types of Bindings in Perspective. This section only documents the Props Category of properties. The other Categories are described on the Perspective Component Properties page.
| Name | Description | Property Type |
|---|---|---|
| appearance | Options for the appearance of the component. Options are auto, p&id, mimic, and simple. If set to auto, the value is taken from the Perspective Session Property symbols.autoAppearance. ![]() | value: string |
| variant | Variant of pump to display. Options are centrifugal or vacuum. Default is centrifugal. | value: string |
| animationSpeed | The speed of the animation as a percent. Set to "0" to turn off animation. If set to auto, then the animationSpeed setting is taken from the Perspective Session Property. | value: numeric |
| state | State of the animation. Built-in options are default, running, stopped, or faulted. Default is default. Built-in states and new states can be configured and applied on the Project Properties > Symbols page. | value: string |
| orientation | Orientation of the pump. Options are top, bottom, left, or right. Default is right. | color |
| feet | Feet location for the pump. Options are top, bottom, left, or right. Default is bottom. | |
| label | Label settings for the component.
| object |
| value | Value settings for the component.
| object |
| style | Sets a style for this cylindrical tank. Full menu of style options is available for text, background, margin and padding, border, shape and miscellaneous. You can also specify a style class. The Pump has two pre-configured variants. | object |
Component Scripts and Events
Further component interaction and functionality can be configured for all components through scripting and event actions. Right-click on the component or select Components from the Designer menubar to access the configuration popups for both of these options:
- Configure Events: Accesses the Event Configuration popup where you can configure actions to run in response to events to make the component dynamic. The Events Configurations page shows how to configure events and actions on a Perspective component.
- Configure Scripts: Accesses the Script Configuration popup where custom methods and message handlers can be added. The Scripting in Perspective section details scripting fundamentals, creating custom methods, and using message handlers.
Example
| Property | Value |
|---|---|
| props.appearance | simple |
| props.variant | vacuum |
| props.label.text | Vacuum Pump Simple |
| props.style.backgroundColor | #CCCCFF |
| props.style.borderStyle | solid |
