Repository navigation
@joint/core@4.3.4
·
10 commits
to master
since this release
Patch Changes
- linkTools.Anchor - add types for
onPointerDown(),onPointerMove(),onPointerUp()andonPointerDblClick()(65c07c9) - dia.Link - refactor link labels resolution against
defaultLabeland the built-in default label (d742fc6) - dia.Cell - fix
removeAttr()to pass its options on when the path is an array (f6b183a) - dia.Cell - fix
removeProp()to remove a top-level property given as an array path (f6b183a) - config - fix the TypeScript types to declare
storeEmbeds(0a370aa) - util - accept
undefinedsource objects in thedefaults(),defaultsDeep(),supplement()anddeepSupplement()typings, which the implementations already skip (a1d9f03) - dia.Graph - fix to resolve cell and layer
typeonly todia.Cellanddia.GraphLayerconstructors (cf7c369) - dia.Paper - fix
defineFilter()to ignore filter names inherited fromObject.prototype(cf7c369) - dia.ElementView - fix
getLinkEnd()to keep a non-integer numeric port id, e.g.1.5(8d7c087) - dia.Paper - fix
multiLinks: falseto tell a link to port0apart from links to other ports (8d7c087) - mvc.Dom - fix
$(window)to hold the window, so event methods andwidth()/height()work on it (e3862a8) - mvc.$ - fix
parseHTML()to remove all<script>elements (cf7c369) - dia.Paper - fix a layer removed and added again before the paper updates being left without a view (b038864)
- dia.Element - fix port lookups to match a port id by value and type, so
5and'5'are two different ports and0is a valid id (8d7c087) - dia.Element - fix
PortLabelPositionTypetype to usePortLabelPositionJSONfor a port label's position (a1d9f03) - dia.Element - fix types to allow
portProp(portId)andportProp(portId, object, opt)(a1d9f03) - dia.ToolsView - fix a tool hidden with
hide()right afteraddTools()reappearing when the update is deferred (e.g.async: true) (3de3381) - routers.rightAngle - fix the link direction at ports of rotated elements and route around rotated elements (a255c1b)
- util - fix
toggleFullScreen()to work in a cross-origin iframe and default to the current page's body (6c64bd5) - util.filter - fix the built-in filters to escape their arguments (cf7c369)
- util - fix
sanitizeHTML()to remove unsafe elements and to detect obfuscatedjavascript:URLs (cf7c369) - util - fix
setByPath()andunsetByPath()to ignore__proto__as the last path segment (cf7c369) - linkTools.Vertices - fix the
VertexHandletype to declareonDoubleClick(), notonPointerClick()(65c07c9) - linkTools.Vertices - fix the
vertexAddingtype to nameinteractiveLinkNode, notinteractiveLineNode(375e9cf) - types -
cell.findView()returnsElementViewfordia.ElementandLinkViewfordia.Link;paper.getCellView()infers the view type from the model (72b79b4)