8000 [Feature] Area can use `stroke`, `lineWidth` to draw top line or bottom line or whole line · Issue #157 · VisActor/VRender · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Feature] Area can use stroke, lineWidth to draw top line or bottom line or whole line #157

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xile611 opened this issue Jul 14, 2023 · 0 comments
Assignees
Milestone

Comments

@xile611
Copy link
Contributor
xile611 commented Jul 14, 2023

What problem does this feature solve?

image
  1. when add stroke, to Area, areaRender can use this attribute to draw top line by default; other attributes in IStrokeStyle are used to draw top line by default too
  2. add a new attribute, lineType to control which type of line to be drawn when IStrokeStyle is not empty. lineType should support three option: top(or main), bottom (or base), outline,
  • top (or main) is the default value ,and use x, y to draw line;
  • bottom (or base) will use x, y1 or x1, y to draw line;
  • outline will draw all the outline

What does the proposed API look like?

IAreaAttribute {
   lineType?: 'top' | 'bottom' | 'outline';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0