UNPKG

@visactor/vchart

Version:

charts lib based @visactor/VGrammar

21 lines (17 loc) 518 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.CustomSplitStrategy = void 0; class CustomSplitStrategy { constructor(name, checkFn, splitFn) { this.name = name, this.checkFn = checkFn, this.splitFn = splitFn; } shouldApply(mark, graphic) { return this.checkFn(mark, graphic); } split(mark, graphic) { return this.splitFn(mark, graphic); } } exports.CustomSplitStrategy = CustomSplitStrategy; //# sourceMappingURL=common.js.map