2018-02-17 00:04:23 +00:00
|
|
|
// Styles are in JS instead of CSS so they will be inlined as attributes
|
|
|
|
// instead of served as a CSS file. This is so styles are included in
|
|
|
|
// downloaded SVG files.
|
|
|
|
|
2018-02-17 02:48:01 +00:00
|
|
|
const green = '#bada55';
|
2018-02-17 00:04:23 +00:00
|
|
|
const brown = '#6b6659';
|
2018-02-17 02:48:01 +00:00
|
|
|
const tan = '#cbcbba';
|
2018-02-17 00:04:23 +00:00
|
|
|
const black = '#000';
|
2018-02-17 02:48:01 +00:00
|
|
|
const grey = '#908c83';
|
2018-02-17 00:04:23 +00:00
|
|
|
const white = '#fff';
|
2018-02-17 02:48:01 +00:00
|
|
|
const blue = '#dae9e5';
|
2018-02-17 00:04:23 +00:00
|
|
|
|
|
|
|
const fontFamily = 'Arial';
|
|
|
|
const fontSize = '16px';
|
|
|
|
const fontSizeSmall = '12px';
|
|
|
|
|
|
|
|
const strokeBase = {
|
|
|
|
strokeWidth: '2px',
|
|
|
|
stroke: black
|
|
|
|
};
|
|
|
|
|
|
|
|
export default {
|
|
|
|
image: {
|
|
|
|
backgroundColor: white
|
|
|
|
},
|
|
|
|
connectors: {
|
|
|
|
fillOpacity: 0,
|
|
|
|
...strokeBase
|
|
|
|
},
|
|
|
|
text: {
|
|
|
|
fontSize: fontSize,
|
|
|
|
fontFamily: fontFamily
|
|
|
|
},
|
2018-02-17 02:48:01 +00:00
|
|
|
textQuote: {
|
|
|
|
fill: grey
|
|
|
|
},
|
2018-02-17 00:04:23 +00:00
|
|
|
infoText: {
|
|
|
|
fontSize: fontSizeSmall,
|
|
|
|
fontFamily: fontFamily,
|
|
|
|
dominantBaseline: 'text-after-edge'
|
|
|
|
},
|
|
|
|
pin: {
|
|
|
|
fill: brown,
|
|
|
|
...strokeBase
|
2018-02-17 02:48:01 +00:00
|
|
|
},
|
|
|
|
literalBox: {
|
|
|
|
fill: blue,
|
|
|
|
strokeWidth: '1px',
|
|
|
|
stroke: black
|
|
|
|
},
|
|
|
|
escapeBox: {
|
|
|
|
fill: green,
|
|
|
|
strokeWidth: '1px',
|
|
|
|
stroke: black
|
|
|
|
},
|
|
|
|
charClassBox: {
|
|
|
|
fill: tan
|
|
|
|
},
|
|
|
|
captureBox: {
|
|
|
|
fillOpacity: 0,
|
|
|
|
...strokeBase,
|
|
|
|
stroke: grey,
|
|
|
|
strokeDasharray: '6,2'
|
2018-02-17 11:24:50 +00:00
|
|
|
},
|
|
|
|
anchorBox: {
|
|
|
|
fill: brown
|
|
|
|
},
|
|
|
|
anchorText: {
|
|
|
|
fill: white
|
2018-02-17 00:04:23 +00:00
|
|
|
}
|
|
|
|
};
|