You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Default properties (color, width, strokeColor, strokeWidth) should be applied always unless they are overwritten by the user. For example: String API 'color: blue' should overwrite the color, but keep the rest of the properties. The same for the Dict API { 'color: 'blue' }.
The implementation is easy for the Dict API, just update the defaults dictionary with the style one. For the String API it's a bit more tricky because we need to detect the style properties contained in the string ('color:' in style) to remove the defaults, and then serialize the rest of defaults.
The text was updated successfully, but these errors were encountered:
Default properties (
color
,width
,strokeColor
,strokeWidth
) should be applied always unless they are overwritten by the user. For example: String API 'color: blue' should overwrite the color, but keep the rest of the properties. The same for the Dict API { 'color: 'blue' }.The implementation is easy for the Dict API, just update the defaults dictionary with the style one. For the String API it's a bit more tricky because we need to detect the style properties contained in the string (
'color:' in style
) to remove the defaults, and then serialize the rest of defaults.The text was updated successfully, but these errors were encountered: