import { IRBoxSpacing, IRStepLabelInput, ValueOf } from '@retikz/core'; import { z } from 'zod'; import { IntervalBoundKind, MarkValueKind, PathClosureKind, PathCurve, PlotMark, ReferenceMarkKind, RelationGeometryKind, RelationOrthogonalLabelStep, RelationRouteStepKind, RelationRoutingKind } from './constants'; import { AnchorIdSpecSchema, BlendModeStyleSchema, CustomMarkSchema, IntervalBoundSchema, IntervalBoundsSchema, IntervalMarkSchema, MarkOperationSchema, MarkSchema, MarkTransformSchema, NodeAxisScaleStyleSchema, NodeBooleanStyleSchema, NodeBoundaryStyleSchema, NodeBoxSizeStyleSchema, NodeBoxSpacingStyleSchema, NodeDashPatternStyleSchema, NodeFontStyleSchema, NodePositiveNumberStyleSchema, NodeTextAlignStyleSchema, PathClosureSchema, PathFillRuleStyleSchema, PathMarkSchema, PathScaleStyleSchema, PathThicknessStyleSchema, PlotTargetRefSchema, PointColorStyleSchema, PointFillStyleSchema, PointMarkSchema, PointNonnegativeNumberStyleSchema, PointNumberStyleSchema, PointOpacityStyleSchema, PointShapeStyleSchema, PointSizeStyleSchema, PointStrokeStyleSchema, PointZIndexStyleSchema, ReferenceMarkSchema, RelationMarkSchema, RelationPathGeometrySchema, RelationPathSpecificOptionsSchema, RelationPrimitiveStyleSchema, RelationRibbonOptionsSchema, RelationRibbonSpecificOptionsSchema, RelationRouteStepSchema, RelationRoutingSpecSchema, RelationStepLabelSchema, RelationTransformSchema, ShadowStyleSchema } from './schema'; export type { IRBoxSpacing }; /** mark 类型 */ export type PlotMarkValue = ValueOf; /** point mark(散点 + 文本标签) */ export type IRPlotPointMark = z.infer; /** mark 值来源变体 */ export type MarkValueKindValue = ValueOf; /** mark 样式值;需要 scale 的属性在此基础上交叉 `{ scale?: string }` */ export type MarkValueType = { kind: typeof MarkValueKind.Field; value: string; } | { kind: typeof MarkValueKind.Constant; value: T; }; /** mark 样式值,字段变体可绑定 scale */ export type ScaledMarkValueType = MarkValueType & { scale?: string; }; /** PointMark 颜色样式值(field / constant) */ export type IRPlotPointColorStyle = z.infer; /** PointMark 尺寸样式值(field / constant) */ export type IRPlotPointSizeStyle = z.infer; /** PointMark 形状样式值(field / constant) */ export type IRPlotPointShapeStyle = z.infer; /** PointMark 填充样式值(field / constant) */ export type IRPlotPointFillStyle = z.infer; /** PointMark 描边颜色样式值(field / constant) */ export type IRPlotPointStrokeStyle = z.infer; /** PointMark 描边宽度样式值(field / constant) */ export type IRPlotPointStrokeWidthStyle = z.infer; /** PointMark 数值样式值(field / constant) */ export type IRPlotPointNumberStyle = z.infer; /** PointMark 非负数值样式值(field / constant) */ export type IRPlotPointNonnegativeNumberStyle = z.infer; /** PointMark 透明度样式值(field / constant) */ export type IRPlotPointOpacityStyle = z.infer; /** PointMark zIndex 样式值(field / constant) */ export type IRPlotPointZIndexStyle = z.infer; /** NodeMark 正数样式值(field / constant) */ export type IRPlotNodePositiveNumberStyle = z.infer; /** NodeMark 文本对齐样式值(field / constant) */ export type IRPlotNodeTextAlignStyle = z.infer; /** NodeMark 布尔样式值(field / constant) */ export type IRPlotNodeBooleanStyle = z.infer; /** NodeMark 虚线样式值(field / constant) */ export type IRPlotNodeDashPatternStyle = z.infer; /** NodeMark 字体样式值(field / constant) */ export type IRPlotNodeFontStyle = z.infer; /** NodeMark 边界样式值(field / constant) */ export type IRPlotNodeBoundaryStyle = z.infer; /** NodeMark 盒模型间距样式值(field / constant) */ export type IRPlotNodeBoxSpacingStyle = z.infer; /** NodeMark 轴向 scale 样式值(field / constant) */ export type IRPlotNodeAxisScaleStyle = z.infer; /** NodeMark 盒尺寸样式值(field / constant) */ export type IRPlotNodeBoxSizeStyle = z.infer; /** 阴影样式声明 */ export type IRPlotShadowStyle = z.infer; /** 混合模式样式声明 */ export type IRPlotBlendModeStyle = z.infer; /** PathMark 填充规则样式值 */ export type IRPlotPathFillRuleStyle = z.infer; /** PathMark 线宽样式值 */ export type IRPlotPathThicknessStyle = z.infer; /** PathMark scale 绑定样式值 */ export type IRPlotPathScaleStyle = z.infer; /** PathMark 相邻点连接方式 */ export type PathCurveValue = ValueOf; /** PathMark 闭合策略 */ export type PathClosureKindValue = ValueOf; /** PathMark 闭合策略配置 */ export type IRPlotPathClosure = z.infer; /** path mark(折线 / 轮廓) */ export type IRPlotPathMark = z.infer; /** interval 单维区间来源 */ export type IntervalBoundKindValue = ValueOf; /** interval 单维区间来源 */ export type IRPlotIntervalBound = z.infer; /** interval per-role 区间来源 */ export type IRPlotIntervalBounds = z.infer; /** interval mark(柱 / histogram / heatmap / 径向柱 / 饼环) */ export type IRPlotIntervalMark = z.infer; /** reference mark(参考线 / 阈值线 / 容差带) */ export type IRPlotReferenceMark = z.infer; /** mark 锚点 id 声明 */ export type IRPlotAnchorIdSpec = z.infer; /** plot 内目标引用,可指向数据行、系列或锚点 */ export type IRPlotTargetRef = z.infer; /** relation 路由步骤标签声明 */ export type IRPlotRelationStepLabel = z.infer; /** relation 路由步骤标签输入,沿用 core step label 并替换文本字段 */ export type RelationStepLabelInput = Omit & { text: IRPlotRelationStepLabel['text']; }; /** relation 路由中的单步声明 */ export type IRPlotRelationRouteStep = z.infer; /** relation 路由单步输入,允许使用 adapter 侧标签输入 */ export type RelationRouteStepInput = Omit & { label?: RelationStepLabelInput; }; /** mark 局部数据变换声明 */ export type IRPlotMarkTransform = z.infer; /** relation mark 的数据派生变换声明 */ export type IRPlotRelationTransform = z.infer; /** RelationMark 几何子类型值 */ export type RelationGeometryKindValue = ValueOf; /** relation 显式路由支持的 core step 类型取值 */ export type RelationRouteStepKindValue = ValueOf; /** relation 自动路由策略类型取值 */ export type RelationRoutingKindValue = ValueOf; /** relation 正交路由标签落点策略取值 */ export type RelationOrthogonalLabelStepValue = ValueOf; /** reference mark 显式形态取值 */ export type ReferenceMarkKindValue = ValueOf; /** relation mark 的路由策略声明 */ export type IRPlotRelationRoutingSpec = z.infer; /** relation primitive 的公共样式声明 */ export type IRPlotRelationPrimitiveStyle = z.infer; /** relation path 专属选项声明 */ export type IRPlotRelationPathSpecificOptions = z.infer; /** relation path 几何声明 */ export type IRPlotRelationPathGeometry = z.infer; /** relation path 几何输入,允许 adapter 侧标签和路由输入 */ export type RelationPathGeometryInput = Omit & { label?: RelationStepLabelInput; route?: Array; }; /** relation ribbon 专属选项声明 */ export type IRPlotRelationRibbonSpecificOptions = z.infer; /** relation ribbon 几何选项声明 */ export type IRPlotRelationRibbonOptions = z.infer; /** relation mark 声明 */ export type IRPlotRelationMark = z.infer; /** 内置 mark 声明 */ export type IRPlotMark = z.infer; /** custom mark operation(自定义 type 开放配置,由 runtime MarkDefinition 解释) */ export type IRPlotCustomMark = z.infer; /** mark operation(内置 ∪ 自定义 type 开放配置) */ export type IRPlotMarkOperation = z.infer; /** mark operation 是否内置;把放宽后的 union 收窄回精确内置 Mark,供 lowering 内置专属几何分支门控 */ export declare const isBuiltinMark: (mark: IRPlotMarkOperation) => mark is IRPlotMark; //# sourceMappingURL=types.d.ts.map