mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 22:31:14 +00:00
42 lines
1.2 KiB
Text
42 lines
1.2 KiB
Text
/* LICENSE BEGIN
|
|
This file is part of the SixtyFPS Project -- https://sixtyfps.io
|
|
Copyright (c) 2020 Olivier Goffart <olivier.goffart@sixtyfps.io>
|
|
Copyright (c) 2020 Simon Hausmann <simon.hausmann@sixtyfps.io>
|
|
|
|
SPDX-License-Identifier: GPL-3.0-only
|
|
This file is also available under commercial licensing terms.
|
|
Please contact info@sixtyfps.io for more information.
|
|
LICENSE END */
|
|
|
|
|
|
TestCase := Rectangle {
|
|
Path {
|
|
width: 100px;
|
|
height: 100px;
|
|
commands: "hello world";
|
|
// ^error{Error parsing SVG commands}
|
|
stroke: red;
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
TestCase := Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 A 100 100 0 1 0 100 0 Z";
|
|
}
|
|
|
|
TestCase := Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 0 A 100 100 0 1 0 100 0 Z";
|
|
// ^error{Error parsing SVG commands}
|
|
}
|
|
|
|
TestCase := Path {
|
|
width: 640px;
|
|
height: 480px;
|
|
commands: "M 0 0 M -100 0 A 100 100 0 1 0 100 0 Å 100 100 0 1 0 100 0 Z";
|
|
// ^error{Error parsing SVG commands}
|
|
}
|
|
}
|
|
|