/** * * @typedef {import("../spec/channel.js").Encoding} Encoding * @typedef {import("../spec/channel.js").Channel} Channel */ /** * Expands a primary positional channel into a coverage range. * * Rect-like marks use this to turn a discrete position into band coverage and * a quantitative position into a zero-anchored span. * * @param {Encoding} encoding * @param {import("../spec/channel.js").PrimaryPositionalChannel} channel */ export function fixCoveragePositional(encoding: Encoding, channel: import("../spec/channel.js").PrimaryPositionalChannel): void; /** * Rewrites explicit ranged text on zero-based half-open coordinate systems to * use interval edges instead of default band centers. * * With only `x`, text stays centered inside one band (`band = 0.5`). When both * `x` and `x2` are defined for `index`/`locus`, the pair is interpreted as * half-open interval edges, e.g. `[0, 1)`, so both endpoints use `band = 0`. * * @param {Encoding} encoding * @param {import("../spec/channel.js").PrimaryPositionalChannel} channel */ export function fixHalfOpenRangedText(encoding: Encoding, channel: import("../spec/channel.js").PrimaryPositionalChannel): void; /** * @param {import("../spec/channel.js").Encoding} encoding * @param {boolean} filled */ export function fixStroke(encoding: import("../spec/channel.js").Encoding, filled: boolean): void; /** * @param {import("../spec/channel.js").Encoding} encoding * @param {boolean} filled */ export function fixFill(encoding: import("../spec/channel.js").Encoding, filled: boolean): void; /** * @param {import("../spec/mark.js").MarkProps} props * @returns {props is import("../spec/mark.js").PointProps} */ export function isPointProps(props: import("../spec/mark.js").MarkProps): props is import("../spec/mark.js").PointProps; /** * @param {import("../spec/mark.js").MarkProps} props * @returns {props is import("../spec/mark.js").RectProps} */ export function isRectProps(props: import("../spec/mark.js").MarkProps): props is import("../spec/mark.js").RectProps; /** * @param {import("../spec/mark.js").MarkProps} props * @returns {props is import("../spec/mark.js").RuleProps} */ export function isRuleProps(props: import("../spec/mark.js").MarkProps): props is import("../spec/mark.js").RuleProps; /** * @param {import("../spec/mark.js").MarkProps} props * @returns {props is import("../spec/mark.js").TextProps} */ export function isTextProps(props: import("../spec/mark.js").MarkProps): props is import("../spec/mark.js").TextProps; /** * @param {import("../spec/mark.js").MarkProps} props * @returns {props is import("../spec/mark.js").LinkProps} */ export function isLinkProps(props: import("../spec/mark.js").MarkProps): props is import("../spec/mark.js").LinkProps; export type Encoding = import("../spec/channel.js").Encoding; export type Channel = import("../spec/channel.js").Channel; //# sourceMappingURL=markUtils.d.ts.map