@zhangqingcq/vgce 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhangqingcq/vgce",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Vector graphics configure editor. svg组态编辑器。基于vue3.3+ts+element-plus+vite",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -125,7 +125,7 @@ export const connection_line_system: ISystemStraightLine = {
125
125
  color: {
126
126
  title: '颜色',
127
127
  type: EConfigItemPropsType.Color,
128
- val: '#0a7ae2'
128
+ val: '#602a00'
129
129
  },
130
130
  reverse: {
131
131
  title: '反转动画',
@@ -1175,12 +1175,12 @@
1175
1175
  .contextMenu {
1176
1176
  position: fixed;
1177
1177
  z-index: 99999;
1178
- background: #ffffff;
1178
+ background: rgba(255, 255, 255, 0.75);
1179
1179
  padding: 5px 0;
1180
1180
  margin: 0;
1181
1181
  display: block;
1182
- border-radius: 5px;
1183
- box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
1182
+ border-radius: 3px;
1183
+ box-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
1184
1184
 
1185
1185
  li {
1186
1186
  list-style: none;
@@ -1197,16 +1197,18 @@
1197
1197
  p {
1198
1198
  text-decoration: none;
1199
1199
  display: block;
1200
- padding: 0 15px 1px 20px;
1200
+ padding: 0 15px 1px 15px;
1201
1201
  margin: 0;
1202
1202
  user-select: none;
1203
1203
  -webkit-user-select: none;
1204
+ font-size: 14px;
1205
+ color: #09053d;
1204
1206
  }
1205
1207
 
1206
1208
  p:hover {
1207
1209
  background-color: @listActiveColor;
1208
1210
  color: #ffffff;
1209
- cursor: default;
1211
+ cursor: pointer;
1210
1212
  }
1211
1213
 
1212
1214
  .disabled {
@@ -47,7 +47,7 @@
47
47
  fill="none"
48
48
  fill-opacity="0"
49
49
  stroke="#DE4517"
50
- :stroke-width="props.itemInfo.props['stroke-width'].val + 1"
50
+ :stroke-width="Math.ceil(props.itemInfo.props['stroke-width'].val * 1.2) + 1"
51
51
  stroke-linecap="round"
52
52
  stroke-linejoin="round"
53
53
  v-show="props.itemInfo.selected || props.itemInfo.id === globalStore.handle_svg_info?.info.id"
@@ -143,7 +143,7 @@
143
143
  :r="props.itemInfo.props.point_r.val + 1"
144
144
  fill="none"
145
145
  fill-opacity="0"
146
- stroke-width="1"
146
+ :stroke-width="Math.ceil(props.itemInfo.props.point_r.val * 0.2) + 1"
147
147
  stroke="#DE4517"
148
148
  v-show="props.itemInfo.selected || props.itemInfo.id === globalStore.handle_svg_info?.info.id"
149
149
  />
@@ -58,7 +58,7 @@ export const useContextMenuStore = defineStore('context-menu-store', {
58
58
  info: {
59
59
  [EContextMenuInfoType.Copy]: {
60
60
  title: '复制',
61
- hot_key: 'Ctrl+C',
61
+ hot_key: 'Ctrl + c',
62
62
  enable: true
63
63
  },
64
64
  [EContextMenuInfoType.Delete]: {
@@ -68,22 +68,22 @@ export const useContextMenuStore = defineStore('context-menu-store', {
68
68
  },
69
69
  [EContextMenuInfoType.MoveUpTopLevel]: {
70
70
  title: '置于顶层',
71
- hot_key: 'Ctrl+→',
71
+ hot_key: 'Ctrl + →',
72
72
  enable: true
73
73
  },
74
74
  [EContextMenuInfoType.MoveDownTopLevel]: {
75
75
  title: '置于底层',
76
- hot_key: 'Ctrl+←',
76
+ hot_key: 'Ctrl + ←',
77
77
  enable: true
78
78
  },
79
79
  [EContextMenuInfoType.MoveUpOneLevel]: {
80
80
  title: '置于上一层',
81
- hot_key: 'Ctrl+↑',
81
+ hot_key: 'Ctrl + ↑',
82
82
  enable: true
83
83
  },
84
84
  [EContextMenuInfoType.MoveDownOneLevel]: {
85
85
  title: '置于下一层',
86
- hot_key: 'Ctrl+↓',
86
+ hot_key: 'Ctrl + ↓',
87
87
  enable: true
88
88
  }
89
89
  }