Replies: 2 comments 2 replies
-
I think you're right, that probably would have made it more clear. The problem is that making such a change now would break a lot of current applications while not really introducing any new functionality, aside from perhaps adding the ability for each object using a particular clipPath to have different properties (I'm not sure how useful that would be). Perhaps there's a functional reason for the clipping properties being attached to the clipPath itself that I'm not aware of. @asturur would be the better person to answer that. |
Beta Was this translation helpful? Give feedback.
-
Regarding nested properties in objects, my concerns are the following, and they are mostly about mutability and extra code to handle them. I see those cons with nested properties:
While the pro for me are just:
if we want them to be more clear of what they do, we can change the names with a prefix, like, |
Beta Was this translation helpful? Give feedback.
-
I think the props
inverted
andabsolutePositioned
should be changed.They are extremely unclear and confusing. Their names and the fact that they are set on the clip path object instead of on the object you want to clip.
I suggest unifying them under
clipPathOptions
orclipPathConfig
and for this prop to reside on the object you want to clip.This is IMO much more clear and intuitive.
Consider this:
@asturur @melchiar
Beta Was this translation helpful? Give feedback.
All reactions