/** * IRNode 纯透传字段表(除 type / position / text / label 特化字段外) * @description as const satisfies 拒不存在的 key;下方 _NodeFieldsCheck 静态校验完备性——未来 IRNode 加新字段时漏写此表 TS 编译期报错。builder / unbuilder 共用同一份字段表,两端字段对称变化自动同步 */ export declare const NODE_FIELDS: readonly ["id", "shape", "boundary", "meta", "animations", "rotate", "align", "lineHeight", "maxTextWidth", "color", "fill", "fillOpacity", "stroke", "strokeOpacity", "strokeWidth", "dashed", "dotted", "dashPattern", "dashOffset", "cornerRadius", "minimumSize", "scale", "textColor", "opacity", "shadow", "blendMode", "padding", "margin", "font", "zIndex"]; /** * IRPath 纯透传字段表(除 type / children 特化字段外) * @description 同 NODE_FIELDS 互锁防漂移 */ export declare const PATH_FIELDS: readonly ["kind", "kindOptions", "ribbon", "label", "id", "meta", "animations", "color", "stroke", "strokeWidth", "dashPattern", "dashOffset", "fill", "fillRule", "lineCap", "lineJoin", "roundedCorners", "opacity", "fillOpacity", "strokeOpacity", "zIndex", "rotate", "scale", "marks", "shadow", "blendMode"]; /** * IRScope 纯透传字段表(除 type / children 特化字段外) * @description 含容器字段(id / localNamespace / transforms)+ 样式默认字段 * (级联 graphic state + 四通道 every-X + resetStyle);同 NODE_FIELDS 互锁防漂移,builder / unbuilder 共用 */ export declare const SCOPE_FIELDS: readonly ["id", "localNamespace", "transforms", "color", "stroke", "fill", "strokeWidth", "opacity", "fillOpacity", "strokeOpacity", "nodeDefault", "pathDefault", "labelDefault", "arrowDefault", "resetStyle", "zIndex", "clip", "boundingShape", "meta", "animations"]; /** * ScopeStyleProps 的 key 表——`hasScopeStyle` 判定 + 合成根 Scope 字段透传共用 * @description 同 NODE_FIELDS 互锁防漂移:下方 _ScopeStyleFieldsCheck 校验它恰好覆盖 ScopeStyleProps 全部 key, * 也是 SCOPE_FIELDS 的真子集(不含容器 / 屏障 / 栈序 / 裁剪字段) */ export declare const SCOPE_STYLE_FIELDS: readonly ["color", "stroke", "fill", "strokeWidth", "opacity", "fillOpacity", "strokeOpacity", "nodeDefault", "pathDefault", "labelDefault", "arrowDefault"]; /** * 从源对象按字段表拣出 defined 字段 * @description 只透传 `!== undefined` 的字段;调用方与特化字段合并成完整目标对象 */ export declare const pickDefined: (source: TSource, fields: ReadonlyArray) => Partial>; //# sourceMappingURL=fields.d.ts.map