mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
49 lines
920 B
Plaintext
49 lines
920 B
Plaintext
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;
|
|
}
|
|
}
|
|
}
|