slint/tools/online_editor
Simon Hausmann 6aa292eac1 Change the names of the logical and physical pixel units
The logical pixels are now just called "px" and the less frequently
used physical pixels have the "phx" suffix.

The existing markup was adapted using the syntax updater and the
following patch:

    +    if node.kind() == SyntaxKind::NumberLiteral {
    +        if node.text().ends_with("lx") {
    +            return write!(
    +                file,
    +                "{}px",
    +                node.text().as_str().split_at(node.text().as_str().len() - 2).0
    +            );
    +        }
    +        if node.text().ends_with("px") {
    +            return write!(
    +                file,
    +                "{}phx",
    +                node.text().as_str().split_at(node.text().as_str().len() - 2).0
    +            );
    +        }
    +    }

Fixes #49
2020-10-16 07:19:40 +02:00
..
.gitignore Ignore the generated pkg/ directory 2020-10-12 11:26:15 +02:00
highlighting.ts Missing license header 2020-10-10 13:20:13 +02:00
index.html Some changes to the online editor 2020-10-09 13:14:30 +02:00
index.ts Change the names of the logical and physical pixel units 2020-10-16 07:19:40 +02:00
package.json Separate release and dev builds of the online editor 2020-10-05 16:45:29 +02:00
tsconfig.json Ported the online editor across into this repo 2020-10-05 15:05:55 +02:00
webpack.common.js Online editor don't ship with support for other languages 2020-10-09 12:48:56 +02:00
webpack.dev.js Separate release and dev builds of the online editor 2020-10-05 16:45:29 +02:00
webpack.prod.js Separate release and dev builds of the online editor 2020-10-05 16:45:29 +02:00