Skip to content

Commit

Permalink
Expose ZoomTransform constructor. (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock authored Jun 10, 2021
1 parent e2f0e73 commit 3419879
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export {default as zoom} from "./zoom.js";
export {default as zoomTransform, identity as zoomIdentity} from "./transform.js";
export {default as zoomTransform, identity as zoomIdentity, Transform as ZoomTransform} from "./transform.js";
3 changes: 1 addition & 2 deletions test/transform-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import assert from "assert";
import {zoomIdentity} from "../src/index.js";
import {Transform as ZoomTransform} from "../src/transform.js";
import {zoomIdentity, ZoomTransform} from "../src/index.js";

it("zoomIdentity transform contains k = 1, x = y = 0", () => {
assert.deepStrictEqual(zoomIdentity, new ZoomTransform(1, 0, 0));
Expand Down
3 changes: 1 addition & 2 deletions test/zoom-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import assert from "assert";
import {select} from "d3-selection";
import {zoom, zoomIdentity, zoomTransform} from "../src/index.js";
import {Transform as ZoomTransform} from "../src/transform.js";
import {zoom, zoomIdentity, zoomTransform, ZoomTransform} from "../src/index.js";
import it from "./jsdom.js";

it("zoom initiates a zooming behavior", () => {
Expand Down

0 comments on commit 3419879

Please sign in to comment.