describes.json 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. {
  2. "stroke": {
  3. "type": "color",
  4. "label": "边框色",
  5. "layout-type": "column"
  6. },
  7. "name": {
  8. "type": "text",
  9. "label": "名称",
  10. "layout-type": "row"
  11. },
  12. "coverStroke": {
  13. "type": "color",
  14. "label": "背景边框颜色",
  15. "layout-type": "column"
  16. },
  17. "fill": {
  18. "type": "color",
  19. "label": "填充色",
  20. "layout-type": "column"
  21. },
  22. "fontColor": {
  23. "type": "color",
  24. "label": "字体颜色",
  25. "layout-type": "column"
  26. },
  27. "coverFill": {
  28. "type": "color",
  29. "label": "背景颜色",
  30. "layout-type": "column"
  31. },
  32. "ref": {
  33. "type": "check",
  34. "label": "参考物",
  35. "default": false,
  36. "layout-type": "row"
  37. },
  38. "strokeScaleEnabled": {
  39. "type": "check",
  40. "label": "固定边框粗细",
  41. "default": false,
  42. "layout-type": "row"
  43. },
  44. "strokeWidth": {
  45. "type": "num",
  46. "label": "边框粗细",
  47. "default": 1,
  48. "props": {
  49. "min": 0.1,
  50. "max": 500
  51. },
  52. "layout-type": "column"
  53. },
  54. "rotate": {
  55. "type": "num",
  56. "label": "旋转角度",
  57. "default": 0,
  58. "props": {
  59. "min": -180,
  60. "max": 180
  61. },
  62. "layout-type": "column"
  63. },
  64. "coverStrokeWidth": {
  65. "type": "num",
  66. "label": "背景边框粗细",
  67. "default": 0,
  68. "props": {
  69. "min": 0.5,
  70. "max": 10
  71. },
  72. "layout-type": "column"
  73. },
  74. "opacity": {
  75. "type": "num",
  76. "label": "透明度",
  77. "props": {
  78. "min": 0,
  79. "max": 1,
  80. "step": 0.01
  81. },
  82. "default": 1,
  83. "layout-type": "column"
  84. },
  85. "coverOpcatiy": {
  86. "type": "num",
  87. "label": "背景透明度",
  88. "props": {
  89. "min": 0,
  90. "max": 1,
  91. "step": 0.01
  92. },
  93. "default": 1,
  94. "layout-type": "column"
  95. },
  96. "zIndex": {
  97. "type": "num",
  98. "label": "层叠层级",
  99. "props": {
  100. "min": -1000,
  101. "max": 1000,
  102. "step": 1
  103. },
  104. "default": 0,
  105. "layout-type": "column"
  106. },
  107. "pointerLength": {
  108. "type": "num",
  109. "label": "箭头大小",
  110. "props": {
  111. "min": 0.5,
  112. "max": 10
  113. },
  114. "layout-type": "column"
  115. },
  116. "align": {
  117. "type": "select",
  118. "label": "对齐方式",
  119. "props": {
  120. "options": [
  121. {
  122. "label": "居中对齐",
  123. "value": "center"
  124. },
  125. {
  126. "label": "左对齐",
  127. "value": "left"
  128. },
  129. {
  130. "label": "右对齐",
  131. "value": "right"
  132. }
  133. ]
  134. },
  135. "layout-type": "row"
  136. },
  137. "fontSize": {
  138. "type": "num",
  139. "label": "字体大小",
  140. "props": {
  141. "min": 12,
  142. "max": 100
  143. },
  144. "layout-type": "column"
  145. },
  146. "fontStyle": {
  147. "type": "select",
  148. "label": "字体样式",
  149. "props": {
  150. "options": [
  151. {
  152. "label": "默认",
  153. "value": "normal"
  154. },
  155. {
  156. "label": "斜体",
  157. "value": "italic"
  158. },
  159. {
  160. "label": "粗体",
  161. "value": "bold"
  162. },
  163. {
  164. "label": "粗斜体",
  165. "value": "italic bold"
  166. }
  167. ]
  168. },
  169. "layout-type": "row"
  170. },
  171. "dash": {
  172. "type": "proportion",
  173. "label": "虚线比例",
  174. "props": {
  175. "scale": 30
  176. },
  177. "default": [
  178. 1,
  179. 0
  180. ],
  181. "layout-type": "column"
  182. },
  183. "pointerPosition": {
  184. "type": "select",
  185. "label": "箭头方向",
  186. "props": {
  187. "options": [
  188. {
  189. "label": "起点",
  190. "value": "start"
  191. },
  192. {
  193. "label": "终点",
  194. "value": "end"
  195. },
  196. {
  197. "label": "全部",
  198. "value": "all"
  199. }
  200. ]
  201. },
  202. "layout-type": "row"
  203. }
  204. }