clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.73k stars 853 forks source link

types(dia.Cell): allow partial attributes with prop() and constructor() #2667

Closed kumilingus closed 6 months ago

kumilingus commented 6 months ago

Description

It was not possible to set partial attributes using prop() method or when constructing a new cell in TypeScript.

rectangle.prop({ size: { width: 100 }});

new joint.shapes.standard.Rectangle({
    position: { x: 100 },
});