2014-12-03 02:02:48 +00:00
|
|
|
import _ from 'lodash';
|
|
|
|
|
2014-12-17 16:53:04 +00:00
|
|
|
export default {
|
2014-12-07 20:26:45 +00:00
|
|
|
type: 'literal',
|
|
|
|
|
2014-12-11 00:01:57 +00:00
|
|
|
_render() {
|
2014-12-15 03:17:59 +00:00
|
|
|
return this.renderLabel(['"', this.literal.textValue, '"'])
|
2014-12-13 18:42:55 +00:00
|
|
|
.then(label => {
|
2014-12-15 03:17:59 +00:00
|
|
|
var spans = label.selectAll('tspan');
|
|
|
|
|
|
|
|
spans[0].addClass('quote');
|
|
|
|
spans[2].addClass('quote');
|
|
|
|
|
2014-12-13 18:42:55 +00:00
|
|
|
label.select('rect').attr({
|
|
|
|
rx: 3,
|
|
|
|
ry: 3
|
|
|
|
});
|
2014-12-11 00:23:14 +00:00
|
|
|
});
|
2014-12-17 19:44:48 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
setup() {
|
|
|
|
this.literal = this.properties.literal;
|
2014-12-07 20:26:45 +00:00
|
|
|
}
|
2014-12-17 16:53:04 +00:00
|
|
|
};
|