model.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648
  1. var zrUtil = require("zrender/lib/core/util");
  2. var formatUtil = require("./format");
  3. var nubmerUtil = require("./number");
  4. var Model = require("../model/Model");
  5. var each = zrUtil.each;
  6. var isObject = zrUtil.isObject;
  7. /**
  8. * If value is not array, then translate it to array.
  9. * @param {*} value
  10. * @return {Array} [value] or value
  11. */
  12. function normalizeToArray(value) {
  13. return value instanceof Array ? value : value == null ? [] : [value];
  14. }
  15. /**
  16. * Sync default option between normal and emphasis like `position` and `show`
  17. * In case some one will write code like
  18. * label: {
  19. * normal: {
  20. * show: false,
  21. * position: 'outside',
  22. * fontSize: 18
  23. * },
  24. * emphasis: {
  25. * show: true
  26. * }
  27. * }
  28. * @param {Object} opt
  29. * @param {Array.<string>} subOpts
  30. */
  31. function defaultEmphasis(opt, subOpts) {
  32. if (opt) {
  33. var emphasisOpt = opt.emphasis = opt.emphasis || {};
  34. var normalOpt = opt.normal = opt.normal || {}; // Default emphasis option from normal
  35. for (var i = 0, len = subOpts.length; i < len; i++) {
  36. var subOptName = subOpts[i];
  37. if (!emphasisOpt.hasOwnProperty(subOptName) && normalOpt.hasOwnProperty(subOptName)) {
  38. emphasisOpt[subOptName] = normalOpt[subOptName];
  39. }
  40. }
  41. }
  42. }
  43. var TEXT_STYLE_OPTIONS = ['fontStyle', 'fontWeight', 'fontSize', 'fontFamily', 'rich', 'tag', 'color', 'textBorderColor', 'textBorderWidth', 'width', 'height', 'lineHeight', 'align', 'verticalAlign', 'baseline', 'shadowColor', 'shadowBlur', 'shadowOffsetX', 'shadowOffsetY', 'textShadowColor', 'textShadowBlur', 'textShadowOffsetX', 'textShadowOffsetY', 'backgroundColor', 'borderColor', 'borderWidth', 'borderRadius', 'padding']; // modelUtil.LABEL_OPTIONS = modelUtil.TEXT_STYLE_OPTIONS.concat([
  44. // 'position', 'offset', 'rotate', 'origin', 'show', 'distance', 'formatter',
  45. // 'fontStyle', 'fontWeight', 'fontSize', 'fontFamily',
  46. // // FIXME: deprecated, check and remove it.
  47. // 'textStyle'
  48. // ]);
  49. /**
  50. * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
  51. * This helper method retieves value from data.
  52. * @param {string|number|Date|Array|Object} dataItem
  53. * @return {number|string|Date|Array.<number|string|Date>}
  54. */
  55. function getDataItemValue(dataItem) {
  56. // Performance sensitive.
  57. return dataItem && (dataItem.value == null ? dataItem : dataItem.value);
  58. }
  59. /**
  60. * data could be [12, 2323, {value: 223}, [1221, 23], {value: [2, 23]}]
  61. * This helper method determine if dataItem has extra option besides value
  62. * @param {string|number|Date|Array|Object} dataItem
  63. */
  64. function isDataItemOption(dataItem) {
  65. return isObject(dataItem) && !(dataItem instanceof Array); // // markLine data can be array
  66. // && !(dataItem[0] && isObject(dataItem[0]) && !(dataItem[0] instanceof Array));
  67. }
  68. /**
  69. * This helper method convert value in data.
  70. * @param {string|number|Date} value
  71. * @param {Object|string} [dimInfo] If string (like 'x'), dimType defaults 'number'.
  72. */
  73. function converDataValue(value, dimInfo) {
  74. // Performance sensitive.
  75. var dimType = dimInfo && dimInfo.type;
  76. if (dimType === 'ordinal') {
  77. return value;
  78. }
  79. if (dimType === 'time' // spead up when using timestamp
  80. && typeof value !== 'number' && value != null && value !== '-') {
  81. value = +nubmerUtil.parseDate(value);
  82. } // dimType defaults 'number'.
  83. // If dimType is not ordinal and value is null or undefined or NaN or '-',
  84. // parse to NaN.
  85. return value == null || value === '' ? NaN : +value; // If string (like '-'), using '+' parse to NaN
  86. }
  87. /**
  88. * Create a model proxy to be used in tooltip for edge data, markLine data, markPoint data.
  89. * @param {module:echarts/data/List} data
  90. * @param {Object} opt
  91. * @param {string} [opt.seriesIndex]
  92. * @param {Object} [opt.name]
  93. * @param {Object} [opt.mainType]
  94. * @param {Object} [opt.subType]
  95. */
  96. function createDataFormatModel(data, opt) {
  97. var model = new Model();
  98. zrUtil.mixin(model, dataFormatMixin);
  99. model.seriesIndex = opt.seriesIndex;
  100. model.name = opt.name || '';
  101. model.mainType = opt.mainType;
  102. model.subType = opt.subType;
  103. model.getData = function () {
  104. return data;
  105. };
  106. return model;
  107. } // PENDING A little ugly
  108. var dataFormatMixin = {
  109. /**
  110. * Get params for formatter
  111. * @param {number} dataIndex
  112. * @param {string} [dataType]
  113. * @return {Object}
  114. */
  115. getDataParams: function (dataIndex, dataType) {
  116. var data = this.getData(dataType);
  117. var rawValue = this.getRawValue(dataIndex, dataType);
  118. var rawDataIndex = data.getRawIndex(dataIndex);
  119. var name = data.getName(dataIndex, true);
  120. var itemOpt = data.getRawDataItem(dataIndex);
  121. var color = data.getItemVisual(dataIndex, 'color');
  122. return {
  123. componentType: this.mainType,
  124. componentSubType: this.subType,
  125. seriesType: this.mainType === 'series' ? this.subType : null,
  126. seriesIndex: this.seriesIndex,
  127. seriesId: this.id,
  128. seriesName: this.name,
  129. name: name,
  130. dataIndex: rawDataIndex,
  131. data: itemOpt,
  132. dataType: dataType,
  133. value: rawValue,
  134. color: color,
  135. marker: formatUtil.getTooltipMarker(color),
  136. // Param name list for mapping `a`, `b`, `c`, `d`, `e`
  137. $vars: ['seriesName', 'name', 'value']
  138. };
  139. },
  140. /**
  141. * Format label
  142. * @param {number} dataIndex
  143. * @param {string} [status='normal'] 'normal' or 'emphasis'
  144. * @param {string} [dataType]
  145. * @param {number} [dimIndex]
  146. * @param {string} [labelProp='label']
  147. * @return {string}
  148. */
  149. getFormattedLabel: function (dataIndex, status, dataType, dimIndex, labelProp) {
  150. status = status || 'normal';
  151. var data = this.getData(dataType);
  152. var itemModel = data.getItemModel(dataIndex);
  153. var params = this.getDataParams(dataIndex, dataType);
  154. if (dimIndex != null && params.value instanceof Array) {
  155. params.value = params.value[dimIndex];
  156. }
  157. var formatter = itemModel.get([labelProp || 'label', status, 'formatter']);
  158. if (typeof formatter === 'function') {
  159. params.status = status;
  160. return formatter(params);
  161. } else if (typeof formatter === 'string') {
  162. return formatUtil.formatTpl(formatter, params);
  163. }
  164. },
  165. /**
  166. * Get raw value in option
  167. * @param {number} idx
  168. * @param {string} [dataType]
  169. * @return {Object}
  170. */
  171. getRawValue: function (idx, dataType) {
  172. var data = this.getData(dataType);
  173. var dataItem = data.getRawDataItem(idx);
  174. if (dataItem != null) {
  175. return isObject(dataItem) && !(dataItem instanceof Array) ? dataItem.value : dataItem;
  176. }
  177. },
  178. /**
  179. * Should be implemented.
  180. * @param {number} dataIndex
  181. * @param {boolean} [multipleSeries=false]
  182. * @param {number} [dataType]
  183. * @return {string} tooltip string
  184. */
  185. formatTooltip: zrUtil.noop
  186. };
  187. /**
  188. * Mapping to exists for merge.
  189. *
  190. * @public
  191. * @param {Array.<Object>|Array.<module:echarts/model/Component>} exists
  192. * @param {Object|Array.<Object>} newCptOptions
  193. * @return {Array.<Object>} Result, like [{exist: ..., option: ...}, {}],
  194. * index of which is the same as exists.
  195. */
  196. function mappingToExists(exists, newCptOptions) {
  197. // Mapping by the order by original option (but not order of
  198. // new option) in merge mode. Because we should ensure
  199. // some specified index (like xAxisIndex) is consistent with
  200. // original option, which is easy to understand, espatially in
  201. // media query. And in most case, merge option is used to
  202. // update partial option but not be expected to change order.
  203. newCptOptions = (newCptOptions || []).slice();
  204. var result = zrUtil.map(exists || [], function (obj, index) {
  205. return {
  206. exist: obj
  207. };
  208. }); // Mapping by id or name if specified.
  209. each(newCptOptions, function (cptOption, index) {
  210. if (!isObject(cptOption)) {
  211. return;
  212. } // id has highest priority.
  213. for (var i = 0; i < result.length; i++) {
  214. if (!result[i].option // Consider name: two map to one.
  215. && cptOption.id != null && result[i].exist.id === cptOption.id + '') {
  216. result[i].option = cptOption;
  217. newCptOptions[index] = null;
  218. return;
  219. }
  220. }
  221. for (var i = 0; i < result.length; i++) {
  222. var exist = result[i].exist;
  223. if (!result[i].option // Consider name: two map to one.
  224. // Can not match when both ids exist but different.
  225. && (exist.id == null || cptOption.id == null) && cptOption.name != null && !isIdInner(cptOption) && !isIdInner(exist) && exist.name === cptOption.name + '') {
  226. result[i].option = cptOption;
  227. newCptOptions[index] = null;
  228. return;
  229. }
  230. }
  231. }); // Otherwise mapping by index.
  232. each(newCptOptions, function (cptOption, index) {
  233. if (!isObject(cptOption)) {
  234. return;
  235. }
  236. var i = 0;
  237. for (; i < result.length; i++) {
  238. var exist = result[i].exist;
  239. if (!result[i].option // Existing model that already has id should be able to
  240. // mapped to (because after mapping performed model may
  241. // be assigned with a id, whish should not affect next
  242. // mapping), except those has inner id.
  243. && !isIdInner(exist) // Caution:
  244. // Do not overwrite id. But name can be overwritten,
  245. // because axis use name as 'show label text'.
  246. // 'exist' always has id and name and we dont
  247. // need to check it.
  248. && cptOption.id == null) {
  249. result[i].option = cptOption;
  250. break;
  251. }
  252. }
  253. if (i >= result.length) {
  254. result.push({
  255. option: cptOption
  256. });
  257. }
  258. });
  259. return result;
  260. }
  261. /**
  262. * Make id and name for mapping result (result of mappingToExists)
  263. * into `keyInfo` field.
  264. *
  265. * @public
  266. * @param {Array.<Object>} Result, like [{exist: ..., option: ...}, {}],
  267. * which order is the same as exists.
  268. * @return {Array.<Object>} The input.
  269. */
  270. function makeIdAndName(mapResult) {
  271. // We use this id to hash component models and view instances
  272. // in echarts. id can be specified by user, or auto generated.
  273. // The id generation rule ensures new view instance are able
  274. // to mapped to old instance when setOption are called in
  275. // no-merge mode. So we generate model id by name and plus
  276. // type in view id.
  277. // name can be duplicated among components, which is convenient
  278. // to specify multi components (like series) by one name.
  279. // Ensure that each id is distinct.
  280. var idMap = zrUtil.createHashMap();
  281. each(mapResult, function (item, index) {
  282. var existCpt = item.exist;
  283. existCpt && idMap.set(existCpt.id, item);
  284. });
  285. each(mapResult, function (item, index) {
  286. var opt = item.option;
  287. zrUtil.assert(!opt || opt.id == null || !idMap.get(opt.id) || idMap.get(opt.id) === item, 'id duplicates: ' + (opt && opt.id));
  288. opt && opt.id != null && idMap.set(opt.id, item);
  289. !item.keyInfo && (item.keyInfo = {});
  290. }); // Make name and id.
  291. each(mapResult, function (item, index) {
  292. var existCpt = item.exist;
  293. var opt = item.option;
  294. var keyInfo = item.keyInfo;
  295. if (!isObject(opt)) {
  296. return;
  297. } // name can be overwitten. Consider case: axis.name = '20km'.
  298. // But id generated by name will not be changed, which affect
  299. // only in that case: setOption with 'not merge mode' and view
  300. // instance will be recreated, which can be accepted.
  301. keyInfo.name = opt.name != null ? opt.name + '' : existCpt ? existCpt.name : '\0-'; // name may be displayed on screen, so use '-'.
  302. if (existCpt) {
  303. keyInfo.id = existCpt.id;
  304. } else if (opt.id != null) {
  305. keyInfo.id = opt.id + '';
  306. } else {
  307. // Consider this situatoin:
  308. // optionA: [{name: 'a'}, {name: 'a'}, {..}]
  309. // optionB [{..}, {name: 'a'}, {name: 'a'}]
  310. // Series with the same name between optionA and optionB
  311. // should be mapped.
  312. var idNum = 0;
  313. do {
  314. keyInfo.id = '\0' + keyInfo.name + '\0' + idNum++;
  315. } while (idMap.get(keyInfo.id));
  316. }
  317. idMap.set(keyInfo.id, item);
  318. });
  319. }
  320. /**
  321. * @public
  322. * @param {Object} cptOption
  323. * @return {boolean}
  324. */
  325. function isIdInner(cptOption) {
  326. return isObject(cptOption) && cptOption.id && (cptOption.id + '').indexOf('\0_ec_\0') === 0;
  327. }
  328. /**
  329. * A helper for removing duplicate items between batchA and batchB,
  330. * and in themselves, and categorize by series.
  331. *
  332. * @param {Array.<Object>} batchA Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
  333. * @param {Array.<Object>} batchB Like: [{seriesId: 2, dataIndex: [32, 4, 5]}, ...]
  334. * @return {Array.<Array.<Object>, Array.<Object>>} result: [resultBatchA, resultBatchB]
  335. */
  336. function compressBatches(batchA, batchB) {
  337. var mapA = {};
  338. var mapB = {};
  339. makeMap(batchA || [], mapA);
  340. makeMap(batchB || [], mapB, mapA);
  341. return [mapToArray(mapA), mapToArray(mapB)];
  342. function makeMap(sourceBatch, map, otherMap) {
  343. for (var i = 0, len = sourceBatch.length; i < len; i++) {
  344. var seriesId = sourceBatch[i].seriesId;
  345. var dataIndices = normalizeToArray(sourceBatch[i].dataIndex);
  346. var otherDataIndices = otherMap && otherMap[seriesId];
  347. for (var j = 0, lenj = dataIndices.length; j < lenj; j++) {
  348. var dataIndex = dataIndices[j];
  349. if (otherDataIndices && otherDataIndices[dataIndex]) {
  350. otherDataIndices[dataIndex] = null;
  351. } else {
  352. (map[seriesId] || (map[seriesId] = {}))[dataIndex] = 1;
  353. }
  354. }
  355. }
  356. }
  357. function mapToArray(map, isData) {
  358. var result = [];
  359. for (var i in map) {
  360. if (map.hasOwnProperty(i) && map[i] != null) {
  361. if (isData) {
  362. result.push(+i);
  363. } else {
  364. var dataIndices = mapToArray(map[i], true);
  365. dataIndices.length && result.push({
  366. seriesId: i,
  367. dataIndex: dataIndices
  368. });
  369. }
  370. }
  371. }
  372. return result;
  373. }
  374. }
  375. /**
  376. * @param {module:echarts/data/List} data
  377. * @param {Object} payload Contains dataIndex (means rawIndex) / dataIndexInside / name
  378. * each of which can be Array or primary type.
  379. * @return {number|Array.<number>} dataIndex If not found, return undefined/null.
  380. */
  381. function queryDataIndex(data, payload) {
  382. if (payload.dataIndexInside != null) {
  383. return payload.dataIndexInside;
  384. } else if (payload.dataIndex != null) {
  385. return zrUtil.isArray(payload.dataIndex) ? zrUtil.map(payload.dataIndex, function (value) {
  386. return data.indexOfRawIndex(value);
  387. }) : data.indexOfRawIndex(payload.dataIndex);
  388. } else if (payload.name != null) {
  389. return zrUtil.isArray(payload.name) ? zrUtil.map(payload.name, function (value) {
  390. return data.indexOfName(value);
  391. }) : data.indexOfName(payload.name);
  392. }
  393. }
  394. /**
  395. * Enable property storage to any host object.
  396. * Notice: Serialization is not supported.
  397. *
  398. * For example:
  399. * var get = modelUitl.makeGetter();
  400. *
  401. * function some(hostObj) {
  402. * get(hostObj)._someProperty = 1212;
  403. * ...
  404. * }
  405. *
  406. * @return {Function}
  407. */
  408. var makeGetter = function () {
  409. var index = 0;
  410. return function () {
  411. var key = '\0__ec_prop_getter_' + index++;
  412. return function (hostObj) {
  413. return hostObj[key] || (hostObj[key] = {});
  414. };
  415. };
  416. }();
  417. /**
  418. * @param {module:echarts/model/Global} ecModel
  419. * @param {string|Object} finder
  420. * If string, e.g., 'geo', means {geoIndex: 0}.
  421. * If Object, could contain some of these properties below:
  422. * {
  423. * seriesIndex, seriesId, seriesName,
  424. * geoIndex, geoId, geoName,
  425. * bmapIndex, bmapId, bmapName,
  426. * xAxisIndex, xAxisId, xAxisName,
  427. * yAxisIndex, yAxisId, yAxisName,
  428. * gridIndex, gridId, gridName,
  429. * ... (can be extended)
  430. * }
  431. * Each properties can be number|string|Array.<number>|Array.<string>
  432. * For example, a finder could be
  433. * {
  434. * seriesIndex: 3,
  435. * geoId: ['aa', 'cc'],
  436. * gridName: ['xx', 'rr']
  437. * }
  438. * xxxIndex can be set as 'all' (means all xxx) or 'none' (means not specify)
  439. * If nothing or null/undefined specified, return nothing.
  440. * @param {Object} [opt]
  441. * @param {string} [opt.defaultMainType]
  442. * @param {Array.<string>} [opt.includeMainTypes]
  443. * @return {Object} result like:
  444. * {
  445. * seriesModels: [seriesModel1, seriesModel2],
  446. * seriesModel: seriesModel1, // The first model
  447. * geoModels: [geoModel1, geoModel2],
  448. * geoModel: geoModel1, // The first model
  449. * ...
  450. * }
  451. */
  452. function parseFinder(ecModel, finder, opt) {
  453. if (zrUtil.isString(finder)) {
  454. var obj = {};
  455. obj[finder + 'Index'] = 0;
  456. finder = obj;
  457. }
  458. var defaultMainType = opt && opt.defaultMainType;
  459. if (defaultMainType && !has(finder, defaultMainType + 'Index') && !has(finder, defaultMainType + 'Id') && !has(finder, defaultMainType + 'Name')) {
  460. finder[defaultMainType + 'Index'] = 0;
  461. }
  462. var result = {};
  463. each(finder, function (value, key) {
  464. var value = finder[key]; // Exclude 'dataIndex' and other illgal keys.
  465. if (key === 'dataIndex' || key === 'dataIndexInside') {
  466. result[key] = value;
  467. return;
  468. }
  469. var parsedKey = key.match(/^(\w+)(Index|Id|Name)$/) || [];
  470. var mainType = parsedKey[1];
  471. var queryType = (parsedKey[2] || '').toLowerCase();
  472. if (!mainType || !queryType || value == null || queryType === 'index' && value === 'none' || opt && opt.includeMainTypes && zrUtil.indexOf(opt.includeMainTypes, mainType) < 0) {
  473. return;
  474. }
  475. var queryParam = {
  476. mainType: mainType
  477. };
  478. if (queryType !== 'index' || value !== 'all') {
  479. queryParam[queryType] = value;
  480. }
  481. var models = ecModel.queryComponents(queryParam);
  482. result[mainType + 'Models'] = models;
  483. result[mainType + 'Model'] = models[0];
  484. });
  485. return result;
  486. }
  487. /**
  488. * @see {module:echarts/data/helper/completeDimensions}
  489. * @param {module:echarts/data/List} data
  490. * @param {string|number} dataDim
  491. * @return {string}
  492. */
  493. function dataDimToCoordDim(data, dataDim) {
  494. var dimensions = data.dimensions;
  495. dataDim = data.getDimension(dataDim);
  496. for (var i = 0; i < dimensions.length; i++) {
  497. var dimItem = data.getDimensionInfo(dimensions[i]);
  498. if (dimItem.name === dataDim) {
  499. return dimItem.coordDim;
  500. }
  501. }
  502. }
  503. /**
  504. * @see {module:echarts/data/helper/completeDimensions}
  505. * @param {module:echarts/data/List} data
  506. * @param {string} coordDim
  507. * @return {Array.<string>} data dimensions on the coordDim.
  508. */
  509. function coordDimToDataDim(data, coordDim) {
  510. var dataDim = [];
  511. each(data.dimensions, function (dimName) {
  512. var dimItem = data.getDimensionInfo(dimName);
  513. if (dimItem.coordDim === coordDim) {
  514. dataDim[dimItem.coordDimIndex] = dimItem.name;
  515. }
  516. });
  517. return dataDim;
  518. }
  519. /**
  520. * @see {module:echarts/data/helper/completeDimensions}
  521. * @param {module:echarts/data/List} data
  522. * @param {string} otherDim Can be `otherDims`
  523. * like 'label' or 'tooltip'.
  524. * @return {Array.<string>} data dimensions on the otherDim.
  525. */
  526. function otherDimToDataDim(data, otherDim) {
  527. var dataDim = [];
  528. each(data.dimensions, function (dimName) {
  529. var dimItem = data.getDimensionInfo(dimName);
  530. var otherDims = dimItem.otherDims;
  531. var dimIndex = otherDims[otherDim];
  532. if (dimIndex != null && dimIndex !== false) {
  533. dataDim[dimIndex] = dimItem.name;
  534. }
  535. });
  536. return dataDim;
  537. }
  538. function has(obj, prop) {
  539. return obj && obj.hasOwnProperty(prop);
  540. }
  541. exports.normalizeToArray = normalizeToArray;
  542. exports.defaultEmphasis = defaultEmphasis;
  543. exports.TEXT_STYLE_OPTIONS = TEXT_STYLE_OPTIONS;
  544. exports.getDataItemValue = getDataItemValue;
  545. exports.isDataItemOption = isDataItemOption;
  546. exports.converDataValue = converDataValue;
  547. exports.createDataFormatModel = createDataFormatModel;
  548. exports.dataFormatMixin = dataFormatMixin;
  549. exports.mappingToExists = mappingToExists;
  550. exports.makeIdAndName = makeIdAndName;
  551. exports.isIdInner = isIdInner;
  552. exports.compressBatches = compressBatches;
  553. exports.queryDataIndex = queryDataIndex;
  554. exports.makeGetter = makeGetter;
  555. exports.parseFinder = parseFinder;
  556. exports.dataDimToCoordDim = dataDimToCoordDim;
  557. exports.coordDimToDataDim = coordDimToDataDim;
  558. exports.otherDimToDataDim = otherDimToDataDim;