8000 api: revise the appendRect/appendCircle · Issue #3179 · thorvg/thorvg · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
api: revise the appendRect/appendCircle #3179
Closed
@hermet

Description

@hermet

Migrate the rectangle/circle append logic from Lottie implementation body as our default and allow path direction, since ThorVG already supports trim path, the direction is also useful.

Result Shape::appendRect(float x, float y, float w, float h, float rx = 0, float ry = 0)
-> Result Shape::appendRect(float x, float y, float w, float h, float rx = 0, float ry = 0, bool clockwise = true)
Result Shape::appendCircle(float cx, float cy, float rx, float ry)
-> Result Shape::appendCircle(float cx, float cy, float rx, float ry, bool clockwise = true)

Metadata

Metadata

Assignees

Labels

APIsUpdate / Revise APIsrefactoringCode refactoring / Exceptional handles

Type

No type

Projects

Status

Done 1.0

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0