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);
        }
Пример #2
0
 public extern static ReactElement Area(AreaAttributes properties, params ReactElementOrText[] children);