Creates a new text stencil editor instance.
editor properties.
Protected
Optional
_connectorOutline displayed in "connect" mode.
Protected
_containerSVG container for the stencil's and editor's visual elements.
Protected
_controlSVG group holding editor's control box.
Protected
_gripSVG group holding resize grips.
Protected
_isIs stencil in focus?
Protected
_isIs stencil selected?
Protected
_languageLanguage (localization) subsystem.
Protected
_overlayOverlay container for HTML elements like text editors, etc.
Protected
_portSVG group for holding connector ports.
Protected
_stateEditor's state.
Protected
_stencilStencil being edited.
Protected
_stencilType of the edited stencil.
Protected
_suppressWhen set to true stencilcreate
event isn't fired.
Protected
Optional
activeCurrently active grip.
Protected
manipulationHeight at the start of manipulation.
Protected
manipulationx coordinate of the top-left corner at the start of manipulation.
Protected
manipulationy coordinate of the top-left corner at the start of manipulation.
Protected
manipulationWidth at the start of manipulation.
Protected
manipulationx coordinate of the pointer at the start of manipulation.
Protected
manipulationy coordinate of the pointer at the start of manipulation.
Protected
offsetXPointer's horizontal distance from the top left corner.
Protected
offsetYPointer's vertical distance from the top left corner.
Optional
onFired when stencil changes.
Optional
onFired when stencil is created.
Protected
portCollection of ports.
Protected
resizeResize grips.
Protected
textPanel for the text-related editor properties.
Returns the SVG container for the stencil's and editor's visual elements.
Returns true if the stencil is in focus.
Returns true if the stencil is selected.
Overlay container for HTML elements like text editors, etc.
Returns property panels for the UI for this stencil.
Protected
settingsEditor settings and contextual settings manager.
Gets editor's state.
Sets editor's state.
Returns the stencil being edited.
Creates a stencil at specified location.
location at which to create the stencil.
Handles a double-click event.
pointer location.
Optional
target: EventTargetpointer event target.
Protected
findFinds a resize grip by the target visual.
event target.
resize grip or undefined if not found.
Returns a port under the current pointer.
pointer event.
if true, returns the port exactly under the pointer, otherwise - closest.
current zoom level.
target port.
Protected
hideProtected
hideProtected
hideInitial actions when manipulation starts.
pointer location
Handles manipulation.
pointer location.
Handles a pointerdown
event.
pointer location.
Optional
target: EventTargetevent target element.
Protected
resizeResizes the stencil.
pointer location.
Restores the stencil from previously saved state.
stencil state (configuration)
Protected
setProtected
setProtected
setProtected
setupProtected
showProtected
showProtected
showGenerated using TypeDoc
Specialized stencil editor for image stencils.
See
ImageStencil