import { ValueOf } from '@retikz/core'; import { z } from 'zod'; import { AxisCardinalSide, AxisCrossingCorner, AxisCrossingLabelPolicy, AxisCrossingTickPolicy, AxisGridApplyTo, AxisLineExtentTarget, AxisPlacementKind, AxisTickDensityKind, AxisTickEndpointAffect, AxisTickLabelHideStrategy, AxisTickLabelOverflow, AxisTickMarkKind, AxisTickShapeOrientation, AxisTitleAnchor, AxisTitleBaseline, AxisTitleOrientation, AxisTitlePlacementKeyword, GuideTickIntervalKind, GuideTickTimeUnit, LegendOrient, LegendPosition, LegendSymbolFit, PlotGuide } from './constants'; import { AxisGuideSchema, GuideSchema, LegendGuideSchema } from './schema'; /** guide 类型 */ export type PlotGuideValue = ValueOf; /** 坐标轴摆放方式 */ export type AxisPlacementKindValue = ValueOf; /** 笛卡尔式四方向轴位置 */ export type AxisCardinalSideValue = ValueOf; /** 坐标轴网格投放模式取值 */ export type AxisGridApplyToValue = ValueOf; /** 坐标轴线范围关键字取值 */ export type AxisLineExtentTargetValue = ValueOf; /** 固定间隔 tick source kind 取值 */ export type GuideTickIntervalKindValue = ValueOf; /** 时间间隔单位取值 */ export type GuideTickTimeUnitValue = ValueOf; /** tick 可见密度策略 kind 取值 */ export type AxisTickDensityKindValue = ValueOf; /** tick mark 形态 kind 取值 */ export type AxisTickMarkKindValue = ValueOf; /** tick 端点避让影响范围取值 */ export type AxisTickEndpointAffectValue = ValueOf; /** shape tick mark 方向策略取值 */ export type AxisTickShapeOrientationValue = ValueOf; /** tick label 重叠隐藏策略取值 */ export type AxisTickLabelHideStrategyValue = ValueOf; /** tick label 超出轴范围时的处理策略取值 */ export type AxisTickLabelOverflowValue = ValueOf; /** axis title 沿轴线的定位关键字取值 */ export type AxisTitlePlacementKeywordValue = ValueOf; /** axis title 对齐锚点取值 */ export type AxisTitleAnchorValue = ValueOf; /** axis title 纵向锚点取值 */ export type AxisTitleBaselineValue = ValueOf; /** axis title 旋转策略取值 */ export type AxisTitleOrientationValue = ValueOf; /** axis 交叉值处 tick mark 策略取值 */ export type AxisCrossingTickPolicyValue = ValueOf; /** axis 交叉值处 tick label 策略取值 */ export type AxisCrossingLabelPolicyValue = ValueOf; /** axis 交叉值 label 的角落位置取值 */ export type AxisCrossingCornerValue = ValueOf; /** * 图例绑定的非位置通道名。 * @description schema 只要求非空字符串;该通道是否存在、是否产出 legend descriptor,由 channel registry 在 lowering 时解析 */ export type LegendChannelValue = string; /** 图例位置 */ export type LegendPositionValue = ValueOf; /** 图例排布方向 */ export type LegendOrientValue = ValueOf; /** 图例符号尺寸适配策略 */ export type LegendSymbolFitValue = ValueOf; /** * guide 绑定的坐标系定位维度名。 * @description schema 只要求非空字符串;该维度是否被坐标系支持,由 CoordinateDefinition.roles 在 lowering 时校验 */ export type GuideDimensionValue = string; /** guide(axis 或 legend) */ export type IRPlotGuide = z.infer; /** 坐标轴 guide(轴线 + 刻度 + 标签 + 可选网格) */ export type IRPlotAxisGuide = z.infer; /** 图例 guide(swatch / 色带 ramp / 分箱 / 梯度符号,由 color scale 或 channel definition 决定形态) */ export type IRPlotLegendGuide = z.infer; //# sourceMappingURL=types.d.ts.map