@bokeh/bokehjs
Version:
Interactive, novel data visualization
21 lines • 557 B
JavaScript
import { serialize } from "../serialization";
export class Slice {
static __name__ = "Slice";
start;
stop;
step;
constructor({ start, stop, step } = {}) {
this.start = start ?? null;
this.stop = stop ?? null;
this.step = step ?? null;
}
[serialize](serializer) {
return {
type: "slice",
start: serializer.encode(this.start),
stop: serializer.encode(this.stop),
step: serializer.encode(this.step),
};
}
}
//# sourceMappingURL=slice.js.map