@agions/taroviz 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/index.js +160 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Agions
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/******/ (() => { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ // The require scope
|
|
4
|
+
/******/ var __webpack_require__ = {};
|
|
5
|
+
/******/
|
|
6
|
+
/************************************************************************/
|
|
7
|
+
/******/ /* webpack/runtime/compat get default export */
|
|
8
|
+
/******/ (() => {
|
|
9
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
10
|
+
/******/ __webpack_require__.n = (module) => {
|
|
11
|
+
/******/ var getter = module && module.__esModule ?
|
|
12
|
+
/******/ () => (module['default']) :
|
|
13
|
+
/******/ () => (module);
|
|
14
|
+
/******/ __webpack_require__.d(getter, { a: getter });
|
|
15
|
+
/******/ return getter;
|
|
16
|
+
/******/ };
|
|
17
|
+
/******/ })();
|
|
18
|
+
/******/
|
|
19
|
+
/******/ /* webpack/runtime/define property getters */
|
|
20
|
+
/******/ (() => {
|
|
21
|
+
/******/ // define getter functions for harmony exports
|
|
22
|
+
/******/ __webpack_require__.d = (exports, definition) => {
|
|
23
|
+
/******/ for(var key in definition) {
|
|
24
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
25
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
26
|
+
/******/ }
|
|
27
|
+
/******/ }
|
|
28
|
+
/******/ };
|
|
29
|
+
/******/ })();
|
|
30
|
+
/******/
|
|
31
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
32
|
+
/******/ (() => {
|
|
33
|
+
/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
|
|
34
|
+
/******/ })();
|
|
35
|
+
/******/
|
|
36
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
37
|
+
/******/ (() => {
|
|
38
|
+
/******/ // define __esModule on exports
|
|
39
|
+
/******/ __webpack_require__.r = (exports) => {
|
|
40
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
41
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
42
|
+
/******/ }
|
|
43
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
44
|
+
/******/ };
|
|
45
|
+
/******/ })();
|
|
46
|
+
/******/
|
|
47
|
+
/************************************************************************/
|
|
48
|
+
var __webpack_exports__ = {};
|
|
49
|
+
// ESM COMPAT FLAG
|
|
50
|
+
__webpack_require__.r(__webpack_exports__);
|
|
51
|
+
|
|
52
|
+
// EXPORTS
|
|
53
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
54
|
+
Adapters: () => (/* binding */ Adapters),
|
|
55
|
+
AlipayAdapter: () => (/* reexport */ taroviz_adapters_namespaceObject.AlipayAdapter),
|
|
56
|
+
BarChart: () => (/* reexport */ taroviz_charts_namespaceObject.BarChart),
|
|
57
|
+
BaseChart: () => (/* reexport */ taroviz_core_namespaceObject.BaseChart),
|
|
58
|
+
Charts: () => (/* binding */ Charts),
|
|
59
|
+
Core: () => (/* binding */ Core),
|
|
60
|
+
Data: () => (/* binding */ Data),
|
|
61
|
+
H5Adapter: () => (/* reexport */ taroviz_adapters_namespaceObject.H5Adapter),
|
|
62
|
+
HarmonyAdapter: () => (/* reexport */ taroviz_adapters_namespaceObject.HarmonyAdapter),
|
|
63
|
+
HeatmapChart: () => (/* reexport */ taroviz_charts_namespaceObject.HeatmapChart),
|
|
64
|
+
Hooks: () => (/* binding */ Hooks),
|
|
65
|
+
LineChart: () => (/* reexport */ taroviz_charts_namespaceObject.LineChart),
|
|
66
|
+
PieChart: () => (/* reexport */ taroviz_charts_namespaceObject.PieChart),
|
|
67
|
+
RadarChart: () => (/* reexport */ taroviz_charts_namespaceObject.RadarChart),
|
|
68
|
+
ScatterChart: () => (/* reexport */ taroviz_charts_namespaceObject.ScatterChart),
|
|
69
|
+
SwanAdapter: () => (/* reexport */ taroviz_adapters_namespaceObject.SwanAdapter),
|
|
70
|
+
Themes: () => (/* binding */ Themes),
|
|
71
|
+
WeappAdapter: () => (/* reexport */ taroviz_adapters_namespaceObject.WeappAdapter),
|
|
72
|
+
adaptersVersion: () => (/* reexport */ taroviz_adapters_namespaceObject.version),
|
|
73
|
+
coreVersion: () => (/* reexport */ taroviz_core_namespaceObject.version),
|
|
74
|
+
"default": () => (/* binding */ src),
|
|
75
|
+
detectPlatform: () => (/* reexport */ taroviz_adapters_namespaceObject.detectPlatform),
|
|
76
|
+
getAdapter: () => (/* reexport */ taroviz_adapters_namespaceObject.getAdapter),
|
|
77
|
+
name: () => (/* binding */ src_name),
|
|
78
|
+
useChart: () => (/* binding */ useChart),
|
|
79
|
+
useChartData: () => (/* binding */ useChartData),
|
|
80
|
+
useChartTheme: () => (/* binding */ useChartTheme),
|
|
81
|
+
useEvents: () => (/* binding */ useEvents),
|
|
82
|
+
useLoading: () => (/* binding */ useLoading),
|
|
83
|
+
useOption: () => (/* binding */ useOption),
|
|
84
|
+
useResize: () => (/* binding */ useResize),
|
|
85
|
+
version: () => (/* binding */ version)
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
;// external "@agions/taroviz-core"
|
|
89
|
+
const taroviz_core_namespaceObject = require("@agions/taroviz-core");
|
|
90
|
+
;// external "@agions/taroviz-adapters"
|
|
91
|
+
const taroviz_adapters_namespaceObject = require("@agions/taroviz-adapters");
|
|
92
|
+
;// external "@agions/taroviz-charts"
|
|
93
|
+
const taroviz_charts_namespaceObject = require("@agions/taroviz-charts");
|
|
94
|
+
;// external "@agions/taroviz-data"
|
|
95
|
+
const taroviz_data_namespaceObject = require("@agions/taroviz-data");
|
|
96
|
+
;// external "@agions/taroviz-hooks"
|
|
97
|
+
const taroviz_hooks_namespaceObject = require("@agions/taroviz-hooks");
|
|
98
|
+
var taroviz_hooks_default = /*#__PURE__*/__webpack_require__.n(taroviz_hooks_namespaceObject);
|
|
99
|
+
;// external "@agions/taroviz-themes"
|
|
100
|
+
const taroviz_themes_namespaceObject = require("@agions/taroviz-themes");
|
|
101
|
+
;// ./src/index.ts
|
|
102
|
+
/**
|
|
103
|
+
* TaroViz 完整导出包 (@agions/taroviz)
|
|
104
|
+
* 包含所有子包的功能
|
|
105
|
+
*/
|
|
106
|
+
// 导出核心API
|
|
107
|
+
|
|
108
|
+
var Core = taroviz_core_namespaceObject;
|
|
109
|
+
// 导出适配器API
|
|
110
|
+
|
|
111
|
+
var Adapters = taroviz_adapters_namespaceObject;
|
|
112
|
+
// 导出图表组件API
|
|
113
|
+
|
|
114
|
+
var Charts = taroviz_charts_namespaceObject;
|
|
115
|
+
// 导出主题系统API
|
|
116
|
+
var Themes = taroviz_themes_namespaceObject;
|
|
117
|
+
// 导出数据处理API
|
|
118
|
+
|
|
119
|
+
var Data = taroviz_data_namespaceObject;
|
|
120
|
+
// 导出Hooks API
|
|
121
|
+
|
|
122
|
+
var Hooks = taroviz_hooks_namespaceObject;
|
|
123
|
+
// 导出适配器核心功能
|
|
124
|
+
|
|
125
|
+
// 导出核心类型
|
|
126
|
+
|
|
127
|
+
// 导出常用图表组件
|
|
128
|
+
|
|
129
|
+
// 导出Hooks功能
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
var useChart = (taroviz_hooks_default()).useChart,
|
|
133
|
+
useOption = (taroviz_hooks_default()).useOption,
|
|
134
|
+
useResize = (taroviz_hooks_default()).useResize,
|
|
135
|
+
useEvents = (taroviz_hooks_default()).useEvents,
|
|
136
|
+
useLoading = (taroviz_hooks_default()).useLoading,
|
|
137
|
+
useChartTheme = (taroviz_hooks_default()).useChartTheme,
|
|
138
|
+
useChartData = (taroviz_hooks_default()).useChartData;
|
|
139
|
+
// 包信息
|
|
140
|
+
var src_name = '@agions/taroviz';
|
|
141
|
+
var version = '1.0.0';
|
|
142
|
+
// 默认导出
|
|
143
|
+
/* harmony default export */ const src = ({
|
|
144
|
+
Core: taroviz_core_namespaceObject,
|
|
145
|
+
Adapters: taroviz_adapters_namespaceObject,
|
|
146
|
+
Charts: taroviz_charts_namespaceObject,
|
|
147
|
+
Themes: taroviz_themes_namespaceObject,
|
|
148
|
+
Data: taroviz_data_namespaceObject,
|
|
149
|
+
Hooks: taroviz_hooks_namespaceObject,
|
|
150
|
+
getAdapter: taroviz_adapters_namespaceObject.getAdapter,
|
|
151
|
+
H5Adapter: taroviz_adapters_namespaceObject.H5Adapter,
|
|
152
|
+
WeappAdapter: taroviz_adapters_namespaceObject.WeappAdapter,
|
|
153
|
+
AlipayAdapter: taroviz_adapters_namespaceObject.AlipayAdapter,
|
|
154
|
+
SwanAdapter: taroviz_adapters_namespaceObject.SwanAdapter,
|
|
155
|
+
HarmonyAdapter: taroviz_adapters_namespaceObject.HarmonyAdapter
|
|
156
|
+
});
|
|
157
|
+
module.exports = __webpack_exports__;
|
|
158
|
+
/******/ })()
|
|
159
|
+
;
|
|
160
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","mappings":";;UAAA;UACA;;;;;WCDA;WACA;WACA;WACA;WACA;WACA,iCAAiC,WAAW;WAC5C;WACA;;;;;WCPA;WACA;WACA;WACA;WACA,yCAAyC,wCAAwC;WACjF;WACA;WACA;;;;;WCPA;;;;;WCAA;WACA;WACA;WACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACNA,MAAM,4BAA4B;;ACAlC,MAAM,gCAA4B;;ACAlC,MAAM,8BAA4B;;ACAlC,MAAM,4BAA4B;;ACAlC,MAAM,6BAA4B;;;ACAlC,MAAM,8BAA4B;;ACAlC;;;;AAKA;AACgD;AACzC,IAAMC,IAAI,GAAGD,4BAAO;AAE3B;AACwD;AACjD,IAAMG,QAAQ,GAAGD,gCAAW;AAEnC;AACoD;AAC7C,IAAMG,MAAM,GAAGD,8BAAS;AAE/B;AACO,IAAME,MAAM,GAAGC,8BAAS;AAE/B;AACgD;AACzC,IAAME,IAAI,GAAGD,4BAAO;AAE3B;AACkD;AAC3C,IAAMG,KAAK,GAAGD,6BAAQ;AAE7B;AAUkC;AAElC;AACyE;AAEzE;AAQgC;AAEhC;AACiD;AACG;AAElD,IAAAoB,QAAQ,GAOND,kCAPM;EACRE,SAAS,GAMPF,mCANO;EACTG,SAAS,GAKPH,mCALO;EACTI,SAAS,GAIPJ,mCAJO;EACTK,UAAU,GAGRL,oCAHQ;EACVM,aAAa,GAEXN,uCAFW;EACbO,YAAY,GACVP,sCADU;AAGd;AACO,IAAMQ,QAAI,GAAG,iBAAiB;AAC9B,IAAMvB,OAAO,GAAG,OAAO;AAE9B;AACA,0CAAe;EACbb,IAAI,EAAED,4BAAO;EACbG,QAAQ,EAAED,gCAAW;EACrBG,MAAM,EAAED,8BAAS;EACjBE,MAAM,EAAEC,8BAAS;EACjBE,IAAI,EAAED,4BAAO;EACbG,KAAK,EAAED,6BAAQ;EACfE,UAAU,EAAEV,2CAAsB;EAClCc,SAAS,EAAEd,0CAAqB;EAChCe,YAAY,EAAEf,6CAAwB;EACtCgB,aAAa,EAAEhB,8CAAyB;EACxCiB,WAAW,EAAEjB,4CAAuB;EACpCkB,cAAc,EAAElB,+CAA0BkB;CAC3C,E","sources":["webpack://@agions/taroviz/webpack/bootstrap","webpack://@agions/taroviz/webpack/runtime/compat get default export","webpack://@agions/taroviz/webpack/runtime/define property getters","webpack://@agions/taroviz/webpack/runtime/hasOwnProperty shorthand","webpack://@agions/taroviz/webpack/runtime/make namespace object","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-core\"","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-adapters\"","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-charts\"","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-data\"","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-hooks\"","webpack://@agions/taroviz/external commonjs \"@agions/taroviz-themes\"","webpack://@agions/taroviz/./src/index.ts"],"sourcesContent":["// The require scope\nvar __webpack_require__ = {};\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-core\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-adapters\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-charts\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-data\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-hooks\");","const __WEBPACK_NAMESPACE_OBJECT__ = require(\"@agions/taroviz-themes\");","/**\n * TaroViz 完整导出包 (@agions/taroviz)\n * 包含所有子包的功能\n */\n\n// 导出核心API\nimport * as CoreLib from '@agions/taroviz-core';\nexport const Core = CoreLib;\n\n// 导出适配器API\nimport * as AdaptersLib from '@agions/taroviz-adapters';\nexport const Adapters = AdaptersLib;\n\n// 导出图表组件API\nimport * as ChartsLib from '@agions/taroviz-charts';\nexport const Charts = ChartsLib;\n\n// 导出主题系统API\nexport const Themes = ThemesLib;\n\n// 导出数据处理API\nimport * as DataLib from '@agions/taroviz-data';\nexport const Data = DataLib;\n\n// 导出Hooks API\nimport * as HooksLib from '@agions/taroviz-hooks';\nexport const Hooks = HooksLib;\n\n// 导出适配器核心功能\nexport {\n getAdapter,\n detectPlatform,\n version as adaptersVersion,\n H5Adapter,\n WeappAdapter,\n AlipayAdapter,\n SwanAdapter,\n HarmonyAdapter,\n} from '@agions/taroviz-adapters';\n\n// 导出核心类型\nexport { BaseChart, version as coreVersion } from '@agions/taroviz-core';\n\n// 导出常用图表组件\nexport {\n LineChart,\n BarChart,\n PieChart,\n RadarChart,\n ScatterChart,\n HeatmapChart,\n} from '@agions/taroviz-charts';\n\n// 导出Hooks功能\nimport HooksDefault from '@agions/taroviz-hooks';\nimport * as ThemesLib from '@agions/taroviz-themes';\nexport const {\n useChart,\n useOption,\n useResize,\n useEvents,\n useLoading,\n useChartTheme,\n useChartData,\n} = HooksDefault;\n\n// 包信息\nexport const name = '@agions/taroviz';\nexport const version = '1.0.0';\n\n// 默认导出\nexport default {\n Core: CoreLib,\n Adapters: AdaptersLib,\n Charts: ChartsLib,\n Themes: ThemesLib,\n Data: DataLib,\n Hooks: HooksLib,\n getAdapter: AdaptersLib.getAdapter,\n H5Adapter: AdaptersLib.H5Adapter,\n WeappAdapter: AdaptersLib.WeappAdapter,\n AlipayAdapter: AdaptersLib.AlipayAdapter,\n SwanAdapter: AdaptersLib.SwanAdapter,\n HarmonyAdapter: AdaptersLib.HarmonyAdapter,\n};\n"],"names":["CoreLib","Core","AdaptersLib","Adapters","ChartsLib","Charts","Themes","ThemesLib","DataLib","Data","HooksLib","Hooks","getAdapter","detectPlatform","version","adaptersVersion","H5Adapter","WeappAdapter","AlipayAdapter","SwanAdapter","HarmonyAdapter","BaseChart","coreVersion","LineChart","BarChart","PieChart","RadarChart","ScatterChart","HeatmapChart","HooksDefault","useChart","useOption","useResize","useEvents","useLoading","useChartTheme","useChartData","name"],"sourceRoot":""}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agions/taroviz",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "TaroViz 是一个基于 Taro 和 ECharts 的图表组件库,支持多端小程序和 H5",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.esm.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"dev": "webpack --mode=development --watch",
|
|
14
|
+
"build": "npx webpack --mode=production",
|
|
15
|
+
"clean": "rimraf dist"
|
|
16
|
+
},
|
|
17
|
+
"publishConfig": {
|
|
18
|
+
"access": "public"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@agions/taroviz-adapters": "1.0.1",
|
|
22
|
+
"@agions/taroviz-charts": "1.0.1",
|
|
23
|
+
"@agions/taroviz-core": "1.0.1",
|
|
24
|
+
"@agions/taroviz-data": "1.0.1",
|
|
25
|
+
"@agions/taroviz-hooks": "1.0.1",
|
|
26
|
+
"@agions/taroviz-themes": "1.0.1"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"@tarojs/components": ">=3.4.0",
|
|
30
|
+
"@tarojs/taro": ">=3.4.0",
|
|
31
|
+
"echarts": ">=5.4.0",
|
|
32
|
+
"react": ">=16.13.0"
|
|
33
|
+
},
|
|
34
|
+
"gitHead": "384a26cc211cabf68a9be5be8681fb0236e919ef"
|
|
35
|
+
}
|