Skip to content

[motion-1] offset-position + circle() #504

Open
@tabatkins

Description

@tabatkins

In the definition of <basic-shape> for 'offset-path', there's a paragraph that states:

If a circle or ellipse basic shape has no explicit center position, the shape is centered at the [=initial position=] of the path, as described in 'offset-position'.

This contradicts Shapes 1, which simply defaults an omitted center-position to "center" without making it configurable.

Worse, this means that 'offset-position' now does two completely unrelated things - for ray(), it sets where the ray emerges from (aka where offset-distance: 0% places you), but for circle() and ellipse() it (sometimes!) sets the center of the ellipse, which is not a point on the path at all.

I don't understand why this is necessary; you can just set the center position directly in the function if you need to, and if you omit it I think it's confusing for it not to act like an omitted position in other contexts. To get the default behavior that Shapes defines I have to explicitly say circle(... at center).

Can we just drop this odd behavior and have circle()/ellipse() default their center position as normal?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions