We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ca3b88 commit 7654abaCopy full SHA for 7654aba
src/mark.js
@@ -1,5 +1,6 @@
1
import {color} from "d3";
2
import {ascendingDefined, nonempty} from "./defined.js";
3
+import {plot} from "./plot.js";
4
5
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray
6
const TypedArray = Object.getPrototypeOf(Uint8Array);
@@ -46,6 +47,9 @@ export class Mark {
46
47
})
48
};
49
}
50
+ plot({marks = [], ...options} = {}) {
51
+ return plot({...options, marks: [...marks, this]});
52
+ }
53
54
55
// TODO Type coercion?
0 commit comments