Module border

Source

Structsยง

BorderRadiusAu
BorderSegmentCacheKey
Cache key that uniquely identifies a border segment in the render task cache.
BorderSideAu
DotInfo ๐Ÿ”’
EdgeInfo ๐Ÿ”’
Information needed to place and draw a border edge.
NormalBorderAu

Enumsยง

BorderClipKind
The kind of border corner clip.

Constantsยง

MAX_BORDER_RESOLUTION
Maximum resolution in device pixels at which borders are rasterized.
MAX_DASH_COUNT
Maximum number of dots or dashes per segment to avoid freezing and filling up memory with unreasonable inputs. It would be better to address this by not building a list of per-dot information in the first place.

Traitsยง

BorderSideHelpers

Functionsยง

add_corner_segment ๐Ÿ”’
Add a corner segment (if valid) to the list of border segments for this primitive.
add_edge_segment ๐Ÿ”’
Add an edge segment (if valid) to the list of border segments for this primitive.
add_segment ๐Ÿ”’
build_border_instances
Build the set of border instances needed to draw a border segment into the render task cache.
compute_half_dash ๐Ÿ”’
compute_outer_and_clip_sign ๐Ÿ”’
create_border_segments
Create the set of border segments and render task cache keys for a given CSS border.
ensure_no_corner_overlap
get_edge_info ๐Ÿ”’
get_max_scale_for_border
Computes the maximum scale that we allow for this set of border parameters. capping the scale will result in rendering very large corners at a lower resolution and stretching them, so they will have the right shape, but blurrier.
write_dashed_corner_instances ๐Ÿ”’
write_dotted_corner_instances ๐Ÿ”’