describes.json 2.7 KB

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