@benbugraer/headline-editor
Version:
A headline editor canvas component for news websites
13 lines (12 loc) • 518 B
TypeScript
import { fabric } from "fabric";
import { EffectState, ShadowState, TextStrokeState, CornerRadiusState, BackgroundState } from "../types/effects.types";
type DefaultStates = {
opacity: EffectState;
shadow: ShadowState;
textStroke: TextStrokeState;
shapeRadius: CornerRadiusState;
background: BackgroundState;
};
export declare const getInitialStates: (object: fabric.Object | null) => DefaultStates;
export declare const createShadow: (shadowState: ShadowState) => fabric.Shadow | null;
export {};