constant.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.LEGEND_INFER_STRATEGIES = void 0;
  4. /**
  5. * @examples
  6. * ✅
  7. * color - `discrete`, shape - `constant`
  8. * legendCategory.rule[27] is matched
  9. *
  10. * ❎
  11. * shape - `discrete`, size - `constant`
  12. * There are no rules to match
  13. *
  14. */
  15. exports.LEGEND_INFER_STRATEGIES = [
  16. [
  17. 'legendCategory',
  18. [
  19. [
  20. ['color', 'discrete'],
  21. ['opacity', 'discrete'],
  22. ['shape', 'discrete'],
  23. ['size', 'constant'],
  24. ],
  25. [
  26. ['color', 'discrete'],
  27. ['opacity', 'constant'],
  28. ['shape', 'discrete'],
  29. ['size', 'constant'],
  30. ],
  31. [
  32. ['color', 'discrete'],
  33. ['opacity', 'discrete'],
  34. ['shape', 'constant'],
  35. ['size', 'constant'],
  36. ],
  37. [
  38. ['color', 'discrete'],
  39. ['opacity', 'constant'],
  40. ['shape', 'constant'],
  41. ['size', 'constant'],
  42. ],
  43. [
  44. ['color', 'constant'],
  45. ['opacity', 'discrete'],
  46. ['shape', 'discrete'],
  47. ['size', 'constant'],
  48. ],
  49. [
  50. ['color', 'constant'],
  51. ['opacity', 'constant'],
  52. ['shape', 'discrete'],
  53. ['size', 'constant'],
  54. ],
  55. [
  56. ['color', 'constant'],
  57. ['opacity', 'discrete'],
  58. ['shape', 'constant'],
  59. ['size', 'constant'],
  60. ],
  61. [
  62. ['color', 'discrete'],
  63. ['shape', 'discrete'],
  64. ['size', 'constant'],
  65. ],
  66. [
  67. ['color', 'discrete'],
  68. ['opacity', 'discrete'],
  69. ['shape', 'discrete'],
  70. ],
  71. [
  72. ['color', 'discrete'],
  73. ['opacity', 'discrete'],
  74. ['size', 'constant'],
  75. ],
  76. [
  77. ['color', 'discrete'],
  78. ['opacity', 'constant'],
  79. ['shape', 'discrete'],
  80. ],
  81. [
  82. ['color', 'discrete'],
  83. ['opacity', 'constant'],
  84. ['size', 'constant'],
  85. ],
  86. [
  87. ['color', 'discrete'],
  88. ['shape', 'constant'],
  89. ['size', 'constant'],
  90. ],
  91. [
  92. ['color', 'discrete'],
  93. ['opacity', 'discrete'],
  94. ['shape', 'constant'],
  95. ],
  96. [
  97. ['color', 'discrete'],
  98. ['opacity', 'constant'],
  99. ['shape', 'constant'],
  100. ],
  101. [
  102. ['color', 'constant'],
  103. ['shape', 'discrete'],
  104. ['size', 'constant'],
  105. ],
  106. [
  107. ['color', 'constant'],
  108. ['opacity', 'discrete'],
  109. ['shape', 'discrete'],
  110. ],
  111. [
  112. ['color', 'constant'],
  113. ['opacity', 'discrete'],
  114. ['size', 'constant'],
  115. ],
  116. [
  117. ['color', 'constant'],
  118. ['opacity', 'constant'],
  119. ['shape', 'discrete'],
  120. ],
  121. // [
  122. // ['color', 'constant'],
  123. // ['opacity', 'constant'],
  124. // ['size', 'constant'],
  125. // ],
  126. // [
  127. // ['color', 'constant'],
  128. // ['shape', 'constant'],
  129. // ['size', 'constant'],
  130. // ],
  131. [
  132. ['color', 'constant'],
  133. ['opacity', 'discrete'],
  134. ['shape', 'constant'],
  135. ],
  136. [
  137. ['color', 'discrete'],
  138. ['shape', 'discrete'],
  139. ],
  140. [
  141. ['color', 'discrete'],
  142. ['size', 'constant'],
  143. ],
  144. [
  145. ['color', 'discrete'],
  146. ['opacity', 'discrete'],
  147. ],
  148. [
  149. ['color', 'discrete'],
  150. ['opacity', 'constant'],
  151. ],
  152. [
  153. ['color', 'discrete'],
  154. ['shape', 'constant'],
  155. ],
  156. [
  157. ['color', 'constant'],
  158. ['shape', 'discrete'],
  159. ],
  160. [
  161. ['color', 'constant'],
  162. ['size', 'constant'],
  163. ],
  164. [
  165. ['color', 'constant'],
  166. ['opacity', 'discrete'],
  167. ],
  168. // [
  169. // ['color', 'constant'],
  170. // ['opacity', 'constant'],
  171. // ],
  172. // [
  173. // ['color', 'constant'],
  174. // ['shape', 'constant'],
  175. // ],
  176. [['color', 'discrete']],
  177. // [['color', 'constant']],
  178. ],
  179. ],
  180. [
  181. 'legendContinuousSize',
  182. [
  183. [
  184. ['color', 'continuous'],
  185. ['opacity', 'continuous'],
  186. ['size', 'continuous'],
  187. ],
  188. [
  189. ['color', 'constant'],
  190. ['opacity', 'continuous'],
  191. ['size', 'continuous'],
  192. ],
  193. [
  194. ['color', 'continuous'],
  195. ['size', 'continuous'],
  196. ],
  197. [
  198. ['color', 'constant'],
  199. ['size', 'continuous'],
  200. ],
  201. [
  202. ['size', 'continuous'],
  203. ['opacity', 'continuous'],
  204. ],
  205. [['size', 'continuous']],
  206. ],
  207. ],
  208. [
  209. 'legendContinuousBlockSize',
  210. [
  211. [
  212. ['color', 'distribution'],
  213. ['opacity', 'distribution'],
  214. ['size', 'distribution'],
  215. ],
  216. [
  217. ['color', 'distribution'],
  218. ['size', 'distribution'],
  219. ],
  220. ],
  221. ],
  222. [
  223. 'legendContinuousBlock',
  224. [
  225. [
  226. ['color', 'distribution'],
  227. ['opacity', 'continuous'],
  228. ],
  229. [['color', 'distribution']],
  230. ],
  231. ],
  232. [
  233. 'legendContinuous',
  234. [
  235. [
  236. ['color', 'continuous'],
  237. ['opacity', 'continuous'],
  238. ],
  239. [['color', 'continuous']],
  240. [['opacity', 'continuous']],
  241. ],
  242. ],
  243. ];
  244. //# sourceMappingURL=constant.js.map