@visactor/vtable
Version:
canvas table width high performance
23 lines (22 loc) • 715 B
TypeScript
export type DirectionKey = {
x: 'x' | 'y';
y: 'y' | 'x';
width: 'width' | 'height';
height: 'height' | 'width';
layoutWidth: 'layoutWidth' | 'layoutHeight';
layoutHeight: 'layoutHeight' | 'layoutWidth';
widthLimit: 'widthLimit' | 'heightLimit';
heightLimit: 'heightLimit' | 'widthLimit';
parentX: 'parentY' | 'parentX';
parentY: 'parentX' | 'parentY';
dx: 'dx' | 'dy';
dy: 'dx' | 'dy';
};
export type Direction = 'row' | 'column';
export type JustifyContent = 'start' | 'end' | 'center';
export type AlignItems = 'start' | 'end' | 'center';
type DirectionKeys = {
[key in Direction]: DirectionKey;
};
export declare const DIRECTION_KEY: DirectionKeys;
export {};