UI: Improve SCADA symbol createIconElement.
This commit is contained in:
parent
c6b811d362
commit
640559e278
@ -972,12 +972,12 @@ export class ScadaSymbolObject {
|
|||||||
fontSetClasses.forEach(className => textElement.addClass(className));
|
fontSetClasses.forEach(className => textElement.addClass(className));
|
||||||
textElement.font({size: `${size}px`});
|
textElement.font({size: `${size}px`});
|
||||||
textElement.attr({
|
textElement.attr({
|
||||||
style: `font-size: ${size}px`
|
style: `font-size: ${size}px`,
|
||||||
|
'text-anchor': 'start'
|
||||||
});
|
});
|
||||||
textElement.fill(color);
|
textElement.fill(color);
|
||||||
const tspan = textElement.first();
|
const tspan = textElement.first();
|
||||||
tspan.attr({
|
tspan.attr({
|
||||||
'text-anchor': 'start',
|
|
||||||
'dominant-baseline': 'hanging'
|
'dominant-baseline': 'hanging'
|
||||||
});
|
});
|
||||||
return of(textElement);
|
return of(textElement);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user