// Read the first element's width in model pixels: a node's content width, excluding padding and border, or an edge's stroke width
ele.width(): number | undefinedRead the first element's width in model pixels: a node's content width, excluding padding and border, or an edge's stroke width. A compound parent's width is derived from its children. The read reflects the current value during size animations.
Returns
number | undefinedthe width, or undefined when empty or removed
See
Collection#outerWidth to include the border