Releases: clientIO/joint
Releases · clientIO/joint
Release v2.1.4
CHANGELOG
- reconfigure eslint
- add .editorconfig
- dia.Element - fix hasPorts() when no items defined
- dia.LinkView - stop preventing propagation for legacy link tools events
Release v2.1.3
CHANGELOG
- dia.CellView - fix ambigious magnet selector
- dia.LinkView - trigger missing link:pointerdown event on label pointerdown
- dia.LinkView - fix connection update for loop links
- dia.Link - improve reparenting (loop link embeds into the connected element, link connected to an ancestor and its decendant embeds into the ancestor)
- dia.Graph - getConnectedLinks() does not contain enclosed links (not necessary embedded links), add includeEnclosed option to get all connected links.
- dia.Paper - fix cell:contextmenu event
- dia.Paper - fix missing magnet reference for validateConnection()
- dia.LinkView - fix backwards compatibility for linkConnectionPoint option signature
- dia.attributes - fix textWrap attribute
- Geometry - improve polyline parsing
- improve advanced tutorials
Release v2.1.2
CHANGELOG
- dia.CellView - fix magnet lookup based on the port property
- docs - fix broken links
Release v2.1.1
CHANGELOG
- layout.PortLabel: fix manual position
- anchors: prevent exception when reference node not in the DOM
Release v2.1.0
CHANGELOG
- update Tutorials
- shapes.Standard - add new set of high-performance elements and links
- dia.LinkView - new flexible definitions based on geometric representation
- dia.LinkView - refactor event handlers
- dia.LinkView - introduce anchors, connectionPoints and connectionStrategy
- dia.LinkView - add getConnection(), getSerializedConnection(), getConnectionSubdivisions(), getPointAtRatio(), getTangentAtLength(), getTangentAtRatio() getClosestPoint() and getClosestPointLength()
- dia.LinkView - add getVertexIndex(), getLabelCoordinates()
- dia.Link - add vertex API
- dia.Link - add label API and allow define a default label
- dia.Link - add source(), target(), router(), connector()
- anchors - ready-to-use anchors (center, top, bottom, left, right, topLeft, topRight, bottomLeft, bottomRight, perpendicular, midSide)
- connectionPoints - ready-to-use connection points (anchor, bbox, rectangle, boundary),
- connectionStrategies - predefined connection strategies (defaulAnchor, pinAbsolute, pinRelative)
- dia.ElementView - allow element's rotation without rotatable group
- dia.ElementView - refactor event handlers
- dia.ElementView - apply vector-effect: non-scaling-stroke to nodes inside ths scalable group only
- dia.Element - add angle()
- dia.CellView - render markup from JSON (link, element, ports and labels)
- dia.Cell - avoid unnecessary z-index changes during toFront or toBack
- dia.ToolsView - set of tools for a link
- dia.ToolView - base class for a single link tool
- linkTools - ready-to-use tools (vertices, segments, anchor, arrowhead, boundary, remove button)
- dia.Paper - complete set of events
- dia.Paper - add allowLink option to revert/remove invalid links
- dia.Paper - add getContentArea()
- dia.Paper - findParentBy option can be defined as a function
- dia.Paper - consequitive pointerdown, pointermove and pointerup can share event data
- dia.Paper - fire pointerup event on touchcancel
- dia.Paper - improve preventing image dragging in FireFox
- dia.attributes - sourceMarker, targetMarker and vertextMarker receive default stroke, fill and opacity values from its context
- dia.attributes - add refRInscribed, refRCircumscribed, refD, refPoints, title, textVerticalAnchor attributes
- dia.attributes - add connection, atConnectionLength, atConnectionRatio
- routers.Manhattan - adaptive grid for pathfinding
- routers - supports anchors (don't necessary start and end in the center of the magnet)
- layout.DirectedGraph - prevent undesired input cells sorting
- Vectorizer - add toGeometryShape(), normalizePathData(), tagName() and id to prototype
- Vectorizer - add transformLine() and transformPolyline()
- Vectorizer - text() accepts textVerticalAnchor option
- Vectorizer - improve Kappa value
- Geometry - add Path and Curves
- Geometry - add Polyline bbox(), scale(), translate(), clone() and serialize()
- Geometry - implement intersections of line with various shapes
- Geometry - add Point lerp() for linear interpolation
- shapes.basic.TextBlock - sanitize text
- util - normalizeSides() validates input and accepts horizontal and vertical attributes
- util - add parseDOMJSON(), dataUriToBlob(), downloadBlob(), downloadDataUri() and isPercentage()
Release v2.0.1
CHANGELOG
- toggleFullscreen() - fix canceling fullscreen in an iframe
- dia.Link - fix default label font color (IE)
- dia.Cell - fix removeProp() on arrays
- dia.Graph - fromJSON() does not ignore dry option anymore
Release v2.0.0
CHANGELOG
- Typescript definitions refactored (breaking change of the release)
- JointJS now compatible with Lodash v4 (see
demo/lodash4for instructions) - Geometry - add Polyline with pointAtLength(), length(), closestPointLength(), closestPoint() and convexHull()
- Geometry - add cross(), dot(), squaredDistance(), closestPoint(), closestPointNormalizedLength(), vector(), vectorAngle(), angleBetween() to Point
- Vectorizer - add children() and getBBox()
- Vectorizer - fix parseTransformString() and matrixToTransformString()
- Vectorizer - make the text
ycoordinate based on the first lineline-heightin text() - Vectorizer - add option to define the end-of-line character for text()
- layout.DirectedLayout - add ability to position labels
- layout.DirectedLayout - fix bug when the elements passed do not include their parents
- dia.Paper - add
clickThreshold,moveThresholdandpreventDefaultBlankActionoptions - dia.Paper - add
cancelRenderViews()for async mode - dia.CellView - do not reset node's transform attribute if no transform applied update()
- dia.Element - position() can be called with { deep: true } option to set position of the embeds
- dia.attributes -
textattribute takesxinto account - dia.attributes - add
eventfor easier events handling on CellViews andresetOffsetfor paths to start at 0,0 - dia.LinkView - stop triggering link:connect/link:disconnnect when connection not allowed
- dia.LinkView - can
sendToken()backwards - highlighters.Stroke - fix for magnets inside scalable group and with zero width or height
Release v1.1.0
CHANGELOG
- add TypeScript definitions
- update jQuery v3.1.1
- Geometry - improve Point/Rect prototype.round(precision) - fix coordinates being converted to a string after round() with a precision called, allow negative precision
- Geometry - add Rect inflate(), bottomLine(), topLine(), leftLine() and rightLine()
- Geometry - Point offset() and difference() accept both a point and x,y coordinates
- Geometry - add Line equals()
- Geometry - Line intersection() renamed to intersect() and calculates intersection points with another line or rectangle
- Vectorizer - stop accessing deprecated
nodeNameandnodeValueattribute properties - Vectorizer - add prototype.contains() method
- Vectorizer - add matrixToTransformString() method as opposed to transformStringToMatrix()
- Vectorizer - add ensureId() method
- Vectorizer - add appendTo() method
- Vectorizer - V(node); does not set automatically id on the node anymore
- Vectorizer - text() with content doesn't set invalid display: null on node anymore
- Vectorizer - fix convertRectToPathData() for rounded rectangles
- dia.attributes - add namespace for defining custom attributes, allow camelCase attribute style
- dia.attributes - new attributes
sourceMarker,targetMarker,vertexMarker,textWrap,refRx,refRy,refCx,refCy,refX2,refY2 - dia.attributes - improve
textattribute performance on cellView update - dia.attributes - fix mixing various attributes (e.g.
transform,refXandrefDxnow add up) - dia.Paper - add defineGradient(), defineFilter(), defineMarker() and isDefined() methods
- dia.Paper - fix async rendering when cell was previously member of different graph.
- dia.Paper - improve grid precision, added new grid patterns, update drawGrid() options definition.
- dia.Paper -
blank:pointerupevent is fired only after a preceedingblank:pointerdownevent - dia.Paper - add paperToLocalPoint(), clientToLocalPoint(), pageToLocalPoint(), localToPaperPoint(), localToPagePoint() and localToClientPoint().
- dia.Paper - add paperToLocalRect(), clientToLocalRect(), pageToLocalRect(), localToPaperRect(), localToClientRect() and localToPageRect()
- dia.Paper - add clientOffset() and pageOffset()
- dia.Cell - make cell.attr() work as getter
- dia.Cell - prop(), removeProp() accept also path defined as an array
- dia.Element - add size(), getPortPositions() methods
- dia.Element - rotate() doesn't translate embeddeded cells anymore
- dia.Link - allow arbitrary shapes for labels
- dia.LinkView - fix link translating when embedded and has no marker
- dia.LinkView - set correct port and selector on the link
- mvc.View - prevent extend() from modifying prototype propertires
- ports events
ports:addandports:removetriggered when port is added to element/removed from element - utils - fix toggleFullScreen() in IE
- utils - breakText() takes the lineHeight style into account
- util - change cells() wrapper also accept a single cell
- highlighter.Stroke - allow multiple strokes to be applied to a single cellView magnet, prevent memory leaks
- connectors.jumpover - fix on graph
reset
Release v1.0.3
- make compatibility changes towards jQuery 3.1
- shapes.TextBlock - fix
SVGForeignObjectdetection - dia.Graph - fix graph references stored on cells (when a cell added to another graph)
- layout.DirectedGraph - fix cell's graph references overriden by the layout
- Vectorizer - remove deprecated attributes'
nodeValueandnodeNamecalls
Release v1.0.2
- Vectorizer - fix
convertToPathData()for polyline. - add yarn.lock
- improve documentation