mirror of
https://gitee.com/antv/g6.git
synced 2024-12-16 02:21:25 +08:00
Merge pull request #391 from antvis/maxSpanningFortestStyle
feat: update maxSpanningFortest style
This commit is contained in:
commit
19a67733bf
@ -95,7 +95,7 @@
|
||||
scale: 0.5
|
||||
}
|
||||
});
|
||||
const edgeSizeMapper = new Mapper('edge', 'userview', 'size', [2, 20], {
|
||||
const edgeSizeMapper = new Mapper('edge', 'userview', 'size', [1, 16], {
|
||||
legendCfg: null
|
||||
});
|
||||
const nodeColorMapper = new Mapper('node', 'stayTime', 'color', ['#BAE7FF', '#1890FF', '#0050B3'], {
|
||||
@ -127,7 +127,6 @@
|
||||
height: 1000,
|
||||
});
|
||||
graph.read(data);
|
||||
|
||||
const minimap = document.getElementById('minimap');
|
||||
const legend = document.getElementById('legend');
|
||||
if (minimap !== undefined) minimap.style.display = 'none';
|
||||
|
@ -90,7 +90,8 @@ class Plugin {
|
||||
style() {
|
||||
return {
|
||||
endArrow: true,
|
||||
strokeOpacity: 0.8
|
||||
stroke: '#4F7DAB',
|
||||
strokeOpacity: 0.65
|
||||
};
|
||||
}
|
||||
});
|
||||
@ -114,8 +115,8 @@ class Plugin {
|
||||
style: {
|
||||
stroke: '#fff',
|
||||
lineWidth: 2,
|
||||
shadowColor: '#6a80aa',
|
||||
shadowBlur: 20
|
||||
shadowColor: '#4F7DAB',
|
||||
shadowBlur: 8
|
||||
}
|
||||
});
|
||||
});
|
||||
|
@ -18,7 +18,7 @@ G6.registerGuide('mask', {
|
||||
y: box.minY - 100,
|
||||
width: box.maxX * 1.5,
|
||||
height: box.maxY * 1.5,
|
||||
fill: 'rgba(255, 255, 255, 0.7)'
|
||||
fill: 'rgba(255, 255, 255, 0.8)'
|
||||
},
|
||||
capture: false
|
||||
});
|
||||
|
@ -46,8 +46,8 @@ class Edge extends Item {
|
||||
const styleStartArrow = keyShape.attr('startArrow');
|
||||
const endArrow = model.endArrow || styleEndArrow;
|
||||
const startArrow = model.startArrow || styleStartArrow;
|
||||
styleStartArrow && keyShape.attr('startArrow', null);
|
||||
styleEndArrow && keyShape.attr('endArrow', null);
|
||||
styleStartArrow && keyShape.attr('startArrow', false);
|
||||
styleEndArrow && keyShape.attr('endArrow', false);
|
||||
endArrow && this._drawArrow(shapeObj.endArrow, 'end');
|
||||
startArrow && this._drawArrow(shapeObj.startArrow, 'start');
|
||||
}
|
||||
@ -101,7 +101,6 @@ class Edge extends Item {
|
||||
startSegment[startSegment.length - 1] = vDindent[1] + point.y;
|
||||
startSegment[startSegment.length - 2] = vDindent[0] + point.x;
|
||||
}
|
||||
|
||||
keyShape.attr('path', keyShapePath);
|
||||
}
|
||||
_getControlPoints() {
|
||||
|
@ -6,7 +6,7 @@
|
||||
const Shape = require('../shape');
|
||||
const Util = require('../../util/');
|
||||
const Global = require('../../global');
|
||||
const MIN_ARROW_SIZE = 10 / 3;
|
||||
const MIN_ARROW_SIZE = 3;
|
||||
const defaultArrow = {
|
||||
path(item) {
|
||||
const keyShape = item.getKeyShape();
|
||||
@ -26,7 +26,7 @@ const defaultArrow = {
|
||||
dindent(item) {
|
||||
const keyShape = item.getKeyShape();
|
||||
const lineWidth = keyShape.attr('lineWidth');
|
||||
return (lineWidth > MIN_ARROW_SIZE ? lineWidth : MIN_ARROW_SIZE) * 1.2;
|
||||
return (lineWidth > MIN_ARROW_SIZE ? lineWidth : MIN_ARROW_SIZE) * 3.1;
|
||||
},
|
||||
style(item) {
|
||||
const keyShape = item.getKeyShape();
|
||||
|
Loading…
Reference in New Issue
Block a user