@ustutt/grapheditor-webcomponent
Advanced tools
Changelog
[0.4.1] - 2020-02-11
Known Issue: this version was compiled using typescript 3.7!
The resulting .d.ts
are only compatible with typescript versions >= 3.6
. See typescript 3.7 release notes for more information.
currentZoomTransform
to get the current zoom transform of the graphzoomToBox
to zoom to a specific area of the graphgetGraphPointFromClientCoordinates
as inverse of getClientPointFromGraphCoordinates
updateNodeClasses
to only update the classes of nodesChangelog
[0.4.0] - 2020-01-28
Known Issue: this version was compiled using typescript 3.7!
The resulting .d.ts
are only compatible with typescript versions >= 3.6
. See typescript 3.7 release notes for more information.
getNodesFromPoint
and getClientPointFromGraphCoordinates
to get a list of nodes that overlap a certain pointmoveNode
to move a node with all special node movement logiconBeforeNodeMove
NodeMovementInformation used when a node movesRect
interface to utilcalculateBoundingRect
that calculates a bounding box of a bunch of rectsNode.type
from any
to string
Changelog
[0.3.1] - 2019-12-02
Known Issue: this version was compiled using typescript 3.7!
The resulting .d.ts
are only compatible with typescript versions >= 3.6
. See typescript 3.7 release notes for more information.
selectNode
, deselectNode
, changeSelected
and selected
)classes
attribute of the network-graph
beeing applied to nodes/edges if setNodeClass
/setEdgeClass
was nullMarkerStart
not beeing rotated 180° like the line attachement pointremoveEdge
not working correctly with edges with explicit idChangelog
[0.3.0] - 2019-11-22
Known Issue: this version was compiled using typescript 3.7!
The resulting .d.ts
are only compatible with typescript versions >= 3.6
. See typescript 3.7 release notes for more information.
Edge.markerStart
data-line-attachement-point
to marker templates to specify where an edge attaches to the marker if the marker is an end markerEdgePathGenerator
and EdgePathGeneratorRegistry
Marker.rotate
. Use Marker.absoluteRotation
and Marker.relativeRotation
instead.Marker.lineOffset
. Use data-line-attachement-point
in marker template instead.TextComponent.class
. Use custom dynamic templates instead.<g>
element. This will break some css styles!Changelog
[0.2.0] - 2019-10-27
defs
section of the provided svg.attributePath
text components not working correctlytemplate-type
attribute of templates to data-template-type
network-graph
tag can no longer be empty it must at least contain a svg
tag for the graph
slotChangelog
[0.1.3] - 2019-08-22
originalEdge
in detail of edgedrop for edges that have createdFrom setgetEdgesByTarget
always returning empty setChangelog
[0.1.2] - 2019-07-30
Changelog
[0.1.1] - 2019-06-22
edgedrop
event to enable creating nodes where an edge was dropped in the voideventSource
to all custom events to distinguish events by how they were triggered (possible values: INTERNAL
, API
, USER_INTERACTION
)clickEventKey
attribute to Marker
class (used to set data-click
attribute in html)edgeclick
and nodeclick
now search the whole path (only inside the specific svg group) for a data-click
attribute to use as keyedgetextpositionchange
events used when the user drags a text componentcalculateLinkHandlesForEdge
callback to customise where edges attach to nodesdata-content
, data-fill
, data-stroke
and data-href
attributesChangelog
[0.1.0] - 2019-04-11
First beta version.
Changelog
[0.0.3] - 2019-03-04
updateTextElements
function to update and reflow text with force
parametergetNode
, getEdge
, getEdgesBySource
and getEdgesByTarget
functions in grapheditorscaleRelative
not affecting lineOffset
position of edge.markerEnd