1
0

Style.js 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. const Style = {
  2. Wall: {
  3. strokeStyle: 'rgba(0,0,0,1)',
  4. lineWidth: 2,
  5. error: {
  6. strokeStyle: 'rgba(255,0,0,0.5)',
  7. fillStyle: 'rgba(255,0,0,0.8)',
  8. },
  9. },
  10. Point: {
  11. strokeStyle: 'rgba(0,128,0, 1)',
  12. fillStyle: 'rgba(0, 200, 175, 1)',
  13. radius: 4,
  14. },
  15. Tag: {
  16. strokeStyle: 'rgba(0,0,0,1)',
  17. fillStyle: 'rgba(0,0,0,1)',
  18. strokeStyle_adding: 'rgba(243, 255, 0, 0.8)',
  19. fillStyle_adding: 'rgba(243, 255, 0, 0.8)',
  20. lineWidth: 1,
  21. },
  22. Sign: {
  23. strokeStyle: 'rgba(0,0,0,1)',
  24. fillStyle: 'rgba(0,0,0,0)',
  25. lineWidth: 1,
  26. },
  27. Title: {
  28. strokeStyle: 'rgba(0,0,0,1)',
  29. fillStyle: 'rgba(0,0,0,1)',
  30. lineWidth: 1,
  31. },
  32. Compass: {
  33. strokeStyle: 'rgba(0,0,0,1)',
  34. fillStyle: 'rgba(0,0,0,0)',
  35. lineWidth: 1,
  36. },
  37. Rectangle:{
  38. strokeStyle: 'rgba(0,0,0,1)',
  39. lineWidth: 2,
  40. },
  41. Circle:{
  42. strokeStyle: 'rgba(0,0,0,1)',
  43. lineWidth: 2,
  44. },
  45. Icon:{
  46. strokeStyle: 'rgba(0,0,0,1)',
  47. lineWidth: 2,
  48. },
  49. Arrow: {
  50. strokeStyle: 'rgba(0,0,0,1)',
  51. lineWidth: 2,
  52. },
  53. Table:{
  54. strokeStyle: 'rgba(0,0,0,1)',
  55. lineWidth: 2,
  56. },
  57. Select: {
  58. Wall: {
  59. strokeStyle: 'rgba(0,128,0,1)',
  60. },
  61. Rectangle: {
  62. strokeStyle: 'rgba(0,128,0,1)',
  63. fillStyle: 'rgba(243, 255, 0, 0.5)',
  64. },
  65. Circle: {
  66. strokeStyle: 'rgba(0,128,0,1)',
  67. fillStyle: 'rgba(243, 255, 0, 0.5)',
  68. },
  69. Icon: {
  70. strokeStyle: 'rgba(0,128,0,1)',
  71. fillStyle: 'rgba(243, 255, 0, 0.5)',
  72. },
  73. Arrow: {
  74. strokeStyle: 'rgba(0,128,0,1)',
  75. },
  76. Tag: {
  77. strokeStyle: 'rgba(0,200,175,1)',
  78. fillStyle: 'rgba(0,200,175,1)',
  79. },
  80. Table: {
  81. //strokeStyle: 'rgba(0,128,0,1)',
  82. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  83. strokeStyle: 'rgba(0,200,175,1)',
  84. fillStyle: 'rgba(0,200,175,1)',
  85. },
  86. Sign: {
  87. //strokeStyle: 'rgba(243, 255, 0, 0.8)',
  88. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  89. strokeStyle: 'rgba(0,200,175,1)',
  90. fillStyle: 'rgba(0,200,175,1)',
  91. },
  92. Point: {
  93. radius: 4,
  94. lineWidth: 2,
  95. fillStyle: 'rgba(0, 200, 175,1)',
  96. strokeStyle: 'rgba(0,128,0,1)',
  97. },
  98. Title: {
  99. strokeStyle: 'rgba(0,200,175,1)',
  100. fillStyle: 'rgba(0,200,175,1)',
  101. },
  102. Compass: {
  103. //strokeStyle: 'rgba(243, 255, 0, 0.8)',
  104. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  105. strokeStyle: 'rgba(0,200,175,1)',
  106. fillStyle: 'rgba(0,200,175,1)',
  107. },
  108. },
  109. Focus: {
  110. Wall: {
  111. strokeStyle: 'rgba(0,128,0,1)',
  112. },
  113. Rectangle: {
  114. strokeStyle: 'rgba(0,128,0,1)',
  115. fillStyle: 'rgba(243, 255, 0, 0.5)',
  116. },
  117. Circle: {
  118. strokeStyle: 'rgba(0,128,0,1)',
  119. fillStyle: 'rgba(243, 255, 0, 0.5)',
  120. },
  121. Icon: {
  122. strokeStyle: 'rgba(0,128,0,1)',
  123. fillStyle: 'rgba(243, 255, 0, 0.5)',
  124. },
  125. Arrow: {
  126. strokeStyle: 'rgba(0,128,0,1)',
  127. },
  128. Tag: {
  129. strokeStyle: 'rgba(0,200,175,1)',
  130. fillStyle: 'rgba(0,200,175,1)',
  131. },
  132. Table: {
  133. //strokeStyle: 'rgba(0,128,0,1)',
  134. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  135. strokeStyle: 'rgba(0,200,175,1)',
  136. fillStyle: 'rgba(0,200,175,1)',
  137. },
  138. Sign: {
  139. //strokeStyle: 'rgba(243, 255, 0, 0.8)',
  140. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  141. strokeStyle: 'rgba(0,200,175,1)',
  142. fillStyle: 'rgba(0,200,175,1)',
  143. },
  144. Point: {
  145. radius: 4,
  146. lineWidth: 2,
  147. fillStyle: 'rgba(245, 255, 0, 1)',
  148. strokeStyle: 'rgba(0,128,0,1)',
  149. },
  150. Title: {
  151. strokeStyle: 'rgba(0,200,175,1)',
  152. fillStyle: 'rgba(0,200,175,1)',
  153. },
  154. Compass: {
  155. //strokeStyle: 'rgba(243, 255, 0, 0.8)',
  156. //fillStyle: 'rgba(243, 255, 0, 0.5)',
  157. strokeStyle: 'rgba(0,200,175,1)',
  158. fillStyle: 'rgba(0,200,175,1)',
  159. },
  160. },
  161. Element: {
  162. StartAddWall: {
  163. radius: 4,
  164. fillStyle: 'rgba(0, 200, 175, 1)',
  165. strokeStyle: 'rgba(0,128,0,1)',
  166. },
  167. NewWall: {
  168. lineWidth: 2,
  169. strokeStyle: 'rgba(0,0,0,0.3)',
  170. errorStrokeStyle: 'rgba(250,63,72,0.3)',
  171. },
  172. CheckLinesX: {
  173. lineWidth: 2,
  174. strokeStyle: 'rgba(206,216,6,1)',
  175. },
  176. CheckLinesY: {
  177. lineWidth: 2,
  178. strokeStyle: 'rgba(206,216,6,1)',
  179. },
  180. VCheckLinesX: {
  181. lineWidth: 2,
  182. strokeStyle: 'rgba(206,216,6,1)',
  183. //strokeStyle: 'rgba(100,149,237,0.5)',
  184. },
  185. VCheckLinesY: {
  186. lineWidth: 2,
  187. strokeStyle: 'rgba(206,216,6,1)',
  188. //strokeStyle: 'rgba(100,149,237,0.5)',
  189. },
  190. },
  191. // eslint-disable-next-line no-dupe-keys
  192. Title: {
  193. font: '24px Microsoft YaHei',
  194. fillStyle: 'rgba(0,0,0,1)',
  195. strokeStyle: 'rgba(0,0,0,1)',
  196. textAlign: 'center',
  197. textBaseline: 'middle',
  198. miterLimit: 10,
  199. direction: 'ltr',
  200. fontSize:24
  201. },
  202. Font: {
  203. //font: '14px Microsoft YaHei',
  204. font: 'px Microsoft YaHei',
  205. fillStyle: 'rgba(0,0,0,1)',
  206. strokeStyle: 'rgba(0,0,0,1)',
  207. textAlign: 'center',
  208. textBaseline: 'middle',
  209. miterLimit: 10,
  210. direction: 'ltr',
  211. },
  212. }
  213. export default Style