nw-style-guide 11.3.0 → 11.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,7 +24,6 @@ export declare class TextDirective implements OnInit, OnChanges, OnDestroy {
24
24
  setDomains(): void;
25
25
  draw(): void;
26
26
  update(): void;
27
- get transform(): string;
28
27
  get x(): number;
29
28
  get y(): number;
30
29
  private _subscribeToChartResize;
@@ -35,17 +35,16 @@ export class TextDirective {
35
35
  }
36
36
  draw() {
37
37
  this.text
38
- .attr("transform", this.transform);
38
+ .attr("x", this.x)
39
+ .attr("y", this.y);
39
40
  }
40
41
  update() {
41
42
  this.text
42
43
  .transition()
43
44
  .duration(this.animDuration)
44
45
  .ease(this.easing)
45
- .attr("transform", this.transform);
46
- }
47
- get transform() {
48
- return `translate(${this.x}, ${this.y})`;
46
+ .attr("x", this.x)
47
+ .attr("y", this.y);
49
48
  }
50
49
  get x() {
51
50
  return this.xScale(this.point[0]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nw-style-guide",
3
- "version": "11.3.0",
3
+ "version": "11.3.1",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "email": "garethdn@gmail.com",