export.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. */
  19. var zrender = require("zrender/lib/zrender");
  20. exports.zrender = zrender;
  21. var matrix = require("zrender/lib/core/matrix");
  22. exports.matrix = matrix;
  23. var vector = require("zrender/lib/core/vector");
  24. exports.vector = vector;
  25. var zrUtil = require("zrender/lib/core/util");
  26. var colorTool = require("zrender/lib/tool/color");
  27. exports.color = colorTool;
  28. var graphicUtil = require("./util/graphic");
  29. var numberUtil = require("./util/number");
  30. exports.number = numberUtil;
  31. var formatUtil = require("./util/format");
  32. exports.format = formatUtil;
  33. var _throttle = require("./util/throttle");
  34. var throttle = _throttle.throttle;
  35. exports.throttle = _throttle.throttle;
  36. var ecHelper = require("./helper");
  37. exports.helper = ecHelper;
  38. var parseGeoJSON = require("./coord/geo/parseGeoJson");
  39. exports.parseGeoJSON = parseGeoJSON;
  40. var _List = require("./data/List");
  41. exports.List = _List;
  42. var _Model = require("./model/Model");
  43. exports.Model = _Model;
  44. var _Axis = require("./coord/Axis");
  45. exports.Axis = _Axis;
  46. var _env = require("zrender/lib/core/env");
  47. exports.env = _env;
  48. /*
  49. * Licensed to the Apache Software Foundation (ASF) under one
  50. * or more contributor license agreements. See the NOTICE file
  51. * distributed with this work for additional information
  52. * regarding copyright ownership. The ASF licenses this file
  53. * to you under the Apache License, Version 2.0 (the
  54. * "License"); you may not use this file except in compliance
  55. * with the License. You may obtain a copy of the License at
  56. *
  57. * http://www.apache.org/licenses/LICENSE-2.0
  58. *
  59. * Unless required by applicable law or agreed to in writing,
  60. * software distributed under the License is distributed on an
  61. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  62. * KIND, either express or implied. See the License for the
  63. * specific language governing permissions and limitations
  64. * under the License.
  65. */
  66. /**
  67. * Do not mount those modules on 'src/echarts' for better tree shaking.
  68. */
  69. var parseGeoJson = parseGeoJSON;
  70. var ecUtil = {};
  71. zrUtil.each(['map', 'each', 'filter', 'indexOf', 'inherits', 'reduce', 'filter', 'bind', 'curry', 'isArray', 'isString', 'isObject', 'isFunction', 'extend', 'defaults', 'clone', 'merge'], function (name) {
  72. ecUtil[name] = zrUtil[name];
  73. });
  74. var graphic = {};
  75. zrUtil.each(['extendShape', 'extendPath', 'makePath', 'makeImage', 'mergePath', 'resizePath', 'createIcon', 'setHoverStyle', 'setLabelStyle', 'setTextStyle', 'setText', 'getFont', 'updateProps', 'initProps', 'getTransform', 'clipPointsByRect', 'clipRectByRect', 'registerShape', 'getShapeClass', 'Group', 'Image', 'Text', 'Circle', 'Sector', 'Ring', 'Polygon', 'Polyline', 'Rect', 'Line', 'BezierCurve', 'Arc', 'IncrementalDisplayable', 'CompoundPath', 'LinearGradient', 'RadialGradient', 'BoundingRect'], function (name) {
  76. graphic[name] = graphicUtil[name];
  77. });
  78. exports.parseGeoJson = parseGeoJson;
  79. exports.util = ecUtil;
  80. exports.graphic = graphic;