api.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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. /**
  20. * AUTO-GENERATED FILE. DO NOT MODIFY.
  21. */
  22. /*
  23. * Licensed to the Apache Software Foundation (ASF) under one
  24. * or more contributor license agreements. See the NOTICE file
  25. * distributed with this work for additional information
  26. * regarding copyright ownership. The ASF licenses this file
  27. * to you under the Apache License, Version 2.0 (the
  28. * "License"); you may not use this file except in compliance
  29. * with the License. You may obtain a copy of the License at
  30. *
  31. * http://www.apache.org/licenses/LICENSE-2.0
  32. *
  33. * Unless required by applicable law or agreed to in writing,
  34. * software distributed under the License is distributed on an
  35. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  36. * KIND, either express or implied. See the License for the
  37. * specific language governing permissions and limitations
  38. * under the License.
  39. */
  40. // These APIs are for more advanced usages
  41. // For example extend charts and components, creating graphic elements, formatting.
  42. import ComponentModel from '../model/Component.js';
  43. import ComponentView from '../view/Component.js';
  44. import SeriesModel from '../model/Series.js';
  45. import ChartView from '../view/Chart.js';
  46. import SeriesData from '../data/SeriesData.js';
  47. import * as zrender_1 from 'zrender/lib/zrender.js';
  48. export { zrender_1 as zrender };
  49. import * as matrix_1 from 'zrender/lib/core/matrix.js';
  50. export { matrix_1 as matrix };
  51. import * as vector_1 from 'zrender/lib/core/vector.js';
  52. export { vector_1 as vector };
  53. import * as zrUtil_1 from 'zrender/lib/core/util.js';
  54. export { zrUtil_1 as zrUtil };
  55. import * as color_1 from 'zrender/lib/tool/color.js';
  56. export { color_1 as color };
  57. export { throttle } from '../util/throttle.js';
  58. import * as helper_1 from './api/helper.js';
  59. export { helper_1 as helper };
  60. export { use } from '../extension.js';
  61. export { setPlatformAPI } from 'zrender/lib/core/platform.js'; // --------------------- Helper Methods ---------------------
  62. export { default as parseGeoJSON } from '../coord/geo/parseGeoJson.js';
  63. export { default as parseGeoJson } from '../coord/geo/parseGeoJson.js';
  64. import * as number_1 from './api/number.js';
  65. export { number_1 as number };
  66. import * as time_1 from './api/time.js';
  67. export { time_1 as time };
  68. import * as graphic_1 from './api/graphic.js';
  69. export { graphic_1 as graphic };
  70. import * as format_1 from './api/format.js';
  71. export { format_1 as format };
  72. import * as util_1 from './api/util.js';
  73. export { util_1 as util };
  74. export { default as env } from 'zrender/lib/core/env.js'; // --------------------- Export for Extension Usage ---------------------
  75. // export {SeriesData};
  76. export { SeriesData as List }; // TODO: Compatitable with exists echarts-gl code
  77. export { default as Model } from '../model/Model.js';
  78. export { default as Axis } from '../coord/Axis.js';
  79. export { ComponentModel, ComponentView, SeriesModel, ChartView }; // Only for GL
  80. export { brushSingle as innerDrawElementOnCanvas } from 'zrender/lib/canvas/graphic.js'; // --------------------- Deprecated Extension Methods ---------------------
  81. // Should use `ComponentModel.extend` or `class XXXX extend ComponentModel` to create class.
  82. // Then use `registerComponentModel` in `install` parameter when `use` this extension. For example:
  83. // class Bar3DModel extends ComponentModel {}
  84. // export function install(registers) { registers.registerComponentModel(Bar3DModel); }
  85. // echarts.use(install);
  86. export function extendComponentModel(proto) {
  87. var Model = ComponentModel.extend(proto);
  88. ComponentModel.registerClass(Model);
  89. return Model;
  90. }
  91. export function extendComponentView(proto) {
  92. var View = ComponentView.extend(proto);
  93. ComponentView.registerClass(View);
  94. return View;
  95. }
  96. export function extendSeriesModel(proto) {
  97. var Model = SeriesModel.extend(proto);
  98. SeriesModel.registerClass(Model);
  99. return Model;
  100. }
  101. export function extendChartView(proto) {
  102. var View = ChartView.extend(proto);
  103. ChartView.registerClass(View);
  104. return View;
  105. }