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
{{ message }}
This repository has been archived by the owner on Dec 7, 2018. It is now read-only.
JavaScript doesn't have value types, but we have custom types for things like Point, Rect, Border, Segment, etc. This is painful for a number of reasons, but for this issue, my complaint is that you can't write:
layer.border.width = 3
Instead you have to write:
layer.border.width = new Border({width: 3, color: layer.border.color})
We've intentionally disabled property setters for these value types because their parent wouldn't notice if the properties' values change. We could set up explicit observers of the returned bridged values to fix that.
JavaScript doesn't have value types, but we have custom types for things like
Point
,Rect
,Border
,Segment
, etc. This is painful for a number of reasons, but for this issue, my complaint is that you can't write:Instead you have to write:
We've intentionally disabled property setters for these value types because their parent wouldn't notice if the properties' values change. We could set up explicit observers of the returned bridged values to fix that.
/cc @saniul (c.f. #70)
The text was updated successfully, but these errors were encountered: