generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Copying Hugh's description from the pre-release tracker:
Presently the mechanism for applying a composite style is through repeated call to styled: styled(styled(ent, sty_lower), sty_upper), which results in StyledEntity that has a StyledEntity for it's ent field.
There are a few difficulties with this:
- It isn't possible to store such a combination upfront to apply to multiple entities, this clashes with the design of
StyleDict. - When applying compositions of styles such as
Optional(Rounded())andOptional(MeshSized()), the resolution ofto_primitivescan result in ambiguous combinations. The options in this scenario are additive, if theRoundedis active, the primitive changes, and if theMeshSizedis present thenmeshgradingandmeshsizechange.
It would be ideal to allow something like sty = Rounded() ∘ MeshSized() to construct such styles.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request