@idraw/types
Advanced tools
Comparing version 0.4.0-alpha.5 to 0.4.0-alpha.6
{ | ||
"name": "@idraw/types", | ||
"version": "0.4.0-alpha.5", | ||
"version": "0.4.0-alpha.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "src/index.ts", |
@@ -127,2 +127,3 @@ import type { Point, PointSize } from './point'; | ||
resize(viewSize: Partial<ViewSizeInfo>): ViewSizeInfo; | ||
updateViewScaleInfo(opts: { scale: number; offsetX: number; offsetY: number }): ViewScaleInfo; | ||
} | ||
@@ -129,0 +130,0 @@ |
@@ -1,4 +0,5 @@ | ||
import type { ElementBaseDetail, ElementTextDetail } from './element'; | ||
import type { ElementBaseDetail, ElementTextDetail, ElementGroupDetail } from './element'; | ||
export type DefaultElementDetailConfig = Required<Omit<ElementBaseDetail, 'clipPath' | 'background'>> & | ||
Required<Pick<ElementTextDetail, 'color' | 'textAlign' | 'verticalAlign' | 'fontSize' | 'fontFamily' | 'fontWeight' | 'lineHeight'>>; | ||
Required<Pick<ElementTextDetail, 'color' | 'textAlign' | 'verticalAlign' | 'fontSize' | 'fontFamily' | 'fontWeight' | 'lineHeight'>> & | ||
Required<Pick<ElementGroupDetail, 'overflow'>>; |
@@ -28,2 +28,3 @@ import type { Element, ElementType } from './element'; | ||
uuids: string[]; | ||
positions?: Array<Array<number>>; | ||
} | ||
@@ -30,0 +31,0 @@ export interface CoreEventChange { |
@@ -130,3 +130,3 @@ import { PointSize } from './point'; | ||
children: Element<ElementType>[]; | ||
overflow?: 'hidden'; | ||
overflow?: 'hidden' | 'visible'; | ||
assets?: ElementAssets; | ||
@@ -181,1 +181,3 @@ } | ||
export type Elements = Element<ElementType>[]; | ||
export type ElementPosition = number[]; |
22278
597