format_svg_lengths method

format_svg_lengths

Formats an array of double values into a string representation of SVG lengths.

Returns

A formatted string of SVG lengths.

def format_svg_lengths(self, values, type):
    ...
ParameterTypeDescription
valueslistThe array of double values representing lengths.
typeLengthTypeThe type of length unit to use (e.g., pixels).

Remarks

This utility method is used to format length values for SVG attributes, appending the appropriate unit (like ‘px’) to each value.

See Also