This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/js-framework/index.ts

11 lines
202 B
TypeScript
Raw Normal View History

2019-07-16 14:02:55 +08:00
import { Text } from "./view/view";
2019-07-16 15:30:46 +08:00
import { Color } from "./util/color";
2019-07-16 14:02:55 +08:00
const v = new Text
2019-07-16 15:30:46 +08:00
v.width = 20
v.height = 30
v.left = 5
v.top = 5
v.bgColor = Color.parse('#00ff00')
console.log(v.toModel())