constant.js 6.4 KB

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