import type { ImportDiagnostic } from '@flighthq/importdiagnostics/contract'; import type { PathBooleanKernel } from '@flighthq/path-boolean/contract'; import type { DisplayObject } from '@flighthq/scene2d/contract'; import type { RiveArtboardGraph, RiveImportRegistry, RivePathRecord } from './contract.scene2d-formats-types.ts'; /** * Applies each node's clipping shapes. * * The coordinate space is the whole problem here. A clipping shape names a *source* shape elsewhere * in the artboard, and that source's geometry sits in the source's own transform chain — while * Flight rasterizes a clip under the **clipped** node's transform. So the geometry has to cross from * one chain to the other: `inverse(clippedRelative) * sourceRelative` applied to the source's points. * Both chains are measured from the artboard root, whose own transform is common to the two and * therefore cancels, which is what keeps the artboard's pivot out of the arithmetic. */ export declare function applyRiveClipping(pathBooleanKernel: Readonly, nodes: ReadonlyArray, artboard: Readonly, shapePaths: ReadonlyMap, diagnostics: ImportDiagnostic[] | undefined): void; /** * Each component's transform measured from the artboard root. The root itself is the identity here * on purpose: it is an ancestor of every component, so whatever it carries cancels between any two * of them. Component order is not hierarchy order — a child may precede its parent in the stream — * so each parent chain is resolved before its world matrices are composed. */ /** * Registers clipping: a `ClippingShape` names another component whose geometry masks the node the * clipping shape hangs from. * * It resolves as a pass rather than in file order because the source it names may appear later in the * stream than the node being clipped, so no node can be clipped until the whole artboard exists. */ export declare function registerRiveClippingHandlers(pathBooleanKernel: Readonly, registry: RiveImportRegistry): void; //# sourceMappingURL=riveClipping.d.ts.map