0.0.7 • Published 5 years ago
@yanqirenshi/d3.wireframe v0.0.7
D3.Wireframe
ワイヤーフレームをスケッチするためのライブラリです。
Expression
以下の要素を描画できます。
| Element | element_type | type |
|---|---|---|
| label | label | 1 |
| button | button | 2 |
| Frame(Plain) | frame | 2 |
| Frame(Diagonal) | frame_diagonal | 2 |
| inputtext | input_text | 2 |
| inputradio | input_radio | 3 |
| inputcheckbox | input_checkbox | 3 |
| tabs | tabs | 3 |
| table | table | 3 |
Data
描画するためのデータは三種類あります。
Type 1
{
text: '',
position: { x:0, y:0, z:0 },
font: { size: '11px', bold: true }
},Type 2
{
element_type: 'frame',
rectangle: { w: 0, h: 0 },
position: { x:0, y:0, z:0 },
labels: [@type1...],
children: [],
},Type 3
{
element_type: '...',
rectangle: { w: 0, h: 0 },
position: { x:0, y:0, z:0 },
labels: [@type1...],
},Authors
- Satoshi Iwasaki (yanqirenshi@gmail.com)
Copyright
Copyright (c) 2018 Satoshi Iwasaki (yanqirenshi@gmail.com)
Licence
This software is released under the GNU GENERAL PUBLIC LICENSE Version 3, see LICENSE.