static bool TryGetAreaAttributes(Graph graph, World world, Node node, Direction dir, out AreaAttributes area) { Node neighbour = graph.GetNodeNeighbourOrNull(node, dir); if (neighbour == null) { area = default; return(false); } Point nodePos = graph.GetNodePosition(node).ToMapsui(); Point neighbourPos = graph.GetNodePosition(neighbour).ToMapsui(); area = world.GetAreaAttributesInLine(nodePos, neighbourPos); return(true); }
public extern static ReactElement Area(AreaAttributes properties, params ReactElementOrText[] children);