-
Notifications
You must be signed in to change notification settings - Fork 38
Add "circle-stroke-*" style properties #379
Comments
Refs #223 with some backstory in mapbox/mapbox-gl-native#1737 & mapbox/mapbox-gl-native#1734. |
cc @baileyid |
What is a stroke in GL?
I'm not sure what to call this feature in the context of circles. The TWC team and @samanpwbb feel that "stroke" is the most conventional term. The existing GL terminology might suggest "halo" is the most idiomatic within the context of the GL ecosystem. What should we call this feature? How can we make our terminology consistent across the platform? cc @samanpwbb @jfirebaugh @tmcw @danswick @lyzidiamond @1ec5 |
Hypothesis: The term "stroke", "outline", "border", or "casing" usually arises in an API because the expected use case is thin and darker than the fill. The term "halo" or "glow" arises because the expected use case is thick, lighter than the fill, and possibly translucent. |
What would the corresponding SVG/CSS properties be? |
Good question @1ec5. Here's my best attempt at sussing out the terminology used in common specifications & software: Related SVG TerminologyRelated CSS TerminologyRelated Photoshop Terminology
Related Illustrator Terminology
Related Inkscape Terminology
|
Another fun data set:
|
My own experience doesn't match your hypothesis, @1ec5 - I don't think 'stroke' carries connotations of colour, thickness or opacity. 'Glow', to me, would indicate that the effect might 'fall off' (be fuzzy). I would expect a stroke to be either solid or patterned (dotted, dashed, etc). SVG's stroke properties (from here: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stroke) are:
|
Thanks @beejamin, clearly you’ve thought about this more than I have. 😉 The reason I bring up SVG and CSS is that all the geometries in question, even text, are considered to be stroked and filled in SVG (and CSS as used in SVG). Having authored SVG frequently in the past, I always think of “stroke” as the antonym of “fill”. It’s an elegant model, and we can always supplement the “stroke” terminology by mentioning synonyms like “outline” and “halo” in documentation. The one I’m not quite as sure about is |
We are hoping to support:
|
Implementing |
Implemented in #579. |
We should support outlines on circles.
Our "outline"-like styles are inconsistent. On fills we only support 1px outlines. On symbols we support arbitrary width "halos" (which can also be blurred).
Ideally, we would support all of the following properties for circle outlines:
circle-stroke-color
circle-stroke-width
circle-stroke-opacity
circle-stroke-blur
ref mapbox/mapbox-gl-js#1713
cc @bhousel @vicapow
The text was updated successfully, but these errors were encountered: