Style.js 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. const Style = {
  2. Wall: {
  3. strokeStyle: '#FFFFFF',
  4. lineWidth: 4,
  5. lineWidth_out: 6,
  6. //承重墙
  7. important: {
  8. strokeStyle: '#FFFFFF',
  9. lineWidth: 6,
  10. },
  11. error: {
  12. strokeStyle: 'rgba(255,0,0,0.5)',
  13. fillStyle: 'rgba(255,0,0,0.8)',
  14. },
  15. },
  16. Point: {
  17. strokeStyle: 'green',
  18. fillStyle: 'rgb(0, 200, 175)',
  19. radius: 4,
  20. },
  21. Component: {
  22. strokeStyle: 'rgba(255,255,255,1)',
  23. fillStyle: 'rgba(255,255,255,0)',
  24. lineWidth: 1,
  25. },
  26. Tag: {
  27. strokeStyle: 'rgb(255,255,255,1)',
  28. fillStyle: 'rgb(255,255,255,1)',
  29. strokeStyle_adding: 'rgba(243, 255, 0, 0.8)',
  30. fillStyle_adding: 'rgba(243, 255, 0, 0.8)',
  31. lineWidth: 1,
  32. },
  33. Sign: {
  34. strokeStyle: 'rgb(255,255,255,1)',
  35. fillStyle: 'rgba(0,0,0,0)',
  36. lineWidth: 1,
  37. },
  38. Select: {
  39. Wall: {
  40. strokeStyle: 'rgba(243, 255, 0, 1)',
  41. },
  42. Wall_out: {
  43. strokeStyle: 'rgba(243, 255, 0, 1)',
  44. },
  45. Component: {
  46. strokeStyle: 'rgba(243, 255, 0, 0.8)',
  47. fillStyle: 'rgba(243, 255, 0, 0.5)',
  48. },
  49. Tag: {
  50. strokeStyle: '#00C8AF',
  51. fillStyle: '#00C8AF',
  52. },
  53. Sign: {
  54. strokeStyle: 'rgba(243, 255, 0, 0.8)',
  55. fillStyle: 'rgba(243, 255, 0, 0.5)',
  56. },
  57. Point: {
  58. radius: 4,
  59. lineWidth: 2,
  60. fillStyle: 'rgba(245, 255, 0, 1)',
  61. strokeStyle: 'rgba(245, 255, 255, 1)',
  62. },
  63. },
  64. Focus: {
  65. Wall: {
  66. strokeStyle: 'rgba(243, 255, 0, 1)',
  67. },
  68. Component: {
  69. strokeStyle: 'rgba(243, 255, 0, 0.8)',
  70. fillStyle: 'rgba(243, 255, 0, 0.5)',
  71. },
  72. Tag: {
  73. strokeStyle: '#00C8AF',
  74. fillStyle: '#00C8AF',
  75. },
  76. Sign: {
  77. strokeStyle: 'rgba(243, 255, 0, 0.8)',
  78. fillStyle: 'rgba(243, 255, 0, 0.5)',
  79. },
  80. Point: {
  81. radius: 4,
  82. lineWidth: 2,
  83. fillStyle: 'rgba(245, 255, 0, 1)',
  84. strokeStyle: 'rgba(245, 255, 255, 1)',
  85. },
  86. },
  87. Element: {
  88. StartAddWall: {
  89. radius: 4,
  90. fillStyle: 'yellow',
  91. strokeStyle: 'green',
  92. },
  93. NewWall: {
  94. lineWidth: 4,
  95. lineWidth_out: 6,
  96. strokeStyle: 'rgba(255,255,255,0.3)',
  97. strokeStyle_out: 'rgba(102,102,102,0.3)',
  98. errorStrokeStyle: 'rgb(250,63,72,0.3)',
  99. },
  100. StartSymbolPoints: {
  101. radius: 4,
  102. fillStyle: 'yellow',
  103. strokeStyle: 'green',
  104. },
  105. EndSymbolPoints: {
  106. radius: 4,
  107. fillStyle: 'yellow',
  108. strokeStyle: 'green',
  109. },
  110. CheckLinesX: {
  111. lineWidth: 2,
  112. strokeStyle: '#CED806',
  113. },
  114. CheckLinesY: {
  115. lineWidth: 2,
  116. strokeStyle: '#CED806',
  117. },
  118. VCheckLinesX: {
  119. lineWidth: 2,
  120. strokeStyle: '#CED806',
  121. //strokeStyle: 'rgba(100,149,237,0.5)',
  122. },
  123. VCheckLinesY: {
  124. lineWidth: 2,
  125. strokeStyle: '#CED806',
  126. //strokeStyle: 'rgba(100,149,237,0.5)',
  127. },
  128. },
  129. Font: {
  130. font: '14px Microsoft YaHei',
  131. fillStyle: '#FFFFFF',
  132. strokeStyle: '#FFFFFF',
  133. textAlign: 'center',
  134. textBaseline: 'middle',
  135. miterLimit: 10,
  136. direction: 'ltr',
  137. },
  138. Pano: {
  139. radius: 10,
  140. lineWidth: 2,
  141. strokeStyle: 'rgba(255,255,255,0.4)',
  142. fillStyle: 'rgba(255,255,255,0.1)',
  143. },
  144. Measure: {
  145. txt: 'rgba(255,255,255,1)', //画墙/选墙的时候 测量值的颜色
  146. strokeStyle: 'rgba(255,255,255,1)',
  147. lineWidth: 1,
  148. },
  149. DownLoad: {
  150. style1: {
  151. Wall: {
  152. strokeStyle: '#666666',
  153. lineWidth: 4,
  154. lineWidth_out: 6,
  155. //承重墙
  156. important: {
  157. strokeStyle: '#666666',
  158. lineWidth: 6,
  159. },
  160. },
  161. Component: {
  162. strokeStyle: '#666666',
  163. fillStyle: '#666666',
  164. lineWidth: 1,
  165. },
  166. Tag: {
  167. strokeStyle: '#000000', //标注的颜色
  168. fillStyle: '#000000', //标注的颜色
  169. lineWidth: 1,
  170. },
  171. Font: {
  172. font: '14px Microsoft YaHei',
  173. fillStyle: '#000000', //上下左右测量值
  174. strokeStyle: '#000000',
  175. textAlign: 'center',
  176. textBaseline: 'middle',
  177. miterLimit: 10,
  178. direction: 'ltr',
  179. },
  180. Measure: {
  181. strokeStyle: '#CCCCCC',
  182. lineWidth: 1,
  183. },
  184. },
  185. style2: {
  186. Wall: {
  187. strokeStyle: '#FFFFFF',
  188. lineWidth: 4,
  189. lineWidth_out: 6,
  190. //承重墙
  191. important: {
  192. strokeStyle: '#FFFFFF',
  193. lineWidth: 6,
  194. },
  195. },
  196. Component: {
  197. strokeStyle: '#FFFFFF',
  198. fillStyle: '#FFFFFF',
  199. lineWidth: 1,
  200. },
  201. Tag: {
  202. strokeStyle: '#FFFFFF', //标注的颜色
  203. fillStyle: '#FFFFFF', //标注的颜色
  204. lineWidth: 1,
  205. },
  206. Font: {
  207. font: '14px Microsoft YaHei',
  208. fillStyle: '#FFFFFF', //上下左右测量值
  209. strokeStyle: '#FFFFFF',
  210. textAlign: 'center',
  211. textBaseline: 'middle',
  212. miterLimit: 10,
  213. direction: 'ltr',
  214. },
  215. Measure: {
  216. strokeStyle: '#FFFFFF',
  217. lineWidth: 1,
  218. },
  219. },
  220. style3: {
  221. Wall: {
  222. strokeStyle: '#666666',
  223. lineWidth: 4,
  224. lineWidth_out: 6,
  225. //承重墙
  226. important: {
  227. strokeStyle: '#666666',
  228. lineWidth: 6,
  229. },
  230. },
  231. Component: {
  232. strokeStyle: '#666666',
  233. fillStyle: '#666666',
  234. lineWidth: 1,
  235. },
  236. Tag: {
  237. strokeStyle: '#000000', //标注的颜色
  238. fillStyle: '#000000', //标注的颜色
  239. strokeStyle_adding: 'rgba(243, 255, 0, 0.8)',
  240. fillStyle_adding: 'rgba(243, 255, 0, 0.8)',
  241. lineWidth: 1,
  242. },
  243. Font: {
  244. font: '14px Microsoft YaHei',
  245. fillStyle: '#000000', //上下左右测量值
  246. strokeStyle: '#000000',
  247. textAlign: 'center',
  248. textBaseline: 'middle',
  249. miterLimit: 10,
  250. direction: 'ltr',
  251. },
  252. Measure: {
  253. strokeStyle: '#CCCCCC',
  254. lineWidth: 2,
  255. },
  256. },
  257. style4: {
  258. Wall: {
  259. strokeStyle: '#FFFFFF',
  260. lineWidth: 4,
  261. lineWidth_out: 6,
  262. //承重墙
  263. important: {
  264. strokeStyle: '#FFFFFF',
  265. lineWidth: 6,
  266. },
  267. },
  268. Component: {
  269. strokeStyle: '#FFFFFF',
  270. fillStyle: '#FFFFFF',
  271. lineWidth: 1,
  272. },
  273. Tag: {
  274. strokeStyle: '#FFFFFF', //标注的颜色
  275. fillStyle: '#FFFFFF', //标注的颜色
  276. lineWidth: 1,
  277. },
  278. Font: {
  279. font: '14px Microsoft YaHei',
  280. fillStyle: '#FFFFFF', //上下左右测量值
  281. strokeStyle: '#FFFFFF',
  282. textAlign: 'center',
  283. textBaseline: 'middle',
  284. miterLimit: 10,
  285. direction: 'ltr',
  286. },
  287. Measure: {
  288. strokeStyle: '#FFFFFF',
  289. lineWidth: 1,
  290. },
  291. },
  292. },
  293. }
  294. export default Style