Closed Kanahiro closed 11 months ago
Looks to become pretty simplier! Should be careful about size translation, which should be close to map portraying. Let me investigate a bit, I will teply today
I mean:
We can convert any units to point
!
I am suspecting dash size to be linked to stroke size. Let me check.
It looks to be no precision about preset Dash patterns size:
Here is my estimation after measurements, considering stroke_width = s
Dash line : [4s, 2s]
Dot line : [1s, 2s]
Dash dot line : [4s, 2s, 1s, 2s]
Dash dot dot line : [4s, 2s, 1s, 2s, 1s, 2s]
if stroke is not nopen or solid, it is good to assign
dash
to "stroke" and adddash_pattern
prop as following:To be generic, it is better to treat
dash | dot | dashdot | dashdotdot | customdash
in one logic. We may be able to translate like: dash -> [5, 2] dot -> [1, 2] dashdot -> [4, 1, 2, 1] dashdotdot -> [4, 1, 2, 1, 2, 1]Then my proposal is: