Rect 矩形信息
1. 结构声明
- TS Declaration
- JSON Schema
class Rect extends BaseNode {
x: number;
y: number;
width?: number;
height?: number;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"changedTime": {
"$ref": "#/definitions/long"
},
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
}