import { Palette } from "std-widgets.slint"; import { Graph } from "../widgets/graph.slint"; export struct Node { x: length, y: length} export component PageFans inherits VerticalLayout { in-out property <[Node]> nodes: [ { x: 10px, y: 10px, }, { x: 40px, y: 30px, }, { x: 70px, y: 50px, }, { x: 100px, y: 70px, }, { x: 130px, y: 90px, }, { x: 160px, y: 110px, }, { x: 190px, y: 130px, }, { x: 220px, y: 150px, }, ]; HorizontalLayout { Graph { // width: root.preferred-width; // height: root.preferred-height; nodes <=> root.nodes; } } }