tableLabelPayload function
GeometryPayload
tableLabelPayload({
- required Vector2 anchor,
- required double height,
- required Transform2 placement,
The label payload: anchor, [height, rotation, widthFactor] stamped
for placement.
Implementation
GeometryPayload tableLabelPayload(
{required Vector2 anchor,
required double height,
required Transform2 placement}) {
final s = tableLabelStamp(placement);
return GeometryPayload(
coords: Float64List.fromList([anchor.x, anchor.y]),
scalars: Float64List.fromList([height, s.rotation, s.widthFactor]),
);
}