Commit 43d814f2 authored by liujiaxin's avatar liujiaxin

scale text

parent 3b9963c8
...@@ -35,6 +35,7 @@ export class ScaleTextDirective implements AfterViewInit { ...@@ -35,6 +35,7 @@ export class ScaleTextDirective implements AfterViewInit {
word-spacing: normal; word-spacing: normal;
word-break: keep-all; word-break: keep-all;
white-space: nowrap; white-space: nowrap;
margin-left: ${this.offsetX}px
`; `;
const span = document.createElement('span'); const span = document.createElement('span');
span.innerHTML = `${this.Element.nativeElement.textContent}`; span.innerHTML = `${this.Element.nativeElement.textContent}`;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment