From 027d237a54bd813b811f77bec4d778be543c2a6d Mon Sep 17 00:00:00 2001
From: chenzeping <ChenZeping02609@163.com>
Date: 星期五, 05 三月 2021 14:53:09 +0800
Subject: [PATCH] 图例内容/效果实现
---
src/conf/Styles.js | 37 +++++++++++++++++--------------------
1 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/src/conf/Styles.js b/src/conf/Styles.js
index 42416e5..c94b60d 100644
--- a/src/conf/Styles.js
+++ b/src/conf/Styles.js
@@ -1,24 +1,21 @@
-export const LineStyles = {
+const defaultLineStyle = {
+ fill: true,
+ weight: 3,
+ fillColor: '#73b2ff',
+ color: '#73b2ff',
+ fillOpacity: 0.2,
+ opacity: 1,
+ dashArray: '10,4',
+ dashSpeed: -10,
+ size: [20, 20]
+}
+
+const customStyles = {
pipeline: {
- fill: true,
- weight: 2,
- fillColor: '#06cccc',
- color: '#06cccc',
- fillOpacity: 0.2,
- opacity: 0.8,
- dashArray: '10,4',
- dashSpeed: -10
}
}
-export const PointStyles = {
- pipeline: {
- fill: true,
- weight: 2,
- fillColor: '#06cccc',
- color: '#06cccc',
- fillOpacity: 0.2,
- opacity: 0.8,
- dashArray: '10,4',
- dashSpeed: -10
- }
+
+export default {
+ defaultLineStyle,
+ customStyles
}
--
Gitblit v1.8.0