From 1d8532eccf5bd57a9e167385259ccd5350a96ebd Mon Sep 17 00:00:00 2001
From: YuanHuakk <1751826683@qq.com>
Date: Tue, 27 Aug 2024 17:06:59 +0800
Subject: [PATCH] =?UTF-8?q?feat(custom):=20=E6=96=B0=E5=A2=9E=E6=B6=88?=
=?UTF-8?q?=E6=81=AF=E8=AE=A2=E9=98=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.cz-config.js | 68 +-
commitlint.config.js | 36 +-
config/index.ts | 2 +-
package.json | 246 +--
src/api/cart.ts | 10 +-
src/api/code.ts | 7 +-
src/api/home.ts | 8 +-
src/api/order.ts | 6 +-
src/api/product.ts | 6 +-
src/app.scss | 2 +-
src/components/Auth.vue | 28 +-
src/components/Back.vue | 14 +-
src/components/MerList.vue | 10 +-
src/components/Popup.vue | 11 +-
src/components/RichEditor.vue | 106 +-
src/components/Ucharts.vue | 39 +-
src/components/Upload.vue | 23 +-
src/components/UserModal.vue | 89 +-
src/index.html | 3 +-
.../admin/add_order/add_menu/index.config.ts | 2 +-
src/pages/admin/add_order/add_menu/index.scss | 2 +-
src/pages/admin/add_order/add_menu/index.vue | 37 +-
.../admin/add_order/add_table/index.config.ts | 4 +-
.../admin/add_order/add_table/index.scss | 4 +-
src/pages/admin/add_order/add_table/index.vue | 50 +-
src/pages/admin/add_order/index.config.ts | 4 +-
src/pages/admin/add_order/index.scss | 4 +-
src/pages/admin/add_order/index.vue | 12 +-
.../add_order/pending_order/index.config.ts | 2 +-
.../pending_order/pay/index.config.ts | 2 +-
.../add_order/pending_order/pay/index.scss | 24 +-
.../pending_order_detail/index.config.ts | 2 +-
.../pending_order/wx_pay_code/index.config.ts | 2 +-
.../pending_order/wx_pay_code/index.scss | 2 +-
.../pending_order/wx_pay_code/index.vue | 26 +-
.../admin/order_manage/detail/index.config.ts | 2 +-
src/pages/admin/order_manage/index.config.ts | 2 +-
src/pages/admin/order_manage/index.scss | 2 +-
src/pages/admin/order_manage/index.vue | 55 +-
.../admin/order_manage/list/index.config.ts | 2 +-
src/pages/admin/order_manage/list/index.scss | 2 +-
src/pages/admin/statistics/index.config.ts | 2 +-
src/pages/admin/statistics/index.vue | 163 +-
src/pages/admin/verify/index.config.ts | 2 +-
.../admin/verify/verify_list/index.config.ts | 2 +-
src/pages/admin/verify/verify_list/index.vue | 2 +-
src/pages/allClassList/index.config.ts | 2 +-
src/pages/allClassList/index.vue | 9 +-
src/pages/cart/index.config.ts | 2 +-
src/pages/cart/index.vue | 20 +-
src/pages/category/index.config.ts | 2 +-
src/pages/category/index.vue | 15 +-
src/pages/fastBuy/index.scss | 2 +-
src/pages/game/gamedetail/index.config.ts | 4 +-
src/pages/game/gamedetail/index.vue | 30 +-
src/pages/game/gameview/index.config.ts | 2 +-
src/pages/game/gameview/index.vue | 11 +-
src/pages/game/view/index.config.ts | 4 +-
src/pages/goods/goods_detail/index.config.ts | 4 +-
src/pages/goods/goods_detail/index.vue | 2 +-
src/pages/goods/order_create/index.config.ts | 2 +-
src/pages/goods/order_create/index.vue | 35 +-
src/pages/goods/order_status/index.config.ts | 2 +-
src/pages/goods/order_status/index.vue | 8 +-
src/pages/hotGoods/hot_list/index.config.ts | 2 +-
src/pages/hotGoods/hot_list/index.vue | 61 +-
src/pages/hotGoods/index/index.config.ts | 2 +-
src/pages/hotGoods/index/index.vue | 24 +-
src/pages/index/index.config.ts | 4 +-
src/pages/index/index.vue | 11 +-
src/pages/marketing/scratch/index.config.ts | 2 +-
src/pages/marketing/sign/index.config.ts | 2 +-
src/pages/mer/mer_detail/index.scss | 2 -
src/pages/product/addGoods/index.config.ts | 2 +-
src/pages/product/addGoods/index.vue | 71 +-
src/pages/product/list/index.config.ts | 2 +-
src/pages/product/list/index.vue | 68 +-
src/pages/user/index.scss | 2 +-
src/pages/users/bindPhone/index.config.ts | 2 +-
src/pages/users/distribution/index.config.ts | 2 +-
src/pages/users/distribution/index.vue | 33 +-
.../distribution/integral/index.config.ts | 2 +-
.../users/distribution/integral/index.vue | 14 +-
.../distribution/userlist/index.config.ts | 2 +-
.../users/distribution/userlist/index.vue | 16 +-
src/pages/users/login/index.config.ts | 4 +-
src/pages/users/login/index.vue | 23 +-
src/pages/users/order_list/index.config.ts | 2 +-
.../users/order_list_detail/index.config.ts | 2 +-
src/pages/users/pending_order/index.config.ts | 2 +-
.../pending_order_detail/index.config.ts | 2 +-
.../pending_order_detail/index.scss | 2 +-
.../pending_order_detail/index.vue | 28 +-
src/pages/users/setting/index.config.ts | 2 +-
src/pages/users/settled_mer/index.config.ts | 2 +-
src/pages/users/settled_mer/index.vue | 161 +-
src/pages/users/user_agreement/index.vue | 16 +-
src/pages/users/user_setting/index.config.ts | 2 +-
src/static/font_4211210_2x20brbrv94.css | 78 +-
src/static/iconfont/iconfont.css | 1310 +++++++-------
src/utils/js_sdk/u-charts.min.js | 1534 ++++++++---------
src/utils/request.ts | 2 +-
types/global.d.ts | 42 +-
types/vue.d.ts | 2 +-
104 files changed, 2350 insertions(+), 2477 deletions(-)
diff --git a/.cz-config.js b/.cz-config.js
index d679553..067f965 100644
--- a/.cz-config.js
+++ b/.cz-config.js
@@ -1,40 +1,40 @@
module.exports = {
types: [
- { value: "feat", name: "feat: 新增功能" },
- { value: "fix", name: "fix: 修复bug" },
- { value: "docs", name: "docs: 文档变更" },
+ {value: 'feat', name: 'feat: 新增功能'},
+ {value: 'fix', name: 'fix: 修复bug'},
+ {value: 'docs', name: 'docs: 文档变更'},
{
- value: "style",
- name: "style: 代码格式(不影响功能,例如空格、分号等格式修正)",
+ value: 'style',
+ name: 'style: 代码格式(不影响功能,例如空格、分号等格式修正)',
},
{
- value: "refactor",
- name: "refactor: 代码重构(不包括 bug 修复、功能新增)",
+ value: 'refactor',
+ name: 'refactor: 代码重构(不包括 bug 修复、功能新增)',
},
- { value: "perf", name: "perf: 性能优化" },
- { value: "test", name: "test: 添加、修改测试用例" },
+ {value: 'perf', name: 'perf: 性能优化'},
+ {value: 'test', name: 'test: 添加、修改测试用例'},
{
- value: "build",
- name: "build: 构建流程、外部依赖变更(如升级 npm 包、修改 脚手架 配置等)",
+ value: 'build',
+ name: 'build: 构建流程、外部依赖变更(如升级 npm 包、修改 脚手架 配置等)',
},
- { value: "ci", name: "ci: 修改 CI 配置、脚本" },
+ {value: 'ci', name: 'ci: 修改 CI 配置、脚本'},
{
- value: "chore",
- name: "chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)",
+ value: 'chore',
+ name: 'chore: 对构建过程或辅助工具和库的更改(不影响源文件、测试用例)',
},
- { value: "revert", name: "revert: 回滚 commit" },
- { value: "wip", name: "wip: 开发中" },
- { value: "mod", name: "mod: 不确定分类的修改" },
- { value: "release", name: "release: 发布" },
+ {value: 'revert', name: 'revert: 回滚 commit'},
+ {value: 'wip', name: 'wip: 开发中'},
+ {value: 'mod', name: 'mod: 不确定分类的修改'},
+ {value: 'release', name: 'release: 发布'},
],
scopes: [
- ["custom", "自定义"],
- ["projects", "项目搭建"],
- ["components", "组件相关"],
- ["utils", "utils 相关"],
- ["styles", "样式相关"],
- ["deps", "项目依赖"],
- ["other", "其他修改"],
+ ['custom', '自定义'],
+ ['projects', '项目搭建'],
+ ['components', '组件相关'],
+ ['utils', 'utils 相关'],
+ ['styles', '样式相关'],
+ ['deps', '项目依赖'],
+ ['other', '其他修改'],
].map(([value, description]) => {
return {
value,
@@ -42,16 +42,16 @@ module.exports = {
};
}),
messages: {
- type: "确保本次提交遵循 Angular 规范!选择你要提交的类型:\n",
- scope: "选择一个 scope(可选):",
- customScope: "请输入自定义的 scope:",
- subject: "填写简短精炼的变更描述:",
+ type: '确保本次提交遵循 Angular 规范!选择你要提交的类型:\n',
+ scope: '选择一个 scope(可选):',
+ customScope: '请输入自定义的 scope:',
+ subject: '填写简短精炼的变更描述:',
body: '填写更加详细的变更描述(可选)。使用 "|" 换行:',
- breaking: "列举非兼容性重大的变更(可选):",
- footer: "列举出所有变更的 Issues Closed(可选)。 例如: #31, #34:",
- confirmCommit: "确认提交?",
+ breaking: '列举非兼容性重大的变更(可选):',
+ footer: '列举出所有变更的 Issues Closed(可选)。 例如: #31, #34:',
+ confirmCommit: '确认提交?',
},
- allowBreakingChanges: ["feat", "fix"],
+ allowBreakingChanges: ['feat', 'fix'],
subjectLimit: 100,
- breaklineChar: "|",
+ breaklineChar: '|',
};
diff --git a/commitlint.config.js b/commitlint.config.js
index 69bf5d3..0827905 100644
--- a/commitlint.config.js
+++ b/commitlint.config.js
@@ -1,25 +1,25 @@
module.exports = {
- ignores: [(commit) => commit.includes("init")],
- extends: ["@commitlint/config-conventional"],
+ ignores: [commit => commit.includes('init')],
+ extends: ['@commitlint/config-conventional'],
rules: {
- "type-enum": [
+ 'type-enum': [
2,
- "always",
+ 'always',
[
- "feat",
- "fix",
- "docs",
- "style",
- "refactor",
- "perf",
- "test",
- "build",
- "ci",
- "chore",
- "revert",
- "wip",
- "mod",
- "release",
+ 'feat',
+ 'fix',
+ 'docs',
+ 'style',
+ 'refactor',
+ 'perf',
+ 'test',
+ 'build',
+ 'ci',
+ 'chore',
+ 'revert',
+ 'wip',
+ 'mod',
+ 'release',
],
],
},
diff --git a/config/index.ts b/config/index.ts
index dfec81a..133ffef 100644
--- a/config/index.ts
+++ b/config/index.ts
@@ -133,7 +133,7 @@ const config = {
},
};
-module.exports = function(merge) {
+module.exports = function (merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'));
}
diff --git a/package.json b/package.json
index 61b54be..c75949d 100644
--- a/package.json
+++ b/package.json
@@ -1,125 +1,125 @@
{
- "name": "jdt-user",
- "version": "4.0.4",
- "private": true,
- "description": "",
- "templateInfo": {
- "name": "jdt-user",
- "typescript": true,
- "css": "sass"
- },
- "taroConfig": {
- "version": "4.0.4"
- },
- "scripts": {
- "build:weapp": "taro build --type weapp",
- "build:test": "taro build --type weapp --mode test",
- "build:swan": "taro build --type swan",
- "build:alipay": "taro build --type alipay",
- "build:tt": "taro build --type tt",
- "build:h5": "taro build --type h5",
- "build:rn": "taro build --type rn",
- "build:qq": "taro build --type qq",
- "build:jd": "taro build --type jd",
- "build:quickapp": "taro build --type quickapp",
- "dev:weapp": "taro build --type weapp --watch",
- "dev:swan": "npm run build:swan -- --watch",
- "dev:alipay": "npm run build:alipay -- --watch",
- "dev:tt": "npm run build:tt -- --watch",
- "dev:h5": "npm run build:h5 -- --watch",
- "dev:rn": "npm run build:rn -- --watch",
- "dev:qq": "npm run build:qq -- --watch",
- "dev:jd": "npm run build:jd -- --watch",
- "dev:quickapp": "npm run build:quickapp -- --watch",
- "lint": "eslint --ext .ts,.vue .",
- "lint:fix": "eslint --fix --ext .ts,.vue .",
- "lint:staged": "lint-staged",
- "prepare": "husky install",
- "preview": "vite preview",
- "cz": "cz",
- "lf": "npx prettier --write --end-of-line lf .",
- "postinstall": "weapp-tw patch",
- "build:weapp:prod:upload": "taro build --type weapp --upload --robot=1 --desc='正式环境'",
- "build:weapp:test:upload": "taro build --type weapp --upload --robot=2 --desc='测试环境' --mode test"
- },
- "browserslist": [
- "last 3 versions",
- "Android >= 4.1",
- "ios >= 8"
- ],
- "author": "",
- "lint-staged": {
- "*.{ts,vue}": [
- "eslint --ext .ts,.vue .",
- "npx prettier --write --end-of-line lf ."
- ]
- },
- "config": {
- "commitizen": {
- "path": "node_modules/cz-customizable"
- }
- },
- "dependencies": {
- "@babel/runtime": "^7.23.5",
- "@nutui/icons-vue-taro": "^0.0.9",
- "@nutui/nutui-taro": "^4.3.12",
- "@qiun/vue-ucharts": "2.5.0-20230101",
- "@tarojs/components": "3.6.34",
- "@tarojs/helper": "3.6.34",
- "@tarojs/plugin-framework-vue3": "3.6.34",
- "@tarojs/plugin-html": "3.6.34",
- "@tarojs/plugin-platform-alipay": "3.6.34",
- "@tarojs/plugin-platform-h5": "3.6.34",
- "@tarojs/plugin-platform-jd": "3.6.34",
- "@tarojs/plugin-platform-qq": "3.6.34",
- "@tarojs/plugin-platform-swan": "3.6.34",
- "@tarojs/plugin-platform-tt": "3.6.34",
- "@tarojs/plugin-platform-weapp": "3.6.34",
- "@tarojs/runtime": "3.6.34",
- "@tarojs/shared": "3.6.34",
- "@tarojs/taro": "3.6.34",
- "dayjs": "^1.11.10",
- "pinia": "^2.1.7",
- "uqrcodejs": "^4.0.7",
- "vue": "^3.3.9"
- },
- "devDependencies": {
- "@babel/core": "^7.23.5",
- "@commitlint/cli": "^18.4.3",
- "@commitlint/config-conventional": "^18.4.3",
- "@tarojs/cli": "3.6.34",
- "@tarojs/plugin-mini-ci": "3.6.34",
- "@tarojs/taro-loader": "3.6.34",
- "@tarojs/webpack5-runner": "3.6.34",
- "@types/node": "^18.19.1",
- "@types/webpack-env": "^1.18.4",
- "@typescript-eslint/eslint-plugin": "^6.13.1",
- "@typescript-eslint/parser": "^6.13.1",
- "@unocss/webpack": "^0.60.0",
- "@vue/babel-plugin-jsx": "^1.1.5",
- "@vue/compiler-sfc": "^3.3.9",
- "autoprefixer": "^10.4.19",
- "babel-preset-taro": "3.6.34",
- "commitizen": "^4.3.0",
- "css-loader": "3.4.2",
- "cz-customizable": "^7.0.0",
- "eslint": "^8.55.0",
- "eslint-config-taro": "3.6.34",
- "eslint-plugin-vue": "^9.19.2",
- "husky": "^8.0.3",
- "lint-staged": "^15.1.0",
- "miniprogram-ci": "^2.0.8",
- "postcss": "8.4.29",
- "postcss-rem-to-responsive-pixel": "^6.0.1",
- "style-loader": "1.3.0",
- "stylelint": "9.3.0",
- "tailwindcss": "^3.4.3",
- "ts-node": "^10.9.1",
- "typescript": "^4.9.5",
- "unplugin-vue-components": "^0.23.0",
- "vue-loader": "^17.3.1",
- "weapp-tailwindcss": "^3.2.0",
- "webpack": "^5.89.0"
- },
- "packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
+ "name": "jdt-user",
+ "version": "4.0.4",
+ "private": true,
+ "description": "",
+ "templateInfo": {
+ "name": "jdt-user",
+ "typescript": true,
+ "css": "sass"
+ },
+ "taroConfig": {
+ "version": "4.0.4"
+ },
+ "scripts": {
+ "build:weapp": "taro build --type weapp",
+ "build:test": "taro build --type weapp --mode test",
+ "build:swan": "taro build --type swan",
+ "build:alipay": "taro build --type alipay",
+ "build:tt": "taro build --type tt",
+ "build:h5": "taro build --type h5",
+ "build:rn": "taro build --type rn",
+ "build:qq": "taro build --type qq",
+ "build:jd": "taro build --type jd",
+ "build:quickapp": "taro build --type quickapp",
+ "dev:weapp": "taro build --type weapp --watch",
+ "dev:swan": "npm run build:swan -- --watch",
+ "dev:alipay": "npm run build:alipay -- --watch",
+ "dev:tt": "npm run build:tt -- --watch",
+ "dev:h5": "npm run build:h5 -- --watch",
+ "dev:rn": "npm run build:rn -- --watch",
+ "dev:qq": "npm run build:qq -- --watch",
+ "dev:jd": "npm run build:jd -- --watch",
+ "dev:quickapp": "npm run build:quickapp -- --watch",
+ "lint": "eslint --ext .ts,.vue .",
+ "lint:fix": "eslint --fix --ext .ts,.vue .",
+ "lint:staged": "lint-staged",
+ "prepare": "husky install",
+ "preview": "vite preview",
+ "cz": "cz",
+ "lf": "npx prettier --write --end-of-line lf .",
+ "postinstall": "weapp-tw patch",
+ "build:weapp:prod:upload": "taro build --type weapp --upload --robot=1 --desc='正式环境'",
+ "build:weapp:test:upload": "taro build --type weapp --upload --robot=2 --desc='测试环境' --mode test"
+ },
+ "browserslist": [
+ "last 3 versions",
+ "Android >= 4.1",
+ "ios >= 8"
+ ],
+ "author": "",
+ "lint-staged": {
+ "*.{ts,vue}": [
+ "eslint --ext .ts,.vue .",
+ "npx prettier --write --end-of-line lf ."
+ ]
+ },
+ "config": {
+ "commitizen": {
+ "path": "node_modules/cz-customizable"
+ }
+ },
+ "dependencies": {
+ "@babel/runtime": "^7.23.5",
+ "@nutui/icons-vue-taro": "^0.0.9",
+ "@nutui/nutui-taro": "^4.3.12",
+ "@qiun/vue-ucharts": "2.5.0-20230101",
+ "@tarojs/components": "3.6.34",
+ "@tarojs/helper": "3.6.34",
+ "@tarojs/plugin-framework-vue3": "3.6.34",
+ "@tarojs/plugin-html": "3.6.34",
+ "@tarojs/plugin-platform-alipay": "3.6.34",
+ "@tarojs/plugin-platform-h5": "3.6.34",
+ "@tarojs/plugin-platform-jd": "3.6.34",
+ "@tarojs/plugin-platform-qq": "3.6.34",
+ "@tarojs/plugin-platform-swan": "3.6.34",
+ "@tarojs/plugin-platform-tt": "3.6.34",
+ "@tarojs/plugin-platform-weapp": "3.6.34",
+ "@tarojs/runtime": "3.6.34",
+ "@tarojs/shared": "3.6.34",
+ "@tarojs/taro": "3.6.34",
+ "dayjs": "^1.11.10",
+ "pinia": "^2.1.7",
+ "uqrcodejs": "^4.0.7",
+ "vue": "^3.3.9"
+ },
+ "devDependencies": {
+ "@babel/core": "^7.23.5",
+ "@commitlint/cli": "^18.4.3",
+ "@commitlint/config-conventional": "^18.4.3",
+ "@tarojs/cli": "3.6.34",
+ "@tarojs/plugin-mini-ci": "3.6.34",
+ "@tarojs/taro-loader": "3.6.34",
+ "@tarojs/webpack5-runner": "3.6.34",
+ "@types/node": "^18.19.1",
+ "@types/webpack-env": "^1.18.4",
+ "@typescript-eslint/eslint-plugin": "^6.13.1",
+ "@typescript-eslint/parser": "^6.13.1",
+ "@unocss/webpack": "^0.60.0",
+ "@vue/babel-plugin-jsx": "^1.1.5",
+ "@vue/compiler-sfc": "^3.3.9",
+ "autoprefixer": "^10.4.19",
+ "babel-preset-taro": "3.6.34",
+ "commitizen": "^4.3.0",
+ "css-loader": "3.4.2",
+ "cz-customizable": "^7.0.0",
+ "eslint": "^8.55.0",
+ "eslint-config-taro": "3.6.34",
+ "eslint-plugin-vue": "^9.19.2",
+ "husky": "^8.0.3",
+ "lint-staged": "^15.1.0",
+ "miniprogram-ci": "^2.0.8",
+ "postcss": "8.4.29",
+ "postcss-rem-to-responsive-pixel": "^6.0.1",
+ "style-loader": "1.3.0",
+ "stylelint": "9.3.0",
+ "tailwindcss": "^3.4.3",
+ "ts-node": "^10.9.1",
+ "typescript": "^4.9.5",
+ "unplugin-vue-components": "^0.23.0",
+ "vue-loader": "^17.3.1",
+ "weapp-tailwindcss": "^3.2.0",
+ "webpack": "^5.89.0"
+ },
+ "packageManager": "pnpm@9.1.4+sha512.9df9cf27c91715646c7d675d1c9c8e41f6fce88246f1318c1aa6a1ed1aeb3c4f032fcdf4ba63cc69c4fe6d634279176b5358727d8f2cc1e65b65f43ce2f8bfb0"
}
diff --git a/src/api/cart.ts b/src/api/cart.ts
index 52b000c..27b7fa4 100644
--- a/src/api/cart.ts
+++ b/src/api/cart.ts
@@ -1,15 +1,15 @@
-import request from "../utils/request";
+import request from '../utils/request';
// 添加购物车
export const addCart = (data: object) =>
- request("/goods/cart/add", data, "POST");
+ request('/goods/cart/add', data, 'POST');
// 获取购物车
-export const getCart = (data: object) => request("/goods/cart", data, "POST");
+export const getCart = (data: object) => request('/goods/cart', data, 'POST');
// 清空购物车
export const clearCart = (data: object) =>
- request("/goods/cart/removeAll", data, "POST");
+ request('/goods/cart/removeAll', data, 'POST');
// 获取全部购物车
-export const getAllCart = () => request("/goods/all/cart", {}, "POST");
+export const getAllCart = () => request('/goods/all/cart', {}, 'POST');
diff --git a/src/api/code.ts b/src/api/code.ts
index bfc9b2a..9ef7497 100644
--- a/src/api/code.ts
+++ b/src/api/code.ts
@@ -1,9 +1,8 @@
-import request from "../utils/request";
+import request from '../utils/request';
// 获取二维码信息
-export const getQrCode = (data: object) =>
- request("/qrcode/get", data, "POST");
+export const getQrCode = (data: object) => request('/qrcode/get', data, 'POST');
// 绑定二维码
export const bindQrCode = (data: object) =>
- request("/qrcode/bind", data, "POST");
\ No newline at end of file
+ request('/qrcode/bind', data, 'POST');
diff --git a/src/api/home.ts b/src/api/home.ts
index e51641b..6e51a26 100644
--- a/src/api/home.ts
+++ b/src/api/home.ts
@@ -1,10 +1,10 @@
-import request from "../utils/request";
+import request from '../utils/request';
// 获取商户分类
-export const getHomeList = () => request("/home/classify", {}, "POST");
+export const getHomeList = () => request('/home/classify', {}, 'POST');
// 获取商户子列表
-export const getHomeSubList = () => request("/home/all/classify", {}, "POST");
+export const getHomeSubList = () => request('/home/all/classify', {}, 'POST');
// 查找商家
-export const getStoreList = (data) => request("/find/store", data, "POST");
\ No newline at end of file
+export const getStoreList = data => request('/find/store', data, 'POST');
diff --git a/src/api/order.ts b/src/api/order.ts
index 3d237bc..aed7929 100644
--- a/src/api/order.ts
+++ b/src/api/order.ts
@@ -1,9 +1,9 @@
-import request from "@/utils/request";
+import request from '@/utils/request';
// 订单支付
export const payOrder = (data: object) =>
- request("/order/confirmOrder", data, "POST");
+ request('/order/confirmOrder', data, 'POST');
// 获取订单统计
export const getOrderStatistics = (data: object) =>
- request("/user/order/count", data, "POST");
+ request('/user/order/count', data, 'POST');
diff --git a/src/api/product.ts b/src/api/product.ts
index c2f877d..011c374 100644
--- a/src/api/product.ts
+++ b/src/api/product.ts
@@ -1,9 +1,9 @@
-import request from "@/utils/request";
+import request from '@/utils/request';
// 商品列表
export const productList = (data: object) =>
- request("/store/goods", data, "POST");
+ request('/store/goods', data, 'POST');
// 商品添加
export const addGood = (data: object) =>
- request("/store/goods/edit", data, "POST");
+ request('/store/goods/edit', data, 'POST');
diff --git a/src/app.scss b/src/app.scss
index cd4001f..9da775c 100644
--- a/src/app.scss
+++ b/src/app.scss
@@ -1,4 +1,4 @@
-@import "./static/iconfont/iconfont.css";
+@import './static/iconfont/iconfont.css';
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';
diff --git a/src/components/Auth.vue b/src/components/Auth.vue
index fe880ac..dd12ac6 100644
--- a/src/components/Auth.vue
+++ b/src/components/Auth.vue
@@ -15,8 +15,8 @@
diff --git a/src/components/MerList.vue b/src/components/MerList.vue
index 2b5f77a..e758dba 100644
--- a/src/components/MerList.vue
+++ b/src/components/MerList.vue
@@ -185,8 +185,14 @@ const toPage = async (url: string) => {
};
const toMerDetails = item => {
- Taro.navigateTo({
- url: `/pages/mer/mer_detail/index?bid=${item.bid}`,
+ Taro.requestSubscribeMessage({
+ tmplIds: ['ewjjRxDJAQ_RbKU8CIjMNwfJXazyGQ95XbpKW16vMZs'],
+ entityIds: [],
+ complete: () => {
+ Taro.navigateTo({
+ url: `/pages/mer/mer_detail/index?bid=${item.bid}`,
+ });
+ },
});
};
diff --git a/src/components/Popup.vue b/src/components/Popup.vue
index b1b8d1f..5eda46b 100644
--- a/src/components/Popup.vue
+++ b/src/components/Popup.vue
@@ -1,6 +1,6 @@
diff --git a/src/pages/admin/add_order/add_table/index.config.ts b/src/pages/admin/add_order/add_table/index.config.ts
index f5bbbb7..5f9d09e 100644
--- a/src/pages/admin/add_order/add_table/index.config.ts
+++ b/src/pages/admin/add_order/add_table/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "填写信息",
- navigationStyle: "custom",
+ navigationBarTitleText: '填写信息',
+ navigationStyle: 'custom',
});
diff --git a/src/pages/admin/add_order/add_table/index.scss b/src/pages/admin/add_order/add_table/index.scss
index 80423ce..a066934 100644
--- a/src/pages/admin/add_order/add_table/index.scss
+++ b/src/pages/admin/add_order/add_table/index.scss
@@ -3,7 +3,7 @@
justify-content: center;
box-sizing: border-box;
height: 100vh;
- background-image: url("https://cdn-we-retail.ym.tencent.com/miniapp/template/user-center-bg-v1.png");
+ background-image: url('https://cdn-we-retail.ym.tencent.com/miniapp/template/user-center-bg-v1.png');
background-size: auto 40%;
background-repeat: no-repeat;
@@ -43,4 +43,4 @@
.nut-dialog__content {
text-align: left !important;
font-size: 28px;
-}
\ No newline at end of file
+}
diff --git a/src/pages/admin/add_order/add_table/index.vue b/src/pages/admin/add_order/add_table/index.vue
index 0bf0f16..88e4cb6 100644
--- a/src/pages/admin/add_order/add_table/index.vue
+++ b/src/pages/admin/add_order/add_table/index.vue
@@ -10,8 +10,7 @@
placeholder="请输入台号,比如:包厢A01"
name="seat"
v-model="formVal.seat"
- required
- />
+ required />
手机号:
@@ -20,8 +19,7 @@
placeholder="请输入客人手机号码"
name="phone"
v-model="formVal.phone"
- required
- />
+ required />
备注:
@@ -29,8 +27,7 @@
type="textarea"
placeholder="备注"
name="notes"
- v-model="formVal.notes"
- />
+ v-model="formVal.notes" />
客户手机号:
{{ formVal.phone }}
- 没有注册捷兑
-通,请通知他登录捷兑通小程序注册。
diff --git a/src/pages/admin/add_order/index.config.ts b/src/pages/admin/add_order/index.config.ts
index 6727f1f..69cdd32 100644
--- a/src/pages/admin/add_order/index.config.ts
+++ b/src/pages/admin/add_order/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "点单",
- navigationStyle: "custom",
+ navigationBarTitleText: '点单',
+ navigationStyle: 'custom',
});
diff --git a/src/pages/admin/add_order/index.scss b/src/pages/admin/add_order/index.scss
index df86b52..d84d33e 100644
--- a/src/pages/admin/add_order/index.scss
+++ b/src/pages/admin/add_order/index.scss
@@ -3,7 +3,7 @@
justify-content: center;
box-sizing: border-box;
height: 100vh;
- background-image: url("./static/WechatIMG10.jpg");
+ background-image: url('./static/WechatIMG10.jpg');
background-size: 100% 35%;
background-repeat: no-repeat;
@@ -39,7 +39,7 @@
.line {
width: 1px;
height: 188px;
- background: #C8C8C8;
+ background: #c8c8c8;
}
}
}
diff --git a/src/pages/admin/add_order/index.vue b/src/pages/admin/add_order/index.vue
index 4124693..6bdcf2b 100644
--- a/src/pages/admin/add_order/index.vue
+++ b/src/pages/admin/add_order/index.vue
@@ -5,8 +5,7 @@
+ @click="navTo('/pages/admin/add_order/add_table/index')">
开始点单
线上点单后结系统
@@ -14,8 +13,7 @@
+ @click="navTo('/pages/admin/add_order/pending_order/index')">
我的订单
查看我点餐的订单
@@ -26,8 +24,8 @@
diff --git a/src/pages/admin/add_order/pending_order/index.config.ts b/src/pages/admin/add_order/pending_order/index.config.ts
index 5605b00..a190eed 100644
--- a/src/pages/admin/add_order/pending_order/index.config.ts
+++ b/src/pages/admin/add_order/pending_order/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "后结订单",
+ navigationBarTitleText: '后结订单',
});
diff --git a/src/pages/admin/add_order/pending_order/pay/index.config.ts b/src/pages/admin/add_order/pending_order/pay/index.config.ts
index 0e43aba..5dbafc2 100644
--- a/src/pages/admin/add_order/pending_order/pay/index.config.ts
+++ b/src/pages/admin/add_order/pending_order/pay/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "收款",
+ navigationBarTitleText: '收款',
});
diff --git a/src/pages/admin/add_order/pending_order/pay/index.scss b/src/pages/admin/add_order/pending_order/pay/index.scss
index 943d71f..8e4a5c5 100644
--- a/src/pages/admin/add_order/pending_order/pay/index.scss
+++ b/src/pages/admin/add_order/pending_order/pay/index.scss
@@ -18,12 +18,12 @@
}
&::before {
- content: "¥";
+ content: '¥';
color: #666666;
}
&::after {
- content: "";
+ content: '';
position: absolute;
bottom: -1px;
width: 700px;
@@ -38,46 +38,46 @@
border-radius: 12px;
margin: 20px auto;
box-sizing: border-box;
-
+
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
-
+
text {
margin-right: 10px;
color: #333333;
font-size: 28px;
}
}
-
+
.line {
width: inherit;
height: 1px;
background-color: #e9e9e9;
}
-
+
.goods-list {
display: flex;
margin: 20px;
-
+
image {
width: 195px;
height: 195px;
border-radius: 12px;
}
-
+
.center {
margin-left: 20px;
-
+
.title {
font-weight: bold;
text-align: left;
font-size: 30px;
}
}
-
+
.num {
flex: 1;
text-align: right;
@@ -85,7 +85,7 @@
font-size: 26px;
}
}
-
+
.desc {
padding: 10px 20px;
color: #666666;
@@ -101,7 +101,7 @@
.btn {
width: 709px;
height: 92px;
- background: #FD0100;
+ background: #fd0100;
color: #ffffff;
font-size: 32px;
text-align: center;
diff --git a/src/pages/admin/add_order/pending_order/pending_order_detail/index.config.ts b/src/pages/admin/add_order/pending_order/pending_order_detail/index.config.ts
index 7343664..df329e6 100644
--- a/src/pages/admin/add_order/pending_order/pending_order_detail/index.config.ts
+++ b/src/pages/admin/add_order/pending_order/pending_order_detail/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "订单详情",
+ navigationBarTitleText: '订单详情',
// navigationStyle: "custom",
});
diff --git a/src/pages/admin/add_order/pending_order/wx_pay_code/index.config.ts b/src/pages/admin/add_order/pending_order/wx_pay_code/index.config.ts
index ae9245e..a515273 100644
--- a/src/pages/admin/add_order/pending_order/wx_pay_code/index.config.ts
+++ b/src/pages/admin/add_order/pending_order/wx_pay_code/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "收款码",
+ navigationBarTitleText: '收款码',
});
diff --git a/src/pages/admin/add_order/pending_order/wx_pay_code/index.scss b/src/pages/admin/add_order/pending_order/wx_pay_code/index.scss
index a0baf4d..71f540d 100644
--- a/src/pages/admin/add_order/pending_order/wx_pay_code/index.scss
+++ b/src/pages/admin/add_order/pending_order/wx_pay_code/index.scss
@@ -35,4 +35,4 @@ page {
right: 55px;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/pages/admin/add_order/pending_order/wx_pay_code/index.vue b/src/pages/admin/add_order/pending_order/wx_pay_code/index.vue
index 5004c83..4e27acb 100644
--- a/src/pages/admin/add_order/pending_order/wx_pay_code/index.vue
+++ b/src/pages/admin/add_order/pending_order/wx_pay_code/index.vue
@@ -11,31 +11,31 @@
diff --git a/src/pages/admin/order_manage/detail/index.config.ts b/src/pages/admin/order_manage/detail/index.config.ts
index 661c252..0e3abb1 100644
--- a/src/pages/admin/order_manage/detail/index.config.ts
+++ b/src/pages/admin/order_manage/detail/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "订单详情",
+ navigationBarTitleText: '订单详情',
});
diff --git a/src/pages/admin/order_manage/index.config.ts b/src/pages/admin/order_manage/index.config.ts
index 144c753..dcf4982 100644
--- a/src/pages/admin/order_manage/index.config.ts
+++ b/src/pages/admin/order_manage/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "订单管理",
+ navigationBarTitleText: '订单管理',
});
diff --git a/src/pages/admin/order_manage/index.scss b/src/pages/admin/order_manage/index.scss
index d14bc68..1f1cbda 100644
--- a/src/pages/admin/order_manage/index.scss
+++ b/src/pages/admin/order_manage/index.scss
@@ -62,4 +62,4 @@
color: #999;
}
}
-}
\ No newline at end of file
+}
diff --git a/src/pages/admin/order_manage/index.vue b/src/pages/admin/order_manage/index.vue
index 4adf50f..10a6525 100644
--- a/src/pages/admin/order_manage/index.vue
+++ b/src/pages/admin/order_manage/index.vue
@@ -34,16 +34,14 @@
+ :url="`/pages/admin/statistics/index?type=price&time=today`">
{{ orderInfo?.total?.TodayNumber || 0 }}
今日成交额
+ :url="`/pages/admin/statistics/index?type=price&time=yesterday`">
{{
orderInfo?.total?.YesterdayNumber || 0
}}
@@ -52,32 +50,28 @@
+ :url="`/pages/admin/statistics/index?type=price&time=month`">
{{ orderInfo?.total?.MonthNumber || 0 }}
本月成交额
+ :url="`/pages/admin/statistics/index?type=order&time=today`">
{{ orderInfo?.total?.TodayOrder || 0 }}
今日订单数
+ :url="`/pages/admin/statistics/index?type=order&time=yesterday`">
{{ orderInfo?.total?.YesterdayOrder || 0 }}
昨日订单数
+ :url="`/pages/admin/statistics/index?type=order&time=month`">
{{ orderInfo?.total?.MonthOrder || 0 }}
本月订单数
@@ -93,8 +87,7 @@
:bordered="true"
class="table"
:columns="columns"
- :data="orderInfo?.list"
- >
+ :data="orderInfo?.list">
@@ -102,9 +95,9 @@
diff --git a/src/pages/game/gameview/index.config.ts b/src/pages/game/gameview/index.config.ts
index b0e5365..c59824f 100644
--- a/src/pages/game/gameview/index.config.ts
+++ b/src/pages/game/gameview/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "GameView",
+ navigationBarTitleText: 'GameView',
});
diff --git a/src/pages/game/gameview/index.vue b/src/pages/game/gameview/index.vue
index 03bfcf9..e7a0ac0 100644
--- a/src/pages/game/gameview/index.vue
+++ b/src/pages/game/gameview/index.vue
@@ -1,19 +1,18 @@
+ :src="`https://www.jdt168.com/public/?uid=${user.uid}`">
diff --git a/src/pages/game/view/index.config.ts b/src/pages/game/view/index.config.ts
index 9a66c14..b52af90 100644
--- a/src/pages/game/view/index.config.ts
+++ b/src/pages/game/view/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "",
- navigationStyle: "custom",
+ navigationBarTitleText: '',
+ navigationStyle: 'custom',
});
diff --git a/src/pages/goods/goods_detail/index.config.ts b/src/pages/goods/goods_detail/index.config.ts
index 295b9c8..5cbcb85 100644
--- a/src/pages/goods/goods_detail/index.config.ts
+++ b/src/pages/goods/goods_detail/index.config.ts
@@ -1,5 +1,5 @@
export default definePageConfig({
- navigationBarTitleText: "商品详情",
- navigationStyle: "custom",
+ navigationBarTitleText: '商品详情',
+ navigationStyle: 'custom',
enableShareAppMessage: true,
});
diff --git a/src/pages/goods/goods_detail/index.vue b/src/pages/goods/goods_detail/index.vue
index fe4df98..2089ff4 100644
--- a/src/pages/goods/goods_detail/index.vue
+++ b/src/pages/goods/goods_detail/index.vue
@@ -308,7 +308,7 @@ page {
.line1 {
width: 100%;
height: 1px;
- background-color: #F0F0F0;
+ background-color: #f0f0f0;
margin: 20px auto;
}
diff --git a/src/pages/goods/order_create/index.config.ts b/src/pages/goods/order_create/index.config.ts
index aeeeafe..5061d8b 100644
--- a/src/pages/goods/order_create/index.config.ts
+++ b/src/pages/goods/order_create/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "提交订单",
+ navigationBarTitleText: '提交订单',
});
diff --git a/src/pages/goods/order_create/index.vue b/src/pages/goods/order_create/index.vue
index 9a8e7c8..d2c6614 100644
--- a/src/pages/goods/order_create/index.vue
+++ b/src/pages/goods/order_create/index.vue
@@ -20,24 +20,21 @@
:border="false"
v-model="basicData.name"
placeholder="请输入姓名"
- type="text"
- />
+ type="text" />
+ type="text" />
+ type="text" />
@@ -51,22 +48,22 @@
diff --git a/src/pages/hotGoods/hot_list/index.config.ts b/src/pages/hotGoods/hot_list/index.config.ts
index 2dbea88..4ff6484 100644
--- a/src/pages/hotGoods/hot_list/index.config.ts
+++ b/src/pages/hotGoods/hot_list/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "活动订单",
+ navigationBarTitleText: '活动订单',
});
diff --git a/src/pages/hotGoods/hot_list/index.vue b/src/pages/hotGoods/hot_list/index.vue
index 552a4e7..1068ac7 100644
--- a/src/pages/hotGoods/hot_list/index.vue
+++ b/src/pages/hotGoods/hot_list/index.vue
@@ -1,15 +1,15 @@
diff --git a/src/pages/users/distribution/userlist/index.config.ts b/src/pages/users/distribution/userlist/index.config.ts
index aed95a7..809e53a 100644
--- a/src/pages/users/distribution/userlist/index.config.ts
+++ b/src/pages/users/distribution/userlist/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "推广人统计",
+ navigationBarTitleText: '推广人统计',
});
diff --git a/src/pages/users/distribution/userlist/index.vue b/src/pages/users/distribution/userlist/index.vue
index 83f3386..319a994 100644
--- a/src/pages/users/distribution/userlist/index.vue
+++ b/src/pages/users/distribution/userlist/index.vue
@@ -4,8 +4,7 @@
+ :key="index">
@@ -19,8 +18,7 @@
v-model="page.PageNum"
:total-items="page.ItemCount"
:items-per-page="page.PageSize"
- @change="pageChange"
- />
+ @change="pageChange" />
@@ -29,9 +27,9 @@
diff --git a/src/pages/users/login/index.config.ts b/src/pages/users/login/index.config.ts
index f8f4f8a..4f17b4c 100644
--- a/src/pages/users/login/index.config.ts
+++ b/src/pages/users/login/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "登录",
- navigationStyle: "custom",
+ navigationBarTitleText: '登录',
+ navigationStyle: 'custom',
});
diff --git a/src/pages/users/login/index.vue b/src/pages/users/login/index.vue
index b74a225..148ff7d 100644
--- a/src/pages/users/login/index.vue
+++ b/src/pages/users/login/index.vue
@@ -143,24 +143,25 @@ const clickText = (type: number, text: string) => {
type="primary"
open-type="getPhoneNumber"
@getphonenumber="getPhoneNumber"
- >手机号一键登录
+ >手机号一键登录
+
手机号登录/注册
+ >手机号登录/注册
+
-
+
+
阅读并同意
用户协议
- &
- 隐私政策 &
+ &
+
+ 隐私政策
+
+ &
+
积分使用规则
diff --git a/src/pages/users/order_list/index.config.ts b/src/pages/users/order_list/index.config.ts
index b44cba3..885df77 100644
--- a/src/pages/users/order_list/index.config.ts
+++ b/src/pages/users/order_list/index.config.ts
@@ -1,4 +1,4 @@
export default definePageConfig({
- navigationBarTitleText: "我的订单",
+ navigationBarTitleText: '我的订单',
enablePullDownRefresh: true,
});
diff --git a/src/pages/users/order_list_detail/index.config.ts b/src/pages/users/order_list_detail/index.config.ts
index 661c252..0e3abb1 100644
--- a/src/pages/users/order_list_detail/index.config.ts
+++ b/src/pages/users/order_list_detail/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "订单详情",
+ navigationBarTitleText: '订单详情',
});
diff --git a/src/pages/users/pending_order/index.config.ts b/src/pages/users/pending_order/index.config.ts
index 5605b00..a190eed 100644
--- a/src/pages/users/pending_order/index.config.ts
+++ b/src/pages/users/pending_order/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "后结订单",
+ navigationBarTitleText: '后结订单',
});
diff --git a/src/pages/users/pending_order/pending_order_detail/index.config.ts b/src/pages/users/pending_order/pending_order_detail/index.config.ts
index 661c252..0e3abb1 100644
--- a/src/pages/users/pending_order/pending_order_detail/index.config.ts
+++ b/src/pages/users/pending_order/pending_order_detail/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "订单详情",
+ navigationBarTitleText: '订单详情',
});
diff --git a/src/pages/users/pending_order/pending_order_detail/index.scss b/src/pages/users/pending_order/pending_order_detail/index.scss
index 15f039a..54a3e1c 100644
--- a/src/pages/users/pending_order/pending_order_detail/index.scss
+++ b/src/pages/users/pending_order/pending_order_detail/index.scss
@@ -74,4 +74,4 @@
color: #333333;
font-size: 32px;
}
-}
\ No newline at end of file
+}
diff --git a/src/pages/users/pending_order/pending_order_detail/index.vue b/src/pages/users/pending_order/pending_order_detail/index.vue
index 878058e..71d193c 100644
--- a/src/pages/users/pending_order/pending_order_detail/index.vue
+++ b/src/pages/users/pending_order/pending_order_detail/index.vue
@@ -20,8 +20,7 @@
+ :content="itm.Goods.name">
@@ -46,8 +45,7 @@
+ :desc="get_status_text(data.status)">
@@ -60,9 +58,9 @@
diff --git a/src/pages/users/setting/index.config.ts b/src/pages/users/setting/index.config.ts
index 41c66ae..d4b22f1 100644
--- a/src/pages/users/setting/index.config.ts
+++ b/src/pages/users/setting/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "个人设置",
+ navigationBarTitleText: '个人设置',
});
diff --git a/src/pages/users/settled_mer/index.config.ts b/src/pages/users/settled_mer/index.config.ts
index 61f228a..f53bbd7 100644
--- a/src/pages/users/settled_mer/index.config.ts
+++ b/src/pages/users/settled_mer/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "商户入驻",
+ navigationBarTitleText: '商户入驻',
});
diff --git a/src/pages/users/settled_mer/index.vue b/src/pages/users/settled_mer/index.vue
index 751b78b..0cdb180 100644
--- a/src/pages/users/settled_mer/index.vue
+++ b/src/pages/users/settled_mer/index.vue
@@ -1,15 +1,15 @@
diff --git a/src/pages/users/user_setting/index.config.ts b/src/pages/users/user_setting/index.config.ts
index 7cc0cb7..052b6fe 100644
--- a/src/pages/users/user_setting/index.config.ts
+++ b/src/pages/users/user_setting/index.config.ts
@@ -1,3 +1,3 @@
export default definePageConfig({
- navigationBarTitleText: "个人资料",
+ navigationBarTitleText: '个人资料',
});
diff --git a/src/static/font_4211210_2x20brbrv94.css b/src/static/font_4211210_2x20brbrv94.css
index 49f0c5f..82be6e2 100644
--- a/src/static/font_4211210_2x20brbrv94.css
+++ b/src/static/font_4211210_2x20brbrv94.css
@@ -1,15 +1,15 @@
@font-face {
- font-family: "iconfont"; /* Project id 4211210 */
- src: url("https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.woff2?t=1692081500100")
- format("woff2"),
- url("https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.woff?t=1692081500100")
- format("woff"),
- url("https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.ttf?t=1692081500100")
- format("truetype");
+ font-family: 'iconfont'; /* Project id 4211210 */
+ src: url('https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.woff2?t=1692081500100')
+ format('woff2'),
+ url('https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.woff?t=1692081500100')
+ format('woff'),
+ url('https://at.alicdn.com/t/c/font_4211210_2x20brbrv94.ttf?t=1692081500100')
+ format('truetype');
}
.iconfont {
- font-family: "iconfont" !important;
+ font-family: 'iconfont' !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
@@ -17,125 +17,125 @@
}
.icon-H:before {
- content: "\e609";
+ content: '\e609';
}
.icon-indent:before {
- content: "\e618";
+ content: '\e618';
}
.icon-outdent:before {
- content: "\e620";
+ content: '\e620';
}
.icon-image:before {
- content: "\e63f";
+ content: '\e63f';
}
.icon-shanchu:before {
- content: "\e74b";
+ content: '\e74b';
}
.icon-formatheader1:before {
- content: "\e860";
+ content: '\e860';
}
.icon-zitishangbiao:before {
- content: "\e65c";
+ content: '\e65c';
}
.icon-zitixiabiao:before {
- content: "\e65d";
+ content: '\e65d';
}
.icon-direction-rtl:before {
- content: "\e6de";
+ content: '\e6de';
}
.icon-fengexian:before {
- content: "\e62d";
+ content: '\e62d';
}
.icon-clearformat:before {
- content: "\e60b";
+ content: '\e60b';
}
.icon-redo:before {
- content: "\e627";
+ content: '\e627';
}
.icon-undo:before {
- content: "\e633";
+ content: '\e633';
}
.icon-font:before {
- content: "\eae6";
+ content: '\eae6';
}
.icon-font-colors:before {
- content: "\e7f7";
+ content: '\e7f7';
}
.icon-font-size:before {
- content: "\e7f8";
+ content: '\e7f8';
}
.icon-Character-Spacing:before {
- content: "\e964";
+ content: '\e964';
}
.icon-duanhouju:before {
- content: "\e61a";
+ content: '\e61a';
}
.icon-duanqianju:before {
- content: "\e61b";
+ content: '\e61b';
}
.icon-line-height:before {
- content: "\e7c4";
+ content: '\e7c4';
}
.icon-juzhongduiqi:before {
- content: "\e621";
+ content: '\e621';
}
.icon-wuxupailie:before {
- content: "\e63e";
+ content: '\e63e';
}
.icon-youduiqi:before {
- content: "\e64b";
+ content: '\e64b';
}
.icon-youxupailie:before {
- content: "\e64c";
+ content: '\e64c';
}
.icon-zitijiacu:before {
- content: "\e656";
+ content: '\e656';
}
.icon-zitishanchuxian:before {
- content: "\e657";
+ content: '\e657';
}
.icon-zitixiahuaxian:before {
- content: "\e658";
+ content: '\e658';
}
.icon-zitixieti:before {
- content: "\e659";
+ content: '\e659';
}
.icon-zuoyouduiqi:before {
- content: "\e65a";
+ content: '\e65a';
}
.icon-zuoduiqi:before {
- content: "\e65b";
+ content: '\e65b';
}
.icon-fontbgcolor-copy:before {
- content: "\eae7";
+ content: '\eae7';
}
diff --git a/src/static/iconfont/iconfont.css b/src/static/iconfont/iconfont.css
index 70c4b10..d7329ff 100644
--- a/src/static/iconfont/iconfont.css
+++ b/src/static/iconfont/iconfont.css
@@ -1,15 +1,15 @@
@font-face {
- font-family: "iconfont"; /* Project id 993865 */
- src: url("https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.woff2?t=1681715156711")
- format("woff2"),
- url("https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.woff?t=1681715156711")
- format("woff"),
- url("https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.ttf?t=1681715156711")
- format("truetype");
+ font-family: 'iconfont'; /* Project id 993865 */
+ src: url('https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.woff2?t=1681715156711')
+ format('woff2'),
+ url('https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.woff?t=1681715156711')
+ format('woff'),
+ url('https://at.alicdn.com/t/c/font_993865_zmqjk4lvax.ttf?t=1681715156711')
+ format('truetype');
}
.iconfont {
- font-family: "iconfont" !important;
+ font-family: 'iconfont' !important;
font-size: 50px;
font-style: normal;
-webkit-font-smoothing: antialiased;
@@ -17,2589 +17,2589 @@
}
.icon-jifenshangcheng:before {
- content: "\e848";
+ content: '\e848';
}
.icon-fabu2:before {
- content: "\e84d";
+ content: '\e84d';
}
.icon-bianji6:before {
- content: "\e854";
+ content: '\e854';
}
.icon-zhibo-yugao:before {
- content: "\e846";
+ content: '\e846';
}
.icon-zhibo-huifang:before {
- content: "\e84b";
+ content: '\e84b';
}
.icon-zhibo-zhibozhong:before {
- content: "\e84c";
+ content: '\e84c';
}
.icon-a-guanzhu:before {
- content: "\e849";
+ content: '\e849';
}
.icon-huati:before {
- content: "\e84a";
+ content: '\e84a';
}
.icon-shuaxin:before {
- content: "\e847";
+ content: '\e847';
}
.icon-pinglun3:before {
- content: "\e83f";
+ content: '\e83f';
}
.icon-neirongfenlei:before {
- content: "\e841";
+ content: '\e841';
}
.icon-canyuhuati1:before {
- content: "\e842";
+ content: '\e842';
}
.icon-tianjiabaobei:before {
- content: "\e843";
+ content: '\e843';
}
.icon-zhankai:before {
- content: "\e844";
+ content: '\e844';
}
.icon-shouqi:before {
- content: "\e845";
+ content: '\e845';
}
.icon-ziti:before {
- content: "\e83c";
+ content: '\e83c';
}
.icon-peisong:before {
- content: "\e83d";
+ content: '\e83d';
}
.icon-pindan:before {
- content: "\e83e";
+ content: '\e83e';
}
.icon-daifukuan1:before {
- content: "\e836";
+ content: '\e836';
}
.icon-daifahuo1:before {
- content: "\e837";
+ content: '\e837';
}
.icon-daipingjia1:before {
- content: "\e839";
+ content: '\e839';
}
.icon-daishouhuo1:before {
- content: "\e83a";
+ content: '\e83a';
}
.icon-a-shouhoutuikuan1:before {
- content: "\e83b";
+ content: '\e83b';
}
.icon-baozhengjin:before {
- content: "\e834";
+ content: '\e834';
}
.icon-tonglianzhifu1:before {
- content: "\e835";
+ content: '\e835';
}
.icon-dianpu1:before {
- content: "\e833";
+ content: '\e833';
}
.icon-paizhao:before {
- content: "\e832";
+ content: '\e832';
}
.icon-24gf-play:before {
- content: "\ea82";
+ content: '\ea82';
}
.icon-yiquxiao:before {
- content: "\e831";
+ content: '\e831';
}
.icon-wutouxiang:before {
- content: "\e830";
+ content: '\e830';
}
.icon-fenxiang3:before {
- content: "\e82d";
+ content: '\e82d';
}
.icon-pinglun2:before {
- content: "\e82e";
+ content: '\e82e';
}
.icon-shipin1:before {
- content: "\e827";
+ content: '\e827';
}
.icon-tuwen1:before {
- content: "\e828";
+ content: '\e828';
}
.icon-shangpinye_fenxiang:before {
- content: "\e8e4";
+ content: '\e8e4';
}
.icon-gou2:before {
- content: "\e826";
+ content: '\e826';
}
.icon-daihexiao:before {
- content: "\e825";
+ content: '\e825';
}
.icon-pengyouquan1:before {
- content: "\e824";
+ content: '\e824';
}
.icon-shangpin1:before {
- content: "\e823";
+ content: '\e823';
}
.icon-tishi2:before {
- content: "\e821";
+ content: '\e821';
}
.icon-baoguo:before {
- content: "\e822";
+ content: '\e822';
}
.icon-shipin:before {
- content: "\e820";
+ content: '\e820';
}
.icon-fengmian:before {
- content: "\e81f";
+ content: '\e81f';
}
.icon-hexiaoma:before {
- content: "\e81c";
+ content: '\e81c';
}
.icon-tuwen:before {
- content: "\e81d";
+ content: '\e81d';
}
.icon-tianjiashipin:before {
- content: "\e81e";
+ content: '\e81e';
}
.icon-chehui:before {
- content: "\e81a";
+ content: '\e81a';
}
.icon-fuzhi:before {
- content: "\e81b";
+ content: '\e81b';
}
.icon-yue2:before {
- content: "\e8b0";
+ content: '\e8b0';
}
.icon-gouwu_o:before {
- content: "\eb60";
+ content: '\eb60';
}
.icon-chengchangzhi:before {
- content: "\e815";
+ content: '\e815';
}
.icon-fabu1:before {
- content: "\e814";
+ content: '\e814';
}
.icon-qiandao:before {
- content: "\e816";
+ content: '\e816';
}
.icon-pingjia3:before {
- content: "\e817";
+ content: '\e817';
}
.icon-yaoqing1:before {
- content: "\e819";
+ content: '\e819';
}
.icon-liebiao1:before {
- content: "\e7f9";
+ content: '\e7f9';
}
.icon-liebiao2:before {
- content: "\e7fa";
+ content: '\e7fa';
}
.icon-xiaofeijilu-rongcuo:before {
- content: "\e853";
+ content: '\e853';
}
.icon-goumaishangpin:before {
- content: "\e84e";
+ content: '\e84e';
}
.icon-meiriqiandao:before {
- content: "\e84f";
+ content: '\e84f';
}
.icon-yaoqinghaoyou2:before {
- content: "\e850";
+ content: '\e850';
}
.icon-xiaofeijilu1:before {
- content: "\e851";
+ content: '\e851';
}
.icon-fufeihuiyuan1:before {
- content: "\e852";
+ content: '\e852';
}
.icon-goumai:before {
- content: "\e7f8";
+ content: '\e7f8';
}
.icon-dengdaizhifu:before {
- content: "\e840";
+ content: '\e840';
}
.icon-xinghao:before {
- content: "\e838";
+ content: '\e838';
}
.icon-shouji2:before {
- content: "\e829";
+ content: '\e829';
}
.icon-dingwei4:before {
- content: "\e82a";
+ content: '\e82a';
}
.icon-sousuo8:before {
- content: "\e82b";
+ content: '\e82b';
}
.icon-erweima3:before {
- content: "\e82c";
+ content: '\e82c';
}
.icon-shoudanyouhui:before {
- content: "\e818";
+ content: '\e818';
}
.icon-gouwuche-mendian:before {
- content: "\e812";
+ content: '\e812';
}
.icon-kefu-mendian:before {
- content: "\e813";
+ content: '\e813';
}
.icon-zhongwen:before {
- content: "\e810";
+ content: '\e810';
}
.icon-yingwen:before {
- content: "\e811";
+ content: '\e811';
}
.icon-shipindianzan-weidian1:before {
- content: "\e80e";
+ content: '\e80e';
}
.icon-shipindianzan-yidian:before {
- content: "\e80f";
+ content: '\e80f';
}
.icon-mendian1:before {
- content: "\e807";
+ content: '\e807';
}
.icon-gouwuche8:before {
- content: "\e808";
+ content: '\e808';
}
.icon-tianjiagouwuche:before {
- content: "\e809";
+ content: '\e809';
}
.icon-shipindianzan-weidian:before {
- content: "\e80a";
+ content: '\e80a';
}
.icon-pingjia2:before {
- content: "\e80b";
+ content: '\e80b';
}
.icon-liwu:before {
- content: "\e80c";
+ content: '\e80c';
}
.icon-shipindianzan:before {
- content: "\e80d";
+ content: '\e80d';
}
.icon-dingwei2:before {
- content: "\e7fb";
+ content: '\e7fb';
}
.icon-dianhua:before {
- content: "\e7fc";
+ content: '\e7fc';
}
.icon-yingyeshijian1:before {
- content: "\e7fd";
+ content: '\e7fd';
}
.icon-bianji4:before {
- content: "\e7fe";
+ content: '\e7fe';
}
.icon-xuanzhong6:before {
- content: "\e7ff";
+ content: '\e7ff';
}
.icon-shaixuan1:before {
- content: "\e800";
+ content: '\e800';
}
.icon-yingyeshijian2:before {
- content: "\e801";
+ content: '\e801';
}
.icon-dingwei3:before {
- content: "\e802";
+ content: '\e802';
}
.icon-mendian:before {
- content: "\e806";
+ content: '\e806';
}
.icon-fangda1:before {
- content: "\e7f7";
+ content: '\e7f7';
}
.icon-meiyuan:before {
- content: "\e7f5";
+ content: '\e7f5';
}
.icon-yilingqu2:before {
- content: "\e7f6";
+ content: '\e7f6';
}
.icon-jifen:before {
- content: "\e7f3";
+ content: '\e7f3';
}
.icon-youhuiquan2:before {
- content: "\e7f4";
+ content: '\e7f4';
}
.icon-zuji-xuanzhong:before {
- content: "\e7f2";
+ content: '\e7f2';
}
.icon-zuji:before {
- content: "\e7f1";
+ content: '\e7f1';
}
.icon-fanhui3:before {
- content: "\e7f0";
+ content: '\e7f0';
}
.icon-fenxiaodingdan:before {
- content: "\e7e9";
+ content: '\e7e9';
}
.icon-tuiguangrenpaihang1:before {
- content: "\e7ea";
+ content: '\e7ea';
}
.icon-huodongguize:before {
- content: "\e7eb";
+ content: '\e7eb';
}
.icon-xingzhuangjiehe:before {
- content: "\e7ec";
+ content: '\e7ec';
}
.icon-wodetuandui:before {
- content: "\e7ed";
+ content: '\e7ed';
}
.icon-yaoqinghaoyou1:before {
- content: "\e7ee";
+ content: '\e7ee';
}
.icon-yongjinpaihang1:before {
- content: "\e7ef";
+ content: '\e7ef';
}
.icon-daohangdaodian:before {
- content: "\e7e5";
+ content: '\e7e5';
}
.icon-yingyeshijian:before {
- content: "\e7e6";
+ content: '\e7e6';
}
.icon-dingwei1:before {
- content: "\e7e7";
+ content: '\e7e7';
}
.icon-zhidianzixun:before {
- content: "\e7e8";
+ content: '\e7e8';
}
.icon-pc-jifen:before {
- content: "\e7e3";
+ content: '\e7e3';
}
.icon-pc-youhuiquan:before {
- content: "\e7e4";
+ content: '\e7e4';
}
.icon-qunliao:before {
- content: "\e7e2";
+ content: '\e7e2';
}
.icon-dingdan-xuanzhong:before {
- content: "\e7db";
+ content: '\e7db';
}
.icon-jilu-xuanzhong:before {
- content: "\e7dc";
+ content: '\e7dc';
}
.icon-kehu-xuanzhong:before {
- content: "\e7dd";
+ content: '\e7dd';
}
.icon-jilu:before {
- content: "\e7de";
+ content: '\e7de';
}
.icon-dingdan1:before {
- content: "\e7df";
+ content: '\e7df';
}
.icon-kehu:before {
- content: "\e7e1";
+ content: '\e7e1';
}
.icon-xingbie-nan:before {
- content: "\e7d9";
+ content: '\e7d9';
}
.icon-xingbie-nv:before {
- content: "\e7da";
+ content: '\e7da';
}
.icon-v:before {
- content: "\e7d7";
+ content: '\e7d7';
}
.icon-huangguan4:before {
- content: "\e7d8";
+ content: '\e7d8';
}
.icon-yilingqu:before {
- content: "\e7d6";
+ content: '\e7d6';
}
.icon-jinru3:before {
- content: "\e7d5";
+ content: '\e7d5';
}
.icon-dingdanguanli:before {
- content: "\e7d1";
+ content: '\e7d1';
}
.icon-kefujilu:before {
- content: "\e7d2";
+ content: '\e7d2';
}
.icon-dingdanhexiao:before {
- content: "\e7d3";
+ content: '\e7d3';
}
.icon-shangjiaguanli:before {
- content: "\e7d4";
+ content: '\e7d4';
}
.icon-yaoqinghaoyou:before {
- content: "\e7d0";
+ content: '\e7d0';
}
.icon-yongjinpaihang:before {
- content: "\e7cb";
+ content: '\e7cb';
}
.icon-tuiguangrenpaihang:before {
- content: "\e7cf";
+ content: '\e7cf';
}
.icon-mimatubiao:before {
- content: "\e7ca";
+ content: '\e7ca';
}
.icon-xianshi:before {
- content: "\e7cc";
+ content: '\e7cc';
}
.icon-zhekoujia:before {
- content: "\e7cd";
+ content: '\e7cd';
}
.icon-zhu:before {
- content: "\e7ce";
+ content: '\e7ce';
}
.icon-weizan:before {
- content: "\e7c7";
+ content: '\e7c7';
}
.icon-zan:before {
- content: "\e7c8";
+ content: '\e7c8';
}
.icon-pinglun1:before {
- content: "\e7c9";
+ content: '\e7c9';
}
.icon-gou1:before {
- content: "\e7c6";
+ content: '\e7c6';
}
.icon-banquan:before {
- content: "\e7c2";
+ content: '\e7c2';
}
.icon-gengxinshijian:before {
- content: "\e7c3";
+ content: '\e7c3';
}
.icon-xiazailiang:before {
- content: "\e7c4";
+ content: '\e7c4';
}
.icon-wenjiandaxiao:before {
- content: "\e7c5";
+ content: '\e7c5';
}
.icon-dizhi1:before {
- content: "\e7bd";
+ content: '\e7bd';
}
.icon-guojiagaoxinqiye:before {
- content: "\e7be";
+ content: '\e7be';
}
.icon-yishoucang1:before {
- content: "\e7bf";
+ content: '\e7bf';
}
.icon-wendang:before {
- content: "\e7c0";
+ content: '\e7c0';
}
.icon-shoucangbenzhan1:before {
- content: "\e7c1";
+ content: '\e7c1';
}
.icon-fenlei3:before {
- content: "\e7bc";
+ content: '\e7bc';
}
.icon-shenheweitongguo:before {
- content: "\e7b9";
+ content: '\e7b9';
}
.icon-shenhetongguo:before {
- content: "\e7ba";
+ content: '\e7ba';
}
.icon-daishenhe:before {
- content: "\e7bb";
+ content: '\e7bb';
}
.icon-shoufaxinpin:before {
- content: "\e7b8";
+ content: '\e7b8';
}
.icon-cuxiaodanpin:before {
- content: "\e7b7";
+ content: '\e7b7';
}
.icon-jingpintuijian1:before {
- content: "\e7b5";
+ content: '\e7b5';
}
.icon-paihangbang:before {
- content: "\e7b6";
+ content: '\e7b6';
}
.icon-yidianzan:before {
- content: "\e7b4";
+ content: '\e7b4';
}
.icon-dianzan1:before {
- content: "\e7b3";
+ content: '\e7b3';
}
.icon-haoyoudaizhifu:before {
- content: "\e7b2";
+ content: '\e7b2';
}
.icon-baobeilianjie:before {
- content: "\e7b0";
+ content: '\e7b0';
}
.icon-canyuhuati:before {
- content: "\e7b1";
+ content: '\e7b1';
}
.icon-dianzan:before {
- content: "\e7ac";
+ content: '\e7ac';
}
.icon-pinglun:before {
- content: "\e7ad";
+ content: '\e7ad';
}
.icon-fenxiang2:before {
- content: "\e7ae";
+ content: '\e7ae';
}
.icon-fabu:before {
- content: "\e7af";
+ content: '\e7af';
}
.icon-gengduo5:before {
- content: "\e7ab";
+ content: '\e7ab';
}
.icon-fanhui2:before {
- content: "\e7a9";
+ content: '\e7a9';
}
.icon-kanjialiebiao:before {
- content: "\e7aa";
+ content: '\e7aa';
}
.icon-xunishangpin:before {
- content: "\e7a8";
+ content: '\e7a8';
}
.icon-dingdanliebiao:before {
- content: "\e7a6";
+ content: '\e7a6';
}
.icon-shujutongji1:before {
- content: "\e7a7";
+ content: '\e7a7';
}
.icon-sousuo7:before {
- content: "\e7a5";
+ content: '\e7a5';
}
.icon-zhibozhong1:before {
- content: "\e7a4";
+ content: '\e7a4';
}
.icon-youhuiquanshisebeijing:before {
- content: "\e7a2";
+ content: '\e7a2';
}
.icon-youhuiquantoumingbeijing:before {
- content: "\e7a3";
+ content: '\e7a3';
}
.icon-yushouanniu:before {
- content: "\e7a1";
+ content: '\e7a1';
}
.icon-gengduo4:before {
- content: "\e7a0";
+ content: '\e7a0';
}
.icon-sousuo6:before {
- content: "\e79b";
+ content: '\e79b';
}
.icon-gerenzhongxin1:before {
- content: "\e79c";
+ content: '\e79c';
}
.icon-shoucang3:before {
- content: "\e79d";
+ content: '\e79d';
}
.icon-shouye8:before {
- content: "\e79e";
+ content: '\e79e';
}
.icon-gouwuche7:before {
- content: "\e79f";
+ content: '\e79f';
}
.icon-fuzhikouling1:before {
- content: "\e79a";
+ content: '\e79a';
}
.icon-zhuanti:before {
- content: "\e799";
+ content: '\e799';
}
.icon-daifukuan-3:before {
- content: "\e794";
+ content: '\e794';
}
.icon-shouhou-tuikuan-3:before {
- content: "\e795";
+ content: '\e795';
}
.icon-daipingjia-3:before {
- content: "\e796";
+ content: '\e796';
}
.icon-daifahuo-3:before {
- content: "\e797";
+ content: '\e797';
}
.icon-quanbudingdan-3:before {
- content: "\e798";
+ content: '\e798';
}
.icon-daifahuo-2:before {
- content: "\e78e";
+ content: '\e78e';
}
.icon-daishouhuo-2:before {
- content: "\e78f";
+ content: '\e78f';
}
.icon-daipingjia-2:before {
- content: "\e791";
+ content: '\e791';
}
.icon-shouhou-tuikuan-2:before {
- content: "\e792";
+ content: '\e792';
}
.icon-daifukuan-2:before {
- content: "\e793";
+ content: '\e793';
}
.icon-duoshanghupc-shuomingdanchuang:before {
- content: "\e78b";
+ content: '\e78b';
}
.icon-duoshanghupc-daohuotongzhi:before {
- content: "\e78c";
+ content: '\e78c';
}
.icon-duoshanghupc-baozhang:before {
- content: "\e78d";
+ content: '\e78d';
}
.icon-dianpu:before {
- content: "\e78a";
+ content: '\e78a';
}
.icon-dengjitubiao:before {
- content: "\e789";
+ content: '\e789';
}
.icon-daifahuo-xingerenzhongxin:before {
- content: "\e782";
+ content: '\e782';
}
.icon-erweima-xingerenzhongxin:before {
- content: "\e783";
+ content: '\e783';
}
.icon-quanbudingdan-xingerenzhongxin:before {
- content: "\e784";
+ content: '\e784';
}
.icon-xiaoxi-xingerenzhongxin:before {
- content: "\e785";
+ content: '\e785';
}
.icon-daipingjia-xingerenzhongxin:before {
- content: "\e786";
+ content: '\e786';
}
.icon-a-shouhoutuikuan-xingerenzhongxin:before {
- content: "\e787";
+ content: '\e787';
}
.icon-daifukuan-xingerenzhongxin:before {
- content: "\e788";
+ content: '\e788';
}
.icon-fapiao2:before {
- content: "\e781";
+ content: '\e781';
}
.icon-shouhou-tuikuan-lan:before {
- content: "\e77c";
+ content: '\e77c';
}
.icon-daipingjia-lan:before {
- content: "\e780";
+ content: '\e780';
}
.icon-daishouhuo-lan:before {
- content: "\e77d";
+ content: '\e77d';
}
.icon-daifukuan-lan:before {
- content: "\e77e";
+ content: '\e77e';
}
.icon-daifahuo-lan:before {
- content: "\e77f";
+ content: '\e77f';
}
.icon-daifahuo-ju:before {
- content: "\e777";
+ content: '\e777';
}
.icon-daifukuan-ju:before {
- content: "\e778";
+ content: '\e778';
}
.icon-daishouhuo-ju:before {
- content: "\e779";
+ content: '\e779';
}
.icon-shouhou-tuikuan-ju:before {
- content: "\e77a";
+ content: '\e77a';
}
.icon-daipingjia-ju:before {
- content: "\e77b";
+ content: '\e77b';
}
.icon-daishouhuo-fen:before {
- content: "\e772";
+ content: '\e772';
}
.icon-daipingjia-fen:before {
- content: "\e773";
+ content: '\e773';
}
.icon-daifukuan-fen:before {
- content: "\e774";
+ content: '\e774';
}
.icon-a-shouhoutuikuan-fen:before {
- content: "\e775";
+ content: '\e775';
}
.icon-daifahuo-fen:before {
- content: "\e776";
+ content: '\e776';
}
.icon-daifahuo-lv:before {
- content: "\e768";
+ content: '\e768';
}
.icon-shouhou-tuikuan-lv:before {
- content: "\e76a";
+ content: '\e76a';
}
.icon-daifukuan-lv:before {
- content: "\e76d";
+ content: '\e76d';
}
.icon-daishouhuo-lv:before {
- content: "\e770";
+ content: '\e770';
}
.icon-daipingjia-lv:before {
- content: "\e771";
+ content: '\e771';
}
.icon-daishouhuo:before {
- content: "\e75d";
+ content: '\e75d';
}
.icon-daipingjia:before {
- content: "\e75e";
+ content: '\e75e';
}
.icon-daifahuo:before {
- content: "\e760";
+ content: '\e760';
}
.icon-daifukuan:before {
- content: "\e766";
+ content: '\e766';
}
.icon-a-shouhoutuikuan:before {
- content: "\e767";
+ content: '\e767';
}
.icon-gouwuche-yangshi1:before {
- content: "\e75b";
+ content: '\e75b';
}
.icon-gouwuche-yangshi2:before {
- content: "\e75c";
+ content: '\e75c';
}
.icon-rilitubiao:before {
- content: "\e75a";
+ content: '\e75a';
}
.icon-tishi1:before {
- content: "\e759";
+ content: '\e759';
}
.icon-daituihuo1:before {
- content: "\e752";
+ content: '\e752';
}
.icon-shenqingzhong:before {
- content: "\e756";
+ content: '\e756';
}
.icon-fanyong:before {
- content: "\e74d";
+ content: '\e74d';
}
.icon-zizhizhengjian:before {
- content: "\e743";
+ content: '\e743';
}
.icon-fenxiaodengji:before {
- content: "\e742";
+ content: '\e742';
}
.icon-yijujue:before {
- content: "\e741";
+ content: '\e741';
}
.icon-tuikuanzhong1:before {
- content: "\e803";
+ content: '\e803';
}
.icon-tuikuanshibai:before {
- content: "\e804";
+ content: '\e804';
}
.icon-tuikuanchenggong:before {
- content: "\e805";
+ content: '\e805';
}
.icon-tuikuanzhong11:before {
- content: "\e744";
+ content: '\e744';
}
.icon-yiwancheng:before {
- content: "\e745";
+ content: '\e745';
}
.icon-yituikuan1:before {
- content: "\e747";
+ content: '\e747';
}
.icon-tuikuan1:before {
- content: "\e73a";
+ content: '\e73a';
}
.icon-tuihuo:before {
- content: "\e73c";
+ content: '\e73c';
}
.icon-shenhe:before {
- content: "\e73d";
+ content: '\e73d';
}
.icon-shangchuantupian1:before {
- content: "\e755";
+ content: '\e755';
}
.icon-shouye7:before {
- content: "\e863";
+ content: '\e863';
}
.icon-shengqian:before {
- content: "\e738";
+ content: '\e738';
}
.icon-xiaolian1:before {
- content: "\e737";
+ content: '\e737';
}
.icon-fangda:before {
- content: "\e736";
+ content: '\e736';
}
.icon-dianjichoujiang:before {
- content: "\e730";
+ content: '\e730';
}
.icon-7jinianban:before {
- content: "\e76f";
+ content: '\e76f';
}
.icon-lingquyouhuiquananniu:before {
- content: "\e72e";
+ content: '\e72e';
}
.icon-qiandaochenggonganniu:before {
- content: "\e72f";
+ content: '\e72f';
}
.icon-s-xianshimiaosha:before {
- content: "\e727";
+ content: '\e727';
}
.icon-s-pintuan1:before {
- content: "\e726";
+ content: '\e726';
}
.icon-s-kanjia1:before {
- content: "\e72d";
+ content: '\e72d';
}
.icon-s-pingguo:before {
- content: "\e722";
+ content: '\e722';
}
.icon-s-weixindenglu1:before {
- content: "\e729";
+ content: '\e729';
}
.icon-s-yanzhengmadenglu1:before {
- content: "\e72a";
+ content: '\e72a';
}
.icon-s-mimadenglu1:before {
- content: "\e72b";
+ content: '\e72b';
}
.icon-s-yanzhengma:before {
- content: "\e728";
+ content: '\e728';
}
.icon-pengyouquan:before {
- content: "\e76e";
+ content: '\e76e';
}
.icon-jifenzhongxin:before {
- content: "\e71f";
+ content: '\e71f';
}
.icon-s-chongzhijilu:before {
- content: "\e71c";
+ content: '\e71c';
}
.icon-s-xiaofeijilu:before {
- content: "\e71e";
+ content: '\e71e';
}
.icon-s-zhangdanjilu:before {
- content: "\e720";
+ content: '\e720';
}
.icon-s-kefu:before {
- content: "\e721";
+ content: '\e721';
}
.icon-s-bianji:before {
- content: "\e71d";
+ content: '\e71d';
}
.icon-s-pintuan:before {
- content: "\e719";
+ content: '\e719';
}
.icon-s-kanjia:before {
- content: "\e71a";
+ content: '\e71a';
}
.icon-s-miaosha:before {
- content: "\e71b";
+ content: '\e71b';
}
.icon-fanhui1:before {
- content: "\e718";
+ content: '\e718';
}
.icon-kefu3:before {
- content: "\e716";
+ content: '\e716';
}
.icon-shouye6:before {
- content: "\e717";
+ content: '\e717';
}
.icon-chakanditu:before {
- content: "\e715";
+ content: '\e715';
}
.icon-haowuquan1:before {
- content: "\e713";
+ content: '\e713';
}
.icon-haowuquan:before {
- content: "\e712";
+ content: '\e712';
}
.icon-gengduozhankai1:before {
- content: "\e70e";
+ content: '\e70e';
}
.icon-biaoqing2:before {
- content: "\e70f";
+ content: '\e70f';
}
.icon-huashu1:before {
- content: "\e710";
+ content: '\e710';
}
.icon-tupian2:before {
- content: "\e711";
+ content: '\e711';
}
.icon-huifang:before {
- content: "\e76c";
+ content: '\e76c';
}
.icon-zhibozhong:before {
- content: "\e76b";
+ content: '\e76b';
}
.icon-huangguan3:before {
- content: "\e769";
+ content: '\e769';
}
.icon-huiyuan2:before {
- content: "\e70c";
+ content: '\e70c';
}
.icon-fapiao1:before {
- content: "\e70b";
+ content: '\e70b';
}
.icon-cha3:before {
- content: "\e709";
+ content: '\e709';
}
.icon-shezhi1:before {
- content: "\e70a";
+ content: '\e70a';
}
.icon-tianjia1:before {
- content: "\e705";
+ content: '\e705';
}
.icon-bianji3:before {
- content: "\e706";
+ content: '\e706';
}
.icon-jiahao2:before {
- content: "\e707";
+ content: '\e707';
}
.icon-shanchu3:before {
- content: "\e708";
+ content: '\e708';
}
.icon-fuzhikouling:before {
- content: "\e704";
+ content: '\e704';
}
.icon-kefujiedai:before {
- content: "\e703";
+ content: '\e703';
}
.icon-miaosha1:before {
- content: "\e702";
+ content: '\e702';
}
.icon-bianji2:before {
- content: "\e700";
+ content: '\e700';
}
.icon-qingkonghuancun:before {
- content: "\e701";
+ content: '\e701';
}
.icon-shijian1:before {
- content: "\e66b";
+ content: '\e66b';
}
.icon-wenhao1:before {
- content: "\e6ee";
+ content: '\e6ee';
}
.icon-zhanghaomima:before {
- content: "\e763";
+ content: '\e763';
}
.icon-erweima2:before {
- content: "\e765";
+ content: '\e765';
}
.icon-guanji:before {
- content: "\e6ed";
+ content: '\e6ed';
}
.icon-tupian1:before {
- content: "\e762";
+ content: '\e762';
}
.icon-biaoqing1:before {
- content: "\e764";
+ content: '\e764';
}
.icon-guanbi5:before {
- content: "\e761";
+ content: '\e761';
}
.icon-shengyinjingyinxianxing:before {
- content: "\e94f";
+ content: '\e94f';
}
.icon-shengyinyinliang:before {
- content: "\e66a";
+ content: '\e66a';
}
.icon-pingjia1:before {
- content: "\e6ec";
+ content: '\e6ec';
}
.icon-xialazhankai:before {
- content: "\e6dd";
+ content: '\e6dd';
}
.icon-cha2:before {
- content: "\e6e6";
+ content: '\e6e6';
}
.icon-fanhuishouye:before {
- content: "\e6df";
+ content: '\e6df';
}
.icon-gengduo3:before {
- content: "\e6e0";
+ content: '\e6e0';
}
.icon-fenxiang1:before {
- content: "\e6e2";
+ content: '\e6e2';
}
.icon-sousuo5:before {
- content: "\e6e3";
+ content: '\e6e3';
}
.icon-huiyuan1:before {
- content: "\e6e5";
+ content: '\e6e5';
}
.icon-gou:before {
- content: "\e6e7";
+ content: '\e6e7';
}
.icon-gouwuche6:before {
- content: "\e6e8";
+ content: '\e6e8';
}
.icon-you1:before {
- content: "\e6e9";
+ content: '\e6e9';
}
.icon-zuo1:before {
- content: "\e6ea";
+ content: '\e6ea';
}
.icon-vip12:before {
- content: "\e6eb";
+ content: '\e6eb';
}
.icon-youhuiquan1:before {
- content: "\e6db";
+ content: '\e6db';
}
.icon-kefu21:before {
- content: "\e6da";
+ content: '\e6da';
}
.icon-yue1:before {
- content: "\e6dc";
+ content: '\e6dc';
}
.icon-huiyuanzhongxin:before {
- content: "\e6d5";
+ content: '\e6d5';
}
.icon-kanjiajilu:before {
- content: "\e6d6";
+ content: '\e6d6';
}
.icon-dizhixinxi:before {
- content: "\e6d7";
+ content: '\e6d7';
}
.icon-wodetuiguang:before {
- content: "\e6d8";
+ content: '\e6d8';
}
.icon-wodeshoucang:before {
- content: "\e6d9";
+ content: '\e6d9';
}
.icon-huidaodingbu1:before {
- content: "\e6d4";
+ content: '\e6d4';
}
.icon-saoyisao:before {
- content: "\e6d3";
+ content: '\e6d3';
}
.icon-jiageshaixuanshang:before {
- content: "\e6d0";
+ content: '\e6d0';
}
.icon-jiageshaixuanxia:before {
- content: "\e6d1";
+ content: '\e6d1';
}
.icon-shouji1:before {
- content: "\e6cf";
+ content: '\e6cf';
}
.icon-gengduo2:before {
- content: "\e6cd";
+ content: '\e6cd';
}
.icon-cha1:before {
- content: "\e6cb";
+ content: '\e6cb';
}
.icon-fasong:before {
- content: "\e6be";
+ content: '\e6be';
}
.icon-gengduozhankai:before {
- content: "\e6c7";
+ content: '\e6c7';
}
.icon-biaoqing:before {
- content: "\e6c8";
+ content: '\e6c8';
}
.icon-huashu:before {
- content: "\e6c9";
+ content: '\e6c9';
}
.icon-tupian:before {
- content: "\e6ca";
+ content: '\e6ca';
}
.icon-mima:before {
- content: "\e6ba";
+ content: '\e6ba';
}
.icon-zhanghao:before {
- content: "\e6bc";
+ content: '\e6bc';
}
.icon-fanhui:before {
- content: "\e6b9";
+ content: '\e6b9';
}
.icon-jinru2:before {
- content: "\e6bd";
+ content: '\e6bd';
}
.icon-shangpinxinxi:before {
- content: "\e6bf";
+ content: '\e6bf';
}
.icon-tuichu:before {
- content: "\e6c0";
+ content: '\e6c0';
}
.icon-jiaoyidingdan:before {
- content: "\e6c1";
+ content: '\e6c1';
}
.icon-sousuo4:before {
- content: "\e6c4";
+ content: '\e6c4';
}
.icon-xuanzhong5:before {
- content: "\e6c6";
+ content: '\e6c6';
}
.icon-VIP2:before {
- content: "\e6b8";
+ content: '\e6b8';
}
.icon-pinzhong:before {
- content: "\e6a2";
+ content: '\e6a2';
}
.icon-hanghuo:before {
- content: "\e6a3";
+ content: '\e6a3';
}
.icon-zhifa:before {
- content: "\e6b6";
+ content: '\e6b6';
}
.icon-dijia:before {
- content: "\e6b7";
+ content: '\e6b7';
}
.icon-gerenzhongxin-xuanzhong:before {
- content: "\e6ae";
+ content: '\e6ae';
}
.icon-xuanzhong4:before {
- content: "\e6af";
+ content: '\e6af';
}
.icon-zanwumiaosha:before {
- content: "\e6b0";
+ content: '\e6b0';
}
.icon-shangchuantupian:before {
- content: "\e6b3";
+ content: '\e6b3';
}
.icon-fuwu:before {
- content: "\e6b4";
+ content: '\e6b4';
}
.icon-tuikuantishi:before {
- content: "\e6b5";
+ content: '\e6b5';
}
.icon-erweima-youxia:before {
- content: "\e6ad";
+ content: '\e6ad';
}
.icon-erweimabianjiao:before {
- content: "\e6ac";
+ content: '\e6ac';
}
.icon-weixindenglu1:before {
- content: "\e6aa";
+ content: '\e6aa';
}
.icon-zhanghaodenglu1:before {
- content: "\e6ab";
+ content: '\e6ab';
}
.icon-shangjiashijian:before {
- content: "\e6a9";
+ content: '\e6a9';
}
.icon-jiageshaixuan:before {
- content: "\e6a7";
+ content: '\e6a7';
}
.icon-gengduofenlei:before {
- content: "\e6a8";
+ content: '\e6a8';
}
.icon-weixuan:before {
- content: "\e6a6";
+ content: '\e6a6';
}
.icon-xuanzhong11:before {
- content: "\e6a5";
+ content: '\e6a5';
}
.icon-pingjia:before {
- content: "\e6a4";
+ content: '\e6a4';
}
.icon-guanbi4:before {
- content: "\e6a0";
+ content: '\e6a0';
}
.icon-pinzhongqiquan:before {
- content: "\e69d";
+ content: '\e69d';
}
.icon-dijiachangxuan:before {
- content: "\e69e";
+ content: '\e69e';
}
.icon-zhengpinhanghuo:before {
- content: "\e69f";
+ content: '\e69f';
}
.icon-dizhi-tianjia:before {
- content: "\e696";
+ content: '\e696';
}
.icon-shanchu2:before {
- content: "\e69c";
+ content: '\e69c';
}
.icon-yue:before {
- content: "\e699";
+ content: '\e699';
}
.icon-weixinzhifu1:before {
- content: "\e69a";
+ content: '\e69a';
}
.icon-shangpinshuliang-jian:before {
- content: "\e698";
+ content: '\e698';
}
.icon-shangpinshuliang-jia:before {
- content: "\e697";
+ content: '\e697';
}
.icon-xuanzhong3:before {
- content: "\e693";
+ content: '\e693';
}
.icon-dizhixiala:before {
- content: "\e694";
+ content: '\e694';
}
.icon-jinru1:before {
- content: "\e695";
+ content: '\e695';
}
.icon-shenqingtuikuan:before {
- content: "\e692";
+ content: '\e692';
}
.icon-peihuo:before {
- content: "\e68d";
+ content: '\e68d';
}
.icon-xiadan:before {
- content: "\e68e";
+ content: '\e68e';
}
.icon-wancheng:before {
- content: "\e68f";
+ content: '\e68f';
}
.icon-fukuan:before {
- content: "\e690";
+ content: '\e690';
}
.icon-fahuo:before {
- content: "\e691";
+ content: '\e691';
}
.icon-saoma:before {
- content: "\e68c";
+ content: '\e68c';
}
.icon-tishi:before {
- content: "\e68b";
+ content: '\e68b';
}
.icon-xiala2:before {
- content: "\e682";
+ content: '\e682';
}
.icon-VIP1:before {
- content: "\e68a";
+ content: '\e68a';
}
.icon-yishoucang:before {
- content: "\e683";
+ content: '\e683';
}
.icon-shoucang2:before {
- content: "\e686";
+ content: '\e686';
}
.icon-kefu2:before {
- content: "\e689";
+ content: '\e689';
}
.icon-fapiao:before {
- content: "\e680";
+ content: '\e680';
}
.icon-fapiaoguanli:before {
- content: "\e681";
+ content: '\e681';
}
.icon-jinru:before {
- content: "\e67e";
+ content: '\e67e';
}
.icon-sousuo3:before {
- content: "\e67b";
+ content: '\e67b';
}
.icon-dingbu-gouwuche:before {
- content: "\e67a";
+ content: '\e67a';
}
.icon-huidaodingbu:before {
- content: "\e678";
+ content: '\e678';
}
.icon-cedaohang-gouwuche:before {
- content: "\e676";
+ content: '\e676';
}
.icon-weixin4:before {
- content: "\e675";
+ content: '\e675';
}
.icon-lianxikefu:before {
- content: "\e672";
+ content: '\e672';
}
.icon-zuo-miaosha:before {
- content: "\e670";
+ content: '\e670';
}
.icon-you-miaosha:before {
- content: "\e671";
+ content: '\e671';
}
.icon-zuo:before {
- content: "\e66d";
+ content: '\e66d';
}
.icon-you:before {
- content: "\e66f";
+ content: '\e66f';
}
.icon-shoucangbenzhan:before {
- content: "\e66c";
+ content: '\e66c';
}
.icon-lianxishangjia:before {
- content: "\e668";
+ content: '\e668';
}
.icon-dingwei:before {
- content: "\e667";
+ content: '\e667';
}
.icon-fenlei2:before {
- content: "\e663";
+ content: '\e663';
}
.icon-wode:before {
- content: "\e664";
+ content: '\e664';
}
.icon-shouye5:before {
- content: "\e665";
+ content: '\e665';
}
.icon-gouwuche5:before {
- content: "\e666";
+ content: '\e666';
}
.icon-jianhao1:before {
- content: "\e661";
+ content: '\e661';
}
.icon-jiahao1:before {
- content: "\e662";
+ content: '\e662';
}
.icon-yanzhengma1:before {
- content: "\e65f";
+ content: '\e65f';
}
.icon-shouji:before {
- content: "\e660";
+ content: '\e660';
}
.icon-cha:before {
- content: "\e658";
+ content: '\e658';
}
.icon-shoujihao:before {
- content: "\e659";
+ content: '\e659';
}
.icon-qiye:before {
- content: "\e65b";
+ content: '\e65b';
}
.icon-yonghu3:before {
- content: "\e65c";
+ content: '\e65c';
}
.icon-yanzhengma:before {
- content: "\e65d";
+ content: '\e65d';
}
.icon-shangpin:before {
- content: "\e653";
+ content: '\e653';
}
.icon-qiandao2:before {
- content: "\e65a";
+ content: '\e65a';
}
.icon-yaoqing:before {
- content: "\ea39";
+ content: '\ea39';
}
.icon-tuihuozhong:before {
- content: "\e64f";
+ content: '\e64f';
}
.icon-shenhezhong1:before {
- content: "\e650";
+ content: '\e650';
}
.icon-daituihuo:before {
- content: "\e652";
+ content: '\e652';
}
.icon-yihexiao:before {
- content: "\e75f";
+ content: '\e75f';
}
.icon-yijujue1:before {
- content: "\e6a1";
+ content: '\e6a1';
}
.icon-gengduo1:before {
- content: "\e674";
+ content: '\e674';
}
.icon-tuikuan:before {
- content: "\e657";
+ content: '\e657';
}
.icon-xiaoxi:before {
- content: "\e64b";
+ content: '\e64b';
}
.icon-erweima1:before {
- content: "\e647";
+ content: '\e647';
}
.icon-kefu1:before {
- content: "\e648";
+ content: '\e648';
}
.icon-guanzhu:before {
- content: "\e645";
+ content: '\e645';
}
.icon-xiangji:before {
- content: "\e6bb";
+ content: '\e6bb';
}
.icon-zhuyi-copy:before {
- content: "\e688";
+ content: '\e688';
}
.icon-pingfen:before {
- content: "\e649";
+ content: '\e649';
}
.icon-yingyongAPP_o:before {
- content: "\eb88";
+ content: '\eb88';
}
.icon-yizhan_o:before {
- content: "\ebc6";
+ content: '\ebc6';
}
.icon-shaixuan:before {
- content: "\e651";
+ content: '\e651';
}
.icon-shangjiadingdan:before {
- content: "\e64a";
+ content: '\e64a';
}
.icon-shouye4:before {
- content: "\e64d";
+ content: '\e64d';
}
.icon-jinbi2:before {
- content: "\e63f";
+ content: '\e63f';
}
.icon-jinbi:before {
- content: "\e63c";
+ content: '\e63c';
}
.icon-zuobiao:before {
- content: "\e6de";
+ content: '\e6de';
}
.icon-jianhao:before {
- content: "\e753";
+ content: '\e753';
}
.icon-jiahao:before {
- content: "\e754";
+ content: '\e754';
}
.icon-zhibojieshux:before {
- content: "\e63d";
+ content: '\e63d';
}
.icon-zhibo:before {
- content: "\e63e";
+ content: '\e63e';
}
.icon-VIP:before {
- content: "\e751";
+ content: '\e751';
}
.icon-tuiguang:before {
- content: "\e63b";
+ content: '\e63b';
}
.icon-geren1:before {
- content: "\e750";
+ content: '\e750';
}
.icon-gouwuche4:before {
- content: "\e74f";
+ content: '\e74f';
}
.icon-fenlei1:before {
- content: "\e74e";
+ content: '\e74e';
}
.icon-shouye3:before {
- content: "\e74c";
+ content: '\e74c';
}
.icon-geren:before {
- content: "\e74b";
+ content: '\e74b';
}
.icon-gouwuche3:before {
- content: "\e74a";
+ content: '\e74a';
}
.icon-fenlei:before {
- content: "\e749";
+ content: '\e749';
}
.icon-shouye2:before {
- content: "\e748";
+ content: '\e748';
}
.icon-mzshopping:before {
- content: "\e746";
+ content: '\e746';
}
.icon-gongneng:before {
- content: "\e63a";
+ content: '\e63a';
}
.icon-gerenzhongxin-copy:before {
- content: "\ebc0";
+ content: '\ebc0';
}
.icon-shouye1-copy:before {
- content: "\ebc1";
+ content: '\ebc1';
}
.icon-gerenzhongxin:before {
- content: "\e636";
+ content: '\e636';
}
.icon-shouye1:before {
- content: "\e637";
+ content: '\e637';
}
.icon-gouwuche2:before {
- content: "\e638";
+ content: '\e638';
}
.icon-fenleiyemian:before {
- content: "\e639";
+ content: '\e639';
}
.icon-gouwuche2-copy:before {
- content: "\ebc2";
+ content: '\ebc2';
}
.icon-fenleiyemian-copy:before {
- content: "\ebc3";
+ content: '\ebc3';
}
.icon-tonghua:before {
- content: "\e740";
+ content: '\e740';
}
.icon-youjian:before {
- content: "\e677";
+ content: '\e677';
}
.icon-dadianhua01:before {
- content: "\e623";
+ content: '\e623';
}
.icon-paihang:before {
- content: "\e73e";
+ content: '\e73e';
}
.icon-weizhi:before {
- content: "\e62d";
+ content: '\e62d';
}
.icon-paihang1:before {
- content: "\e633";
+ content: '\e633';
}
.icon-shuoming1:before {
- content: "\e673";
+ content: '\e673';
}
.icon-dianhau:before {
- content: "\e634";
+ content: '\e634';
}
.icon-shijian:before {
- content: "\e635";
+ content: '\e635';
}
.icon-huabanfuben:before {
- content: "\e654";
+ content: '\e654';
}
.icon-jian:before {
- content: "\e621";
+ content: '\e621';
}
.icon-jia:before {
- content: "\e7e0";
+ content: '\e7e0';
}
.icon-xiugai:before {
- content: "\e61f";
+ content: '\e61f';
}
.icon-anniu_jiantouzhankai_o:before {
- content: "\eb89";
+ content: '\eb89';
}
.icon-jiantou_xiayiye_o:before {
- content: "\eb8f";
+ content: '\eb8f';
}
.icon-jiantou_shangxiaqiehuan_o:before {
- content: "\eb90";
+ content: '\eb90';
}
.icon-shangxiazhankai_o:before {
- content: "\eb9a";
+ content: '\eb9a';
}
.icon-dianhua_o:before {
- content: "\ebaf";
+ content: '\ebaf';
}
.icon-yunshangchuan_o:before {
- content: "\ebb3";
+ content: '\ebb3';
}
.icon-bingtu_o:before {
- content: "\ebb4";
+ content: '\ebb4';
}
.icon-baoguo_huanbaohe_o:before {
- content: "\ebb6";
+ content: '\ebb6';
}
.icon-baoguo_quxiaoshouhuo_o:before {
- content: "\ebb7";
+ content: '\ebb7';
}
.icon-baoguo_shouhuo_o:before {
- content: "\ebb8";
+ content: '\ebb8';
}
.icon-baoguo_lingjian_o:before {
- content: "\ebb9";
+ content: '\ebb9';
}
.icon-baoguo_shouna_o:before {
- content: "\ebbe";
+ content: '\ebbe';
}
.icon-xianxiazhifu:before {
- content: "\e6e1";
+ content: '\e6e1';
}
.icon-icon_im_keyboard:before {
- content: "\eb97";
+ content: '\eb97';
}
.icon-tupian-:before {
- content: "\e73f";
+ content: '\e73f';
}
.icon-icon_im_face:before {
- content: "\eb96";
+ content: '\eb96';
}
.icon-yuezhifu:before {
- content: "\e65e";
+ content: '\e65e';
}
.icon-yuezhifu1:before {
- content: "\e61a";
+ content: '\e61a';
}
.icon-weixinzhifu:before {
- content: "\e632";
+ content: '\e632';
}
.icon-zhifubao:before {
- content: "\e61d";
+ content: '\e61d';
}
.icon-haibao:before {
- content: "\e73b";
+ content: '\e73b';
}
.icon-weixin3:before {
- content: "\e618";
+ content: '\e618';
}
.icon-crmeb1:before {
- content: "\e739";
+ content: '\e739';
}
.icon-crmeb:before {
- content: "\e735";
+ content: '\e735';
}
.icon-xuanzhong2:before {
- content: "\e731";
+ content: '\e731';
}
.icon-shujutongji:before {
- content: "\e732";
+ content: '\e732';
}
.icon-xiangxishuju:before {
- content: "\e733";
+ content: '\e733';
}
.icon-gengduo:before {
- content: "\e734";
+ content: '\e734';
}
.icon-up:before {
- content: "\e617";
+ content: '\e617';
}
.icon-yonghu2:before {
- content: "\e60a";
+ content: '\e60a';
}
.icon-zhinengkefu-:before {
- content: "\e616";
+ content: '\e616';
}
.icon-xiangshang1:before {
- content: "\e622";
+ content: '\e622';
}
.icon-xiangxia2:before {
- content: "\ebbd";
+ content: '\ebbd';
}
.icon-code_:before {
- content: "\e723";
+ content: '\e723';
}
.icon-code_1:before {
- content: "\e724";
+ content: '\e724';
}
.icon-phone_:before {
- content: "\e725";
+ content: '\e725';
}
.icon-xiala:before {
- content: "\e67f";
+ content: '\e67f';
}
.icon-shezhi:before {
- content: "\e619";
+ content: '\e619';
}
.icon-bianji1:before {
- content: "\e614";
+ content: '\e614';
}
.icon-shoucang1:before {
- content: "\e714";
+ content: '\e714';
}
.icon-jiazai:before {
- content: "\e62c";
+ content: '\e62c';
}
.icon-2:before {
- content: "\e684";
+ content: '\e684';
}
.icon-tuandui:before {
- content: "\e685";
+ content: '\e685';
}
.icon-jinbi1:before {
- content: "\e655";
+ content: '\e655';
}
.icon-guanbi3:before {
- content: "\e6c5";
+ content: '\e6c5';
}
.icon-wenti:before {
- content: "\e758";
+ content: '\e758';
}
.icon-ziyuan-xianxing:before {
- content: "\e8a4";
+ content: '\e8a4';
}
.icon-yonghu1:before {
- content: "\e644";
+ content: '\e644';
}
.icon-dingdan:before {
- content: "\e61e";
+ content: '\e61e';
}
.icon-suozi:before {
- content: "\e631";
+ content: '\e631';
}
.icon-quanxianguanlisuozi:before {
- content: "\e6d2";
+ content: '\e6d2';
}
.icon-lingxing:before {
- content: "\e6ff";
+ content: '\e6ff';
}
.icon-miaosha:before {
- content: "\e6c3";
+ content: '\e6c3';
}
.icon-hebingxingzhuang:before {
- content: "\e656";
+ content: '\e656';
}
.icon-kanjia1:before {
- content: "\e613";
+ content: '\e613';
}
.icon-qiandai:before {
- content: "\e6b1";
+ content: '\e6b1';
}
.icon-tongji:before {
- content: "\e687";
+ content: '\e687';
}
.icon-erweima:before {
- content: "\e607";
+ content: '\e607';
}
.icon-icon34:before {
- content: "\e62b";
+ content: '\e62b';
}
.icon-yinhangqia:before {
- content: "\e72c";
+ content: '\e72c';
}
.icon-yituikuan:before {
- content: "\e6fd";
+ content: '\e6fd';
}
.icon-tuikuanzhong:before {
- content: "\e6fe";
+ content: '\e6fe';
}
.icon-sousuo2:before {
- content: "\e757";
+ content: '\e757';
}
.icon-caidan:before {
- content: "\e62a";
+ content: '\e62a';
}
.icon-icon25201:before {
- content: "\e70d";
+ content: '\e70d';
}
.icon-shitixing:before {
- content: "\e6fb";
+ content: '\e6fb';
}
.icon-kongxinxing:before {
- content: "\e6fc";
+ content: '\e6fc';
}
.icon-pintuanchenggong:before {
- content: "\e6f9";
+ content: '\e6f9';
}
.icon-pintuanshibai:before {
- content: "\e6fa";
+ content: '\e6fa';
}
.icon-laba:before {
- content: "\e612";
+ content: '\e612';
}
.icon-xiaolian:before {
- content: "\e60f";
+ content: '\e60f';
}
.icon-kanjia:before {
- content: "\e69b";
+ content: '\e69b';
}
.icon-shuoming:before {
- content: "\e630";
+ content: '\e630';
}
.icon-mingxi:before {
- content: "\e6f7";
+ content: '\e6f7';
}
.icon-tishengfenzhi:before {
- content: "\e6f8";
+ content: '\e6f8';
}
.icon-guanbi2:before {
- content: "\e61c";
+ content: '\e61c';
}
.icon-yuandianxiao:before {
- content: "\e82f";
+ content: '\e82f';
}
.icon-webicon318:before {
- content: "\e6c2";
+ content: '\e6c2';
}
.icon-tianjiadizhi:before {
- content: "\e640";
+ content: '\e640';
}
.icon-shanchu:before {
- content: "\e628";
+ content: '\e628';
}
.icon-weixin2:before {
- content: "\e604";
+ content: '\e604';
}
.icon-icon-test:before {
- content: "\e6f6";
+ content: '\e6f6';
}
.icon-guanbi1:before {
- content: "\e6f5";
+ content: '\e6f5';
}
.icon-shoucang:before {
- content: "\e606";
+ content: '\e606';
}
.icon-kefu:before {
- content: "\e6b2";
+ content: '\e6b2';
}
.icon-biankuang:before {
- content: "\e6f4";
+ content: '\e6f4';
}
.icon-zhuangshixian:before {
- content: "\e6f1";
+ content: '\e6f1';
}
.icon-jishuzhichi:before {
- content: "\e6f3";
+ content: '\e6f3';
}
.icon-xuanzhong1:before {
- content: "\e6ef";
+ content: '\e6ef';
}
.icon-weixuanzhong:before {
- content: "\e6f0";
+ content: '\e6f0';
}
.icon-xiangshang:before {
- content: "\ebbb";
+ content: '\ebbb';
}
.icon-xiangxia:before {
- content: "\e8ca";
+ content: '\e8ca';
}
.icon-cuxiaoguanli:before {
- content: "\e60e";
+ content: '\e60e';
}
.icon-shanchu1:before {
- content: "\e611";
+ content: '\e611';
}
.icon-caigou-xianxing:before {
- content: "\e887";
+ content: '\e887';
}
.icon-caigou:before {
- content: "\e888";
+ content: '\e888';
}
.icon-yingyongchengxu-xianxing:before {
- content: "\e8a1";
+ content: '\e8a1';
}
.icon-yingyongchengxu:before {
- content: "\e8a2";
+ content: '\e8a2';
}
.icon-shouye:before {
- content: "\e8b9";
+ content: '\e8b9';
}
.icon-shouye-xianxing:before {
- content: "\e8ba";
+ content: '\e8ba';
}
.icon-yonghu-xianxing:before {
- content: "\e8c8";
+ content: '\e8c8';
}
.icon-yonghu:before {
- content: "\e8c9";
+ content: '\e8c9';
}
.icon-sousuo:before {
- content: "\e67d";
+ content: '\e67d';
}
.icon-sousuo1:before {
- content: "\e64c";
+ content: '\e64c';
}
.icon-kefu_o:before {
- content: "\eb63";
+ content: '\eb63';
}
.icon-liwu_o:before {
- content: "\eb65";
+ content: '\eb65';
}
.icon-huobiliu_o:before {
- content: "\eb9f";
+ content: '\eb9f';
}
.icon-jinbi_o:before {
- content: "\eba1";
+ content: '\eba1';
}
.icon-gerentouxiang_o:before {
- content: "\ebac";
+ content: '\ebac';
}
.icon-qunzu_o:before {
- content: "\ebad";
+ content: '\ebad';
}
.icon-shoucang_o:before {
- content: "\ebae";
+ content: '\ebae';
}
.icon-didiandingwei_o:before {
- content: "\ebba";
+ content: '\ebba';
}
.icon-xiangyou:before {
- content: "\e679";
+ content: '\e679';
}
.icon-jingpintuijian:before {
- content: "\e60d";
+ content: '\e60d';
}
.icon-xinpin:before {
- content: "\e610";
+ content: '\e610';
}
.icon-remen:before {
- content: "\e67c";
+ content: '\e67c';
}
.icon-xiangzuo:before {
- content: "\ebbc";
+ content: '\ebbc';
}
.icon-ditu:before {
- content: "\e906";
+ content: '\e906';
}
.icon-guanbi:before {
- content: "\e62f";
+ content: '\e62f';
}
.icon-liulan:before {
- content: "\e629";
+ content: '\e629';
}
.icon-shenhezhong:before {
- content: "\e6ce";
+ content: '\e6ce';
}
.icon-chongzhi:before {
- content: "\e602";
+ content: '\e602';
}
.icon-iconfontguanbi:before {
- content: "\e643";
+ content: '\e643';
}
.icon-zhekou:before {
- content: "\e790";
+ content: '\e790';
}
.icon-duihao2:before {
- content: "\e601";
+ content: '\e601';
}
.icon-duihao:before {
- content: "\e64e";
+ content: '\e64e';
}
.icon-jingyanzhi:before {
- content: "\e62e";
+ content: '\e62e';
}
.icon-wuliu:before {
- content: "\e6f2";
+ content: '\e6f2';
}
.icon-pintuan-copy:before {
- content: "\ebbf";
+ content: '\ebbf';
}
.icon-arrow:before {
- content: "\e627";
+ content: '\e627';
}
.icon-pintuan:before {
- content: "\e60c";
+ content: '\e60c';
}
.icon-youhuiquan:before {
- content: "\e6e4";
+ content: '\e6e4';
}
.icon-gouwuche1:before {
- content: "\e642";
+ content: '\e642';
}
.icon-pailie:before {
- content: "\e61b";
+ content: '\e61b';
}
.icon-tupianpailie:before {
- content: "\e620";
+ content: '\e620';
}
.icon-xiazai5:before {
- content: "\e605";
+ content: '\e605';
}
.icon-weixin1:before {
- content: "\e66e";
+ content: '\e66e';
}
.icon-gouwuche:before {
- content: "\e669";
+ content: '\e669';
}
.icon-jiantou:before {
- content: "\e641";
+ content: '\e641';
}
.icon-huiyuan:before {
- content: "\e60b";
+ content: '\e60b';
}
.icon-xuanzhong:before {
- content: "\e615";
+ content: '\e615';
}
.icon-complete:before {
- content: "\e646";
+ content: '\e646';
}
.icon-xiala1:before {
- content: "\e609";
+ content: '\e609';
}
.icon-dizhi:before {
- content: "\e608";
+ content: '\e608';
}
.icon-weixin:before {
- content: "\e600";
+ content: '\e600';
}
.icon-fenxiang:before {
- content: "\e603";
+ content: '\e603';
}
.icon-bianji:before {
- content: "\e6cc";
+ content: '\e6cc';
}
.icon-huangguan:before {
- content: "\e624";
+ content: '\e624';
}
.icon-huangguan1:before {
- content: "\e625";
+ content: '\e625';
}
.icon-huangguan2:before {
- content: "\e626";
+ content: '\e626';
}
diff --git a/src/utils/js_sdk/u-charts.min.js b/src/utils/js_sdk/u-charts.min.js
index b5e6538..8c9f4dc 100644
--- a/src/utils/js_sdk/u-charts.min.js
+++ b/src/utils/js_sdk/u-charts.min.js
@@ -15,37 +15,37 @@
* http://ext.dcloud.net.cn/plugin?id=271
*
*/
-"use strict";
+'use strict';
var config = {
- version: "v2.5.0-20230101",
+ version: 'v2.5.0-20230101',
yAxisWidth: 15,
xAxisHeight: 22,
padding: [10, 10, 10, 10],
rotate: false,
fontSize: 13,
- fontColor: "#666666",
- dataPointShape: ["circle", "circle", "circle", "circle"],
+ fontColor: '#666666',
+ dataPointShape: ['circle', 'circle', 'circle', 'circle'],
color: [
- "#1890FF",
- "#91CB74",
- "#FAC858",
- "#EE6666",
- "#73C0DE",
- "#3CA272",
- "#FC8452",
- "#9A60B4",
- "#ea7ccc",
+ '#1890FF',
+ '#91CB74',
+ '#FAC858',
+ '#EE6666',
+ '#73C0DE',
+ '#3CA272',
+ '#FC8452',
+ '#9A60B4',
+ '#ea7ccc',
],
linearColor: [
- "#0EE2F8",
- "#2BDCA8",
- "#FA7D8D",
- "#EB88E2",
- "#2AE3A0",
- "#0EE2F8",
- "#EB88E2",
- "#6773E3",
- "#F78A85",
+ '#0EE2F8',
+ '#2BDCA8',
+ '#FA7D8D',
+ '#EB88E2',
+ '#2AE3A0',
+ '#0EE2F8',
+ '#EB88E2',
+ '#6773E3',
+ '#F78A85',
],
pieChartLinePadding: 15,
pieChartTextPadding: 5,
@@ -55,7 +55,7 @@ var config = {
};
var assign = function (e, ...t) {
if (e == null) {
- throw new TypeError("[uCharts] Cannot convert undefined or null to object");
+ throw new TypeError('[uCharts] Cannot convert undefined or null to object');
}
if (!t || t.length <= 0) {
return e;
@@ -63,13 +63,13 @@ var assign = function (e, ...t) {
function i(e, a) {
for (let t in a) {
e[t] =
- e[t] && e[t].toString() === "[object Object]"
+ e[t] && e[t].toString() === '[object Object]'
? i(e[t], a[t])
: (e[t] = a[t]);
}
return e;
}
- t.forEach((t) => {
+ t.forEach(t => {
e = i(e, t);
});
return e;
@@ -113,8 +113,8 @@ var util = {
},
};
function getH5Offset(t) {
- t.mp = { changedTouches: [] };
- t.mp.changedTouches.push({ x: t.offsetX, y: t.offsetY });
+ t.mp = {changedTouches: []};
+ t.mp.changedTouches.push({x: t.offsetX, y: t.offsetY});
return t;
}
function hexToRgb(t, e) {
@@ -126,26 +126,26 @@ function hexToRgb(t, e) {
var o = parseInt(r[1], 16);
var n = parseInt(r[2], 16);
var l = parseInt(r[3], 16);
- return "rgba(" + o + "," + n + "," + l + "," + e + ")";
+ return 'rgba(' + o + ',' + n + ',' + l + ',' + e + ')';
}
function findRange(t, e, a) {
if (isNaN(t)) {
- throw new Error("[uCharts] series数据需为Number格式");
+ throw new Error('[uCharts] series数据需为Number格式');
}
a = a || 10;
- e = e ? e : "upper";
+ e = e ? e : 'upper';
var i = 1;
while (a < 1) {
a *= 10;
i *= 10;
}
- if (e === "upper") {
+ if (e === 'upper') {
t = Math.ceil(t * i);
} else {
t = Math.floor(t * i);
}
while (t % a !== 0) {
- if (e === "upper") {
+ if (e === 'upper') {
if (t == t + 1) {
break;
}
@@ -159,7 +159,7 @@ function findRange(t, e, a) {
function calCandleMA(o, t, e, n) {
let a = [];
for (let r = 0; r < o.length; r++) {
- let i = { data: [], name: t[r], color: e[r] };
+ let i = {data: [], name: t[r], color: e[r]};
for (let a = 0, t = n.length; a < t; a++) {
if (a < o[r]) {
i.data.push(null);
@@ -179,7 +179,7 @@ function calValidDistance(t, e, a, i, r) {
var o = r.width - r.area[1] - r.area[3];
var n = a.eachSpacing * (r.chartData.xAxisData.xAxisPoints.length - 1);
if (
- r.type == "mount" &&
+ r.type == 'mount' &&
r.extra &&
r.extra.mount &&
r.extra.mount.widthRatio &&
@@ -191,14 +191,14 @@ function calValidDistance(t, e, a, i, r) {
var l = e;
if (e >= 0) {
l = 0;
- t.uevent.trigger("scrollLeft");
- t.scrollOption.position = "left";
- r.xAxis.scrollPosition = "left";
+ t.uevent.trigger('scrollLeft');
+ t.scrollOption.position = 'left';
+ r.xAxis.scrollPosition = 'left';
} else if (Math.abs(e) >= n - o) {
l = o - n;
- t.uevent.trigger("scrollRight");
- t.scrollOption.position = "right";
- r.xAxis.scrollPosition = "right";
+ t.uevent.trigger('scrollRight');
+ t.scrollOption.position = 'right';
+ r.xAxis.scrollPosition = 'right';
} else {
t.scrollOption.position = e;
r.xAxis.scrollPosition = e;
@@ -292,10 +292,10 @@ function createCurveControlPoints(t, e) {
if (l >= Math.max(t[e].x, t[e + 1].x) || l <= Math.min(t[e].x, t[e + 1].x)) {
l = t[e + 1].x;
}
- return { ctrA: { x: o, y: n }, ctrB: { x: l, y: s } };
+ return {ctrA: {x: o, y: n}, ctrB: {x: l, y: s}};
}
function convertCoordinateOrigin(t, e, a) {
- return { x: a.x + t, y: a.y - e };
+ return {x: a.x + t, y: a.y - e};
}
function avoidCollision(t, e) {
if (e) {
@@ -317,7 +317,7 @@ function avoidCollision(t, e) {
}
function fixPieSeries(e, a, t) {
let i = [];
- if (e.length > 0 && e[0].data.constructor.toString().indexOf("Array") > -1) {
+ if (e.length > 0 && e[0].data.constructor.toString().indexOf('Array') > -1) {
a._pieSeries_ = e;
let t = e[0].data;
for (var r = 0; r < t.length; r++) {
@@ -348,30 +348,30 @@ function fillSeries(e, a, i) {
if (!t.type) {
t.type = a.type;
}
- if (typeof t.show == "undefined") {
+ if (typeof t.show == 'undefined') {
t.show = true;
}
if (!t.type) {
t.type = a.type;
}
if (!t.pointShape) {
- t.pointShape = "circle";
+ t.pointShape = 'circle';
}
if (!t.legendShape) {
switch (t.type) {
- case "line":
- t.legendShape = "line";
+ case 'line':
+ t.legendShape = 'line';
break;
- case "column":
- case "bar":
- t.legendShape = "rect";
+ case 'column':
+ case 'bar':
+ t.legendShape = 'rect';
break;
- case "area":
- case "mount":
- t.legendShape = "triangle";
+ case 'area':
+ case 'mount':
+ t.legendShape = 'triangle';
break;
default:
- t.legendShape = "circle";
+ t.legendShape = 'circle';
}
}
}
@@ -379,10 +379,10 @@ function fillSeries(e, a, i) {
}
function fillCustomColor(t, e, a, i) {
var r = e || [];
- if (t == "custom" && r.length == 0) {
+ if (t == 'custom' && r.length == 0) {
r = i.linearColor;
}
- if (t == "custom" && r.length < a.length) {
+ if (t == 'custom' && r.length < a.length) {
let t = a.length - r.length;
for (var o = 0; o < t; o++) {
r.push(i.linearColor[(o + 1) % i.linearColor.length]);
@@ -417,8 +417,8 @@ function getDataRange(t, e) {
a = 1e-6;
}
return {
- minRange: findRange(t, "lower", a),
- maxRange: findRange(e, "upper", a),
+ minRange: findRange(t, 'lower', a),
+ maxRange: findRange(e, 'upper', a),
};
}
function measureText(a, t, e) {
@@ -429,7 +429,7 @@ function measureText(a, t, e) {
e.setFontSize(t);
return e.measureText(a).width;
} else {
- var a = a.split("");
+ var a = a.split('');
for (let e = 0; e < a.length; e++) {
let t = a[e];
if (/[a-zA-Z]/.test(t)) {
@@ -503,12 +503,12 @@ function getTouches(t, e, a) {
r = t.y * e.pix;
}
}
- return { x: i, y: r };
+ return {x: i, y: r};
}
function getSeriesDataItem(e, i, a) {
var r = [];
var o = [];
- var n = i.constructor.toString().indexOf("Array") > -1;
+ var n = i.constructor.toString().indexOf('Array') > -1;
if (n) {
let t = filterSeries(e);
for (var l = 0; l < a.length; l++) {
@@ -525,7 +525,7 @@ function getSeriesDataItem(e, i, a) {
} else {
a = i;
}
- if (e.data[a] !== null && typeof e.data[a] !== "undefined" && e.show) {
+ if (e.data[a] !== null && typeof e.data[a] !== 'undefined' && e.show) {
let t = {};
t.color = e.color;
t.type = e.type;
@@ -582,16 +582,16 @@ function getToolTipData(t, a, i, r, o) {
e = o[i];
}
return {
- text: n.formatter ? n.formatter(t, e, i, a) : t.name + ": " + t.data,
+ text: n.formatter ? n.formatter(t, e, i, a) : t.name + ': ' + t.data,
color: t.color,
legendShape:
- a.extra.tooltip.legendShape == "auto"
+ a.extra.tooltip.legendShape == 'auto'
? t.legendShape
: a.extra.tooltip.legendShape,
};
});
- var h = { x: Math.round(s.x), y: Math.round(s.y) };
- return { textList: e, offset: h };
+ var h = {x: Math.round(s.x), y: Math.round(s.y)};
+ return {textList: e, offset: h};
}
function getMixToolTipData(t, e, a, i) {
var r =
@@ -599,11 +599,11 @@ function getMixToolTipData(t, e, a, i) {
var o = e.chartData.xAxisPoints[a] + e.chartData.eachSpacing / 2;
var n = t.map(function (t) {
return {
- text: r.formatter ? r.formatter(t, i[a], a, e) : t.name + ": " + t.data,
+ text: r.formatter ? r.formatter(t, i[a], a, e) : t.name + ': ' + t.data,
color: t.color,
disableLegend: t.disableLegend ? true : false,
legendShape:
- e.extra.tooltip.legendShape == "auto"
+ e.extra.tooltip.legendShape == 'auto'
? t.legendShape
: e.extra.tooltip.legendShape,
};
@@ -613,8 +613,8 @@ function getMixToolTipData(t, e, a, i) {
return t;
}
});
- var l = { x: Math.round(o), y: 0 };
- return { textList: n, offset: l };
+ var l = {x: Math.round(o), y: 0};
+ return {textList: n, offset: l};
}
function getCandleToolTipData(o, e, n, l, i, t) {
var r =
@@ -646,49 +646,49 @@ function getCandleToolTipData(o, e, n, l, i, t) {
}
}
let e = {
- text: "开盘:" + t.data[0],
+ text: '开盘:' + t.data[0],
color: c[0],
legendShape:
- n.extra.tooltip.legendShape == "auto"
+ n.extra.tooltip.legendShape == 'auto'
? t.legendShape
: n.extra.tooltip.legendShape,
};
let a = {
- text: "收盘:" + t.data[1],
+ text: '收盘:' + t.data[1],
color: c[1],
legendShape:
- n.extra.tooltip.legendShape == "auto"
+ n.extra.tooltip.legendShape == 'auto'
? t.legendShape
: n.extra.tooltip.legendShape,
};
let i = {
- text: "最低:" + t.data[2],
+ text: '最低:' + t.data[2],
color: c[2],
legendShape:
- n.extra.tooltip.legendShape == "auto"
+ n.extra.tooltip.legendShape == 'auto'
? t.legendShape
: n.extra.tooltip.legendShape,
};
let r = {
- text: "最高:" + t.data[3],
+ text: '最高:' + t.data[3],
color: c[3],
legendShape:
- n.extra.tooltip.legendShape == "auto"
+ n.extra.tooltip.legendShape == 'auto'
? t.legendShape
: n.extra.tooltip.legendShape,
};
d.push(e, a, i, r);
});
var x = [];
- var f = { x: 0, y: 0 };
+ var f = {x: 0, y: 0};
for (let e = 0; e < a.length; e++) {
let t = a[e];
- if (typeof t[l] !== "undefined" && t[l] !== null) {
+ if (typeof t[l] !== 'undefined' && t[l] !== null) {
x.push(t[l]);
}
}
f.x = Math.round(x[0][0].x);
- return { textList: d, offset: f };
+ return {textList: d, offset: f};
}
function filterSeries(e) {
let a = [];
@@ -701,7 +701,7 @@ function filterSeries(e) {
}
function findCurrentIndex(o, n, e, t) {
var a = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
- var l = { index: -1, group: [] };
+ var l = {index: -1, group: []};
var i = e.chartData.eachSpacing / 2;
let r = [];
if (n && n.length > 0) {
@@ -712,8 +712,8 @@ function findCurrentIndex(o, n, e, t) {
r.push(e.chartData.xAxisPoints[t] - i);
}
if (
- (e.type == "line" || e.type == "area") &&
- e.xAxis.boundaryGap == "justify"
+ (e.type == 'line' || e.type == 'area') &&
+ e.xAxis.boundaryGap == 'justify'
) {
r = e.chartData.xAxisPoints;
}
@@ -754,7 +754,7 @@ function findCurrentIndex(o, n, e, t) {
}
function findBarChartCurrentIndex(a, t, e, i) {
var r = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
- var o = { index: -1, group: [] };
+ var o = {index: -1, group: []};
var n = e.chartData.eachSpacing / 2;
let l = e.chartData.yAxisPoints;
if (t && t.length > 0) {
@@ -778,7 +778,7 @@ function findLegendIndex(o, t, e) {
let a = i[t];
for (let e = 0; e < a.length; e++) {
r += 1;
- let t = a[e]["area"];
+ let t = a[e]['area'];
if (
t &&
o.x > t[0] - l &&
@@ -905,7 +905,7 @@ function findRoseChartCurrentIndex(t, e, a) {
isInAngleRange(
o,
r[n]._start_,
- r[n]._start_ + r[n]._rose_proportion_ * 2 * Math.PI
+ r[n]._start_ + r[n]._rose_proportion_ * 2 * Math.PI,
)
) {
i = n;
@@ -932,7 +932,7 @@ function findPieChartCurrentIndex(t, e, a) {
isInAngleRange(
o,
r[n]._start_,
- r[n]._start_ + r[n]._proportion_ * 2 * Math.PI
+ r[n]._start_ + r[n]._proportion_ * 2 * Math.PI,
)
) {
i = n;
@@ -972,8 +972,8 @@ function splitPoints(t, a) {
function calLegendData(l, s, e, t, h) {
let c = {
area: {
- start: { x: 0, y: 0 },
- end: { x: 0, y: 0 },
+ start: {x: 0, y: 0},
+ end: {x: 0, y: 0},
width: 0,
height: 0,
wholeWidth: 0,
@@ -993,7 +993,7 @@ function calLegendData(l, s, e, t, h) {
let p = 15 * s.pix;
let g = 5 * s.pix;
let u = Math.max(s.legend.lineHeight * s.pix, f);
- if (s.legend.position == "top" || s.legend.position == "bottom") {
+ if (s.legend.position == 'top' || s.legend.position == 'bottom') {
let i = [];
let r = 0;
let o = [];
@@ -1002,7 +1002,7 @@ function calLegendData(l, s, e, t, h) {
let t = l[a];
const y = t.legendText ? t.legendText : t.name;
let e =
- p + g + measureText(y || "undefined", f, h) + s.legend.itemGap * s.pix;
+ p + g + measureText(y || 'undefined', f, h) + s.legend.itemGap * s.pix;
if (r + e > s.width - s.area[1] - s.area[3]) {
i.push(n);
o.push(r - s.legend.itemGap * s.pix);
@@ -1019,11 +1019,11 @@ function calLegendData(l, s, e, t, h) {
c.widthArr = o;
let t = Math.max.apply(null, o);
switch (s.legend.float) {
- case "left":
+ case 'left':
c.area.start.x = s.area[3];
c.area.end.x = s.area[3] + t + 2 * d;
break;
- case "right":
+ case 'right':
c.area.start.x = s.width - s.area[1] - t - 2 * d;
c.area.end.x = s.width - s.area[1];
break;
@@ -1044,11 +1044,11 @@ function calLegendData(l, s, e, t, h) {
c.area.height = a * u + d * 2;
c.area.wholeHeight = a * u + d * 2;
switch (s.legend.float) {
- case "top":
+ case 'top':
c.area.start.y = s.area[0] + x;
c.area.end.y = s.area[0] + x + c.area.height;
break;
- case "bottom":
+ case 'bottom':
c.area.start.y = s.height - s.area[2] - x - c.area.height;
c.area.end.y = s.height - s.area[2] - x;
break;
@@ -1071,7 +1071,7 @@ function calLegendData(l, s, e, t, h) {
let t =
p +
g +
- measureText(a[e].name || "undefined", f, h) +
+ measureText(a[e].name || 'undefined', f, h) +
s.legend.itemGap * s.pix;
if (t > i) {
i = t;
@@ -1089,19 +1089,19 @@ function calLegendData(l, s, e, t, h) {
}
}
switch (s.legend.position) {
- case "top":
+ case 'top':
c.area.start.y = s.area[0] + x;
c.area.end.y = s.area[0] + x + c.area.height;
break;
- case "bottom":
+ case 'bottom':
c.area.start.y = s.height - s.area[2] - c.area.height - x;
c.area.end.y = s.height - s.area[2] - x;
break;
- case "left":
+ case 'left':
c.area.start.x = s.area[3];
c.area.end.x = s.area[3] + c.area.width;
break;
- case "right":
+ case 'right':
c.area.start.x = s.width - s.area[1] - c.area.width;
c.area.end.x = s.width - s.area[1];
break;
@@ -1141,15 +1141,15 @@ function getXAxisTextList(t, e, h, c) {
var a =
arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : -1;
var i;
- if (c == "stack") {
+ if (c == 'stack') {
i = dataCombineStack(t, e.categories.length);
} else {
i = dataCombine(t);
}
var r = [];
i = i.filter(function (t) {
- if (typeof t === "object" && t !== null) {
- if (t.constructor.toString().indexOf("Array") > -1) {
+ if (typeof t === 'object' && t !== null) {
+ if (t.constructor.toString().indexOf('Array') > -1) {
return t !== null;
} else {
return t.value !== null;
@@ -1159,9 +1159,9 @@ function getXAxisTextList(t, e, h, c) {
}
});
i.map(function (t) {
- if (typeof t === "object") {
- if (t.constructor.toString().indexOf("Array") > -1) {
- if (e.type == "candle") {
+ if (typeof t === 'object') {
+ if (t.constructor.toString().indexOf('Array') > -1) {
+ if (e.type == 'candle') {
t.map(function (t) {
r.push(t);
});
@@ -1182,17 +1182,17 @@ function getXAxisTextList(t, e, h, c) {
n = Math.max.apply(this, r);
}
if (a > -1) {
- if (typeof e.xAxis.data[a].min === "number") {
+ if (typeof e.xAxis.data[a].min === 'number') {
o = Math.min(e.xAxis.data[a].min, o);
}
- if (typeof e.xAxis.data[a].max === "number") {
+ if (typeof e.xAxis.data[a].max === 'number') {
n = Math.max(e.xAxis.data[a].max, n);
}
} else {
- if (typeof e.xAxis.min === "number") {
+ if (typeof e.xAxis.min === 'number') {
o = Math.min(e.xAxis.min, o);
}
- if (typeof e.xAxis.max === "number") {
+ if (typeof e.xAxis.max === 'number') {
n = Math.max(e.xAxis.max, n);
}
}
@@ -1210,7 +1210,7 @@ function getXAxisTextList(t, e, h, c) {
return f;
}
function calXAxisData(t, e, a, i) {
- var r = assign({}, { type: "" }, e.extra.bar);
+ var r = assign({}, {type: ''}, e.extra.bar);
var o = {
angle: 0,
xAxisHeight: e.xAxis.lineHeight * e.pix + e.xAxis.marginTop * e.pix,
@@ -1255,7 +1255,7 @@ function getRadarDataPoints(r, o, n, a, t) {
a.position = convertCoordinateOrigin(
n * a.proportion * l * Math.cos(a.angle),
n * a.proportion * l * Math.sin(a.angle),
- o
+ o,
);
i.data.push(a);
});
@@ -1292,7 +1292,7 @@ function getPieDataPoints(a, i) {
function getFunnelDataPoints(e, a, i, r) {
var o = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
for (let t = 0; t < e.length; t++) {
- if (i.type == "funnel") {
+ if (i.type == 'funnel') {
e[t].radius = (e[t].data / e[0].data) * a * o;
} else {
e[t].radius = ((r * (e.length - t)) / (r * e.length)) * a * o;
@@ -1323,7 +1323,7 @@ function getRoseDataPoints(a, i, r, o) {
t._rose_proportion_ = (1 / a.length) * n;
} else {
t._proportion_ = (t.data / l) * n;
- if (i == "area") {
+ if (i == 'area') {
t._rose_proportion_ = (1 / a.length) * n;
} else {
t._rose_proportion_ = (t.data / l) * n;
@@ -1347,10 +1347,10 @@ function getArcbarDataPoints(i, r) {
let t = i[a];
t.data = t.data === null ? 0 : t.data;
let e;
- if (r.type == "circle") {
+ if (r.type == 'circle') {
e = 2;
} else {
- if (r.direction == "ccw") {
+ if (r.direction == 'ccw') {
if (r.startAngle < r.endAngle) {
e = 2 + r.startAngle - r.endAngle;
} else {
@@ -1365,7 +1365,7 @@ function getArcbarDataPoints(i, r) {
}
}
t._proportion_ = e * t.data * o + r.startAngle;
- if (r.direction == "ccw") {
+ if (r.direction == 'ccw') {
t._proportion_ = r.startAngle - e * t.data * o;
}
if (t._proportion_ >= 2) {
@@ -1383,7 +1383,7 @@ function getGaugeArcbarDataPoints(i, r) {
let t = i[a];
t.data = t.data === null ? 0 : t.data;
let e;
- if (r.type == "circle") {
+ if (r.type == 'circle') {
e = 2;
} else {
if (r.endAngle < r.startAngle) {
@@ -1423,7 +1423,7 @@ function getGaugeDataPoints(i, r, o) {
for (let a = 0; a < i.length; a++) {
let e = i[a];
e.data = e.data === null ? 0 : e.data;
- if (o.pointer.color == "auto") {
+ if (o.pointer.color == 'auto') {
for (let t = 0; t < r.length; t++) {
if (e.data <= r[t].value) {
e.color = r[t].color;
@@ -1462,7 +1462,7 @@ function getPieTextMaxLength(i, r, o, n) {
let t = i[a];
let e = t.formatter
? t.formatter(+t._proportion_.toFixed(2))
- : util.toFixed(t._proportion_ * 100) + "%";
+ : util.toFixed(t._proportion_ * 100) + '%';
l = Math.max(l, measureText(e, t.textSize * n.pix || r.fontSize, o));
}
return l;
@@ -1474,7 +1474,7 @@ function fixColumeData(t, i, r, o, e, n) {
}
var e = 0;
var a = 0;
- if (n.type == "mix") {
+ if (n.type == 'mix') {
e = n.extra.mix.column.seriesGap * n.pix || 0;
a = n.extra.mix.column.categoryGap * n.pix || 0;
} else {
@@ -1575,19 +1575,19 @@ function getXAxisPoints(t, e, h) {
var a = e.width - e.area[1] - e.area[3];
var i = e.enableScroll ? Math.min(e.xAxis.itemCount, t.length) : t.length;
if (
- (e.type == "line" ||
- e.type == "area" ||
- e.type == "scatter" ||
- e.type == "bubble" ||
- e.type == "bar") &&
+ (e.type == 'line' ||
+ e.type == 'area' ||
+ e.type == 'scatter' ||
+ e.type == 'bubble' ||
+ e.type == 'bar') &&
i > 1 &&
- e.xAxis.boundaryGap == "justify"
+ e.xAxis.boundaryGap == 'justify'
) {
i -= 1;
}
var r = 0;
if (
- e.type == "mount" &&
+ e.type == 'mount' &&
e.extra &&
e.extra.mount &&
e.extra.mount.widthRatio &&
@@ -1604,14 +1604,14 @@ function getXAxisPoints(t, e, h) {
t.forEach(function (t, e) {
n.push(l + (r / 2) * o + e * o);
});
- if (e.xAxis.boundaryGap !== "justify") {
+ if (e.xAxis.boundaryGap !== 'justify') {
if (e.enableScroll === true) {
n.push(l + r * o + t.length * o);
} else {
n.push(s);
}
}
- return { xAxisPoints: n, startX: l, endX: s, eachSpacing: o };
+ return {xAxisPoints: n, startX: l, endX: s, eachSpacing: o};
}
function getCandleDataPoints(t, l, s, h, c, d, a) {
var x = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
@@ -1638,12 +1638,12 @@ function getCandleDataPoints(t, l, s, h, c, d, a) {
}
function getDataPoints(t, a, n, l, s, h, e) {
var c = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : 1;
- var d = "center";
+ var d = 'center';
if (
- h.type == "line" ||
- h.type == "area" ||
- h.type == "scatter" ||
- h.type == "bubble"
+ h.type == 'line' ||
+ h.type == 'area' ||
+ h.type == 'scatter' ||
+ h.type == 'bubble'
) {
d = h.xAxis.boundaryGap;
}
@@ -1658,15 +1658,15 @@ function getDataPoints(t, a, n, l, s, h, e) {
r.color = i.color;
r.x = l[t];
var o = i;
- if (typeof i === "object" && i !== null) {
- if (i.constructor.toString().indexOf("Array") > -1) {
+ if (typeof i === 'object' && i !== null) {
+ if (i.constructor.toString().indexOf('Array') > -1) {
let t, e, a;
t = [].concat(h.chartData.xAxisData.ranges);
e = t.shift();
a = t.pop();
o = i[1];
r.x = h.area[3] + (p * (i[0] - e)) / (a - e);
- if (h.type == "bubble") {
+ if (h.type == 'bubble') {
r.r = i[2];
r.t = i[3];
}
@@ -1674,7 +1674,7 @@ function getDataPoints(t, a, n, l, s, h, e) {
o = i.value;
}
}
- if (d == "center") {
+ if (d == 'center') {
r.x += s / 2;
}
var e = (f * (o - a)) / (n - a);
@@ -1697,11 +1697,11 @@ function getLineDataPoints(t, a, n, l, s, h, e, p, c) {
} else {
var r = {};
r.color = i.color;
- if (p.animation == "vertical") {
+ if (p.animation == 'vertical') {
r.x = l[t];
var o = i;
- if (typeof i === "object" && i !== null) {
- if (i.constructor.toString().indexOf("Array") > -1) {
+ if (typeof i === 'object' && i !== null) {
+ if (i.constructor.toString().indexOf('Array') > -1) {
let t, e, a;
t = [].concat(h.chartData.xAxisData.ranges);
e = t.shift();
@@ -1712,7 +1712,7 @@ function getLineDataPoints(t, a, n, l, s, h, e, p, c) {
o = i.value;
}
}
- if (d == "center") {
+ if (d == 'center') {
r.x += s / 2;
}
var e = (f * (o - a)) / (n - a);
@@ -1722,7 +1722,7 @@ function getLineDataPoints(t, a, n, l, s, h, e, p, c) {
} else {
r.x = l[0] + s * t * c;
var o = i;
- if (d == "center") {
+ if (d == 'center') {
r.x += s / 2;
}
var e = (f * (o - a)) / (n - a);
@@ -1746,8 +1746,8 @@ function getColumnDataPoints(t, a, n, l, s, h, e, i, c) {
r.color = i.color;
r.x = l[t];
var o = i;
- if (typeof i === "object" && i !== null) {
- if (i.constructor.toString().indexOf("Array") > -1) {
+ if (typeof i === 'object' && i !== null) {
+ if (i.constructor.toString().indexOf('Array') > -1) {
let t, e, a;
t = [].concat(h.chartData.xAxisData.ranges);
e = t.shift();
@@ -1803,7 +1803,7 @@ function getBarDataPoints(t, o, n, l, e, s, a) {
a.color = t.color;
a.y = l[e];
var i = t;
- if (typeof t === "object" && t !== null) {
+ if (typeof t === 'object' && t !== null) {
i = t.value;
}
var r = (d * (i - o)) / (n - o);
@@ -1837,7 +1837,7 @@ function getStackDataPoints(t, s, h, c, g, d, e, x, y) {
var n = (u * (r - s)) / (h - s);
} else {
var i = t;
- if (typeof t === "object" && t !== null) {
+ if (typeof t === 'object' && t !== null) {
i = t.value;
}
var o = (u * (i - s)) / (h - s);
@@ -1874,7 +1874,7 @@ function getBarStackDataPoints(t, s, h, c, e, d, a, x, g) {
var n = (u * (r - s)) / (h - s);
} else {
var i = t;
- if (typeof t === "object" && t !== null) {
+ if (typeof t === 'object' && t !== null) {
i = t.value;
}
var o = (u * (i - s)) / (h - s);
@@ -1895,15 +1895,15 @@ function getYAxisTextList(t, e, h, c, a) {
var d =
arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : -1;
var i;
- if (c == "stack") {
+ if (c == 'stack') {
i = dataCombineStack(t, e.categories.length);
} else {
i = dataCombine(t);
}
var r = [];
i = i.filter(function (t) {
- if (typeof t === "object" && t !== null) {
- if (t.constructor.toString().indexOf("Array") > -1) {
+ if (typeof t === 'object' && t !== null) {
+ if (t.constructor.toString().indexOf('Array') > -1) {
return t !== null;
} else {
return t.value !== null;
@@ -1913,9 +1913,9 @@ function getYAxisTextList(t, e, h, c, a) {
}
});
i.map(function (t) {
- if (typeof t === "object") {
- if (t.constructor.toString().indexOf("Array") > -1) {
- if (e.type == "candle") {
+ if (typeof t === 'object') {
+ if (t.constructor.toString().indexOf('Array') > -1) {
+ if (e.type == 'candle') {
t.map(function (t) {
r.push(t);
});
@@ -1953,7 +1953,7 @@ function getYAxisTextList(t, e, h, c, a) {
return u.reverse();
}
function calYAxisData(a, o, e, n) {
- var l = assign({}, { type: "" }, o.extra.column);
+ var l = assign({}, {type: ''}, o.extra.column);
var t = o.yAxis.data.length;
var s = new Array(t);
if (t > 0) {
@@ -1973,10 +1973,10 @@ function calYAxisData(a, o, e, n) {
if (o.yAxis.disabled == true) {
i.disabled = true;
}
- if (i.type === "categories") {
+ if (i.type === 'categories') {
if (!i.formatter) {
i.formatter = (t, e, a) => {
- return t + (i.unit || "");
+ return t + (i.unit || '');
};
}
i.categories = i.categories || o.categories;
@@ -1984,13 +1984,13 @@ function calYAxisData(a, o, e, n) {
} else {
if (!i.formatter) {
i.formatter = (t, e, a) => {
- return util.toFixed(t, i.tofix || 0) + (i.unit || "");
+ return util.toFixed(t, i.tofix || 0) + (i.unit || '');
};
}
h[r] = getYAxisTextList(s[r], o, e, l.type, i, r);
}
let a = i.fontSize * o.pix || e.fontSize;
- d[r] = { position: i.position ? i.position : "left", width: 0 };
+ d[r] = {position: i.position ? i.position : 'left', width: 0};
c[r] = h[r].map(function (t, e) {
t = i.formatter(t, e, o);
d[r].width = Math.max(d[r].width, measureText(t, a, n) + 5);
@@ -2006,22 +2006,22 @@ function calYAxisData(a, o, e, n) {
var h = new Array(1);
var c = new Array(1);
var d = new Array(1);
- if (o.type === "bar") {
+ if (o.type === 'bar') {
h[0] = o.categories;
if (!o.yAxis.formatter) {
o.yAxis.formatter = (t, e, a) => {
- return t + (a.yAxis.unit || "");
+ return t + (a.yAxis.unit || '');
};
}
} else {
if (!o.yAxis.formatter) {
o.yAxis.formatter = (t, e, a) => {
- return t.toFixed(a.yAxis.tofix) + (a.yAxis.unit || "");
+ return t.toFixed(a.yAxis.tofix) + (a.yAxis.unit || '');
};
}
h[0] = getYAxisTextList(a, o, e, l.type, {});
}
- d[0] = { position: "left", width: 0 };
+ d[0] = {position: 'left', width: 0};
var i = o.yAxis.fontSize * o.pix || e.fontSize;
c[0] = h[0].map(function (t, e) {
t = o.yAxis.formatter(t, e, o);
@@ -2030,23 +2030,23 @@ function calYAxisData(a, o, e, n) {
});
d[0].width += 3 * o.pix;
if (o.yAxis.disabled === true) {
- d[0] = { position: "left", width: 0 };
- o.yAxis.data[0] = { disabled: true };
+ d[0] = {position: 'left', width: 0};
+ o.yAxis.data[0] = {disabled: true};
} else {
o.yAxis.data[0] = {
disabled: false,
- position: "left",
+ position: 'left',
max: o.yAxis.max,
min: o.yAxis.min,
formatter: o.yAxis.formatter,
};
- if (o.type === "bar") {
+ if (o.type === 'bar') {
o.yAxis.data[0].categories = o.categories;
- o.yAxis.data[0].type = "categories";
+ o.yAxis.data[0].type = 'categories';
}
}
}
- return { rangesFormat: c, ranges: h, yAxisWidth: d };
+ return {rangesFormat: c, ranges: h, yAxisWidth: d};
}
function calTooltipYAxisData(r, t, o, e, a) {
let n = [].concat(o.chartData.yAxisData.ranges);
@@ -2090,16 +2090,16 @@ function contextRotate(t, e) {
}
function drawPointShape(t, e, a, i, r) {
i.beginPath();
- if (r.dataPointShapeType == "hollow") {
+ if (r.dataPointShapeType == 'hollow') {
i.setStrokeStyle(e);
i.setFillStyle(r.background);
i.setLineWidth(2 * r.pix);
} else {
- i.setStrokeStyle("#ffffff");
+ i.setStrokeStyle('#ffffff');
i.setFillStyle(e);
i.setLineWidth(1 * r.pix);
}
- if (a === "diamond") {
+ if (a === 'diamond') {
t.forEach(function (t, e) {
if (t !== null) {
i.moveTo(t.x, t.y - 4.5);
@@ -2109,21 +2109,21 @@ function drawPointShape(t, e, a, i, r) {
i.lineTo(t.x, t.y - 4.5);
}
});
- } else if (a === "circle") {
+ } else if (a === 'circle') {
t.forEach(function (t, e) {
if (t !== null) {
i.moveTo(t.x + 2.5 * r.pix, t.y);
i.arc(t.x, t.y, 3 * r.pix, 0, 2 * Math.PI, false);
}
});
- } else if (a === "square") {
+ } else if (a === 'square') {
t.forEach(function (t, e) {
if (t !== null) {
i.moveTo(t.x - 3.5, t.y - 3.5);
i.rect(t.x - 3.5, t.y - 3.5, 7, 7);
}
});
- } else if (a === "triangle") {
+ } else if (a === 'triangle') {
t.forEach(function (t, e) {
if (t !== null) {
i.moveTo(t.x, t.y - 4.5);
@@ -2132,7 +2132,7 @@ function drawPointShape(t, e, a, i, r) {
i.lineTo(t.x, t.y - 4.5);
}
});
- } else if (a === "none") {
+ } else if (a === 'none') {
return;
}
i.closePath();
@@ -2147,20 +2147,20 @@ function drawActivePoint(t, e, a, i, r, o, n) {
return;
}
var l =
- typeof r.tooltip.index === "number"
+ typeof r.tooltip.index === 'number'
? r.tooltip.index
: r.tooltip.index[r.tooltip.group.indexOf(n)];
i.beginPath();
- if (o.activeType == "hollow") {
+ if (o.activeType == 'hollow') {
i.setStrokeStyle(e);
i.setFillStyle(r.background);
i.setLineWidth(2 * r.pix);
} else {
- i.setStrokeStyle("#ffffff");
+ i.setStrokeStyle('#ffffff');
i.setFillStyle(e);
i.setLineWidth(1 * r.pix);
}
- if (a === "diamond") {
+ if (a === 'diamond') {
t.forEach(function (t, e) {
if (t !== null && l == e) {
i.moveTo(t.x, t.y - 4.5);
@@ -2170,21 +2170,21 @@ function drawActivePoint(t, e, a, i, r, o, n) {
i.lineTo(t.x, t.y - 4.5);
}
});
- } else if (a === "circle") {
+ } else if (a === 'circle') {
t.forEach(function (t, e) {
if (t !== null && l == e) {
i.moveTo(t.x + 2.5 * r.pix, t.y);
i.arc(t.x, t.y, 3 * r.pix, 0, 2 * Math.PI, false);
}
});
- } else if (a === "square") {
+ } else if (a === 'square') {
t.forEach(function (t, e) {
if (t !== null && l == e) {
i.moveTo(t.x - 3.5, t.y - 3.5);
i.rect(t.x - 3.5, t.y - 3.5, 7, 7);
}
});
- } else if (a === "triangle") {
+ } else if (a === 'triangle') {
t.forEach(function (t, e) {
if (t !== null && l == e) {
i.moveTo(t.x, t.y - 4.5);
@@ -2193,7 +2193,7 @@ function drawActivePoint(t, e, a, i, r, o, n) {
i.lineTo(t.x, t.y - 4.5);
}
});
- } else if (a === "none") {
+ } else if (a === 'none') {
return;
}
i.closePath();
@@ -2203,8 +2203,8 @@ function drawActivePoint(t, e, a, i, r, o, n) {
function drawRingTitle(t, e, a, i) {
var r = t.title.fontSize || e.titleFontSize;
var o = t.subtitle.fontSize || e.subtitleFontSize;
- var n = t.title.name || "";
- var l = t.subtitle.name || "";
+ var n = t.title.name || '';
+ var l = t.subtitle.name || '';
var c = t.title.color || t.fontColor;
var d = t.subtitle.color || t.fontColor;
var x = n ? r : 0;
@@ -2249,19 +2249,19 @@ function drawPointText(t, o, n, l, s) {
l.setFontSize(a);
l.setFillStyle(o.textColor || s.fontColor);
var i = h[e];
- if (typeof h[e] === "object" && h[e] !== null) {
- if (h[e].constructor.toString().indexOf("Array") > -1) {
+ if (typeof h[e] === 'object' && h[e] !== null) {
+ if (h[e].constructor.toString().indexOf('Array') > -1) {
i = h[e][1];
} else {
i = h[e].value;
}
}
var r = o.formatter ? o.formatter(i, e, o, s) : i;
- l.setTextAlign("center");
+ l.setTextAlign('center');
l.fillText(String(r), t.x, t.y - 4 + c * s.pix);
l.closePath();
l.stroke();
- l.setTextAlign("left");
+ l.setTextAlign('left');
}
});
}
@@ -2276,26 +2276,26 @@ function drawColumePointText(t, n, l, s, h) {
s.setFontSize(a);
s.setFillStyle(n.textColor || h.fontColor);
var i = c[e];
- if (typeof c[e] === "object" && c[e] !== null) {
- if (c[e].constructor.toString().indexOf("Array") > -1) {
+ if (typeof c[e] === 'object' && c[e] !== null) {
+ if (c[e].constructor.toString().indexOf('Array') > -1) {
i = c[e][1];
} else {
i = c[e].value;
}
}
var r = n.formatter ? n.formatter(i, e, n, h) : i;
- s.setTextAlign("center");
+ s.setTextAlign('center');
var o = t.y - 4 * h.pix + d * h.pix;
if (t.y > n.zeroPoints) {
o = t.y + d * h.pix + a;
}
- if (x == "insideTop") {
+ if (x == 'insideTop') {
o = t.y + a + d * h.pix;
if (t.y > n.zeroPoints) {
o = t.y - d * h.pix - 4 * h.pix;
}
}
- if (x == "center") {
+ if (x == 'center') {
o = t.y + d * h.pix + (h.height - h.area[2] - t.y + a) / 2;
if (n.zeroPoints < h.height - h.area[2]) {
o = t.y + d * h.pix + (n.zeroPoints - t.y + a) / 2;
@@ -2303,11 +2303,11 @@ function drawColumePointText(t, n, l, s, h) {
if (t.y > n.zeroPoints) {
o = t.y - d * h.pix - (t.y - n.zeroPoints - a) / 2;
}
- if (h.extra.column.type == "stack") {
+ if (h.extra.column.type == 'stack') {
o = t.y + d * h.pix + (t.y0 - t.y + a) / 2;
}
}
- if (x == "bottom") {
+ if (x == 'bottom') {
o = h.height - h.area[2] + d * h.pix - 4 * h.pix;
if (n.zeroPoints < h.height - h.area[2]) {
o = n.zeroPoints + d * h.pix - 4 * h.pix;
@@ -2315,14 +2315,14 @@ function drawColumePointText(t, n, l, s, h) {
if (t.y > n.zeroPoints) {
o = n.zeroPoints - d * h.pix + a + 2 * h.pix;
}
- if (h.extra.column.type == "stack") {
+ if (h.extra.column.type == 'stack') {
o = t.y0 + d * h.pix - 4 * h.pix;
}
}
s.fillText(String(r), t.x, o);
s.closePath();
s.stroke();
- s.setTextAlign("left");
+ s.setTextAlign('left');
}
});
}
@@ -2338,7 +2338,7 @@ function drawMountPointText(t, n, l, s, h, c) {
s.setFillStyle(n[e].textColor || h.fontColor);
var i = t.value;
var r = n[e].formatter ? n[e].formatter(i, e, n, h) : i;
- s.setTextAlign("center");
+ s.setTextAlign('center');
var o = t.y - 4 * h.pix + d * h.pix;
if (t.y > c) {
o = t.y + d * h.pix + a;
@@ -2346,7 +2346,7 @@ function drawMountPointText(t, n, l, s, h, c) {
s.fillText(String(r), t.x, o);
s.closePath();
s.stroke();
- s.setTextAlign("left");
+ s.setTextAlign('left');
}
});
}
@@ -2360,11 +2360,11 @@ function drawBarPointText(t, o, n, l, s) {
l.setFontSize(a);
l.setFillStyle(o.textColor || s.fontColor);
var i = h[e];
- if (typeof h[e] === "object" && h[e] !== null) {
+ if (typeof h[e] === 'object' && h[e] !== null) {
i = h[e].value;
}
var r = o.formatter ? o.formatter(i, e, o, s) : i;
- l.setTextAlign("left");
+ l.setTextAlign('left');
l.fillText(String(r), t.x + 4 * s.pix, t.y + a / 2 - 3);
l.closePath();
l.stroke();
@@ -2386,7 +2386,7 @@ function drawGaugeLabel(e, a, i, r, o, n) {
let l = e.startAngle;
let s = e.startNumber;
for (let t = 0; t < e.splitLine.splitNumber + 1; t++) {
- var h = { x: a * Math.cos(l * Math.PI), y: a * Math.sin(l * Math.PI) };
+ var h = {x: a * Math.cos(l * Math.PI), y: a * Math.sin(l * Math.PI)};
var f = e.formatter ? e.formatter(s, t, r) : s;
h.x += i.x - measureText(f, o.fontSize, n) / 2;
h.y += i.y;
@@ -2408,8 +2408,8 @@ function drawGaugeLabel(e, a, i, r, o, n) {
function drawRadarLabel(t, s, h, c, d, x) {
var f = c.extra.radar || {};
t.forEach(function (t, e) {
- if (f.labelPointShow === true && c.categories[e] !== "") {
- var a = { x: s * Math.cos(t), y: s * Math.sin(t) };
+ if (f.labelPointShow === true && c.categories[e] !== '') {
+ var a = {x: s * Math.cos(t), y: s * Math.sin(t)};
var i = convertCoordinateOrigin(a.x, a.y, h);
x.setFillStyle(f.labelPointColor);
x.beginPath();
@@ -2426,14 +2426,14 @@ function drawRadarLabel(t, s, h, c, d, x) {
var n = o.x;
var l = o.y;
if (util.approximatelyEqual(r.x, 0)) {
- n -= measureText(c.categories[e] || "", d.fontSize, x) / 2;
+ n -= measureText(c.categories[e] || '', d.fontSize, x) / 2;
} else if (r.x < 0) {
- n -= measureText(c.categories[e] || "", d.fontSize, x);
+ n -= measureText(c.categories[e] || '', d.fontSize, x);
}
x.beginPath();
x.setFontSize(d.fontSize);
x.setFillStyle(f.labelColor || c.fontColor);
- x.fillText(c.categories[e] || "", n, l + d.fontSize / 2);
+ x.fillText(c.categories[e] || '', n, l + d.fontSize / 2);
x.closePath();
x.stroke();
}
@@ -2446,7 +2446,7 @@ function drawPieText(n, d, x, f, t, l) {
var y = n.map(function (t, e) {
var a = t.formatter
? t.formatter(t, e, n, d)
- : util.toFixed(t._proportion_.toFixed(4) * 100) + "%";
+ : util.toFixed(t._proportion_.toFixed(4) * 100) + '%';
a = t.labelText ? t.labelText : a;
var i = 2 * Math.PI - (t._start_ + (2 * Math.PI * t._proportion_) / 2);
if (t._rose_proportion_) {
@@ -2474,7 +2474,7 @@ function drawPieText(n, d, x, f, t, l) {
let n = a;
let l = measureText(t.text, t.textSize * d.pix || x.fontSize, f);
let s = n;
- if (g && util.isSameXCoordinateArea(g.start, { x: o })) {
+ if (g && util.isSameXCoordinateArea(g.start, {x: o})) {
if (o > 0) {
s = Math.min(n, g.start.y);
} else if (e < 0) {
@@ -2491,9 +2491,9 @@ function drawPieText(n, d, x, f, t, l) {
o -= l;
}
let h = {
- lineStart: { x: i, y: r },
- lineEnd: { x: e, y: a },
- start: { x: o, y: s },
+ lineStart: {x: i, y: r},
+ lineEnd: {x: e, y: a},
+ start: {x: o, y: s},
width: l,
height: x.fontSize,
text: t.text,
@@ -2540,14 +2540,14 @@ function drawPieText(n, d, x, f, t, l) {
}
function drawToolTipSplitLine(r, o, n, l) {
var s = o.extra.tooltip || {};
- s.gridType = s.gridType == undefined ? "solid" : s.gridType;
+ s.gridType = s.gridType == undefined ? 'solid' : s.gridType;
s.dashLength = s.dashLength == undefined ? 4 : s.dashLength;
var t = o.area[0];
var h = o.height - o.area[2];
- if (s.gridType == "dash") {
+ if (s.gridType == 'dash') {
l.setLineDash([s.dashLength, s.dashLength]);
}
- l.setStrokeStyle(s.gridColor || "#cccccc");
+ l.setStrokeStyle(s.gridColor || '#cccccc');
l.setLineWidth(1 * o.pix);
l.beginPath();
l.moveTo(r, t);
@@ -2564,8 +2564,8 @@ function drawToolTipSplitLine(r, o, n, l) {
l.setFillStyle(
hexToRgb(
s.labelBgColor || n.toolTipBackground,
- s.labelBgOpacity || n.toolTipOpacity
- )
+ s.labelBgOpacity || n.toolTipOpacity,
+ ),
);
l.setStrokeStyle(s.labelBgColor || n.toolTipBackground);
l.setLineWidth(1 * o.pix);
@@ -2573,7 +2573,7 @@ function drawToolTipSplitLine(r, o, n, l) {
a - s.boxPadding * o.pix,
i,
e + 2 * s.boxPadding * o.pix,
- n.fontSize + 2 * s.boxPadding * o.pix
+ n.fontSize + 2 * s.boxPadding * o.pix,
);
l.closePath();
l.stroke();
@@ -2589,8 +2589,8 @@ function drawToolTipSplitLine(r, o, n, l) {
function drawMarkLine(h, t, c) {
let e = assign(
{},
- { type: "solid", dashLength: 4, data: [] },
- h.extra.markLine
+ {type: 'solid', dashLength: 4, data: []},
+ h.extra.markLine,
);
let a = h.area[3];
let i = h.width - h.area[1];
@@ -2599,20 +2599,20 @@ function drawMarkLine(h, t, c) {
let s = assign(
{},
{
- lineColor: "#DE4A42",
+ lineColor: '#DE4A42',
showLabel: false,
labelFontSize: 13,
labelPadding: 6,
- labelFontColor: "#666666",
- labelBgColor: "#DFE8FF",
+ labelFontColor: '#666666',
+ labelBgColor: '#DFE8FF',
labelBgOpacity: 0.8,
- labelAlign: "left",
+ labelAlign: 'left',
labelOffsetX: 0,
labelOffsetY: 0,
},
- r[t]
+ r[t],
);
- if (e.type == "dash") {
+ if (e.type == 'dash') {
c.setLineDash([e.dashLength, e.dashLength]);
}
c.setStrokeStyle(s.lineColor);
@@ -2628,7 +2628,7 @@ function drawMarkLine(h, t, c) {
c.setFontSize(t);
let a = measureText(e, t, c);
let i = a + s.labelPadding * h.pix * 2;
- let r = s.labelAlign == "left" ? h.area[3] - i : h.width - h.area[1];
+ let r = s.labelAlign == 'left' ? h.area[3] - i : h.width - h.area[1];
r += s.labelOffsetX;
let o = s.y - 0.5 * t - s.labelPadding * h.pix;
o += s.labelOffsetY;
@@ -2643,22 +2643,22 @@ function drawMarkLine(h, t, c) {
c.stroke();
c.fill();
c.setFontSize(t);
- c.setTextAlign("left");
+ c.setTextAlign('left');
c.setFillStyle(s.labelFontColor);
c.fillText(String(e), n, o + t + (s.labelPadding * h.pix) / 2);
c.stroke();
- c.setTextAlign("left");
+ c.setTextAlign('left');
}
}
}
function drawToolTipHorizentalLine(x, f, p, t, e) {
- var u = assign({}, { gridType: "solid", dashLength: 4 }, x.extra.tooltip);
+ var u = assign({}, {gridType: 'solid', dashLength: 4}, x.extra.tooltip);
var a = x.area[3];
var i = x.width - x.area[1];
- if (u.gridType == "dash") {
+ if (u.gridType == 'dash') {
p.setLineDash([u.dashLength, u.dashLength]);
}
- p.setStrokeStyle(u.gridColor || "#cccccc");
+ p.setStrokeStyle(u.gridColor || '#cccccc');
p.setLineWidth(1 * x.pix);
p.beginPath();
p.moveTo(a, x.tooltip.offset.y);
@@ -2675,7 +2675,7 @@ function drawToolTipHorizentalLine(x, f, p, t, e) {
p.setFontSize(u.fontSize * x.pix);
let t = measureText(s[n], u.fontSize * x.pix, p);
let e, a, i;
- if (h[n].position == "left") {
+ if (h[n].position == 'left') {
e = c - (t + l * 2) - 2 * x.pix;
a = Math.max(e, e + t + l * 2);
} else {
@@ -2689,8 +2689,8 @@ function drawToolTipHorizentalLine(x, f, p, t, e) {
p.setFillStyle(
hexToRgb(
u.labelBgColor || f.toolTipBackground,
- u.labelBgOpacity || f.toolTipOpacity
- )
+ u.labelBgOpacity || f.toolTipOpacity,
+ ),
);
p.setStrokeStyle(u.labelBgColor || f.toolTipBackground);
p.setLineWidth(1 * x.pix);
@@ -2704,7 +2704,7 @@ function drawToolTipHorizentalLine(x, f, p, t, e) {
p.fillText(s[n], r, o + 0.5 * f.fontSize);
p.closePath();
p.stroke();
- if (h[n].position == "left") {
+ if (h[n].position == 'left') {
c -= h[n].width + x.yAxis.padding * x.pix;
} else {
d += h[n].width + x.yAxis.padding * x.pix;
@@ -2715,8 +2715,8 @@ function drawToolTipHorizentalLine(x, f, p, t, e) {
function drawToolTipSplitArea(t, e, a, i, r) {
var o = assign(
{},
- { activeBgColor: "#000000", activeBgOpacity: 0.08, activeWidth: r },
- e.extra.column
+ {activeBgColor: '#000000', activeBgOpacity: 0.08, activeWidth: r},
+ e.extra.column,
);
o.activeWidth = o.activeWidth > r ? r : o.activeWidth;
var n = e.area[0];
@@ -2726,13 +2726,13 @@ function drawToolTipSplitArea(t, e, a, i, r) {
i.rect(t - o.activeWidth / 2, n, o.activeWidth, l - n);
i.closePath();
i.fill();
- i.setFillStyle("#FFFFFF");
+ i.setFillStyle('#FFFFFF');
}
function drawBarToolTipSplitArea(t, e, a, i, r) {
var o = assign(
{},
- { activeBgColor: "#000000", activeBgOpacity: 0.08 },
- e.extra.bar
+ {activeBgColor: '#000000', activeBgOpacity: 0.08},
+ e.extra.bar,
);
var n = e.area[3];
var l = e.width - e.area[1];
@@ -2741,7 +2741,7 @@ function drawBarToolTipSplitArea(t, e, a, i, r) {
i.rect(n, t - r / 2, l - n, r);
i.closePath();
i.fill();
- i.setFillStyle("#FFFFFF");
+ i.setFillStyle('#FFFFFF');
}
function drawToolTip(e, r, o, a, n, i, f) {
var l = assign(
@@ -2750,24 +2750,24 @@ function drawToolTip(e, r, o, a, n, i, f) {
showBox: true,
showArrow: true,
showCategory: false,
- bgColor: "#000000",
+ bgColor: '#000000',
bgOpacity: 0.7,
- borderColor: "#000000",
+ borderColor: '#000000',
borderWidth: 0,
borderRadius: 0,
borderOpacity: 0.7,
boxPadding: 3,
- fontColor: "#FFFFFF",
+ fontColor: '#FFFFFF',
fontSize: 13,
lineHeight: 20,
legendShow: true,
- legendShape: "auto",
+ legendShape: 'auto',
splitLine: true,
},
- o.extra.tooltip
+ o.extra.tooltip,
);
if (l.showCategory == true && o.categories) {
- e.unshift({ text: o.categories[o.tooltip.index], color: null });
+ e.unshift({text: o.categories[o.tooltip.index], color: null});
}
var s = l.fontSize * o.pix;
var p = l.lineHeight * o.pix;
@@ -2781,17 +2781,17 @@ function drawToolTip(e, r, o, a, n, i, f) {
var d = l.showArrow ? 8 * o.pix : 0;
var g = false;
if (
- o.type == "line" ||
- o.type == "mount" ||
- o.type == "area" ||
- o.type == "candle" ||
- o.type == "mix"
+ o.type == 'line' ||
+ o.type == 'mount' ||
+ o.type == 'area' ||
+ o.type == 'candle' ||
+ o.type == 'mix'
) {
if (l.splitLine == true) {
drawToolTipSplitLine(o.tooltip.offset.x, o, a, n);
}
}
- r = assign({ x: 0, y: 0 }, r);
+ r = assign({x: 0, y: 0}, r);
r.y -= 8 * o.pix;
var y = e.map(function (t) {
return measureText(t.text, s, n);
@@ -2830,7 +2830,7 @@ function drawToolTip(e, r, o, a, n, i, f) {
t,
Math.PI / 2,
Math.PI,
- false
+ false,
);
n.arc(
r.x - d - Math.round(x) + t,
@@ -2838,7 +2838,7 @@ function drawToolTip(e, r, o, a, n, i, f) {
t,
-Math.PI,
-Math.PI / 2,
- false
+ false,
);
n.arc(r.x - d - t, r.y + t, t, -Math.PI / 2, 0, false);
if (l.showArrow) {
@@ -2875,38 +2875,38 @@ function drawToolTip(e, r, o, a, n, i, f) {
a = r.x - x - d + 2 * h;
}
switch (t.legendShape) {
- case "line":
+ case 'line':
n.moveTo(a, i + 0.5 * c - 2 * o.pix);
n.fillRect(a, i + 0.5 * c - 2 * o.pix, c, 4 * o.pix);
break;
- case "triangle":
+ case 'triangle':
n.moveTo(a + 7.5 * o.pix, i + 0.5 * c - 5 * o.pix);
n.lineTo(a + 2.5 * o.pix, i + 0.5 * c + 5 * o.pix);
n.lineTo(a + 12.5 * o.pix, i + 0.5 * c + 5 * o.pix);
n.lineTo(a + 7.5 * o.pix, i + 0.5 * c - 5 * o.pix);
break;
- case "diamond":
+ case 'diamond':
n.moveTo(a + 7.5 * o.pix, i + 0.5 * c - 5 * o.pix);
n.lineTo(a + 2.5 * o.pix, i + 0.5 * c);
n.lineTo(a + 7.5 * o.pix, i + 0.5 * c + 5 * o.pix);
n.lineTo(a + 12.5 * o.pix, i + 0.5 * c);
n.lineTo(a + 7.5 * o.pix, i + 0.5 * c - 5 * o.pix);
break;
- case "circle":
+ case 'circle':
n.moveTo(a + 7.5 * o.pix, i + 0.5 * c);
n.arc(a + 7.5 * o.pix, i + 0.5 * c, 5 * o.pix, 0, 2 * Math.PI);
break;
- case "rect":
+ case 'rect':
n.moveTo(a, i + 0.5 * c - 5 * o.pix);
n.fillRect(a, i + 0.5 * c - 5 * o.pix, 15 * o.pix, 10 * o.pix);
break;
- case "square":
+ case 'square':
n.moveTo(a + 2 * o.pix, i + 0.5 * c - 5 * o.pix);
n.fillRect(
a + 2 * o.pix,
i + 0.5 * c - 5 * o.pix,
10 * o.pix,
- 10 * o.pix
+ 10 * o.pix,
);
break;
default:
@@ -2926,7 +2926,7 @@ function drawToolTip(e, r, o, a, n, i, f) {
var i = r.y + p * e + (p - s) / 2 - 1 + h + s;
n.beginPath();
n.setFontSize(s);
- n.setTextBaseline("normal");
+ n.setTextBaseline('normal');
n.setFillStyle(l.fontColor);
n.fillText(t.text, a, i);
n.closePath();
@@ -2941,20 +2941,20 @@ function drawColumnDataPoints(T, b, S, w) {
let D = assign(
{},
{
- type: "group",
+ type: 'group',
width: C / 2,
meterBorder: 4,
- meterFillColor: "#FFFFFF",
+ meterFillColor: '#FFFFFF',
barBorderCircle: false,
barBorderRadius: [],
seriesGap: 2,
- linearType: "none",
+ linearType: 'none',
linearOpacity: 1,
customColor: [],
colorStop: 0,
- labelPosition: "outside",
+ labelPosition: 'outside',
},
- b.extra.column
+ b.extra.column,
);
let M = [];
w.save();
@@ -2984,7 +2984,7 @@ function drawColumnDataPoints(T, b, S, w) {
a.zeroPoints = n;
var p = a.data;
switch (D.type) {
- case "group":
+ case 'group':
var r = getColumnDataPoints(p, t, o, P, C, b, S, n, A);
var u = getStackDataPoints(p, t, o, P, C, b, S, i, T, A);
M.push(u);
@@ -2997,19 +2997,19 @@ function drawColumnDataPoints(T, b, S, w) {
w.beginPath();
var g = o.color || a.color;
var y = o.color || a.color;
- if (D.linearType !== "none") {
+ if (D.linearType !== 'none') {
var v = w.createLinearGradient(l, o.y, l, n);
- if (D.linearType == "opacity") {
+ if (D.linearType == 'opacity') {
v.addColorStop(0, hexToRgb(g, D.linearOpacity));
v.addColorStop(1, hexToRgb(g, 1));
} else {
v.addColorStop(
0,
- hexToRgb(D.customColor[a.linearIndex], D.linearOpacity)
+ hexToRgb(D.customColor[a.linearIndex], D.linearOpacity),
);
v.addColorStop(
D.colorStop,
- hexToRgb(D.customColor[a.linearIndex], D.linearOpacity)
+ hexToRgb(D.customColor[a.linearIndex], D.linearOpacity),
);
v.addColorStop(1, hexToRgb(g, 1));
}
@@ -3058,7 +3058,7 @@ function drawColumnDataPoints(T, b, S, w) {
}
}
break;
- case "stack":
+ case 'stack':
var r = getStackDataPoints(p, t, o, P, C, b, S, i, T, A);
M.push(r);
r = fixColumeStackData(r, C, T.length, i, S, b, T);
@@ -3081,7 +3081,7 @@ function drawColumnDataPoints(T, b, S, w) {
}
}
break;
- case "meter":
+ case 'meter':
var r = getDataPoints(p, t, o, P, C, b, S, A);
M.push(r);
r = fixColumeMeterData(r, C, T.length, i, S, b, D.meterBorder);
@@ -3151,16 +3151,16 @@ function drawColumnDataPoints(T, b, S, w) {
r = a.shift();
var o = t.data;
switch (D.type) {
- case "group":
+ case 'group':
var n = getColumnDataPoints(o, i, r, P, C, b, S, A);
n = fixColumeData(n, C, T.length, e, S, b);
drawColumePointText(n, t, S, w, b);
break;
- case "stack":
+ case 'stack':
var n = getStackDataPoints(o, i, r, P, C, b, S, e, T, A);
drawColumePointText(n, t, S, w, b);
break;
- case "meter":
+ case 'meter':
var n = getDataPoints(o, i, r, P, C, b, S, A);
drawColumePointText(n, t, S, w, b);
break;
@@ -3168,7 +3168,7 @@ function drawColumnDataPoints(T, b, S, w) {
});
}
w.restore();
- return { xAxisPoints: P, calPoints: M, eachSpacing: C };
+ return {xAxisPoints: P, calPoints: M, eachSpacing: C};
}
function drawMountDataPoints(i, r, o, n) {
let f = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
@@ -3178,17 +3178,17 @@ function drawMountDataPoints(i, r, o, n) {
let s = assign(
{},
{
- type: "mount",
+ type: 'mount',
widthRatio: 1,
borderWidth: 1,
barBorderCircle: false,
barBorderRadius: [],
- linearType: "none",
+ linearType: 'none',
linearOpacity: 1,
customColor: [],
colorStop: 0,
},
- r.extra.mount
+ r.extra.mount,
);
s.widthRatio = s.widthRatio <= 0 ? 0 : s.widthRatio;
s.widthRatio = s.widthRatio >= 2 ? 2 : s.widthRatio;
@@ -3215,7 +3215,7 @@ function drawMountDataPoints(i, r, o, n) {
let h = r.height - Math.round(b) - r.area[2];
var c = getMountDataPoints(i, v, m, p, l, r, s, h, f);
switch (s.type) {
- case "bar":
+ case 'bar':
for (let t = 0; t < c.length; t++) {
let o = c[t];
if (o !== null && t > u && t < g) {
@@ -3224,19 +3224,19 @@ function drawMountDataPoints(i, r, o, n) {
n.beginPath();
var a = o.color || i[t].color;
var w = o.color || i[t].color;
- if (s.linearType !== "none") {
+ if (s.linearType !== 'none') {
var x = n.createLinearGradient(d, o.y, d, h);
- if (s.linearType == "opacity") {
+ if (s.linearType == 'opacity') {
x.addColorStop(0, hexToRgb(a, s.linearOpacity));
x.addColorStop(1, hexToRgb(a, 1));
} else {
x.addColorStop(
0,
- hexToRgb(s.customColor[i[t].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[t].linearIndex], s.linearOpacity),
);
x.addColorStop(
s.colorStop,
- hexToRgb(s.customColor[i[t].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[t].linearIndex], s.linearOpacity),
);
x.addColorStop(1, hexToRgb(a, 1));
}
@@ -3288,7 +3288,7 @@ function drawMountDataPoints(i, r, o, n) {
}
}
break;
- case "triangle":
+ case 'triangle':
for (let e = 0; e < c.length; e++) {
let t = c[e];
if (t !== null && e > u && e < g) {
@@ -3297,19 +3297,19 @@ function drawMountDataPoints(i, r, o, n) {
n.beginPath();
var a = t.color || i[e].color;
var w = t.color || i[e].color;
- if (s.linearType !== "none") {
+ if (s.linearType !== 'none') {
var x = n.createLinearGradient(d, t.y, d, h);
- if (s.linearType == "opacity") {
+ if (s.linearType == 'opacity') {
x.addColorStop(0, hexToRgb(a, s.linearOpacity));
x.addColorStop(1, hexToRgb(a, 1));
} else {
x.addColorStop(
0,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(
s.colorStop,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(1, hexToRgb(a, 1));
}
@@ -3328,7 +3328,7 @@ function drawMountDataPoints(i, r, o, n) {
}
}
break;
- case "mount":
+ case 'mount':
for (let e = 0; e < c.length; e++) {
let t = c[e];
if (t !== null && e > u && e < g) {
@@ -3337,19 +3337,19 @@ function drawMountDataPoints(i, r, o, n) {
n.beginPath();
var a = t.color || i[e].color;
var w = t.color || i[e].color;
- if (s.linearType !== "none") {
+ if (s.linearType !== 'none') {
var x = n.createLinearGradient(d, t.y, d, h);
- if (s.linearType == "opacity") {
+ if (s.linearType == 'opacity') {
x.addColorStop(0, hexToRgb(a, s.linearOpacity));
x.addColorStop(1, hexToRgb(a, 1));
} else {
x.addColorStop(
0,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(
s.colorStop,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(1, hexToRgb(a, 1));
}
@@ -3362,7 +3362,7 @@ function drawMountDataPoints(i, r, o, n) {
t.x - t.width / 4,
t.y,
t.x,
- t.y
+ t.y,
);
n.bezierCurveTo(
t.x + t.width / 4,
@@ -3370,7 +3370,7 @@ function drawMountDataPoints(i, r, o, n) {
t.x + t.width / 4,
h,
d + t.width,
- h
+ h,
);
n.setStrokeStyle(w);
n.setFillStyle(a);
@@ -3382,7 +3382,7 @@ function drawMountDataPoints(i, r, o, n) {
}
}
break;
- case "sharp":
+ case 'sharp':
for (let e = 0; e < c.length; e++) {
let t = c[e];
if (t !== null && e > u && e < g) {
@@ -3391,19 +3391,19 @@ function drawMountDataPoints(i, r, o, n) {
n.beginPath();
var a = t.color || i[e].color;
var w = t.color || i[e].color;
- if (s.linearType !== "none") {
+ if (s.linearType !== 'none') {
var x = n.createLinearGradient(d, t.y, d, h);
- if (s.linearType == "opacity") {
+ if (s.linearType == 'opacity') {
x.addColorStop(0, hexToRgb(a, s.linearOpacity));
x.addColorStop(1, hexToRgb(a, 1));
} else {
x.addColorStop(
0,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(
s.colorStop,
- hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity)
+ hexToRgb(s.customColor[i[e].linearIndex], s.linearOpacity),
);
x.addColorStop(1, hexToRgb(a, 1));
}
@@ -3432,7 +3432,7 @@ function drawMountDataPoints(i, r, o, n) {
drawMountPointText(c, i, o, n, r, h);
}
n.restore();
- return { xAxisPoints: p, calPoints: c, eachSpacing: l };
+ return {xAxisPoints: p, calPoints: c, eachSpacing: l};
}
function drawBarDataPoints(y, v, m, T) {
let b = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
@@ -3444,19 +3444,19 @@ function drawBarDataPoints(y, v, m, T) {
let A = assign(
{},
{
- type: "group",
+ type: 'group',
width: w / 2,
meterBorder: 4,
- meterFillColor: "#FFFFFF",
+ meterFillColor: '#FFFFFF',
barBorderCircle: false,
barBorderRadius: [],
seriesGap: 2,
- linearType: "none",
+ linearType: 'none',
linearOpacity: 1,
customColor: [],
colorStop: 0,
},
- v.extra.bar
+ v.extra.bar,
);
let P = [];
T.save();
@@ -3473,7 +3473,7 @@ function drawBarDataPoints(y, v, m, T) {
e = o.shift();
var x = a.data;
switch (A.type) {
- case "group":
+ case 'group':
var i = getBarDataPoints(x, e, d, S, w, v, m, b);
var f = getBarStackDataPoints(x, e, d, S, w, v, m, t, y, b);
P.push(f);
@@ -3487,19 +3487,19 @@ function drawBarDataPoints(y, v, m, T) {
T.beginPath();
var l = o.color || a.color;
var u = o.color || a.color;
- if (A.linearType !== "none") {
+ if (A.linearType !== 'none') {
var s = T.createLinearGradient(n, o.y, o.x, o.y);
- if (A.linearType == "opacity") {
+ if (A.linearType == 'opacity') {
s.addColorStop(0, hexToRgb(l, A.linearOpacity));
s.addColorStop(1, hexToRgb(l, 1));
} else {
s.addColorStop(
0,
- hexToRgb(A.customColor[a.linearIndex], A.linearOpacity)
+ hexToRgb(A.customColor[a.linearIndex], A.linearOpacity),
);
s.addColorStop(
A.colorStop,
- hexToRgb(A.customColor[a.linearIndex], A.linearOpacity)
+ hexToRgb(A.customColor[a.linearIndex], A.linearOpacity),
);
s.addColorStop(1, hexToRgb(l, 1));
}
@@ -3545,7 +3545,7 @@ function drawBarDataPoints(y, v, m, T) {
}
}
break;
- case "stack":
+ case 'stack':
var i = getBarStackDataPoints(x, e, d, S, w, v, m, t, y, b);
P.push(i);
i = fixBarStackData(i, w, y.length, t, m, v, y);
@@ -3573,37 +3573,37 @@ function drawBarDataPoints(y, v, m, T) {
i = a.shift();
var o = t.data;
switch (A.type) {
- case "group":
+ case 'group':
var n = getBarDataPoints(o, i, r, S, w, v, m, b);
n = fixBarData(n, w, y.length, e, m, v);
drawBarPointText(n, t, m, T, v);
break;
- case "stack":
+ case 'stack':
var n = getBarStackDataPoints(o, i, r, S, w, v, m, e, y, b);
drawBarPointText(n, t, m, T, v);
break;
}
});
}
- return { yAxisPoints: S, calPoints: P, eachSpacing: w };
+ return {yAxisPoints: S, calPoints: P, eachSpacing: w};
}
function drawCandleDataPoints(e, t, h, c, d) {
var g = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
- var s = assign({}, { color: {}, average: {} }, h.extra.candle);
+ var s = assign({}, {color: {}, average: {}}, h.extra.candle);
s.color = assign(
{},
{
- upLine: "#f04864",
- upFill: "#f04864",
- downLine: "#2fc25b",
- downFill: "#2fc25b",
+ upLine: '#f04864',
+ upFill: '#f04864',
+ downLine: '#2fc25b',
+ downFill: '#2fc25b',
},
- s.color
+ s.color,
);
s.average = assign(
{},
- { show: false, name: [], day: [], color: c.color },
- s.average
+ {show: false, name: [], day: [], color: c.color},
+ s.average,
);
h.extra.candle = s;
let a = h.chartData.xAxisData,
@@ -3715,21 +3715,21 @@ function drawCandleDataPoints(e, t, h, c, d) {
}
});
d.restore();
- return { xAxisPoints: x, calPoints: y, eachSpacing: f };
+ return {xAxisPoints: x, calPoints: y, eachSpacing: f};
}
function drawAreaDataPoints(t, s, h, c) {
var d = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
var x = assign(
{},
{
- type: "straight",
+ type: 'straight',
opacity: 0.2,
addLine: false,
width: 2,
gradient: false,
- activeType: "none",
+ activeType: 'none',
},
- s.extra.area
+ s.extra.area,
);
let e = s.chartData.xAxisData,
f = e.xAxisPoints,
@@ -3763,8 +3763,8 @@ function drawAreaDataPoints(t, s, h, c) {
c.setStrokeStyle(hexToRgb(e.color, x.opacity));
if (x.gradient) {
let t = c.createLinearGradient(0, s.area[0], 0, s.height - s.area[2]);
- t.addColorStop("0", hexToRgb(e.color, x.opacity));
- t.addColorStop("1.0", hexToRgb("#FFFFFF", 0.1));
+ t.addColorStop('0', hexToRgb(e.color, x.opacity));
+ t.addColorStop('1.0', hexToRgb('#FFFFFF', 0.1));
c.setFillStyle(t);
} else {
c.setFillStyle(hexToRgb(e.color, x.opacity));
@@ -3775,7 +3775,7 @@ function drawAreaDataPoints(t, s, h, c) {
let e = r[r.length - 1];
c.moveTo(t.x, t.y);
let i = 0;
- if (x.type === "curve") {
+ if (x.type === 'curve') {
for (let a = 0; a < r.length; a++) {
let e = r[a];
if (i == 0 && e.x > u) {
@@ -3788,7 +3788,7 @@ function drawAreaDataPoints(t, s, h, c) {
}
}
}
- if (x.type === "straight") {
+ if (x.type === 'straight') {
for (let e = 0; e < r.length; e++) {
let t = r[e];
if (i == 0 && t.x > u) {
@@ -3800,7 +3800,7 @@ function drawAreaDataPoints(t, s, h, c) {
}
}
}
- if (x.type === "step") {
+ if (x.type === 'step') {
for (let e = 0; e < r.length; e++) {
let t = r[e];
if (i == 0 && t.x > u) {
@@ -3823,7 +3823,7 @@ function drawAreaDataPoints(t, s, h, c) {
c.closePath();
c.fill();
if (x.addLine) {
- if (e.lineType == "dash") {
+ if (e.lineType == 'dash') {
let t = e.dashLength ? e.dashLength : 8;
t *= s.pix;
c.setLineDash([t, t]);
@@ -3836,7 +3836,7 @@ function drawAreaDataPoints(t, s, h, c) {
} else {
c.moveTo(r[0].x, r[0].y);
let i = 0;
- if (x.type === "curve") {
+ if (x.type === 'curve') {
for (let a = 0; a < r.length; a++) {
let e = r[a];
if (i == 0 && e.x > u) {
@@ -3851,12 +3851,12 @@ function drawAreaDataPoints(t, s, h, c) {
t.ctrB.x,
t.ctrB.y,
e.x,
- e.y
+ e.y,
);
}
}
}
- if (x.type === "straight") {
+ if (x.type === 'straight') {
for (let e = 0; e < r.length; e++) {
let t = r[e];
if (i == 0 && t.x > u) {
@@ -3868,7 +3868,7 @@ function drawAreaDataPoints(t, s, h, c) {
}
}
}
- if (x.type === "step") {
+ if (x.type === 'step') {
for (let e = 0; e < r.length; e++) {
let t = r[e];
if (i == 0 && t.x > u) {
@@ -3904,11 +3904,11 @@ function drawAreaDataPoints(t, s, h, c) {
});
}
c.restore();
- return { xAxisPoints: f, calPoints: v, eachSpacing: p };
+ return {xAxisPoints: f, calPoints: v, eachSpacing: p};
}
function drawScatterDataPoints(t, s, h, c) {
var d = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
- var i = assign({}, { type: "circle" }, s.extra.scatter);
+ var i = assign({}, {type: 'circle'}, s.extra.scatter);
let e = s.chartData.xAxisData,
x = e.xAxisPoints,
f = e.eachSpacing;
@@ -3937,7 +3937,7 @@ function drawScatterDataPoints(t, s, h, c) {
c.setFillStyle(t.color);
c.setLineWidth(1 * s.pix);
var l = t.pointShape;
- if (l === "diamond") {
+ if (l === 'diamond') {
n.forEach(function (t, e) {
if (t !== null) {
c.moveTo(t.x, t.y - 4.5);
@@ -3947,21 +3947,21 @@ function drawScatterDataPoints(t, s, h, c) {
c.lineTo(t.x, t.y - 4.5);
}
});
- } else if (l === "circle") {
+ } else if (l === 'circle') {
n.forEach(function (t, e) {
if (t !== null) {
c.moveTo(t.x + 2.5 * s.pix, t.y);
c.arc(t.x, t.y, 3 * s.pix, 0, 2 * Math.PI, false);
}
});
- } else if (l === "square") {
+ } else if (l === 'square') {
n.forEach(function (t, e) {
if (t !== null) {
c.moveTo(t.x - 3.5, t.y - 3.5);
c.rect(t.x - 3.5, t.y - 3.5, 7, 7);
}
});
- } else if (l === "triangle") {
+ } else if (l === 'triangle') {
n.forEach(function (t, e) {
if (t !== null) {
c.moveTo(t.x, t.y - 4.5);
@@ -3970,7 +3970,7 @@ function drawScatterDataPoints(t, s, h, c) {
c.lineTo(t.x, t.y - 4.5);
}
});
- } else if (l === "triangle") {
+ } else if (l === 'triangle') {
return;
}
c.closePath();
@@ -3989,11 +3989,11 @@ function drawScatterDataPoints(t, s, h, c) {
});
}
c.restore();
- return { xAxisPoints: x, calPoints: r, eachSpacing: f };
+ return {xAxisPoints: x, calPoints: r, eachSpacing: f};
}
function drawBubbleDataPoints(a, l, s, h) {
var c = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
- var d = assign({}, { opacity: 1, border: 2 }, l.extra.bubble);
+ var d = assign({}, {opacity: 1, border: 2}, l.extra.bubble);
let t = l.chartData.xAxisData,
x = t.xAxisPoints,
f = t.eachSpacing;
@@ -4033,31 +4033,31 @@ function drawBubbleDataPoints(a, l, s, h) {
h.beginPath();
var a = i.textSize * l.pix || s.fontSize;
h.setFontSize(a);
- h.setFillStyle(i.textColor || "#FFFFFF");
- h.setTextAlign("center");
+ h.setFillStyle(i.textColor || '#FFFFFF');
+ h.setTextAlign('center');
h.fillText(String(t.t), t.x, t.y + a / 2);
h.closePath();
h.stroke();
- h.setTextAlign("left");
+ h.setTextAlign('left');
});
}
});
h.restore();
- return { xAxisPoints: x, calPoints: i, eachSpacing: f };
+ return {xAxisPoints: x, calPoints: i, eachSpacing: f};
}
function drawLineDataPoints(t, d, x, f) {
var p = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
var u = assign(
{},
{
- type: "straight",
+ type: 'straight',
width: 2,
- activeType: "none",
- linearType: "none",
+ activeType: 'none',
+ linearType: 'none',
onShadow: false,
- animation: "vertical",
+ animation: 'vertical',
},
- d.extra.line
+ d.extra.line,
);
u.width *= d.pix;
let e = d.chartData.xAxisData,
@@ -4090,19 +4090,19 @@ function drawLineDataPoints(t, d, x, f) {
var o = getLineDataPoints(r, a, i, g, y, d, x, u, p);
T.push(o);
var n = splitPoints(o, e);
- if (e.lineType == "dash") {
+ if (e.lineType == 'dash') {
let t = e.dashLength ? e.dashLength : 8;
t *= d.pix;
f.setLineDash([t, t]);
}
f.beginPath();
var l = e.color;
- if (u.linearType !== "none" && e.linearColor && e.linearColor.length > 0) {
+ if (u.linearType !== 'none' && e.linearColor && e.linearColor.length > 0) {
var s = f.createLinearGradient(
d.chartData.xAxisData.startX,
d.height / 2,
d.chartData.xAxisData.endX,
- d.height / 2
+ d.height / 2,
);
for (var h = 0; h < e.linearColor.length; h++) {
s.addColorStop(e.linearColor[h][0], hexToRgb(e.linearColor[h][1], 1));
@@ -4115,10 +4115,10 @@ function drawLineDataPoints(t, d, x, f) {
e.setShadow[0],
e.setShadow[1],
e.setShadow[2],
- e.setShadow[3]
+ e.setShadow[3],
);
} else {
- f.setShadow(0, 0, 0, "rgba(0,0,0,0)");
+ f.setShadow(0, 0, 0, 'rgba(0,0,0,0)');
}
f.setLineWidth(u.width);
n.forEach(function (i, t) {
@@ -4127,7 +4127,7 @@ function drawLineDataPoints(t, d, x, f) {
} else {
f.moveTo(i[0].x, i[0].y);
let a = 0;
- if (u.type === "curve") {
+ if (u.type === 'curve') {
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (a == 0 && t.x > v) {
@@ -4140,7 +4140,7 @@ function drawLineDataPoints(t, d, x, f) {
}
}
}
- if (u.type === "straight") {
+ if (u.type === 'straight') {
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (a == 0 && t.x > v) {
@@ -4152,7 +4152,7 @@ function drawLineDataPoints(t, d, x, f) {
}
}
}
- if (u.type === "step") {
+ if (u.type === 'step') {
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (a == 0 && t.x > v) {
@@ -4187,7 +4187,7 @@ function drawLineDataPoints(t, d, x, f) {
});
}
f.restore();
- return { xAxisPoints: g, calPoints: T, eachSpacing: y };
+ return {xAxisPoints: g, calPoints: T, eachSpacing: y};
}
function drawMixDataPoints(t, v, m, T) {
let D = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
@@ -4201,21 +4201,21 @@ function drawMixDataPoints(t, v, m, T) {
barBorderCircle: false,
barBorderRadius: [],
seriesGap: 2,
- linearType: "none",
+ linearType: 'none',
linearOpacity: 1,
customColor: [],
colorStop: 0,
},
- v.extra.mix.column
+ v.extra.mix.column,
);
- let A = assign({}, { opacity: 0.2, gradient: false }, v.extra.mix.area);
- let M = assign({}, { width: 2 }, v.extra.mix.line);
+ let A = assign({}, {opacity: 0.2, gradient: false}, v.extra.mix.area);
+ let M = assign({}, {width: 2}, v.extra.mix.line);
let L = v.height - v.area[2];
let F = [];
var _ = 0;
var k = 0;
t.forEach(function (t, e) {
- if (t.type == "column") {
+ if (t.type == 'column') {
k += 1;
}
});
@@ -4244,7 +4244,7 @@ function drawMixDataPoints(t, v, m, T) {
var p = n.data;
var a = getDataPoints(p, x, f, b, S, v, m, D);
F.push(a);
- if (n.type == "column") {
+ if (n.type == 'column') {
a = fixColumeData(a, S, k, _, m, v);
for (let t = 0; t < a.length; t++) {
let o = a[t];
@@ -4254,19 +4254,19 @@ function drawMixDataPoints(t, v, m, T) {
T.beginPath();
var e = o.color || n.color;
var u = o.color || n.color;
- if (w.linearType !== "none") {
+ if (w.linearType !== 'none') {
var i = T.createLinearGradient(l, o.y, l, v.height - v.area[2]);
- if (w.linearType == "opacity") {
+ if (w.linearType == 'opacity') {
i.addColorStop(0, hexToRgb(e, w.linearOpacity));
i.addColorStop(1, hexToRgb(e, 1));
} else {
i.addColorStop(
0,
- hexToRgb(w.customColor[n.linearIndex], w.linearOpacity)
+ hexToRgb(w.customColor[n.linearIndex], w.linearOpacity),
);
i.addColorStop(
w.colorStop,
- hexToRgb(w.customColor[n.linearIndex], w.linearOpacity)
+ hexToRgb(w.customColor[n.linearIndex], w.linearOpacity),
);
i.addColorStop(1, hexToRgb(e, 1));
}
@@ -4313,7 +4313,7 @@ function drawMixDataPoints(t, v, m, T) {
}
_ += 1;
}
- if (n.type == "area") {
+ if (n.type == 'area') {
let e = splitPoints(a, n);
for (let t = 0; t < e.length; t++) {
let i = e[t];
@@ -4322,8 +4322,8 @@ function drawMixDataPoints(t, v, m, T) {
T.setStrokeStyle(hexToRgb(n.color, A.opacity));
if (A.gradient) {
let t = T.createLinearGradient(0, v.area[0], 0, v.height - v.area[2]);
- t.addColorStop("0", hexToRgb(n.color, A.opacity));
- t.addColorStop("1.0", hexToRgb("#FFFFFF", 0.1));
+ t.addColorStop('0', hexToRgb(n.color, A.opacity));
+ t.addColorStop('1.0', hexToRgb('#FFFFFF', 0.1));
T.setFillStyle(t);
} else {
T.setFillStyle(hexToRgb(n.color, A.opacity));
@@ -4334,7 +4334,7 @@ function drawMixDataPoints(t, v, m, T) {
let t = i[i.length - 1];
T.moveTo(r.x, r.y);
let a = 0;
- if (n.style === "curve") {
+ if (n.style === 'curve') {
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (a == 0 && t.x > P) {
@@ -4349,7 +4349,7 @@ function drawMixDataPoints(t, v, m, T) {
g.ctrB.x,
g.ctrB.y,
t.x,
- t.y
+ t.y,
);
}
}
@@ -4376,10 +4376,10 @@ function drawMixDataPoints(t, v, m, T) {
T.fill();
}
}
- if (n.type == "line") {
+ if (n.type == 'line') {
var y = splitPoints(a, n);
y.forEach(function (i, t) {
- if (n.lineType == "dash") {
+ if (n.lineType == 'dash') {
let t = n.dashLength ? n.dashLength : 8;
t *= v.pix;
T.setLineDash([t, t]);
@@ -4392,7 +4392,7 @@ function drawMixDataPoints(t, v, m, T) {
} else {
T.moveTo(i[0].x, i[0].y);
let a = 0;
- if (n.style == "curve") {
+ if (n.style == 'curve') {
for (let e = 0; e < i.length; e++) {
let t = i[e];
if (a == 0 && t.x > P) {
@@ -4407,7 +4407,7 @@ function drawMixDataPoints(t, v, m, T) {
r.ctrB.x,
r.ctrB.y,
t.x,
- t.y
+ t.y,
);
}
}
@@ -4429,10 +4429,10 @@ function drawMixDataPoints(t, v, m, T) {
T.setLineDash([]);
});
}
- if (n.type == "point") {
+ if (n.type == 'point') {
n.addPoint = true;
}
- if (n.addPoint == true && n.type !== "column") {
+ if (n.addPoint == true && n.type !== 'column') {
drawPointShape(a, n.color, n.pointShape, T, v);
}
});
@@ -4445,7 +4445,7 @@ function drawMixDataPoints(t, v, m, T) {
r = a.shift();
var o = t.data;
var n = getDataPoints(o, i, r, b, S, v, m, D);
- if (t.type !== "column") {
+ if (t.type !== 'column') {
drawPointText(n, t, m, T, v);
} else {
n = fixColumeData(n, S, k, _, m, v);
@@ -4455,7 +4455,7 @@ function drawMixDataPoints(t, v, m, T) {
});
}
T.restore();
- return { xAxisPoints: b, calPoints: F, eachSpacing: S };
+ return {xAxisPoints: b, calPoints: F, eachSpacing: S};
}
function drawToolTipBridge(t, e, a, i, r, o) {
var n = t.extra.tooltip || {};
@@ -4463,12 +4463,12 @@ function drawToolTipBridge(t, e, a, i, r, o) {
n.horizentalLine &&
t.tooltip &&
i === 1 &&
- (t.type == "line" ||
- t.type == "area" ||
- t.type == "column" ||
- t.type == "mount" ||
- t.type == "candle" ||
- t.type == "mix")
+ (t.type == 'line' ||
+ t.type == 'area' ||
+ t.type == 'column' ||
+ t.type == 'mount' ||
+ t.type == 'candle' ||
+ t.type == 'mix')
) {
drawToolTipHorizentalLine(t, e, a, r, o);
}
@@ -4491,13 +4491,13 @@ function drawXAxis(r, h, c, d) {
t = e.startX,
a = e.endX,
f = e.eachSpacing;
- var p = "center";
+ var p = 'center';
if (
- h.type == "bar" ||
- h.type == "line" ||
- h.type == "area" ||
- h.type == "scatter" ||
- h.type == "bubble"
+ h.type == 'bar' ||
+ h.type == 'line' ||
+ h.type == 'area' ||
+ h.type == 'scatter' ||
+ h.type == 'bubble'
) {
p = h.xAxis.boundaryGap;
}
@@ -4508,7 +4508,7 @@ function drawXAxis(r, h, c, d) {
var n = a - t;
var l = f * (x.length - 1);
if (
- h.type == "mount" &&
+ h.type == 'mount' &&
h.extra &&
h.extra.mount &&
h.extra.mount.widthRatio &&
@@ -4523,30 +4523,30 @@ function drawXAxis(r, h, c, d) {
y = (-h._scrollDistance_ * n) / l;
}
d.beginPath();
- d.setLineCap("round");
+ d.setLineCap('round');
d.setLineWidth(6 * h.pix);
- d.setStrokeStyle(h.xAxis.scrollBackgroundColor || "#EFEBEF");
+ d.setStrokeStyle(h.xAxis.scrollBackgroundColor || '#EFEBEF');
d.moveTo(t, o);
d.lineTo(a, o);
d.stroke();
d.closePath();
d.beginPath();
- d.setLineCap("round");
+ d.setLineCap('round');
d.setLineWidth(6 * h.pix);
- d.setStrokeStyle(h.xAxis.scrollColor || "#A6A6A6");
+ d.setStrokeStyle(h.xAxis.scrollColor || '#A6A6A6');
d.moveTo(t + y, o);
d.lineTo(t + y + s, o);
d.stroke();
d.closePath();
- d.setLineCap("butt");
+ d.setLineCap('butt');
}
d.save();
if (h._scrollDistance_ && h._scrollDistance_ !== 0) {
d.translate(h._scrollDistance_, 0);
}
if (h.xAxis.calibration === true) {
- d.setStrokeStyle(h.xAxis.gridColor || "#cccccc");
- d.setLineCap("butt");
+ d.setStrokeStyle(h.xAxis.gridColor || '#cccccc');
+ d.setLineCap('butt');
d.setLineWidth(1 * h.pix);
x.forEach(function (t, e) {
if (e > 0) {
@@ -4559,10 +4559,10 @@ function drawXAxis(r, h, c, d) {
});
}
if (h.xAxis.disableGrid !== true) {
- d.setStrokeStyle(h.xAxis.gridColor || "#cccccc");
- d.setLineCap("butt");
+ d.setStrokeStyle(h.xAxis.gridColor || '#cccccc');
+ d.setLineCap('butt');
d.setLineWidth(1 * h.pix);
- if (h.xAxis.gridType == "dash") {
+ if (h.xAxis.gridType == 'dash') {
d.setLineDash([h.xAxis.dashLength * h.pix, h.xAxis.dashLength * h.pix]);
}
h.xAxis.gridEval = h.xAxis.gridEval || 1;
@@ -4591,7 +4591,7 @@ function drawXAxis(r, h, c, d) {
let i = r.length;
for (let t = 0; t < i; t++) {
if (t % e !== 0) {
- a.push("");
+ a.push('');
} else {
a.push(r[t]);
}
@@ -4602,7 +4602,7 @@ function drawXAxis(r, h, c, d) {
a.forEach(function (t, e) {
var a = h.xAxis.formatter ? h.xAxis.formatter(t, e, h) : t;
var i = -measureText(String(a), g, d) / 2;
- if (p == "center") {
+ if (p == 'center') {
i += f / 2;
}
var r = 0;
@@ -4610,7 +4610,7 @@ function drawXAxis(r, h, c, d) {
r = 6 * h.pix;
}
var o = h._scrollDistance_ || 0;
- var n = p == "center" ? x[e] + f / 2 : x[e];
+ var n = p == 'center' ? x[e] + f / 2 : x[e];
if (
n - Math.abs(o) >= h.area[3] - 1 &&
n - Math.abs(o) <= h.width - h.area[1] + 1
@@ -4624,7 +4624,7 @@ function drawXAxis(r, h, c, d) {
u +
h.xAxis.marginTop * h.pix +
((h.xAxis.lineHeight - h.xAxis.fontSize) * h.pix) / 2 +
- h.xAxis.fontSize * h.pix
+ h.xAxis.fontSize * h.pix,
);
d.closePath();
d.stroke();
@@ -4634,7 +4634,7 @@ function drawXAxis(r, h, c, d) {
a.forEach(function (t, e) {
var a = h.xAxis.formatter ? h.xAxis.formatter(t) : t;
var i = h._scrollDistance_ || 0;
- var r = p == "center" ? x[e] + f / 2 : x[e];
+ var r = p == 'center' ? x[e] + f / 2 : x[e];
if (
r - Math.abs(i) >= h.area[3] - 1 &&
r - Math.abs(i) <= h.width - h.area[1] + 1
@@ -4645,7 +4645,7 @@ function drawXAxis(r, h, c, d) {
d.setFillStyle(h.xAxis.fontColor || h.fontColor);
var o = measureText(String(a), g, d);
var n = x[e];
- if (p == "center") {
+ if (p == 'center') {
n = x[e] + f / 2;
}
var l = 0;
@@ -4686,7 +4686,7 @@ function drawXAxis(r, h, c, d) {
h.area[2] +
h.xAxis.marginTop * h.pix +
((h.xAxis.lineHeight - h.xAxis.titleFontSize) * h.pix) / 2 +
- (h.xAxis.titleFontSize + h.xAxis.titleOffsetY) * h.pix
+ (h.xAxis.titleFontSize + h.xAxis.titleOffsetY) * h.pix,
);
d.closePath();
d.stroke();
@@ -4711,7 +4711,7 @@ function drawYAxisGrid(c, e, d, a) {
n = e.chartData.xAxisData.eachSpacing;
let l = n * (o.length - 1);
if (
- e.type == "mount" &&
+ e.type == 'mount' &&
e.extra &&
e.extra.mount &&
e.extra.mount.widthRatio &&
@@ -4733,7 +4733,7 @@ function drawYAxisGrid(c, e, d, a) {
if (e._scrollDistance_ && e._scrollDistance_ !== 0) {
a.translate(e._scrollDistance_, 0);
}
- if (e.yAxis.gridType == "dash") {
+ if (e.yAxis.gridType == 'dash') {
a.setLineDash([e.yAxis.dashLength * e.pix, e.yAxis.dashLength * e.pix]);
}
a.setStrokeStyle(e.yAxis.gridColor);
@@ -4761,14 +4761,14 @@ function drawYAxis(e, h, a, c) {
if (
h.enableScroll == true &&
h.xAxis.scrollPosition &&
- h.xAxis.scrollPosition !== "left"
+ h.xAxis.scrollPosition !== 'left'
) {
c.fillRect(0, 0, o, t + 2 * h.pix);
}
if (
h.enableScroll == true &&
h.xAxis.scrollPosition &&
- h.xAxis.scrollPosition !== "right"
+ h.xAxis.scrollPosition !== 'right'
) {
c.fillRect(n, 0, h.width, t + 2 * h.pix);
}
@@ -4781,12 +4781,12 @@ function drawYAxis(e, h, a, c) {
for (let e = 0; e < h.yAxis.data.length; e++) {
let s = h.yAxis.data[e];
var p = [];
- if (s.type === "categories") {
+ if (s.type === 'categories') {
for (let t = 0; t <= s.categories.length; t++) {
p.push(
h.area[0] +
i / s.categories.length / 2 +
- (i / s.categories.length) * t
+ (i / s.categories.length) * t,
);
}
} else {
@@ -4798,92 +4798,92 @@ function drawYAxis(e, h, a, c) {
let t = h.chartData.yAxisData.rangesFormat[e];
let o = s.fontSize ? s.fontSize * h.pix : a.fontSize;
let n = h.chartData.yAxisData.yAxisWidth[e];
- let l = s.textAlign || "right";
+ let l = s.textAlign || 'right';
t.forEach(function (t, e) {
var a = p[e];
c.beginPath();
c.setFontSize(o);
c.setLineWidth(1 * h.pix);
- c.setStrokeStyle(s.axisLineColor || "#cccccc");
+ c.setStrokeStyle(s.axisLineColor || '#cccccc');
c.setFillStyle(s.fontColor || h.fontColor);
let i = 0;
let r = 4 * h.pix;
- if (n.position == "left") {
+ if (n.position == 'left') {
if (s.calibration == true) {
c.moveTo(d, a);
c.lineTo(d - 3 * h.pix, a);
r += 3 * h.pix;
}
switch (l) {
- case "left":
- c.setTextAlign("left");
+ case 'left':
+ c.setTextAlign('left');
i = d - n.width;
break;
- case "right":
- c.setTextAlign("right");
+ case 'right':
+ c.setTextAlign('right');
i = d - r;
break;
default:
- c.setTextAlign("center");
+ c.setTextAlign('center');
i = d - n.width / 2;
}
c.fillText(String(t), i, a + o / 2 - 3 * h.pix);
- } else if (n.position == "right") {
+ } else if (n.position == 'right') {
if (s.calibration == true) {
c.moveTo(x, a);
c.lineTo(x + 3 * h.pix, a);
r += 3 * h.pix;
}
switch (l) {
- case "left":
- c.setTextAlign("left");
+ case 'left':
+ c.setTextAlign('left');
i = x + r;
break;
- case "right":
- c.setTextAlign("right");
+ case 'right':
+ c.setTextAlign('right');
i = x + n.width;
break;
default:
- c.setTextAlign("center");
+ c.setTextAlign('center');
i = x + n.width / 2;
}
c.fillText(String(t), i, a + o / 2 - 3 * h.pix);
- } else if (n.position == "center") {
+ } else if (n.position == 'center') {
if (s.calibration == true) {
c.moveTo(f, a);
c.lineTo(f - 3 * h.pix, a);
r += 3 * h.pix;
}
switch (l) {
- case "left":
- c.setTextAlign("left");
+ case 'left':
+ c.setTextAlign('left');
i = f - n.width;
break;
- case "right":
- c.setTextAlign("right");
+ case 'right':
+ c.setTextAlign('right');
i = f - r;
break;
default:
- c.setTextAlign("center");
+ c.setTextAlign('center');
i = f - n.width / 2;
}
c.fillText(String(t), i, a + o / 2 - 3 * h.pix);
}
c.closePath();
c.stroke();
- c.setTextAlign("left");
+ c.setTextAlign('left');
});
if (s.axisLine !== false) {
c.beginPath();
- c.setStrokeStyle(s.axisLineColor || "#cccccc");
+ c.setStrokeStyle(s.axisLineColor || '#cccccc');
c.setLineWidth(1 * h.pix);
- if (n.position == "left") {
+ if (n.position == 'left') {
c.moveTo(d, h.height - h.area[2]);
c.lineTo(d, h.area[0]);
- } else if (n.position == "right") {
+ } else if (n.position == 'right') {
c.moveTo(x, h.height - h.area[2]);
c.lineTo(x, h.area[0]);
- } else if (n.position == "center") {
+ } else if (n.position == 'center') {
c.moveTo(f, h.height - h.area[2]);
c.lineTo(f, h.area[0]);
}
@@ -4895,29 +4895,29 @@ function drawYAxis(e, h, a, c) {
c.beginPath();
c.setFontSize(t);
c.setFillStyle(s.titleFontColor || h.fontColor);
- if (n.position == "left") {
+ if (n.position == 'left') {
c.fillText(
e,
d - measureText(e, t, c) / 2 + (s.titleOffsetX || 0),
- h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix
+ h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix,
);
- } else if (n.position == "right") {
+ } else if (n.position == 'right') {
c.fillText(
e,
x - measureText(e, t, c) / 2 + (s.titleOffsetX || 0),
- h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix
+ h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix,
);
- } else if (n.position == "center") {
+ } else if (n.position == 'center') {
c.fillText(
e,
f - measureText(e, t, c) / 2 + (s.titleOffsetX || 0),
- h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix
+ h.area[0] - (10 - (s.titleOffsetY || 0)) * h.pix,
);
}
c.closePath();
c.stroke();
}
- if (n.position == "left") {
+ if (n.position == 'left') {
d -= n.width + h.yAxis.padding * h.pix;
} else {
x += n.width + h.yAxis.padding * h.pix;
@@ -4955,12 +4955,12 @@ function drawLegend(t, l, y, s, e) {
a = h.heightArr[t];
let r = 0;
let o = 0;
- if (l.legend.position == "top" || l.legend.position == "bottom") {
+ if (l.legend.position == 'top' || l.legend.position == 'bottom') {
switch (l.legend.float) {
- case "left":
+ case 'left':
r = c.start.x + d;
break;
- case "right":
+ case 'right':
r = c.start.x + c.width - e;
break;
default:
@@ -4988,41 +4988,41 @@ function drawLegend(t, l, y, s, e) {
s.setStrokeStyle(t.show ? t.color : l.legend.hiddenColor);
s.setFillStyle(t.show ? t.color : l.legend.hiddenColor);
switch (t.legendShape) {
- case "line":
+ case 'line':
s.moveTo(r, o + 0.5 * g - 2 * l.pix);
s.fillRect(r, o + 0.5 * g - 2 * l.pix, 15 * l.pix, 4 * l.pix);
break;
- case "triangle":
+ case 'triangle':
s.moveTo(r + 7.5 * l.pix, o + 0.5 * g - 5 * l.pix);
s.lineTo(r + 2.5 * l.pix, o + 0.5 * g + 5 * l.pix);
s.lineTo(r + 12.5 * l.pix, o + 0.5 * g + 5 * l.pix);
s.lineTo(r + 7.5 * l.pix, o + 0.5 * g - 5 * l.pix);
break;
- case "diamond":
+ case 'diamond':
s.moveTo(r + 7.5 * l.pix, o + 0.5 * g - 5 * l.pix);
s.lineTo(r + 2.5 * l.pix, o + 0.5 * g);
s.lineTo(r + 7.5 * l.pix, o + 0.5 * g + 5 * l.pix);
s.lineTo(r + 12.5 * l.pix, o + 0.5 * g);
s.lineTo(r + 7.5 * l.pix, o + 0.5 * g - 5 * l.pix);
break;
- case "circle":
+ case 'circle':
s.moveTo(r + 7.5 * l.pix, o + 0.5 * g);
s.arc(r + 7.5 * l.pix, o + 0.5 * g, 5 * l.pix, 0, 2 * Math.PI);
break;
- case "rect":
+ case 'rect':
s.moveTo(r, o + 0.5 * g - 5 * l.pix);
s.fillRect(r, o + 0.5 * g - 5 * l.pix, 15 * l.pix, 10 * l.pix);
break;
- case "square":
+ case 'square':
s.moveTo(r + 5 * l.pix, o + 0.5 * g - 5 * l.pix);
s.fillRect(
r + 5 * l.pix,
o + 0.5 * g - 5 * l.pix,
10 * l.pix,
- 10 * l.pix
+ 10 * l.pix,
);
break;
- case "none":
+ case 'none':
break;
default:
s.moveTo(r, o + 0.5 * g - 5 * l.pix);
@@ -5040,7 +5040,7 @@ function drawLegend(t, l, y, s, e) {
s.fillText(n, r, o + e);
s.closePath();
s.stroke();
- if (l.legend.position == "top" || l.legend.position == "bottom") {
+ if (l.legend.position == 'top' || l.legend.position == 'bottom') {
r += measureText(n, x, s) + u;
t.area[2] = r;
} else {
@@ -5064,12 +5064,12 @@ function drawPieDataPoints(t, r, e, o) {
customRadius: 0,
border: false,
borderWidth: 2,
- borderColor: "#FFFFFF",
- centerColor: "#FFFFFF",
- linearType: "none",
+ borderColor: '#FFFFFF',
+ centerColor: '#FFFFFF',
+ linearType: 'none',
customColor: [],
},
- r.type == "pie" ? r.extra.pie : r.extra.ring
+ r.type == 'pie' ? r.extra.pie : r.extra.ring,
);
var l = {
x: r.area[3] + (r.width - r.area[1] - r.area[3]) / 2,
@@ -5085,7 +5085,7 @@ function drawPieDataPoints(t, r, e, o) {
e._pieTextMaxLength_,
(r.height - r.area[0] - r.area[2]) / 2 -
e.pieChartLinePadding -
- e.pieChartTextPadding
+ e.pieChartTextPadding,
);
i = i < 10 ? 10 : i;
if (n.customRadius > 0) {
@@ -5109,7 +5109,7 @@ function drawPieDataPoints(t, r, e, o) {
l.y,
t._radius_ + h,
t._start_,
- t._start_ + 2 * t._proportion_ * Math.PI
+ t._start_ + 2 * t._proportion_ * Math.PI,
);
o.closePath();
o.fill();
@@ -5117,10 +5117,10 @@ function drawPieDataPoints(t, r, e, o) {
}
o.beginPath();
o.setLineWidth(n.borderWidth * r.pix);
- o.lineJoin = "round";
+ o.lineJoin = 'round';
o.setStrokeStyle(n.borderColor);
var a = t.color;
- if (n.linearType == "custom") {
+ if (n.linearType == 'custom') {
var i;
if (o.createCircularGradient) {
i = o.createCircularGradient(l.x, l.y, t._radius_);
@@ -5138,7 +5138,7 @@ function drawPieDataPoints(t, r, e, o) {
l.y,
t._radius_,
t._start_,
- t._start_ + 2 * t._proportion_ * Math.PI
+ t._start_ + 2 * t._proportion_ * Math.PI,
);
o.closePath();
o.fill();
@@ -5146,9 +5146,9 @@ function drawPieDataPoints(t, r, e, o) {
o.stroke();
}
});
- if (r.type === "ring") {
+ if (r.type === 'ring') {
var s = i * 0.6;
- if (typeof n.ringWidth === "number" && n.ringWidth > 0) {
+ if (typeof n.ringWidth === 'number' && n.ringWidth > 0) {
s = Math.max(0, i - n.ringWidth * r.pix);
}
o.beginPath();
@@ -5161,28 +5161,28 @@ function drawPieDataPoints(t, r, e, o) {
if (r.dataLabel !== false && a === 1) {
drawPieText(t, r, e, o, i, l);
}
- if (a === 1 && r.type === "ring") {
+ if (a === 1 && r.type === 'ring') {
drawRingTitle(r, e, o, l);
}
- return { center: l, radius: i, series: t };
+ return {center: l, radius: i, series: t};
}
function drawRoseDataPoints(t, r, e, o) {
var a = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
var n = assign(
{},
{
- type: "area",
+ type: 'area',
activeOpacity: 0.5,
activeRadius: 10,
offsetAngle: 0,
labelWidth: 15,
border: false,
borderWidth: 2,
- borderColor: "#FFFFFF",
- linearType: "none",
+ borderColor: '#FFFFFF',
+ linearType: 'none',
customColor: [],
},
- r.extra.rose
+ r.extra.rose,
);
if (e.pieChartLinePadding == 0) {
e.pieChartLinePadding = n.activeRadius * r.pix;
@@ -5198,7 +5198,7 @@ function drawRoseDataPoints(t, r, e, o) {
e._pieTextMaxLength_,
(r.height - r.area[0] - r.area[2]) / 2 -
e.pieChartLinePadding -
- e.pieChartTextPadding
+ e.pieChartTextPadding,
);
i = i < 10 ? 10 : i;
var s = n.minRadius || i * 0.5;
@@ -5223,7 +5223,7 @@ function drawRoseDataPoints(t, r, e, o) {
l.y,
h + t._radius_,
t._start_,
- t._start_ + 2 * t._rose_proportion_ * Math.PI
+ t._start_ + 2 * t._rose_proportion_ * Math.PI,
);
o.closePath();
o.fill();
@@ -5231,10 +5231,10 @@ function drawRoseDataPoints(t, r, e, o) {
}
o.beginPath();
o.setLineWidth(n.borderWidth * r.pix);
- o.lineJoin = "round";
+ o.lineJoin = 'round';
o.setStrokeStyle(n.borderColor);
var a = t.color;
- if (n.linearType == "custom") {
+ if (n.linearType == 'custom') {
var i;
if (o.createCircularGradient) {
i = o.createCircularGradient(l.x, l.y, t._radius_);
@@ -5252,7 +5252,7 @@ function drawRoseDataPoints(t, r, e, o) {
l.y,
t._radius_,
t._start_,
- t._start_ + 2 * t._rose_proportion_ * Math.PI
+ t._start_ + 2 * t._rose_proportion_ * Math.PI,
);
o.closePath();
o.fill();
@@ -5263,7 +5263,7 @@ function drawRoseDataPoints(t, r, e, o) {
if (r.dataLabel !== false && a === 1) {
drawPieText(t, r, e, o, i, l);
}
- return { center: l, radius: i, series: t };
+ return {center: l, radius: i, series: t};
}
function drawArcbarDataPoints(a, i, t, r) {
var e = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
@@ -5272,15 +5272,15 @@ function drawArcbarDataPoints(a, i, t, r) {
{
startAngle: 0.75,
endAngle: 0.25,
- type: "default",
- direction: "cw",
- lineCap: "round",
+ type: 'default',
+ direction: 'cw',
+ lineCap: 'round',
width: 12,
gap: 2,
- linearType: "none",
+ linearType: 'none',
customColor: [],
},
- i.extra.arcbar
+ i.extra.arcbar,
);
a = getArcbarDataPoints(a, o, e);
var n;
@@ -5290,7 +5290,7 @@ function drawArcbarDataPoints(a, i, t, r) {
y: o.centerY ? o.centerY : i.height / 2,
};
} else {
- n = { x: i.width / 2, y: i.height / 2 };
+ n = {x: i.width / 2, y: i.height / 2};
}
var l;
if (o.radius) {
@@ -5305,17 +5305,17 @@ function drawArcbarDataPoints(a, i, t, r) {
for (let e = 0; e < a.length; e++) {
let t = a[e];
r.setLineWidth(o.width * i.pix);
- r.setStrokeStyle(o.backgroundColor || "#E9E9E9");
+ r.setStrokeStyle(o.backgroundColor || '#E9E9E9');
r.setLineCap(o.lineCap);
r.beginPath();
- if (o.type == "default") {
+ if (o.type == 'default') {
r.arc(
n.x,
n.y,
l - (o.width * i.pix + o.gap * i.pix) * e,
o.startAngle * Math.PI,
o.endAngle * Math.PI,
- o.direction == "ccw"
+ o.direction == 'ccw',
);
} else {
r.arc(
@@ -5324,12 +5324,12 @@ function drawArcbarDataPoints(a, i, t, r) {
l - (o.width * i.pix + o.gap * i.pix) * e,
0,
2 * Math.PI,
- o.direction == "ccw"
+ o.direction == 'ccw',
);
}
r.stroke();
var s = t.color;
- if (o.linearType == "custom") {
+ if (o.linearType == 'custom') {
var h = r.createLinearGradient(n.x - l, n.y, n.x + l, n.y);
h.addColorStop(1, hexToRgb(o.customColor[t.linearIndex], 1));
h.addColorStop(0, hexToRgb(t.color, 1));
@@ -5345,19 +5345,19 @@ function drawArcbarDataPoints(a, i, t, r) {
l - (o.width * i.pix + o.gap * i.pix) * e,
o.startAngle * Math.PI,
t._proportion_ * Math.PI,
- o.direction == "ccw"
+ o.direction == 'ccw',
);
r.stroke();
}
drawRingTitle(i, t, r, n);
- return { center: n, radius: l, series: a };
+ return {center: n, radius: l, series: a};
}
function drawGaugeDataPoints(n, h, c, t, d) {
var x = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1;
var f = assign(
{},
{
- type: "default",
+ type: 'default',
startAngle: 0.75,
endAngle: 0.25,
width: 15,
@@ -5366,13 +5366,13 @@ function drawGaugeDataPoints(n, h, c, t, d) {
fixRadius: 0,
splitNumber: 10,
width: 15,
- color: "#FFFFFF",
+ color: '#FFFFFF',
childNumber: 5,
childWidth: 5,
},
- pointer: { width: 15, color: "auto" },
+ pointer: {width: 15, color: 'auto'},
},
- c.extra.gauge
+ c.extra.gauge,
);
if (f.oldAngle == undefined) {
f.oldAngle = f.startAngle;
@@ -5381,25 +5381,25 @@ function drawGaugeDataPoints(n, h, c, t, d) {
f.oldData = 0;
}
n = getGaugeAxisPoints(n, f.startAngle, f.endAngle);
- var p = { x: c.width / 2, y: c.height / 2 };
+ var p = {x: c.width / 2, y: c.height / 2};
var u = Math.min(p.x, p.y);
u -= 5 * c.pix;
u -= f.width / 2;
u = u < 10 ? 10 : u;
var g = u - f.width;
var y = 0;
- if (f.type == "progress") {
+ if (f.type == 'progress') {
var v = u - f.width * 3;
d.beginPath();
let t = d.createLinearGradient(p.x, p.y - v, p.x, p.y + v);
- t.addColorStop("0", hexToRgb(h[0].color, 0.3));
- t.addColorStop("1.0", hexToRgb("#FFFFFF", 0.1));
+ t.addColorStop('0', hexToRgb(h[0].color, 0.3));
+ t.addColorStop('1.0', hexToRgb('#FFFFFF', 0.1));
d.setFillStyle(t);
d.arc(p.x, p.y, v, 0, 2 * Math.PI, false);
d.fill();
d.setLineWidth(f.width);
d.setStrokeStyle(hexToRgb(h[0].color, 0.3));
- d.setLineCap("round");
+ d.setLineCap('round');
d.beginPath();
d.arc(p.x, p.y, g, f.startAngle * Math.PI, f.endAngle * Math.PI, false);
d.stroke();
@@ -5434,7 +5434,7 @@ function drawGaugeDataPoints(n, h, c, t, d) {
h = getGaugeArcbarDataPoints(h, f, x);
d.setLineWidth(f.width);
d.setStrokeStyle(h[0].color);
- d.setLineCap("round");
+ d.setLineCap('round');
d.beginPath();
d.arc(
p.x,
@@ -5442,7 +5442,7 @@ function drawGaugeDataPoints(n, h, c, t, d) {
g,
f.startAngle * Math.PI,
h[0]._proportion_ * Math.PI,
- false
+ false,
);
d.stroke();
let l = u - f.width * 2.5;
@@ -5452,9 +5452,9 @@ function drawGaugeDataPoints(n, h, c, t, d) {
d.beginPath();
d.setLineWidth(f.width / 3);
let s = d.createLinearGradient(0, -l * 0.6, 0, l * 0.6);
- s.addColorStop("0", hexToRgb("#FFFFFF", 0));
- s.addColorStop("0.5", hexToRgb(h[0].color, 1));
- s.addColorStop("1.0", hexToRgb("#FFFFFF", 0));
+ s.addColorStop('0', hexToRgb('#FFFFFF', 0));
+ s.addColorStop('0.5', hexToRgb(h[0].color, 1));
+ s.addColorStop('1.0', hexToRgb('#FFFFFF', 0));
d.setStrokeStyle(s);
d.arc(0, 0, l, 0.85 * Math.PI, 1.15 * Math.PI, false);
d.stroke();
@@ -5471,7 +5471,7 @@ function drawGaugeDataPoints(n, h, c, t, d) {
d.restore();
} else {
d.setLineWidth(f.width);
- d.setLineCap("butt");
+ d.setLineCap('butt');
for (let e = 0; e < n.length; e++) {
let t = n[e];
d.beginPath();
@@ -5482,7 +5482,7 @@ function drawGaugeDataPoints(n, h, c, t, d) {
u,
t._startAngle_ * Math.PI,
t._endAngle_ * Math.PI,
- false
+ false,
);
d.stroke();
}
@@ -5542,7 +5542,7 @@ function drawGaugeDataPoints(n, h, c, t, d) {
d.closePath();
d.fill();
d.beginPath();
- d.setFillStyle("#FFFFFF");
+ d.setFillStyle('#FFFFFF');
d.arc(0, 0, f.pointer.width / 6, 0, 2 * Math.PI, false);
d.fill();
d.restore();
@@ -5552,35 +5552,35 @@ function drawGaugeDataPoints(n, h, c, t, d) {
}
}
drawRingTitle(c, t, d, p);
- if (x === 1 && c.type === "gauge") {
+ if (x === 1 && c.type === 'gauge') {
c.extra.gauge.oldAngle = h[0]._proportion_;
c.extra.gauge.oldData = h[0].data;
}
- return { center: p, radius: u, innerRadius: g, categories: n, totalAngle: y };
+ return {center: p, radius: u, innerRadius: g, categories: n, totalAngle: y};
}
function drawRadarDataPoints(o, n, i, l) {
var t = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
var s = assign(
{},
{
- gridColor: "#cccccc",
- gridType: "radar",
+ gridColor: '#cccccc',
+ gridType: 'radar',
gridEval: 1,
axisLabel: false,
axisLabelTofix: 0,
labelShow: true,
- labelColor: "#666666",
+ labelColor: '#666666',
labelPointShow: false,
labelPointRadius: 3,
- labelPointColor: "#cccccc",
+ labelPointColor: '#cccccc',
opacity: 0.2,
gridCount: 3,
border: false,
borderWidth: 2,
- linearType: "none",
+ linearType: 'none',
customColor: [],
},
- n.extra.radar
+ n.extra.radar,
);
var a = getRadarCoordinateSeries(n.categories.length);
var h = {
@@ -5593,7 +5593,7 @@ function drawRadarDataPoints(o, n, i, l) {
r -
(getMaxTextListLength(n.categories, i.fontSize, l) +
i.radarLabelTextMargin),
- d - i.radarLabelTextMargin
+ d - i.radarLabelTextMargin,
);
c -= i.radarLabelTextMargin * n.pix;
c = c < 10 ? 10 : c;
@@ -5615,12 +5615,12 @@ function drawRadarDataPoints(o, n, i, l) {
l.beginPath();
l.setLineWidth(1 * n.pix);
l.setStrokeStyle(s.gridColor);
- if (s.gridType == "radar") {
+ if (s.gridType == 'radar') {
a.forEach(function (t, e) {
var a = convertCoordinateOrigin(
(c / s.gridCount) * i * Math.cos(t),
(c / s.gridCount) * i * Math.sin(t),
- h
+ h,
);
if (e === 0) {
r = a;
@@ -5634,7 +5634,7 @@ function drawRadarDataPoints(o, n, i, l) {
var e = convertCoordinateOrigin(
(c / s.gridCount) * i * Math.cos(1.5),
(c / s.gridCount) * i * Math.sin(1.5),
- h
+ h,
);
l.arc(h.x, h.y, h.y - e.y, 0, 2 * Math.PI, false);
}
@@ -5651,7 +5651,7 @@ function drawRadarDataPoints(o, n, i, l) {
l.setLineWidth(s.borderWidth * n.pix);
l.setStrokeStyle(t.color);
var a = hexToRgb(t.color, s.opacity);
- if (s.linearType == "custom") {
+ if (s.linearType == 'custom') {
var i;
if (l.createCircularGradient) {
i = l.createCircularGradient(h.x, h.y, c);
@@ -5689,7 +5689,7 @@ function drawRadarDataPoints(o, n, i, l) {
const g = n.fontSize * n.pix;
l.setFontSize(g);
l.setFillStyle(n.fontColor);
- l.setTextAlign("left");
+ l.setTextAlign('left');
for (var e = 0; e < s.gridCount + 1; e++) {
let t = (e * p) / s.gridCount;
t = t.toFixed(s.axisLabelTofix);
@@ -5706,18 +5706,18 @@ function drawRadarDataPoints(o, n, i, l) {
t.data.forEach(function (t, e) {
if (Math.abs(t.position.x - h.x) < 2) {
if (t.position.y < h.y) {
- l.setTextAlign("center");
+ l.setTextAlign('center');
l.fillText(t.value, t.position.x, t.position.y - 4);
} else {
- l.setTextAlign("center");
+ l.setTextAlign('center');
l.fillText(t.value, t.position.x, t.position.y + a + 2);
}
} else {
if (t.position.x < h.x) {
- l.setTextAlign("right");
+ l.setTextAlign('right');
l.fillText(t.value, t.position.x - 4, t.position.y + a / 2 - 2);
} else {
- l.setTextAlign("left");
+ l.setTextAlign('left');
l.fillText(t.value, t.position.x + 4, t.position.y + a / 2 - 2);
}
}
@@ -5725,9 +5725,9 @@ function drawRadarDataPoints(o, n, i, l) {
l.closePath();
l.stroke();
});
- l.setTextAlign("left");
+ l.setTextAlign('left');
}
- return { center: h, radius: c, angleList: a };
+ return {center: h, radius: c, angleList: a};
}
function lonlat2mercator(t, e) {
var a = Array(2);
@@ -5766,7 +5766,7 @@ function getBoundingBox(t) {
for (var n = 0; n < a.length; n++) {
var l = a[n][0];
var s = a[n][1];
- var h = { x: l, y: s };
+ var h = {x: l, y: s};
e.xMin = e.xMin < h.x ? e.xMin : h.x;
e.xMax = e.xMax > h.x ? e.xMax : h.x;
e.yMin = e.yMin < h.y ? e.yMin : h.y;
@@ -5777,10 +5777,10 @@ function getBoundingBox(t) {
return e;
}
function coordinateToPoint(t, e, a, i, r, o) {
- return { x: (e - a.xMin) * i + r, y: (a.yMax - t) * i + o };
+ return {x: (e - a.xMin) * i + r, y: (a.yMax - t) * i + o};
}
function pointToCoordinate(t, e, a, i, r, o) {
- return { x: (e - r) / i + a.xMin, y: a.yMax - (t - o) / i };
+ return {x: (e - r) / i + a.xMin, y: a.yMax - (t - o) / i};
}
function isRayIntersectsSegment(t, e, a) {
if (e[1] == a[1]) {
@@ -5841,13 +5841,13 @@ function drawMapDataPoints(a, i, d, r) {
mercator: false,
borderWidth: 1,
active: true,
- borderColor: "#666666",
+ borderColor: '#666666',
fillOpacity: 0.6,
- activeBorderColor: "#f04864",
- activeFillColor: "#facc14",
+ activeBorderColor: '#f04864',
+ activeFillColor: '#facc14',
activeFillOpacity: 1,
},
- i.extra.map
+ i.extra.map,
);
var t, n;
var l = a;
@@ -5910,7 +5910,7 @@ function drawMapDataPoints(a, i, d, r) {
if (o.mercator) {
b = lonlat2mercator(
l[c].properties.centroid[0],
- l[c].properties.centroid[1]
+ l[c].properties.centroid[1],
);
}
n = coordinateToPoint(b[1], b[0], s, h, g, y);
@@ -5956,7 +5956,7 @@ function normalInt(t, e, a) {
return t + e;
}) /
a) *
- (e - t)
+ (e - t),
) + t
);
}
@@ -5987,7 +5987,7 @@ function collisionNew(e, a, i, r) {
function getWordCloudPoint(c, t, d) {
let x = c.series;
switch (t) {
- case "normal":
+ case 'normal':
for (let l = 0; l < x.length; l++) {
let t = x[l].name;
let e = x[l].textSize * c.pix;
@@ -6015,7 +6015,7 @@ function getWordCloudPoint(c, t, d) {
x[l].area = o;
}
break;
- case "vertical":
+ case 'vertical':
function f() {
if (Math.random() > 0.7) {
return true;
@@ -6086,7 +6086,7 @@ function getWordCloudPoint(c, t, d) {
}
function drawWordCloudDataPoints(t, r, e, o) {
let n = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 1;
- let a = assign({}, { type: "normal", autoColors: true }, r.extra.word);
+ let a = assign({}, {type: 'normal', autoColors: true}, r.extra.word);
if (!r.chartData.wordCloudData) {
r.chartData.wordCloudData = getWordCloudPoint(r, a.type, o);
}
@@ -6116,20 +6116,20 @@ function drawWordCloudDataPoints(t, r, e, o) {
o.strokeText(
t,
(l[i].areav[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].areav[1] + 5 + e - r.height / 2) * n
+ (l[i].areav[1] + 5 + e - r.height / 2) * n,
);
} else {
o.fillText(
t,
(l[i].areav[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].areav[1] + 5 + e - r.height / 2) * n
+ (l[i].areav[1] + 5 + e - r.height / 2) * n,
);
}
} else {
o.fillText(
t,
(l[i].areav[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].areav[1] + 5 + e - r.height / 2) * n
+ (l[i].areav[1] + 5 + e - r.height / 2) * n,
);
}
}
@@ -6140,20 +6140,20 @@ function drawWordCloudDataPoints(t, r, e, o) {
o.strokeText(
t,
(l[i].area[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].area[1] + 5 + e - r.height / 2) * n
+ (l[i].area[1] + 5 + e - r.height / 2) * n,
);
} else {
o.fillText(
t,
(l[i].area[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].area[1] + 5 + e - r.height / 2) * n
+ (l[i].area[1] + 5 + e - r.height / 2) * n,
);
}
} else {
o.fillText(
t,
(l[i].area[0] + 5 - r.width / 2) * n - (a * (1 - n)) / 2,
- (l[i].area[1] + 5 + e - r.height / 2) * n
+ (l[i].area[1] + 5 + e - r.height / 2) * n,
);
}
}
@@ -6168,19 +6168,19 @@ function drawFunnelDataPoints(t, e, c, a) {
let i = assign(
{},
{
- type: "funnel",
+ type: 'funnel',
activeWidth: 10,
activeOpacity: 0.3,
border: false,
borderWidth: 2,
- borderColor: "#FFFFFF",
+ borderColor: '#FFFFFF',
fillOpacity: 1,
minSize: 0,
- labelAlign: "right",
- linearType: "none",
+ labelAlign: 'right',
+ linearType: 'none',
customColor: [],
},
- e.extra.funnel
+ e.extra.funnel,
);
let r = (e.height - e.area[0] - e.area[2]) / t.length;
let o = {
@@ -6190,13 +6190,13 @@ function drawFunnelDataPoints(t, e, c, a) {
let n = i.activeWidth * e.pix;
let x = Math.min(
(e.width - e.area[1] - e.area[3]) / 2 - n,
- (e.height - e.area[0] - e.area[2]) / 2 - n
+ (e.height - e.area[0] - e.area[2]) / 2 - n,
);
let l = getFunnelDataPoints(t, x, i, r, d);
a.save();
a.translate(o.x, o.y);
i.customColor = fillCustomColor(i.linearType, i.customColor, t, c);
- if (i.type == "pyramid") {
+ if (i.type == 'pyramid') {
for (let t = 0; t < l.length; t++) {
if (t == l.length - 1) {
if (e.tooltip) {
@@ -6222,12 +6222,12 @@ function drawFunnelDataPoints(t, e, c, a) {
a.setLineWidth(i.borderWidth * e.pix);
a.setStrokeStyle(i.borderColor);
var s = hexToRgb(l[t].color, i.fillOpacity);
- if (i.linearType == "custom") {
+ if (i.linearType == 'custom') {
var h = a.createLinearGradient(l[t].radius, -r, -l[t].radius, -r);
h.addColorStop(0, hexToRgb(l[t].color, i.fillOpacity));
h.addColorStop(
0.5,
- hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity)
+ hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity),
);
h.addColorStop(1, hexToRgb(l[t].color, i.fillOpacity));
s = h;
@@ -6267,12 +6267,12 @@ function drawFunnelDataPoints(t, e, c, a) {
a.setLineWidth(i.borderWidth * e.pix);
a.setStrokeStyle(i.borderColor);
var s = hexToRgb(l[t].color, i.fillOpacity);
- if (i.linearType == "custom") {
+ if (i.linearType == 'custom') {
var h = a.createLinearGradient(l[t].radius, -r, -l[t].radius, -r);
h.addColorStop(0, hexToRgb(l[t].color, i.fillOpacity));
h.addColorStop(
0.5,
- hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity)
+ hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity),
);
h.addColorStop(1, hexToRgb(l[t].color, i.fillOpacity));
s = h;
@@ -6314,12 +6314,12 @@ function drawFunnelDataPoints(t, e, c, a) {
a.setLineWidth(i.borderWidth * e.pix);
a.setStrokeStyle(i.borderColor);
var s = hexToRgb(l[t].color, i.fillOpacity);
- if (i.linearType == "custom") {
+ if (i.linearType == 'custom') {
var h = a.createLinearGradient(l[t].radius, -r, -l[t].radius, -r);
h.addColorStop(0, hexToRgb(l[t].color, i.fillOpacity));
h.addColorStop(
0.5,
- hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity)
+ hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity),
);
h.addColorStop(1, hexToRgb(l[t].color, i.fillOpacity));
s = h;
@@ -6361,12 +6361,12 @@ function drawFunnelDataPoints(t, e, c, a) {
a.setLineWidth(i.borderWidth * e.pix);
a.setStrokeStyle(i.borderColor);
var s = hexToRgb(l[t].color, i.fillOpacity);
- if (i.linearType == "custom") {
+ if (i.linearType == 'custom') {
var h = a.createLinearGradient(l[t].radius, -r, -l[t].radius, -r);
h.addColorStop(0, hexToRgb(l[t].color, i.fillOpacity));
h.addColorStop(
0.5,
- hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity)
+ hexToRgb(i.customColor[l[t].linearIndex], i.fillOpacity),
);
h.addColorStop(1, hexToRgb(l[t].color, i.fillOpacity));
s = h;
@@ -6394,7 +6394,7 @@ function drawFunnelDataPoints(t, e, c, a) {
if (d === 1) {
drawFunnelCenterText(l, e, a, r, i.labelAlign, n, o);
}
- return { center: o, radius: x, series: l };
+ return {center: o, radius: x, series: l};
}
function drawFunnelText(l, s, h, c, d, x, f) {
for (let n = 0; n < l.length; n++) {
@@ -6405,9 +6405,9 @@ function drawFunnelText(l, s, h, c, d, x, f) {
let e, a, i, r;
let o = t.formatter
? t.formatter(t, n, l, s)
- : util.toFixed(t._proportion_ * 100) + "%";
+ : util.toFixed(t._proportion_ * 100) + '%';
o = t.labelText ? t.labelText : o;
- if (d == "right") {
+ if (d == 'right') {
if (n == l.length - 1) {
e = (t.funnelArea[2] + f.x) / 2;
} else {
@@ -6437,7 +6437,7 @@ function drawFunnelText(l, s, h, c, d, x, f) {
h.stroke();
h.closePath();
}
- if (d == "left") {
+ if (d == 'left') {
if (n == l.length - 1) {
e = (t.funnelArea[0] + f.x) / 2;
} else {
@@ -6478,11 +6478,11 @@ function drawFunnelCenterText(r, o, n, l, t, e, s) {
a = t.centerTextSize * o.pix || o.fontSize * o.pix;
n.beginPath();
n.setFontSize(a);
- n.setFillStyle(t.centerTextColor || "#FFFFFF");
+ n.setFillStyle(t.centerTextColor || '#FFFFFF');
n.fillText(
t.centerText,
s.x - measureText(t.centerText, a, n) / 2,
- e + a / 2 - 2
+ e + a / 2 - 2,
);
n.closePath();
n.stroke();
@@ -6516,18 +6516,18 @@ var Timing = {
};
function Animation(r) {
this.isStop = false;
- r.duration = typeof r.duration === "undefined" ? 1e3 : r.duration;
- r.timing = r.timing || "easeInOut";
+ r.duration = typeof r.duration === 'undefined' ? 1e3 : r.duration;
+ r.timing = r.timing || 'easeInOut';
var o = 17;
function t() {
- if (typeof setTimeout !== "undefined") {
+ if (typeof setTimeout !== 'undefined') {
return function (e, t) {
setTimeout(function () {
var t = +new Date();
e(t);
}, t);
};
- } else if (typeof requestAnimationFrame !== "undefined") {
+ } else if (typeof requestAnimationFrame !== 'undefined') {
return requestAnimationFrame;
} else {
return function (t) {
@@ -6567,16 +6567,16 @@ function drawCharts(t, l, n, s) {
var h = this;
var c = l.series;
if (
- t === "pie" ||
- t === "ring" ||
- t === "mount" ||
- t === "rose" ||
- t === "funnel"
+ t === 'pie' ||
+ t === 'ring' ||
+ t === 'mount' ||
+ t === 'rose' ||
+ t === 'funnel'
) {
c = fixPieSeries(c, l, n);
}
var d = l.categories;
- if (t === "mount") {
+ if (t === 'mount') {
d = [];
for (let t = 0; t < c.length; t++) {
if (c[t].show !== false) d.push(c[t].name);
@@ -6587,7 +6587,7 @@ function drawCharts(t, l, n, s) {
var e = l.animation ? l.duration : 0;
h.animationInstance && h.animationInstance.stop();
var x = null;
- if (t == "candle") {
+ if (t == 'candle') {
let t = assign({}, l.extra.candle.average);
if (t.show) {
x = calCandleMA(t.day, t.name, t.color, c[0].data);
@@ -6610,31 +6610,31 @@ function drawCharts(t, l, n, s) {
r = a.area.wholeHeight,
o = a.area.wholeWidth;
switch (l.legend.position) {
- case "top":
+ case 'top':
l.area[0] += r;
break;
- case "bottom":
+ case 'bottom':
l.area[2] += r;
break;
- case "left":
+ case 'left':
l.area[3] += o;
break;
- case "right":
+ case 'right':
l.area[1] += o;
break;
}
let f = {},
i = 0;
if (
- l.type === "line" ||
- l.type === "column" ||
- l.type === "mount" ||
- l.type === "area" ||
- l.type === "mix" ||
- l.type === "candle" ||
- l.type === "scatter" ||
- l.type === "bubble" ||
- l.type === "bar"
+ l.type === 'line' ||
+ l.type === 'column' ||
+ l.type === 'mount' ||
+ l.type === 'area' ||
+ l.type === 'mix' ||
+ l.type === 'candle' ||
+ l.type === 'scatter' ||
+ l.type === 'bubble' ||
+ l.type === 'bar'
) {
f = calYAxisData(c, l, n, s);
i = f.yAxisWidth;
@@ -6645,7 +6645,7 @@ function drawCharts(t, l, n, s) {
e,
l.yAxis.data[t].titleFontSize
? l.yAxis.data[t].titleFontSize * l.pix
- : n.fontSize
+ : n.fontSize,
);
}
l.area[0] += e;
@@ -6653,14 +6653,14 @@ function drawCharts(t, l, n, s) {
let e = 0,
a = 0;
for (let t = 0; t < i.length; t++) {
- if (i[t].position == "left") {
+ if (i[t].position == 'left') {
if (a > 0) {
l.area[3] += i[t].width + l.yAxis.padding * l.pix;
} else {
l.area[3] += i[t].width;
}
a += 1;
- } else if (i[t].position == "right") {
+ } else if (i[t].position == 'right') {
if (e > 0) {
l.area[1] += i[t].width + l.yAxis.padding * l.pix;
} else {
@@ -6676,9 +6676,9 @@ function drawCharts(t, l, n, s) {
if (
l.categories &&
l.categories.length &&
- l.type !== "radar" &&
- l.type !== "gauge" &&
- l.type !== "bar"
+ l.type !== 'radar' &&
+ l.type !== 'gauge' &&
+ l.type !== 'bar'
) {
l.chartData.xAxisData = getXAxisPoints(l.categories, l, n);
let t = calCategoriesData(
@@ -6686,7 +6686,7 @@ function drawCharts(t, l, n, s) {
l,
n,
l.chartData.xAxisData.eachSpacing,
- s
+ s,
),
e = t.xAxisHeight,
a = t.angle;
@@ -6696,11 +6696,11 @@ function drawCharts(t, l, n, s) {
l.chartData.categoriesData = t;
} else {
if (
- l.type === "line" ||
- l.type === "area" ||
- l.type === "scatter" ||
- l.type === "bubble" ||
- l.type === "bar"
+ l.type === 'line' ||
+ l.type === 'area' ||
+ l.type === 'scatter' ||
+ l.type === 'bubble' ||
+ l.type === 'bar'
) {
l.chartData.xAxisData = calXAxisData(c, l, n, s);
d = l.chartData.xAxisData.rangesFormat;
@@ -6712,12 +6712,12 @@ function drawCharts(t, l, n, s) {
l.area[2] += e;
l.chartData.categoriesData = t;
} else {
- l.chartData.xAxisData = { xAxisPoints: [] };
+ l.chartData.xAxisData = {xAxisPoints: []};
}
}
if (
l.enableScroll &&
- l.xAxis.scrollAlign == "right" &&
+ l.xAxis.scrollAlign == 'right' &&
l._scrollDistance_ === undefined
) {
let t = 0,
@@ -6734,12 +6734,12 @@ function drawCharts(t, l, n, s) {
h.scrollOption.lastMoveTime = 0;
l._scrollDistance_ = t;
}
- if (t === "pie" || t === "ring" || t === "rose") {
+ if (t === 'pie' || t === 'ring' || t === 'rose') {
n._pieTextMaxLength_ =
l.dataLabel === false ? 0 : getPieTextMaxLength(x, n, s, l);
}
switch (t) {
- case "word":
+ case 'word':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6752,18 +6752,18 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "map":
+ case 'map':
s.clearRect(0, 0, l.width, l.height);
drawMapDataPoints(c, l, n, s);
setTimeout(() => {
- this.uevent.trigger("renderComplete");
+ this.uevent.trigger('renderComplete');
}, 50);
break;
- case "funnel":
+ case 'funnel':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6778,11 +6778,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "line":
+ case 'line':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6809,11 +6809,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "scatter":
+ case 'scatter':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6840,11 +6840,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "bubble":
+ case 'bubble':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6871,11 +6871,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "mix":
+ case 'mix':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6902,11 +6902,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "column":
+ case 'column':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6933,11 +6933,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "mount":
+ case 'mount':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6964,11 +6964,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "bar":
+ case 'bar':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -6995,11 +6995,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "area":
+ case 'area':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7026,11 +7026,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "ring":
+ case 'ring':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7045,11 +7045,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "pie":
+ case 'pie':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7064,11 +7064,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "rose":
+ case 'rose':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7083,11 +7083,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "radar":
+ case 'radar':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7102,11 +7102,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "arcbar":
+ case 'arcbar':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7119,11 +7119,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "gauge":
+ case 'gauge':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7136,11 +7136,11 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
- case "candle":
+ case 'candle':
this.animationInstance = new Animation({
timing: l.timing,
duration: e,
@@ -7171,7 +7171,7 @@ function drawCharts(t, l, n, s) {
drawCanvas(l, s);
},
onAnimationFinish: function t() {
- h.uevent.trigger("renderComplete");
+ h.uevent.trigger('renderComplete');
},
});
break;
@@ -7205,8 +7205,8 @@ var uCharts = function t(a) {
a.pix = a.pixelRatio ? a.pixelRatio : 1;
a.fontSize = a.fontSize ? a.fontSize : 13;
a.fontColor = a.fontColor ? a.fontColor : config.fontColor;
- if (a.background == "" || a.background == "none") {
- a.background = "#FFFFFF";
+ if (a.background == '' || a.background == 'none') {
+ a.background = '#FFFFFF';
}
a.title = assign({}, a.title);
a.subtitle = assign({}, a.subtitle);
@@ -7218,15 +7218,15 @@ var uCharts = function t(a) {
showTitle: false,
disabled: false,
disableGrid: false,
- gridSet: "number",
+ gridSet: 'number',
splitNumber: 5,
- gridType: "solid",
+ gridType: 'solid',
dashLength: 4 * a.pix,
- gridColor: "#cccccc",
+ gridColor: '#cccccc',
padding: 10,
- fontColor: "#666666",
+ fontColor: '#666666',
},
- a.yAxis
+ a.yAxis,
);
a.xAxis = assign(
{},
@@ -7237,32 +7237,32 @@ var uCharts = function t(a) {
disableGrid: false,
splitNumber: 5,
calibration: false,
- fontColor: "#666666",
+ fontColor: '#666666',
fontSize: 13,
lineHeight: 20,
marginTop: 0,
- gridType: "solid",
+ gridType: 'solid',
dashLength: 4,
- scrollAlign: "left",
- boundaryGap: "center",
+ scrollAlign: 'left',
+ boundaryGap: 'center',
axisLine: true,
- axisLineColor: "#cccccc",
+ axisLineColor: '#cccccc',
titleFontSize: 13,
titleOffsetY: 0,
titleOffsetX: 0,
- titleFontColor: "#666666",
+ titleFontColor: '#666666',
},
- a.xAxis
+ a.xAxis,
);
a.xAxis.scrollPosition = a.xAxis.scrollAlign;
a.legend = assign(
{},
{
show: true,
- position: "bottom",
- float: "center",
- backgroundColor: "rgba(0,0,0,0)",
- borderColor: "rgba(0,0,0,0)",
+ position: 'bottom',
+ float: 'center',
+ backgroundColor: 'rgba(0,0,0,0)',
+ borderColor: 'rgba(0,0,0,0)',
borderWidth: 0,
padding: 5,
margin: 5,
@@ -7271,30 +7271,30 @@ var uCharts = function t(a) {
lineHeight: a.fontSize,
fontColor: a.fontColor,
formatter: {},
- hiddenColor: "#CECECE",
+ hiddenColor: '#CECECE',
},
- a.legend
+ a.legend,
);
- a.extra = assign({ tooltip: { legendShape: "auto" } }, a.extra);
+ a.extra = assign({tooltip: {legendShape: 'auto'}}, a.extra);
a.rotate = a.rotate ? true : false;
a.animation = a.animation ? true : false;
a.rotate = a.rotate ? true : false;
a.canvas2d = a.canvas2d ? true : false;
let e = assign({}, config);
e.color = a.color ? a.color : e.color;
- if (a.type == "pie") {
+ if (a.type == 'pie') {
e.pieChartLinePadding =
a.dataLabel === false
? 0
: a.extra.pie.labelWidth * a.pix || e.pieChartLinePadding * a.pix;
}
- if (a.type == "ring") {
+ if (a.type == 'ring') {
e.pieChartLinePadding =
a.dataLabel === false
? 0
: a.extra.ring.labelWidth * a.pix || e.pieChartLinePadding * a.pix;
}
- if (a.type == "rose") {
+ if (a.type == 'rose') {
e.pieChartLinePadding =
a.dataLabel === false
? 0
@@ -7316,7 +7316,7 @@ var uCharts = function t(a) {
e.subtitleFontSize = config.subtitleFontSize * a.pix;
if (!a.context) {
throw new Error(
- "[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!"
+ '[uCharts] 未获取到context!注意:v2.0版本后,需要自行获取canvas的绘图上下文并传入opts.context!',
);
}
this.context = a.context;
@@ -7331,7 +7331,7 @@ var uCharts = function t(a) {
return (this.lineCap = t);
};
this.context.setFontSize = function (t) {
- return (this.font = t + "px sans-serif");
+ return (this.font = t + 'px sans-serif');
};
this.context.setFillStyle = function (t) {
return (this.fillStyle = t);
@@ -7370,12 +7370,12 @@ uCharts.prototype.updateData = function () {
arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
this.opts = assign({}, this.opts, t);
this.opts.updateData = true;
- let c = t.scrollPosition || "current";
+ let c = t.scrollPosition || 'current';
switch (c) {
- case "current":
+ case 'current':
this.opts._scrollDistance_ = this.scrollOption.currentOffset;
break;
- case "left":
+ case 'left':
this.opts._scrollDistance_ = 0;
this.scrollOption = {
currentOffset: 0,
@@ -7384,12 +7384,12 @@ uCharts.prototype.updateData = function () {
lastMoveTime: 0,
};
break;
- case "right":
+ case 'right':
let t = calYAxisData(
this.opts.series,
this.opts,
this.config,
- this.context
+ this.context,
),
e = t.yAxisWidth;
this.config.yAxisWidth = e;
@@ -7419,13 +7419,13 @@ uCharts.prototype.zoom = function () {
? arguments[0]
: this.opts.xAxis.itemCount;
if (this.opts.enableScroll !== true) {
- console.log("[uCharts] 请启用滚动条后使用");
+ console.log('[uCharts] 请启用滚动条后使用');
return;
}
let e =
Math.round(
Math.abs(this.scrollOption.currentOffset) /
- this.opts.chartData.eachSpacing
+ this.opts.chartData.eachSpacing,
) + Math.round(this.opts.xAxis.itemCount / 2);
this.opts.animation = false;
this.opts.xAxis.itemCount = t.itemCount;
@@ -7460,7 +7460,7 @@ uCharts.prototype.zoom = function () {
};
uCharts.prototype.dobuleZoom = function (t) {
if (this.opts.enableScroll !== true) {
- console.log("[uCharts] 请启用滚动条后使用");
+ console.log('[uCharts] 请启用滚动条后使用');
return;
}
const a = t.changedTouches;
@@ -7475,10 +7475,10 @@ uCharts.prototype.dobuleZoom = function (t) {
const c = Math.abs(i[0].x - i[1].x);
if (!this.scrollOption.moveCount) {
let t = {
- changedTouches: [{ x: a[0].x, y: this.opts.area[0] / this.opts.pix + 2 }],
+ changedTouches: [{x: a[0].x, y: this.opts.area[0] / this.opts.pix + 2}],
};
let e = {
- changedTouches: [{ x: a[1].x, y: this.opts.area[0] / this.opts.pix + 2 }],
+ changedTouches: [{x: a[1].x, y: this.opts.area[0] / this.opts.pix + 2}],
};
if (this.opts.rotate) {
t = {
@@ -7559,51 +7559,51 @@ uCharts.prototype.getCurrentDataIndex = function (e) {
}
if (a) {
let t = getTouches(a, this.opts, e);
- if (this.opts.type === "pie" || this.opts.type === "ring") {
+ if (this.opts.type === 'pie' || this.opts.type === 'ring') {
return findPieChartCurrentIndex(
- { x: t.x, y: t.y },
+ {x: t.x, y: t.y},
this.opts.chartData.pieData,
- this.opts
+ this.opts,
);
- } else if (this.opts.type === "rose") {
+ } else if (this.opts.type === 'rose') {
return findRoseChartCurrentIndex(
- { x: t.x, y: t.y },
+ {x: t.x, y: t.y},
this.opts.chartData.pieData,
- this.opts
+ this.opts,
);
- } else if (this.opts.type === "radar") {
+ } else if (this.opts.type === 'radar') {
return findRadarChartCurrentIndex(
- { x: t.x, y: t.y },
+ {x: t.x, y: t.y},
this.opts.chartData.radarData,
- this.opts.categories.length
+ this.opts.categories.length,
);
- } else if (this.opts.type === "funnel") {
+ } else if (this.opts.type === 'funnel') {
return findFunnelChartCurrentIndex(
- { x: t.x, y: t.y },
- this.opts.chartData.funnelData
+ {x: t.x, y: t.y},
+ this.opts.chartData.funnelData,
);
- } else if (this.opts.type === "map") {
- return findMapChartCurrentIndex({ x: t.x, y: t.y }, this.opts);
- } else if (this.opts.type === "word") {
+ } else if (this.opts.type === 'map') {
+ return findMapChartCurrentIndex({x: t.x, y: t.y}, this.opts);
+ } else if (this.opts.type === 'word') {
return findWordChartCurrentIndex(
- { x: t.x, y: t.y },
- this.opts.chartData.wordCloudData
+ {x: t.x, y: t.y},
+ this.opts.chartData.wordCloudData,
);
- } else if (this.opts.type === "bar") {
+ } else if (this.opts.type === 'bar') {
return findBarChartCurrentIndex(
- { x: t.x, y: t.y },
+ {x: t.x, y: t.y},
this.opts.chartData.calPoints,
this.opts,
this.config,
- Math.abs(this.scrollOption.currentOffset)
+ Math.abs(this.scrollOption.currentOffset),
);
} else {
return findCurrentIndex(
- { x: t.x, y: t.y },
+ {x: t.x, y: t.y},
this.opts.chartData.calPoints,
this.opts,
this.config,
- Math.abs(this.scrollOption.currentOffset)
+ Math.abs(this.scrollOption.currentOffset),
);
}
}
@@ -7618,7 +7618,7 @@ uCharts.prototype.getLegendDataIndex = function (e) {
}
if (a) {
let t = getTouches(a, this.opts, e);
- return findLegendIndex({ x: t.x, y: t.y }, this.opts.chartData.legendData);
+ return findLegendIndex({x: t.x, y: t.y}, this.opts.chartData.legendData);
}
return -1;
};
@@ -7635,7 +7635,7 @@ uCharts.prototype.touchLegend = function (t) {
var i = getTouches(a, this.opts, t);
var r = this.getLegendDataIndex(t);
if (r >= 0) {
- if (this.opts.type == "candle") {
+ if (this.opts.type == 'candle') {
this.opts.seriesMA[r].show = !this.opts.seriesMA[r].show;
} else {
this.opts.series[r].show = !this.opts.series[r].show;
@@ -7647,7 +7647,7 @@ uCharts.prototype.touchLegend = function (t) {
this.opts.type,
this.opts,
this.config,
- this.context
+ this.context,
);
}
}
@@ -7662,17 +7662,17 @@ uCharts.prototype.showToolTip = function (t) {
c = t.mp.changedTouches[0];
}
if (!c) {
- console.log("[uCharts] 未获取到event坐标信息");
+ console.log('[uCharts] 未获取到event坐标信息');
}
var a = getTouches(c, this.opts, t);
var d = this.scrollOption.currentOffset;
- var i = assign({}, this.opts, { _scrollDistance_: d, animation: false });
+ var i = assign({}, this.opts, {_scrollDistance_: d, animation: false});
if (
- this.opts.type === "line" ||
- this.opts.type === "area" ||
- this.opts.type === "column" ||
- this.opts.type === "scatter" ||
- this.opts.type === "bubble"
+ this.opts.type === 'line' ||
+ this.opts.type === 'area' ||
+ this.opts.type === 'column' ||
+ this.opts.type === 'scatter' ||
+ this.opts.type === 'bubble'
) {
var r = this.getCurrentDataIndex(t);
var o = e.index == undefined ? r.index : e.index;
@@ -7685,7 +7685,7 @@ uCharts.prototype.showToolTip = function (t) {
o,
r.group,
this.opts.categories,
- e
+ e,
),
s = l.textList,
h = l.offset;
@@ -7701,24 +7701,24 @@ uCharts.prototype.showToolTip = function (t) {
}
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "mount") {
+ if (this.opts.type === 'mount') {
var o = e.index == undefined ? this.getCurrentDataIndex(t).index : e.index;
if (o > -1) {
- var i = assign({}, this.opts, { animation: false });
+ var i = assign({}, this.opts, {animation: false});
var n = assign({}, i._series_[o]);
var s = [
{
text: e.formatter
? e.formatter(n, undefined, o, i)
- : n.name + ": " + n.data,
+ : n.name + ': ' + n.data,
color: n.color,
legendShape:
- this.opts.extra.tooltip.legendShape == "auto"
+ this.opts.extra.tooltip.legendShape == 'auto'
? n.legendShape
: this.opts.extra.tooltip.legendShape,
},
];
- var h = { x: i.chartData.calPoints[o].x, y: a.y };
+ var h = {x: i.chartData.calPoints[o].x, y: a.y};
i.tooltip = {
textList: e.textList ? e.textList : s,
offset: e.offset !== undefined ? e.offset : h,
@@ -7728,7 +7728,7 @@ uCharts.prototype.showToolTip = function (t) {
}
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "bar") {
+ if (this.opts.type === 'bar') {
var r = this.getCurrentDataIndex(t);
var o = e.index == undefined ? r.index : e.index;
if (o > -1 || o.length > 0) {
@@ -7740,7 +7740,7 @@ uCharts.prototype.showToolTip = function (t) {
o,
r.group,
this.opts.categories,
- e
+ e,
),
s = l.textList,
h = l.offset;
@@ -7755,12 +7755,12 @@ uCharts.prototype.showToolTip = function (t) {
}
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "mix") {
+ if (this.opts.type === 'mix') {
var r = this.getCurrentDataIndex(t);
var o = e.index == undefined ? r.index : e.index;
if (o > -1) {
var d = this.scrollOption.currentOffset;
- var i = assign({}, this.opts, { _scrollDistance_: d, animation: false });
+ var i = assign({}, this.opts, {_scrollDistance_: d, animation: false});
var n = getSeriesDataItem(this.opts.series, o);
if (n.length !== 0) {
var x = getMixToolTipData(n, this.opts, o, this.opts.categories, e),
@@ -7777,12 +7777,12 @@ uCharts.prototype.showToolTip = function (t) {
}
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "candle") {
+ if (this.opts.type === 'candle') {
var r = this.getCurrentDataIndex(t);
var o = e.index == undefined ? r.index : e.index;
if (o > -1) {
var d = this.scrollOption.currentOffset;
- var i = assign({}, this.opts, { _scrollDistance_: d, animation: false });
+ var i = assign({}, this.opts, {_scrollDistance_: d, animation: false});
var n = getSeriesDataItem(this.opts.series, o);
if (n.length !== 0) {
var l = getCandleToolTipData(
@@ -7792,7 +7792,7 @@ uCharts.prototype.showToolTip = function (t) {
o,
this.opts.categories,
this.opts.extra.candle,
- e
+ e,
),
s = l.textList,
h = l.offset;
@@ -7808,28 +7808,28 @@ uCharts.prototype.showToolTip = function (t) {
drawCharts.call(this, i.type, i, this.config, this.context);
}
if (
- this.opts.type === "pie" ||
- this.opts.type === "ring" ||
- this.opts.type === "rose" ||
- this.opts.type === "funnel"
+ this.opts.type === 'pie' ||
+ this.opts.type === 'ring' ||
+ this.opts.type === 'rose' ||
+ this.opts.type === 'funnel'
) {
var o = e.index == undefined ? this.getCurrentDataIndex(t) : e.index;
if (o > -1) {
- var i = assign({}, this.opts, { animation: false });
+ var i = assign({}, this.opts, {animation: false});
var n = assign({}, i._series_[o]);
var s = [
{
text: e.formatter
? e.formatter(n, undefined, o, i)
- : n.name + ": " + n.data,
+ : n.name + ': ' + n.data,
color: n.color,
legendShape:
- this.opts.extra.tooltip.legendShape == "auto"
+ this.opts.extra.tooltip.legendShape == 'auto'
? n.legendShape
: this.opts.extra.tooltip.legendShape,
},
];
- var h = { x: a.x, y: a.y };
+ var h = {x: a.x, y: a.y};
i.tooltip = {
textList: e.textList ? e.textList : s,
offset: e.offset !== undefined ? e.offset : h,
@@ -7839,10 +7839,10 @@ uCharts.prototype.showToolTip = function (t) {
}
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "map") {
+ if (this.opts.type === 'map') {
var o = e.index == undefined ? this.getCurrentDataIndex(t) : e.index;
if (o > -1) {
- var i = assign({}, this.opts, { animation: false });
+ var i = assign({}, this.opts, {animation: false});
var n = assign({}, this.opts.series[o]);
n.name = n.properties.name;
var s = [
@@ -7850,12 +7850,12 @@ uCharts.prototype.showToolTip = function (t) {
text: e.formatter ? e.formatter(n, undefined, o, this.opts) : n.name,
color: n.color,
legendShape:
- this.opts.extra.tooltip.legendShape == "auto"
+ this.opts.extra.tooltip.legendShape == 'auto'
? n.legendShape
: this.opts.extra.tooltip.legendShape,
},
];
- var h = { x: a.x, y: a.y };
+ var h = {x: a.x, y: a.y};
i.tooltip = {
textList: e.textList ? e.textList : s,
offset: e.offset !== undefined ? e.offset : h,
@@ -7866,22 +7866,22 @@ uCharts.prototype.showToolTip = function (t) {
i.updateData = false;
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "word") {
+ if (this.opts.type === 'word') {
var o = e.index == undefined ? this.getCurrentDataIndex(t) : e.index;
if (o > -1) {
- var i = assign({}, this.opts, { animation: false });
+ var i = assign({}, this.opts, {animation: false});
var n = assign({}, this.opts.series[o]);
var s = [
{
text: e.formatter ? e.formatter(n, undefined, o, this.opts) : n.name,
color: n.color,
legendShape:
- this.opts.extra.tooltip.legendShape == "auto"
+ this.opts.extra.tooltip.legendShape == 'auto'
? n.legendShape
: this.opts.extra.tooltip.legendShape,
},
];
- var h = { x: a.x, y: a.y };
+ var h = {x: a.x, y: a.y};
i.tooltip = {
textList: e.textList ? e.textList : s,
offset: e.offset !== undefined ? e.offset : h,
@@ -7892,25 +7892,25 @@ uCharts.prototype.showToolTip = function (t) {
i.updateData = false;
drawCharts.call(this, i.type, i, this.config, this.context);
}
- if (this.opts.type === "radar") {
+ if (this.opts.type === 'radar') {
var o = e.index == undefined ? this.getCurrentDataIndex(t) : e.index;
if (o > -1) {
- var i = assign({}, this.opts, { animation: false });
+ var i = assign({}, this.opts, {animation: false});
var n = getSeriesDataItem(this.opts.series, o);
if (n.length !== 0) {
- var s = n.map((t) => {
+ var s = n.map(t => {
return {
text: e.formatter
? e.formatter(t, this.opts.categories[o], o, this.opts)
- : t.name + ": " + t.data,
+ : t.name + ': ' + t.data,
color: t.color,
legendShape:
- this.opts.extra.tooltip.legendShape == "auto"
+ this.opts.extra.tooltip.legendShape == 'auto'
? t.legendShape
: this.opts.extra.tooltip.legendShape,
};
});
- var h = { x: a.x, y: a.y };
+ var h = {x: a.x, y: a.y};
i.tooltip = {
textList: e.textList ? e.textList : s,
offset: e.offset !== undefined ? e.offset : h,
@@ -7929,7 +7929,7 @@ uCharts.prototype.translate = function (t) {
distance: 0,
lastMoveTime: 0,
};
- let e = assign({}, this.opts, { _scrollDistance_: t, animation: false });
+ let e = assign({}, this.opts, {_scrollDistance_: t, animation: false});
drawCharts.call(this, this.opts.type, e, this.config, this.context);
};
uCharts.prototype.scrollStart = function (t) {
@@ -7970,7 +7970,7 @@ uCharts.prototype.scroll = function (t) {
l + n,
this.opts.chartData,
this.config,
- this.opts
+ this.opts,
);
this.scrollOption.distance = n = s - l;
var h = assign({}, this.opts, {
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 7185c1c..b1447bb 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -47,4 +47,4 @@ const request = (
});
};
-export default request;
\ No newline at end of file
+export default request;
diff --git a/types/global.d.ts b/types/global.d.ts
index 86b4b07..615ccfb 100644
--- a/types/global.d.ts
+++ b/types/global.d.ts
@@ -1,31 +1,31 @@
///
-declare module "*.png";
-declare module "*.gif";
-declare module "*.jpg";
-declare module "*.jpeg";
-declare module "*.svg";
-declare module "*.css";
-declare module "*.less";
-declare module "*.scss";
-declare module "*.sass";
-declare module "*.styl";
+declare module '*.png';
+declare module '*.gif';
+declare module '*.jpg';
+declare module '*.jpeg';
+declare module '*.svg';
+declare module '*.css';
+declare module '*.less';
+declare module '*.scss';
+declare module '*.sass';
+declare module '*.styl';
declare namespace NodeJS {
interface ProcessEnv {
TARO_ENV:
- | "weapp"
- | "swan"
- | "alipay"
- | "h5"
- | "rn"
- | "tt"
- | "quickapp"
- | "qq"
- | "jd";
+ | 'weapp'
+ | 'swan'
+ | 'alipay'
+ | 'h5'
+ | 'rn'
+ | 'tt'
+ | 'quickapp'
+ | 'qq'
+ | 'jd';
}
}
-declare module "@tarojs/components" {
- export * from "@tarojs/components/types/index.vue3";
+declare module '@tarojs/components' {
+ export * from '@tarojs/components/types/index.vue3';
}
diff --git a/types/vue.d.ts b/types/vue.d.ts
index 8703a1c..aeb531e 100644
--- a/types/vue.d.ts
+++ b/types/vue.d.ts
@@ -1,6 +1,6 @@
export {};
-declare module "vue" {
+declare module 'vue' {
export interface GlobalComponents extends JSX.IntrinsicElements {
/** Note: Vue 在 runtime 中将 JSX.IntrinsicElements 通过 index signature 重复声明标签
* 这会导致插件无法正常跳转类型,可以手动覆盖声明标签活得更好的体验,参考如下: