Fixed some config files
This commit is contained in:
@@ -1,6 +1,46 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
fontSize: 12,
|
||||
activeFill: '#000000',
|
||||
|
||||
line: function(axis, bounds) {
|
||||
return {
|
||||
evented: false,
|
||||
strokeDashArray: [5, 5],
|
||||
stroke: '#000',
|
||||
strokeWidth: 1,
|
||||
top: axis === 'h' ? bounds.top + bounds.height / 2 : bounds.top,
|
||||
left: axis === 'v' ? bounds.left + bounds.width / 2 : bounds.left
|
||||
}
|
||||
},
|
||||
|
||||
text: {
|
||||
width: 75,
|
||||
height: 20,
|
||||
color: '#33ff33',
|
||||
},
|
||||
|
||||
h: function(lines, bounds) {
|
||||
return {
|
||||
axis: 'left',
|
||||
marker: lines.v,
|
||||
top: Math.ceil(bounds.top + bounds.height + 5),
|
||||
left: lines.v.left,
|
||||
originX: 'center',
|
||||
lockMovementY: true,
|
||||
moveCursor: 'ew-resize',
|
||||
hoverCursor: 'ew-resize',
|
||||
}
|
||||
},
|
||||
v: function(lines, bounds) {
|
||||
return {
|
||||
axis: 'top',
|
||||
marker: lines.h,
|
||||
top: lines.h.top,
|
||||
left: Math.ceil(bounds.left + bounds.width + 5),
|
||||
originY: 'center',
|
||||
lockMovementX: true,
|
||||
moveCursor: 'ns-resize',
|
||||
hoverCursor: 'ns-resize',
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1,13 +1,28 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
color: '#ffffff',
|
||||
fontFamily: 'breuer',
|
||||
fontSize: 14,
|
||||
fill: '#000000',
|
||||
activeFill: '#444444',
|
||||
|
||||
rect: function(width, height) {
|
||||
return {
|
||||
fill: '#000000',
|
||||
activeFill: '#444444',
|
||||
originX: 'center',
|
||||
originY: 'center',
|
||||
width: width || 1,
|
||||
dynamicW: !width,
|
||||
height: height || 1,
|
||||
dynamicH: !height,
|
||||
}
|
||||
},
|
||||
|
||||
text: {
|
||||
fill: '#ffffff',
|
||||
fontFamily: 'breuer',
|
||||
fontSize: 14,
|
||||
originX: 'center',
|
||||
originY: 'center',
|
||||
},
|
||||
|
||||
cursor: 'pointer',
|
||||
originX: 'center',
|
||||
originY: 'center',
|
||||
padding: 20,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user