clientIO/joint
 Watch   
 Star   
 Fork   
28 days ago
joint

@joint/vitest-plugin-mock-svg@0.4.0

Minor Changes

  • replace vi.fn() mocks with plain functions - assertions on them break, use vi.spyOn() instead (0b3fdadd)

Patch Changes

  • Updated dependencies (0b3fdadd)
    • @joint/mock-svg@0.1.0
28 days ago
joint

@joint/core@4.3.4

Patch Changes

  • linkTools.Anchor - add types for onPointerDown(), onPointerMove(), onPointerUp() and onPointerDblClick() (65c07c92)
  • dia.Link - refactor link labels resolution against defaultLabel and the built-in default label (d742fc60)
  • dia.Cell - fix removeAttr() to pass its options on when the path is an array (f6b183ae)
  • dia.Cell - fix removeProp() to remove a top-level property given as an array path (f6b183ae)
  • config - fix the TypeScript types to declare storeEmbeds (0a370aac)
  • util - accept undefined source objects in the defaults(), defaultsDeep(), supplement() and deepSupplement() typings, which the implementations already skip (a1d9f030)
  • dia.Graph - fix to resolve cell and layer type only to dia.Cell and dia.GraphLayer constructors (cf7c369e)
  • dia.Paper - fix defineFilter() to ignore filter names inherited from Object.prototype (cf7c369e)
  • dia.ElementView - fix getLinkEnd() to keep a non-integer numeric port id, e.g. 1.5 (8d7c0871)
  • dia.Paper - fix multiLinks: false to tell a link to port 0 apart from links to other ports (8d7c0871)
  • mvc.Dom - fix $(window) to hold the window, so event methods and width()/height() work on it (e3862a8f)
  • mvc.$ - fix parseHTML() to remove all <script> elements (cf7c369e)
  • dia.Paper - fix a layer removed and added again before the paper updates being left without a view (b038864e)
  • dia.Element - fix port lookups to match a port id by value and type, so 5 and '5' are two different ports and 0 is a valid id (8d7c0871)
  • dia.Element - fix PortLabelPositionType type to use PortLabelPositionJSON for a port label's position (a1d9f030)
  • dia.Element - fix types to allow portProp(portId) and portProp(portId, object, opt) (a1d9f030)
  • dia.ToolsView - fix a tool hidden with hide() right after addTools() reappearing when the update is deferred (e.g. async: true) (3de3381e)
  • routers.rightAngle - fix the link direction at ports of rotated elements and route around rotated elements (a255c1b3)
  • util - fix toggleFullScreen() to work in a cross-origin iframe and default to the current page's body (6c64bd5c)
  • util.filter - fix the built-in filters to escape their arguments (cf7c369e)
  • util - fix sanitizeHTML() to remove unsafe elements and to detect obfuscated javascript: URLs (cf7c369e)
  • util - fix setByPath() and unsetByPath() to ignore __proto__ as the last path segment (cf7c369e)
  • linkTools.Vertices - fix the VertexHandle type to declare onDoubleClick(), not onPointerClick() (65c07c92)
  • linkTools.Vertices - fix the vertexAdding type to name interactiveLinkNode, not interactiveLineNode (375e9cf9)
  • types - cell.findView() returns ElementView for dia.Element and LinkView for dia.Link; paper.getCellView() infers the view type from the model (72b79b41)
28 days ago
joint

@joint/mock-svg@0.1.0

Minor Changes

  • new package - test-runner-agnostic mocks of JointJS-relevant SVG globals which are missing from JSDOM (0b3fdadd)
28 days ago
joint

@joint/layout-elk@4.3.4

Patch Changes

  • new package - automatic layout for JointJS graphs using the Eclipse Layout Kernel (ELK), including layout of embedded elements as containers and of element ports (a1d9f030)
  • Updated dependencies (65c07c92, d742fc60, f6b183ae, 0a370aac, a1d9f030, cf7c369e, 8d7c0871, e3862a8f, b038864e, 3de3381e, a255c1b3, 6c64bd5c, 375e9cf9, 72b79b41)
    • @joint/core@4.3.4
28 days ago
joint

@joint/sanitize@4.3.4

Patch Changes

  • new package - sanitizers of untrusted graph JSON and HTML, for @joint/core 4.1 and later (cf7c369e)
  • Updated dependencies (65c07c92, d742fc60, f6b183ae, 0a370aac, a1d9f030, cf7c369e, 8d7c0871, e3862a8f, b038864e, 3de3381e, a255c1b3, 6c64bd5c, 375e9cf9, 72b79b41)
    • @joint/core@4.3.4
28 days ago
joint

@joint/react@4.3.7

Patch Changes

  • useOnElementsMeasured - fix to fire exactly once per settled change (an addition, a removal or a re-measurement), when no element is still waiting to be measured (15124e99)
  • Updated dependencies (65c07c92, d742fc60, f6b183ae, 0a370aac, a1d9f030, cf7c369e, 8d7c0871, e3862a8f, b038864e, 3de3381e, a255c1b3, 6c64bd5c, 375e9cf9, 72b79b41)
    • @joint/core@4.3.4
28 days ago
joint

Release v4.1.4

CHANGELOG

@joint/core

  • dia.Graph - fix to resolve cell type only to dia.Cell constructors (476d559b)
  • dia.Paper - fix defineFilter() to ignore filter names inherited from Object.prototype (476d559b)
  • mvc.$ - fix parseHTML() to remove all <script> elements (476d559b)
  • util - fix sanitizeHTML() to remove unsafe elements and to detect obfuscated javascript: URLs (476d559b)
  • util - fix setByPath() and unsetByPath() to ignore __proto__ as the last path segment (476d559b)
  • util.filter - fix the built-in filters to escape their arguments (476d559b)
28 days ago
joint

Release v4.2.6

CHANGELOG

@joint/core

  • dia.Graph - fix to resolve cell and layer type only to dia.Cell and dia.GraphLayer constructors (f9ba11e9)
  • dia.Paper - fix defineFilter() to ignore filter names inherited from Object.prototype (f9ba11e9)
  • mvc.$ - fix parseHTML() to remove all <script> elements (f9ba11e9)
  • util - fix sanitizeHTML() to remove unsafe elements and to detect obfuscated javascript: URLs (f9ba11e9)
  • util - fix setByPath() and unsetByPath() to ignore __proto__ as the last path segment (f9ba11e9)
  • util.filter - fix the built-in filters to escape their arguments (f9ba11e9)
2026-09-04 19:57:43
joint

@joint/react@4.3.6

Patch Changes

  • - fix removed cells' records being resurrected by stale layout:update batches, breaking undo of a delete (27f2bcb5)
  • - fix links parked with visibility: hidden staying invisible after their endpoint's React content mounts (27f2bcb5)
  • Updated dependencies (f7455fd9)
    • @joint/core@4.3.3
2026-09-04 19:57:43
joint

@joint/core@4.3.3

Patch Changes

  • mvc.Collection - store cids in a map separate from ids, so a model id in the cid namespace (e.g. 'c12') is never shadowed by another model's auto-generated cid — previously graph.getCell() could return the wrong cell or a newly added cell could be silently merged away as a duplicate (f7455fd9)