leaferjs â
Table of contents â
References â
Enumerations â
Classes â
- Animate
- AnimateEvent
- Arrow
- ArrowData
- Editor
- EditBox
- EditPoint
- EditSelect
- SelectArea
- Stroker
- EditorEvent
- EditorGroupEvent
- EditorMoveEvent
- EditorRotateEvent
- EditorScaleEvent
- EditorSkewEvent
- InnerEditorEvent
- EditTool
- InnerEditor
- LineEditTool
- Flow
- HTMLText
- HTMLTextData
- Robot
- RobotData
- ScrollBar
- TextEditor
- Transformer
- LeaferCanvas
- CanvasManager
- LeaferCanvasBase
- Debug
- LeafData
- LeafLayout
- Branch
- Leaf
- ChildEvent
- Event
- Eventer
- ImageEvent
- LayoutEvent
- LeaferEvent
- PropertyEvent
- RenderEvent
- ResizeEvent
- WatchEvent
- LeaferImage
- LeafLevelList
- LeafList
- AutoBounds
- Bounds
- Matrix
- Point
- Layouter
- Renderer
- Selector
- Watcher
- PathCreator
- TaskItem
- TaskProcessor
- App
- BoxData
- CanvasData
- EllipseData
- FrameData
- GroupData
- ImageData
- LeaferData
- LineData
- PathData
- PenData
- PolygonData
- RectData
- StarData
- TextData
- UIData
- Box
- Canvas
- Ellipse
- Frame
- Group
- Image
- Leafer
- Line
- Path
- Pen
- Polygon
- Rect
- Star
- Text
- UI
- DragEvent
- DropEvent
- KeyEvent
- MoveEvent
- PointerEvent
- RotateEvent
- SwipeEvent
- UIEvent
- ZoomEvent
- HitCanvasManager
- Interaction
- Cursor
- Dragger
- InteractionBase
Interfaces â
- IEditBox
- IEditSelect
- IEditor
- IEditTool
- IInnerEditor
- IEditorEvent
- IInnerEditorEvent
- IEditorGroupEvent
- IEditorMoveEvent
- IEditorScaleEvent
- IEditorRotateEvent
- IEditorSkewEvent
- ISelectArea
- ISimulateElement
- IStroker
- IFlowWrapDrawData
- IFlowDrawData
- IGapBoundsData
- IFlowAlignToAxisAlignMap
- IFlowParseData
- IHTMLTextData
- IHTMLTextInputData
- IScrollBarConfig
- IScrollBar
- IAppBase
- ILeaferConfig
- ILeaferAttrData
- ILeaferBase
- ILeaferTypeCreator
- ILeaferTypeFunction
- ILeaferTypeList
- ICreator
- IUICreator
- IPath2D
- ICanvasContext2D
- ITextMetrics
- ICanvasManager
- IHitCanvasManager
- ILeaferCanvasConfig
- ICanvasStrokeOptions
- ICanvasCacheOptions
- ICanvasAttr
- ILeaferCanvas
- IHitCanvas
- IBlobFunction
- ISkiaCanvas
- ISkiaCanvasExportConfig
- ISkiaNAPICanvas
- IControl
- IObject
- IBooleanMap
- INumberMap
- IStringMap
- IFunctionMap
- IPointDataMap
- IDataTypeHandle
- IDataProcessor
- ILeafDataOptions
- ILeafData
- ILeafMap
- ILeafArrayMap
- ILeafList
- ILeafLevelList
- IBranch
- ICachedLeaf
- IPointGap
- IFlowAxisAlign
- IRangeSize
- IUnitData
- IPercentData
- IConstraint
- IImageCursor
- ILeafAttrData
- ILeafInputData
- ILeafComputedData
- ILeaf
- ILeafAttrDescriptorFn
- IZoomView
- IBranchRender
- ILeafBounds
- ILeafDataProxy
- ILeafEventer
- ILeafHit
- ILeafMatrix
- ILeafRender
- IEvent
- IEventTarget
- ILeaferEvent
- IRenderEvent
- IAnimateEvent
- IChildEvent
- IResizeEvent
- IResizeEventListener
- IUpdateEvent
- IPropertyEvent
- ILayoutEvent
- IWatchEvent
- IMultiTouchData
- IKeepTouchData
- IEventListenerOptions
- IEventListenerItem
- IEventListenerMap
- IEventMap
- IEventListenerId
- IEventer
- IUIEvent
- IPointerEvent
- IDragEvent
- IDropEvent
- IRotateEvent
- IZoomEvent
- IMoveEvent
- IWheelEvent
- ISwipeEvent
- IKeyEvent
- IImageEvent
- IExportOptions
- IJSONOptions
- IExportResult
- IExportResultFunction
- IExportOnCanvasFunction
- IFunction
- INumberFunction
- IStringFunction
- IObjectFunction
- IPointDataFunction
- IAttrDecorator
- IImageManager
- ILeaferImageConfig
- ILeaferImageOnLoaded
- ILeaferImageOnError
- ILeaferImageCacheCanvas
- ILeaferImagePatternPaint
- ILeaferImage
- ICursorTypeMap
- ICursorRotate
- ICursorRotateMap
- IInteraction
- IInteractionCanvas
- IInteractionConfig
- IZoomConfig
- IMoveConfig
- IWheelConfig
- IPointerConfig
- ITouchConfig
- IMultiTouchConfig
- ICursorConfig
- ITransformer
- ILeafLayout
- ILayoutChangedData
- ILayoutBlockData
- IPartLayoutConfig
- ILayouterConfig
- ILayouter
- IPointData
- IUnitPointData
- IFromToData
- IRotationPointData
- IScrollPointData
- IClientPointData
- IPoint
- IRadiusPointData
- ISizeData
- ISize
- IScreenSizeData
- IBoundsData
- IOffsetBoundsData
- IBoundsDataFn
- IBounds
- ITwoPointBoundsData
- IAutoBoxData
- IAutoBoundsData
- IAutoBounds
- IMatrixData
- IScaleData
- IScaleRotationData
- ISkewData
- ILayoutData
- ILayoutBoundsData
- IMatrix
- IMatrixWithBoundsData
- IMatrixWithScaleData
- IMatrixWithOptionScaleData
- IMatrixWithBoundsScaleData
- IMatrixWithLayoutData
- MoveToCommandObject
- LineToCommandObject
- BezierCurveToCommandObject
- QuadraticCurveToCommandObject
- IMotionPathData
- IPathDrawer
- IPathCreator
- IPlatform
- IMiniappSelect
- IMiniappSizeView
- IMiniapp
- IPlugin
- IRenderOptions
- IRendererConfig
- IRenderer
- IPickResult
- IPickOptions
- IPickBottom
- ISelectorConfig
- IFindCondition
- IFindMethod
- ISelectorProxy
- ISelector
- ITaskProcessorConfig
- ITaskProcessor
- ITaskItem
- ITaskOptions
- IWatchEventData
- IWatcherConfig
- IWatcher
- IStyleAnimation
- IKeyframesAnimation
- IAnimateOptions
- IAnimateKeyframe
- IComputedKeyframe
- IAnimateEasingFunction
- ICustomEasingFunction
- ICubicBezierEasing
- IStepsEasing
- IAnimateEvents
- IAnimateEventFunction
- IAnimate
- ICachedShape
- IStrokeAttrData
- IStrokeInputData
- IStrokeComputedData
- ITextStyleAttrData
- ITextStyleInputData
- ITextStyleComputedData
- IEffectAttrData
- IEffectInputData
- IEffectComputedData
- ILine
- ILineData
- ILineInputData
- IArrow
- IArrowData
- IArrowInputData
- IFlow
- IFlowData
- IFlowInputData
- IVideo
- IVideoData
- IVideoInputData
- IGIF
- IGIFData
- IGIFInputData
- IRobot
- IRobotActions
- IRobotAnimation
- IRobotKeyframe
- IRobotComputedKeyframe
- IRobotData
- IRobotInputData
- IRect
- IRectData
- IRectInputData
- IEllipse
- IEllipseData
- IEllipseInputData
- IPolygon
- IPolygonData
- IPolygonInputData
- IStar
- IStarData
- IStarInputData
- IPath
- IPathData
- IPathInputData
- IPen
- IPenData
- IPenInputData
- IText
- ITextData
- ITextInputData
- ITextRowData
- ITextWordData
- ITextCharData
- ITextDrawData
- IImage
- IImageData
- IImageInputData
- ICanvas
- ICanvasData
- ICanvasInputData
- ILeaferData
- ILeaferInputData
- IAppData
- IAppInputData
- IFrame
- IFrameData
- IFrameInputData
- IBox
- IBoxData
- IBoxInputData
- IGroup
- IGroupData
- IGroupInputData
- IUI
- IStateStyle
- IStates
- IFindUIMethod
- IUIData
- IUIBaseInputData
- IUIInputData
- IUIJSONData
- IApp
- IAppConfig
- ILeafer
- IEditorBase
- IEditorConfig
- IEditPointInputData
- IEditPoint
- IEditBoxBase
- IEditorConfigFunction
- IEditToolFunction
- IColorConvertModule
- IEffectModule
- IExportModule
- IPaintModule
- IPaintImageModule
- IPaintGradientModule
- IPathArrowModule
- IStateModule
- ITextConvertModule
- ITransitionModule
- ITransitionMap
- ITransitionFunction
- ILeafPaint
- ILeafPaintPatternData
- ILeafStrokePaint
- ILeafShadowEffect
- IPaintBase
- ISolidPaint
- IRGB
- IRGBA
- IGradientPaint
- IColorStop
- IImagePaint
- IImageFilters
- IPathDataArrowMap
- IPathDataArrow
- IPathDataArrowOffset
- IVectorPath
- IShadowEffect
- IBlurEffect
- IGrayscaleEffect
Type Aliases â
- IScrollBarTheme
- ILeaferType
- IZoomType
- IWindingRule
- ICanvasPattern
- ICanvasContext2DSettings
- IHitCanvasConfig
- ILeaferCanvasView
- IBlob
- ICanvasType
- INumber
- IBoolean
- IString
- IValue
- ITimer
- IPathString
- IFourNumber
- ILeafListItemCallback
- ISide
- IAxis
- IAxisReverse
- IFlowType
- IFlowBoxType
- IGap
- IAxisAlign
- IFlowWrap
- IAutoSize
- IConstraintType
- IHitType
- IMaskType
- IEraserType
- IBlendMode
- IEditSize
- IDirection
- IDirection4
- IAlign
- IBaseLineAlign
- IFlowAlign
- IAround
- ICursorType
- IStateStyleType
- ILeafAttrDescriptor
- IBranchRenderModule
- ILeafBoundsModule
- ILeafDataProxyModule
- ILeafEventerModule
- ILeafHitModule
- ILeafMatrixModule
- ILeafRenderModule
- IEventListener
- IEventOption
- InnerId
- PointerType
- IExportImageType
- IExportFileType
- ILocationType
- IBoundsType
- ILayoutAttr
- MCommandData
- HCommandData
- VCommandData
- LCommandData
- CCommandData
- SCommandData
- QCommandData
- TCommandData
- ZCommandData
- ACommandData
- RectCommandData
- RoundRectCommandData
- EllipseCommandData
- ArcCommandData
- ArcToCommandData
- CanvasPathCommand
- IPathCommandData
- IPathCommandObject
- IAnswer
- IAnimation
- ITransition
- IAnimateType
- IKeyframe
- IKeyframeId
- IAnimateEasing
- IAnimateEasingName
- IAnimateEnding
- IRobotActionName
- IStateName
- IUITag
- IEditPointType
- IUIBoundsModule
- IUIHitModule
- IUIRenderModule
- IRectRenderModule
- IImageRenderModule
- ITextRenderModule
- IGroupRenderModule
- IFrameRenderModule
- ILeafPaintColor
- ILeafFill
- IPercent
- IColorString
- ICornerRadiusString
- IStrokeWidthString
- IDashPatternString
- IPaintString
- IShadowString
- IPaint
- IFill
- IStroke
- IPaintAttr
- IPaintType
- IGradientType
- IColor
- IImagePaintMode
- IRepeat
- IStrokeAlign
- IStrokeCap
- IStrokeJoin
- IArrowType
- ITextAlign
- IVerticalAlign
- ITextCase
- IFontWeight
- IFontWeightNumer
- IFontWeightString
- ITextDecoration
- ITextWrap
- IEffect
- IOverflow
Variables â
- AnimateEasing
- PathArrowModule
- PathMatrixHelper
- EditDataHelper
- EditSelectHelper
- EditorHelper
- EditToolCreator
- HighBezierHelper
- HighCurveHelper
- PathScaler
- LeaferTypeCreator
- MultiTouchHelper
- WheelEventHelper
- canvasSizeAttrs
- version
- Plugin
- Run
- DataHelper
- emptyData
- BranchRender
- LeafBounds
- LeafDataProxy
- LeafEventer
- LeafMatrix
- LeafRender
- BranchHelper
- LeafBoundsHelper
- LeafHelper
- WaitHelper
- FileHelper
- ImageManager
- AlignHelper
- AroundHelper
- tempBounds
- BoundsHelper
- IncrementId
- MathHelper
- OneRadian
- PI2
- PI_2
- tempMatrix
- MatrixHelper
- tempPoint
- PointHelper
- StringNumberMap
- TwoPointBoundsHelper
- BezierHelper
- EllipseHelper
- PathBounds
- PathCommandDataHelper
- PathCommandMap
- NeedConvertToCanvasCommandMap
- PathNumberCommandMap
- PathNumberCommandLengthMap
- PathConvert
- PathCorner
- PathDrawer
- PathHelper
- RectHelper
- pen
- Platform
- Creator
- EventCreator
- UICreator
- UIBounds
- RectRender
- UIRender
- MyImage
- MyDragEvent
- Keyboard
- PointerButton
- MyPointerEvent
- TextConvert
- ColorConvert
- UnitConvert
- PathArrow
- Paint
- PaintImage
- PaintGradient
- Effect
- Export
- State
- Transition
- InteractionHelper
Functions â
- arrowType
- registerEditTool
- registerInnerEditor
- motionPathType
- scaleResize
- scaleResizeFontSize
- scaleResizePath
- scaleResizePoints
- scaleResizeGroup
- stateType
- stateStyleType
- addViewport
- addViewportConfig
- canvasPatch
- registerUI
- registerUIEvent
- decorateLeafAttr
- attr
- defineLeafAttr
- dataType
- positionType
- autoLayoutType
- scaleType
- rotationType
- boundsType
- naturalBoundsType
- doBoundsType
- pathInputType
- pathType
- affectStrokeBoundsType
- doStrokeType
- strokeType
- affectRenderBoundsType
- surfaceType
- opacityType
- visibleType
- sortType
- maskType
- eraserType
- hitType
- cursorType
- dataProcessor
- layoutProcessor
- defineDataProcessor
- defineKey
- getDescriptor
- rewrite
- rewriteAble
- useModule
- isNull
- getPointData
- getBoundsData
- useCanvas
- effectType
- resizeType
- zoomLayerType
References â
getMatrixData â
Renames and re-exports __type
Type Aliases â
IScrollBarTheme â
ĆŹ IScrollBarTheme: "light"
| "dark"
| IBoxInputData
Defined in â
in/packages/interface/src/scroll/IScrollBar.ts:9
ILeaferType â
ĆŹ ILeaferType: "draw"
| "block"
| "viewport"
| "editor"
| "design"
| "board"
| "document"
| "app"
| "website"
| "game"
| "player"
| "chart"
| "custom"
Defined in â
leafer/packages/interface/src/app/ILeafer.ts:20
IZoomType â
ĆŹ IZoomType: "in"
| "out"
| "fit"
| "fit-width"
| "fit-height"
| number
| ILeaf
| ILeaf
[] | IBoundsData
Defined in â
leafer/packages/interface/src/app/ILeafer.ts:95
IWindingRule â
ĆŹ IWindingRule: "evenodd"
| "nonzero"
Defined in â
leafer/packages/interface/src/canvas/ICanvas.ts:3
ICanvasPattern â
ĆŹ ICanvasPattern: CanvasPattern
Defined in â
leafer/packages/interface/src/canvas/ICanvas.ts:114
ICanvasContext2DSettings â
ĆŹ ICanvasContext2DSettings: ICanvasRenderingContext2DSettings
Defined in â
leafer/packages/interface/src/canvas/ICanvas.ts:135
IHitCanvasConfig â
ĆŹ IHitCanvasConfig: ILeaferCanvasConfig
Defined in â
leafer/packages/interface/src/canvas/ILeaferCanvas.ts:22
ILeaferCanvasView â
ĆŹ ILeaferCanvasView: any
Defined in â
leafer/packages/interface/src/canvas/ILeaferCanvas.ts:144
IBlob â
ĆŹ IBlob: any
Defined in â
leafer/packages/interface/src/canvas/ILeaferCanvas.ts:219
ICanvasType â
ĆŹ ICanvasType: "skia"
| "napi"
| "canvas"
| "miniapp"
Defined in â
leafer/packages/interface/src/canvas/ISkiaCanvas.ts:3
INumber â
ĆŹ INumber: number
Defined in â
leafer/packages/interface/src/data/IData.ts:4
IBoolean â
ĆŹ IBoolean: boolean
Defined in â
leafer/packages/interface/src/data/IData.ts:5
IString â
ĆŹ IString: string
Defined in â
leafer/packages/interface/src/data/IData.ts:6
IValue â
ĆŹ IValue: INumber
| IBoolean
| IString
| IObject
Defined in â
leafer/packages/interface/src/data/IData.ts:7
ITimer â
ĆŹ ITimer: any
Defined in â
leafer/packages/interface/src/data/IData.ts:8
IPathString â
ĆŹ IPathString: string
Defined in â
leafer/packages/interface/src/data/IData.ts:10
IFourNumber â
ĆŹ IFourNumber: number
| number
[]
Defined in â
leafer/packages/interface/src/data/IData.ts:12
ILeafListItemCallback â
ĆŹ ILeafListItemCallback: (item
: ILeaf
, index?
: number
) => void
Type declaration â
⸠(item
, index?
): void
Parameters â
Name | Type |
---|---|
item | ILeaf |
index? | number |
Returns â
void
Defined in â
leafer/packages/interface/src/data/IList.ts:12
ISide â
ĆŹ ISide: "width"
| "height"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:32
IAxis â
ĆŹ IAxis: "x"
| "y"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:34
IAxisReverse â
ĆŹ IAxisReverse: "x-reverse"
| "y-reverse"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:36
IFlowType â
ĆŹ IFlowType: boolean
| IAxis
| IAxisReverse
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:38
IFlowBoxType â
ĆŹ IFlowBoxType: "box"
| "stroke"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:40
IGap â
ĆŹ IGap: INumber
| "auto"
| "fit"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:42
IAxisAlign â
ĆŹ IAxisAlign: "from"
| "center"
| "to"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:46
IFlowWrap â
ĆŹ IFlowWrap: boolean
| "reverse"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:50
IAutoSize â
ĆŹ IAutoSize: IBoolean
| INumber
| IPercentData
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:52
IConstraintType â
ĆŹ IConstraintType: "from"
| "center"
| "to"
| "from-to"
| "scale"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:73
IHitType â
ĆŹ IHitType: "path"
| "pixel"
| "all"
| "none"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:75
IMaskType â
ĆŹ IMaskType: "path"
| "pixel"
| "grayscale"
| "clipping"
| "clipping-path"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:81
IEraserType â
ĆŹ IEraserType: "path"
| "pixel"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:88
IBlendMode â
ĆŹ IBlendMode: "pass-through"
| "normal"
| "multiply"
| "screen"
| "overlay"
| "darken"
| "lighten"
| "color-dodge"
| "color-burn"
| "hard-light"
| "soft-light"
| "difference"
| "exclusion"
| "hue"
| "saturation"
| "color"
| "luminosity"
| "source-over"
| "source-in"
| "source-out"
| "source-atop"
| "destination-over"
| "destination-in"
| "destination-out"
| "destination-atop"
| "xor"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:92
IEditSize â
ĆŹ IEditSize: "size"
| "font-size"
| "scale"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:120
IDirection â
ĆŹ IDirection: "top-left"
| "top"
| "top-right"
| "right"
| "bottom-right"
| "bottom"
| "bottom-left"
| "left"
| "center"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:128
IDirection4 â
ĆŹ IDirection4: "top"
| "right"
| "bottom"
| "left"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:139
IAlign â
ĆŹ IAlign: IDirection
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:145
IBaseLineAlign â
ĆŹ IBaseLineAlign: "baseline-left"
| "baseline-center"
| "baseline-right"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:147
IFlowAlign â
ĆŹ IFlowAlign: IAlign
| IBaseLineAlign
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:152
IAround â
ĆŹ IAround: IAlign
| IUnitPointData
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:157
ICursorType â
ĆŹ ICursorType: IImageCursor
| ""
| "auto"
| "default"
| "none"
| "context-menu"
| "help"
| "pointer"
| "progress"
| "wait"
| "cell"
| "crosshair"
| "text"
| "vertical-text"
| "alias"
| "copy"
| "move"
| "no-drop"
| "not-allowed"
| "grab"
| "grabbing"
| "e-resize"
| "n-resize"
| "ne-resize"
| "nw-resize"
| "s-resize"
| "se-resize"
| "sw-resize"
| "w-resize"
| "ew-resize"
| "ns-resize"
| "nesw-resize"
| "nwse-resize"
| "col-resize"
| "row-resize"
| "all-scroll"
| "zoom-in"
| "zoom-out"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:161
IStateStyleType â
ĆŹ IStateStyleType: "hoverStyle"
| "pressStyle"
| "focusStyle"
| "selectedStyle"
| "disabledStyle"
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:201
ILeafAttrDescriptor â
ĆŹ ILeafAttrDescriptor: IObject
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/ILeaf.ts:683
IBranchRenderModule â
ĆŹ IBranchRenderModule: IBranchRender
& ThisType
<IBranch
>
Defined in â
leafer/packages/interface/src/display/module/IBranchRender.ts:6
ILeafBoundsModule â
ĆŹ ILeafBoundsModule: ILeafBounds
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafBounds.ts:3
ILeafDataProxyModule â
ĆŹ ILeafDataProxyModule: ILeafDataProxy
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafDataProxy.ts:4
ILeafEventerModule â
ĆŹ ILeafEventerModule: ILeafEventer
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafEventer.ts:7
ILeafHitModule â
ĆŹ ILeafHitModule: ILeafHit
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafHit.ts:5
ILeafMatrixModule â
ĆŹ ILeafMatrixModule: ILeafMatrix
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafMatrix.ts:3
ILeafRenderModule â
ĆŹ ILeafRenderModule: ILeafRender
& ThisType
<ILeaf
>
Defined in â
leafer/packages/interface/src/display/module/ILeafRender.ts:5
IEventListener â
ĆŹ IEventListener: IFunction
Defined in â
leafer/packages/interface/src/event/IEventer.ts:8
IEventOption â
ĆŹ IEventOption: IEventListenerOptions
| boolean
| "once"
Defined in â
leafer/packages/interface/src/event/IEventer.ts:15
InnerId â
ĆŹ InnerId: number
Defined in â
leafer/packages/interface/src/event/IEventer.ts:36
PointerType â
ĆŹ PointerType: "mouse"
| "pen"
| "touch"
Defined in â
leafer/packages/interface/src/event/IUIEvent.ts:50
IExportImageType â
ĆŹ IExportImageType: "jpg"
| "png"
| "webp"
Defined in â
leafer/packages/interface/src/file/IFileType.ts:1
IExportFileType â
ĆŹ IExportFileType: IExportImageType
| "svg"
| "pdf"
| "json"
Defined in â
leafer/packages/interface/src/file/IFileType.ts:2
ILocationType â
ĆŹ ILocationType: "world"
| "page"
| "local"
| "inner"
Defined in â
leafer/packages/interface/src/layout/ILeafLayout.ts:4
IBoundsType â
ĆŹ IBoundsType: "content"
| "box"
| "stroke"
| "render"
Defined in â
leafer/packages/interface/src/layout/ILeafLayout.ts:5
ILayoutAttr â
ĆŹ ILayoutAttr: "x"
| "y"
| "scaleX"
| "scaleY"
| "rotation"
| "skewX"
| "skewY"
Defined in â
leafer/packages/interface/src/math/IMath.ts:181
MCommandData â
ĆŹ MCommandData: [Command
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:15
HCommandData â
ĆŹ HCommandData: [Command
, x
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:16
VCommandData â
ĆŹ VCommandData: [Command
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:17
LCommandData â
ĆŹ LCommandData: MCommandData
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:18
CCommandData â
ĆŹ CCommandData: [Command
, x1
, y1
, x2
, y2
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:20
SCommandData â
ĆŹ SCommandData: [Command
, x2
, y2
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:21
QCommandData â
ĆŹ QCommandData: [Command
, x1
, y1
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:23
TCommandData â
ĆŹ TCommandData: [Command
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:24
ZCommandData â
ĆŹ ZCommandData: [Command
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:26
ACommandData â
ĆŹ ACommandData: [Command
, radiusX
, radiusY
, xAxisRotation
, largeArcFlag
, sweepFlag
, x
, y
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:28
RectCommandData â
ĆŹ RectCommandData: [Command
, x
, y
, width
, height
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:41
RoundRectCommandData â
ĆŹ RoundRectCommandData: [Command
, x
, y
, width
, height
, cornerRadius
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:42
EllipseCommandData â
ĆŹ EllipseCommandData: [Command
, x
, y
, radiusX
, radiusY
, rotation
, startAngle
, endAngle
, anticlockwise
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:43
ArcCommandData â
ĆŹ ArcCommandData: [Command
, x
, y
, radius
, startAngle
, endAngle
, anticlockwise
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:44
ArcToCommandData â
ĆŹ ArcToCommandData: [Command
, x1
, y1
, x2
, y2
, radius
]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:45
CanvasPathCommand â
ĆŹ CanvasPathCommand: 1
| 2
| 5
| 7
| 11
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:48
IPathCommandData â
ĆŹ IPathCommandData: number
[]
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:50
IPathCommandObject â
ĆŹ IPathCommandObject: MoveToCommandObject
| LineToCommandObject
| BezierCurveToCommandObject
| QuadraticCurveToCommandObject
| ClosePathCommandObject
Defined in â
leafer/packages/interface/src/path/IPathCommand.ts:87
IAnswer â
ĆŹ IAnswer: 0
| 1
| 2
| 3
Defined in â
leafer/packages/interface/src/selector/ISelector.ts:32
IAnimation â
ĆŹ IAnimation: IStyleAnimation
| IKeyframesAnimation
Defined in â
ui/packages/interface/src/IAnimation.ts:6
ITransition â
ĆŹ ITransition: IAnimateOptions
| IAnimateEasingName
| number
| boolean
Defined in â
ui/packages/interface/src/IAnimation.ts:8
IAnimateType â
ĆŹ IAnimateType: "all"
| "animation"
| "transition"
| "animate"
Defined in â
ui/packages/interface/src/IAnimation.ts:10
IKeyframe â
ĆŹ IKeyframe: IUIInputData
| IAnimateKeyframe
Defined in â
ui/packages/interface/src/IAnimation.ts:43
IKeyframeId â
ĆŹ IKeyframeId: number
Defined in â
ui/packages/interface/src/IAnimation.ts:45
IAnimateEasing â
ĆŹ IAnimateEasing: IAnimateEasingName
| ICubicBezierEasing
| IStepsEasing
| IObject
Defined in â
ui/packages/interface/src/IAnimation.ts:83
IAnimateEasingName â
ĆŹ IAnimateEasingName: "linear"
| "ease"
| "ease-in"
| "ease-out"
| "ease-in-out"
| "sine-in"
| "sine-out"
| "sine-in-out"
| "quad-in"
| "quad-out"
| "quad-in-out"
| "cubic-in"
| "cubic-out"
| "cubic-in-out"
| "quart-in"
| "quart-out"
| "quart-in-out"
| "quint-in"
| "quint-out"
| "quint-in-out"
| "expo-in"
| "expo-out"
| "expo-in-out"
| "circ-in"
| "circ-out"
| "circ-in-out"
| "back-in"
| "back-out"
| "back-in-out"
| "elastic-in"
| "elastic-out"
| "elastic-in-out"
| "bounce-in"
| "bounce-out"
| "bounce-in-out"
Defined in â
ui/packages/interface/src/IAnimation.ts:100
IAnimateEnding â
ĆŹ IAnimateEnding: "auto"
| "from"
| "to"
Defined in â
ui/packages/interface/src/IAnimation.ts:116
IRobotActionName â
ĆŹ IRobotActionName: string
Defined in â
ui/packages/interface/src/IUI.ts:116
IStateName â
ĆŹ IStateName: string
Defined in â
ui/packages/interface/src/IUI.ts:429
IUITag â
ĆŹ IUITag: "App"
| "Leafer"
| "Rect"
| "Ellipse"
| "Polygon"
| "Star"
| "Line"
| "Path"
| "Pen"
| "Text"
| "Image"
| "Canvas"
| "Group"
| "Frame"
| "Box"
| "Arrow"
| "Robot"
| "GIF"
| "Video"
Defined in â
ui/packages/interface/src/IUI.ts:499
IEditPointType â
ĆŹ IEditPointType: "rotate"
| "resize"
| "button"
Defined in â
ui/packages/interface/src/editor/IEditor.ts:134
IUIBoundsModule â
ĆŹ IUIBoundsModule: IUIBounds
& ThisType
<IUI
>
Defined in â
ui/packages/interface/src/module/IUIBounds.ts:5
IUIHitModule â
ĆŹ IUIHitModule: ILeafHit
& ThisType
<IUI
>
Defined in â
ui/packages/interface/src/module/IUIHit.ts:5
IUIRenderModule â
ĆŹ IUIRenderModule: IUIRender
& ThisType
<IUI
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:5
IRectRenderModule â
ĆŹ IRectRenderModule: IRectRender
& ThisType
<IRect
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:12
IImageRenderModule â
ĆŹ IImageRenderModule: IImageRender
& ThisType
<IImage
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:18
ITextRenderModule â
ĆŹ ITextRenderModule: ITextRender
& ThisType
<IText
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:24
IGroupRenderModule â
ĆŹ IGroupRenderModule: IGroupRender
& ThisType
<IGroup
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:30
IFrameRenderModule â
ĆŹ IFrameRenderModule: IFrameRender
& ThisType
<IFrame
>
Defined in â
ui/packages/interface/src/module/IUIRender.ts:36
ILeafPaintColor â
ĆŹ ILeafPaintColor: IColorString
| CanvasGradient
| CanvasPattern
Defined in â
ui/packages/interface/src/type/IComputedType.ts:7
ILeafFill â
ĆŹ ILeafFill: ILeafPaint
Defined in â
ui/packages/interface/src/type/IComputedType.ts:34
IPercent â
ĆŹ IPercent: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:1
IColorString â
ĆŹ IColorString: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:2
ICornerRadiusString â
ĆŹ ICornerRadiusString: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:4
IStrokeWidthString â
ĆŹ IStrokeWidthString: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:5
IDashPatternString â
ĆŹ IDashPatternString: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:6
IPaintString â
ĆŹ IPaintString: ISolidPaintString
| IGradientPaintString
| IImagePaintString
Defined in â
ui/packages/interface/src/type/IStringType.ts:8
IShadowString â
ĆŹ IShadowString: string
Defined in â
ui/packages/interface/src/type/IStringType.ts:13
IPaint â
ĆŹ IPaint: ISolidPaint
| IGradientPaint
| IImagePaint
Defined in â
ui/packages/interface/src/type/IType.ts:4
IFill â
ĆŹ IFill: IPaint
| IPaint
[] | IPaintString
Defined in â
ui/packages/interface/src/type/IType.ts:6
IStroke â
ĆŹ IStroke: IPaint
| IPaint
[] | IPaintString
Defined in â
ui/packages/interface/src/type/IType.ts:8
IPaintAttr â
ĆŹ IPaintAttr: "fill"
| "stroke"
Defined in â
ui/packages/interface/src/type/IType.ts:10
IPaintType â
ĆŹ IPaintType: "image"
| "solid"
| IGradientType
Defined in â
ui/packages/interface/src/type/IType.ts:19
IGradientType â
ĆŹ IGradientType: "linear"
| "radial"
| "angular"
Defined in â
ui/packages/interface/src/type/IType.ts:24
IColor â
ĆŹ IColor: IColorString
| IRGB
| IRGBA
Defined in â
ui/packages/interface/src/type/IType.ts:35
IImagePaintMode â
ĆŹ IImagePaintMode: "normal"
| "cover"
| "fit"
| "stretch"
| "clip"
| "repeat"
Defined in â
ui/packages/interface/src/type/IType.ts:89
IRepeat â
ĆŹ IRepeat: boolean
| "x"
| "y"
Defined in â
ui/packages/interface/src/type/IType.ts:90
IStrokeAlign â
ĆŹ IStrokeAlign: "inside"
| "outside"
| "center"
Defined in â
ui/packages/interface/src/type/IType.ts:93
IStrokeCap â
ĆŹ IStrokeCap: "none"
| "round"
| "square"
Defined in â
ui/packages/interface/src/type/IType.ts:94
IStrokeJoin â
ĆŹ IStrokeJoin: "bevel"
| "round"
| "miter"
Defined in â
ui/packages/interface/src/type/IType.ts:95
IArrowType â
ĆŹ IArrowType: IPathDataArrow
| "none"
| "angle"
| "angle-side"
| "arrow"
| "triangle"
| "triangle-flip"
| "circle"
| "circle-line"
| "square"
| "square-line"
| "diamond"
| "diamond-line"
| "mark"
Defined in â
ui/packages/interface/src/type/IType.ts:98
ITextAlign â
ĆŹ ITextAlign: "left"
| "center"
| "right"
| "justify"
Defined in â
ui/packages/interface/src/type/IType.ts:118
IVerticalAlign â
ĆŹ IVerticalAlign: "top"
| "middle"
| "bottom"
Defined in â
ui/packages/interface/src/type/IType.ts:119
ITextCase â
ĆŹ ITextCase: "upper"
| "lower"
| "title"
| "none"
| "small-caps"
Defined in â
ui/packages/interface/src/type/IType.ts:120
IFontWeight â
ĆŹ IFontWeight: IFontWeightNumer
| IFontWeightString
Defined in â
ui/packages/interface/src/type/IType.ts:121
IFontWeightNumer â
ĆŹ IFontWeightNumer: 100
| 200
| 300
| 400
| 500
| 600
| 700
| 800
| 900
Defined in â
ui/packages/interface/src/type/IType.ts:122
IFontWeightString â
ĆŹ IFontWeightString: "thin"
| "extra-light"
| "light"
| "normal"
| "medium"
| "semi-bold"
| "bold"
| "extra-bold"
| "black"
Defined in â
ui/packages/interface/src/type/IType.ts:123
ITextDecoration â
ĆŹ ITextDecoration: "none"
| "under"
| "delete"
Defined in â
ui/packages/interface/src/type/IType.ts:133
ITextWrap â
ĆŹ ITextWrap: "normal"
| "none"
| "break"
Defined in â
ui/packages/interface/src/type/IType.ts:134
IEffect â
ĆŹ IEffect: IObject
Defined in â
ui/packages/interface/src/type/IType.ts:164
IOverflow â
ĆŹ IOverflow: "show"
| "hide"
Defined in â
ui/packages/interface/src/type/IType.ts:166
Variables â
AnimateEasing â
⢠Const
AnimateEasing: Object
Type declaration â
Name | Type |
---|---|
get | (easing : IAnimateEasing ) => any |
register | (name : string , value : ICustomEasingFunction ) => void |
list | IObject |
Defined in â
in/packages/animate/src/AnimateEasing.ts:67
PathArrowModule â
⢠Const
PathArrowModule: IPathArrowModule
Defined in â
in/packages/arrow/src/PathArrowModule.ts:14
PathMatrixHelper â
⢠Const
PathMatrixHelper: Object
Type declaration â
Name | Type |
---|---|
layout | (data : IPathCommandData , x : number , y : number , scaleX? : number , scaleY? : number , rotation? : number , origin? : IPointData ) => void |
rotate | (data : IPathCommandData , rotation? : number , center? : IPointData ) => void |
Defined in â
in/packages/arrow/src/PathMatrixHelper.ts:9
EditDataHelper â
⢠Const
EditDataHelper: Object
Type declaration â
Name | Type |
---|---|
getScaleData | (element : IUI , startBounds : ILayoutBoundsData , direction : Direction9 , totalMove : IPointData , lockRatio : boolean | "corner" , around : IAround , flipable : boolean , scaleMode : boolean ) => IEditorScaleEvent |
getRotateData | (bounds : IBoundsData , direction : Direction9 , current : IPointData , last : IPointData , around : IAround ) => IEditorRotateEvent |
getSkewData | (bounds : IBoundsData , direction : Direction9 , move : IPointData , around : IAround ) => IEditorSkewEvent |
getAround | (around : IAround , altKey : boolean ) => IAround |
getRotateDirection | (direction : number , rotation : number , totalDirection : number ) => number |
getFlipDirection | (direction : Direction9 , flipedX : boolean , flipedY : boolean ) => Direction9 |
Defined in â
in/packages/editor/src/helper/EditDataHelper.ts:11
EditSelectHelper â
⢠Const
EditSelectHelper: Object
Type declaration â
Name | Type |
---|---|
findOne | (path : ILeafList ) => IUI |
findBounds | (leaf : IUI , bounds : IBounds ) => Answer |
Defined in â
in/packages/editor/src/helper/EditSelectHelper.ts:6
EditorHelper â
⢠Const
EditorHelper: Object
Type declaration â
Name | Type |
---|---|
group | (list : IUI [], element? : IUI , userGroup? : IGroupInputData | IGroup ) => IGroup |
ungroup | (list : IUI []) => IUI [] |
toTop | (list : IUI []) => void |
toBottom | (list : IUI []) => void |
Defined in â
in/packages/editor/src/helper/EditorHelper.ts:8
EditToolCreator â
⢠Const
EditToolCreator: Object
Type declaration â
Name | Type |
---|---|
list | IObject |
register | (EditTool : IObject ) => void |
get | (tag : string , editor : IEditor ) => IEditTool |
Defined in â
in/packages/editor/src/tool/EditToolCreator.ts:17
HighBezierHelper â
⢠Const
HighBezierHelper: Object
Type declaration â
Name | Type |
---|---|
getDistance | (fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number , t : number ) => number |
getDerivative | (t : number , fromV : number , v1 : number , v2 : number , toV : number ) => number |
getRotation | (t : number , fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number ) => number |
getT | (distance : number , totalDistance : number , fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number , precision : number ) => number |
cut | (data : IPathCommandData , t : number , fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number ) => void |
Defined in â
in/packages/motion-path/src/HighBezierHelper.ts:11
HighCurveHelper â
⢠Const
HighCurveHelper: Object
Type declaration â
Name | Type |
---|---|
transform | (data : IPathCommandData , matrix : IMatrixData ) => void |
transformPoints | (data : IPathCommandData , matrix : IMatrixData , start : number , pointCount : number ) => void |
getMotionPathData | (data : IPathCommandData ) => IMotionPathData |
getDistancePoint | (distanceData : IMotionPathData , motionDistance : number | IUnitData , motionPrecision? : number ) => IRotationPointData |
getDistancePath | (distanceData : IMotionPathData , motionDistance : number | IUnitData , motionPrecision? : number ) => IPathCommandData |
Defined in â
in/packages/motion-path/src/HighCurveHelper.ts:10
PathScaler â
⢠Const
PathScaler: Object
Type declaration â
Name | Type |
---|---|
scale | (data : IPathCommandData , scaleX : number , scaleY : number ) => void |
scalePoints | (data : IPathCommandData , scaleX : number , scaleY : number , start? : number , pointCount? : number ) => void |
Defined in â
in/packages/resize/src/PathScaler.ts:8
LeaferTypeCreator â
⢠Const
LeaferTypeCreator: Object
Type declaration â
Name | Type |
---|---|
list | ILeaferTypeList |
register | (name : string , fn : ILeaferTypeFunction ) => void |
run | (name : string , leafer : ILeaferBase ) => void |
Defined in â
in/packages/viewport/src/LeaferTypeCreator.ts:13
MultiTouchHelper â
⢠Const
MultiTouchHelper: Object
Type declaration â
Name | Type |
---|---|
getData | (list : IKeepTouchData []) => IMultiTouchData |
Defined in â
in/packages/viewport/src/interaction/MultiTouchHelper.ts:6
WheelEventHelper â
⢠Const
WheelEventHelper: Object
Type declaration â
Name | Type |
---|---|
getMove | (event : IWheelEvent , config : IWheelConfig ) => IPointData |
getScale | (event : IWheelEvent , config : IWheelConfig ) => number |
Defined in â
in/packages/viewport/src/interaction/WheelEventHelper.ts:6
canvasSizeAttrs â
⢠Const
canvasSizeAttrs: string
[]
Defined in â
leafer/packages/canvas/canvas/src/LeaferCanvasBase.ts:12
version â
⢠Const
version: "1.2.2"
Defined in â
leafer/packages/core/src/index.ts:23
Plugin â
⢠Const
Plugin: Object
Type declaration â
Name | Type |
---|---|
list | any |
add | (name : string ) => void |
check | (name : string , tip? : boolean ) => boolean |
need | (name : string ) => any |
Defined in â
leafer/packages/debug/src/Plugin.ts:1
Run â
⢠Const
Run: Object
Type declaration â
Name | Type |
---|---|
currentId | number |
currentName | string |
idMap | ids |
nameMap | names |
nameToIdMap | ids |
start | (name : string , microsecond? : boolean ) => number |
end | (id : number , microsecond? : boolean ) => void |
endOfName | (name : string , microsecond? : boolean ) => void |
Defined in â
leafer/packages/debug/src/Run.ts:15
DataHelper â
⢠Const
DataHelper: Object
Type declaration â
Name | Type |
---|---|
default | <T>(t : T , defaultData : IObject ) => T |
assign | (t : IObject , merge : IObject , exclude? : IObject ) => void |
copyAttrs | (t : IObject , from : IObject , include : string []) => IObject |
clone | (data : unknown ) => IObject |
toMap | (list : string []) => IBooleanMap |
Defined in â
leafer/packages/display-module/data/src/DataHelper.ts:4
emptyData â
⢠Const
emptyData: IObject
= {}
Defined in â
leafer/packages/display-module/data/src/index.ts:13
BranchRender â
⢠Const
BranchRender: IBranchRenderModule
Defined in â
leafer/packages/display-module/display-module/src/BranchRender.ts:7
LeafBounds â
⢠Const
LeafBounds: ILeafBoundsModule
Defined in â
leafer/packages/display-module/display-module/src/LeafBounds.ts:12
LeafDataProxy â
⢠Const
LeafDataProxy: ILeafDataProxyModule
Defined in â
leafer/packages/display-module/display-module/src/LeafDataProxy.ts:9
LeafEventer â
⢠Const
LeafEventer: ILeafEventerModule
Defined in â
leafer/packages/display-module/display-module/src/LeafEventer.ts:6
LeafMatrix â
⢠Const
LeafMatrix: ILeafMatrixModule
Defined in â
leafer/packages/display-module/display-module/src/LeafMatrix.ts:8
LeafRender â
⢠Const
LeafRender: ILeafRenderModule
Defined in â
leafer/packages/display-module/display-module/src/LeafRender.ts:4
BranchHelper â
⢠Const
BranchHelper: Object
Type declaration â
Name | Type |
---|---|
sort | (a : ILeaf , b : ILeaf ) => number |
pushAllChildBranch | (branch : ILeaf , leafList : ILeafList | ILeafLevelList ) => void |
pushAllParent | (leaf : ILeaf , leafList : ILeafList | ILeafLevelList ) => void |
pushAllBranchStack | (branch : ILeaf , pushList : ILeaf []) => void |
updateBounds | (branch : ILeaf , exclude? : ILeaf ) => void |
updateBoundsByBranchStack | (branchStack : ILeaf [], exclude? : ILeaf ) => void |
Defined in â
leafer/packages/display-module/helper/src/BranchHelper.ts:7
LeafBoundsHelper â
⢠Const
LeafBoundsHelper: Object
Type declaration â
Name | Type |
---|---|
worldBounds | (target : ILeaf ) => IBoundsData |
localBoxBounds | (target : ILeaf ) => IBoundsData |
localStrokeBounds | (target : ILeaf ) => IBoundsData |
localRenderBounds | (target : ILeaf ) => IBoundsData |
maskLocalBoxBounds | (target : ILeaf ) => IBoundsData |
maskLocalStrokeBounds | (target : ILeaf ) => IBoundsData |
maskLocalRenderBounds | (target : ILeaf ) => IBoundsData |
excludeRenderBounds | (child : ILeaf , options : IRenderOptions ) => boolean |
Defined in â
leafer/packages/display-module/helper/src/LeafBoundsHelper.ts:4
LeafHelper â
⢠Const
LeafHelper: Object
Type declaration â
Name | Type |
---|---|
updateAllMatrix | (leaf : ILeaf , checkAutoLayout? : boolean , waitAutoLayout? : boolean ) => void |
updateMatrix | (leaf : ILeaf , checkAutoLayout? : boolean , waitAutoLayout? : boolean ) => void |
updateBounds | (leaf : ILeaf ) => void |
updateAllWorldOpacity | (leaf : ILeaf ) => void |
updateAllChange | (leaf : ILeaf ) => void |
worldHittable | (t : ILeaf ) => boolean |
moveWorld | (t : ILeaf , x : number | IPointData , y : number , isInnerPoint? : boolean , transition? : any ) => void |
moveLocal | (t : ILeaf , x : number | IPointData , y : number , transition? : any ) => void |
zoomOfWorld | (t : ILeaf , origin : IPointData , scaleX : number , scaleY? : number , resize? : boolean ) => void |
zoomOfLocal | (t : ILeaf , origin : IPointData , scaleX : number , scaleY : number , resize? : boolean ) => void |
rotateOfWorld | (t : ILeaf , origin : IPointData , angle : number ) => void |
rotateOfLocal | (t : ILeaf , origin : IPointData , angle : number ) => void |
skewOfWorld | (t : ILeaf , origin : IPointData , skewX : number , skewY? : number , resize? : boolean ) => void |
skewOfLocal | (t : ILeaf , origin : IPointData , skewX : number , skewY : number , resize? : boolean ) => void |
transformWorld | (t : ILeaf , transform : IMatrixData , resize? : boolean ) => void |
transform | (t : ILeaf , transform : IMatrixData , resize? : boolean ) => void |
setTransform | (t : ILeaf , transform : IMatrixData , resize? : boolean ) => void |
getFlipTransform | (t : ILeaf , axis : IAxis ) => IMatrixData |
getLocalOrigin | (t : ILeaf , origin : IPointData | IDirection ) => IPointData |
getInnerOrigin | (t : ILeaf , origin : IPointData | IDirection ) => IPointData |
getRelativeWorld | (t : ILeaf , relative : ILeaf , temp? : boolean ) => IMatrixData |
drop | (t : ILeaf , parent : ILeaf , index? : number , resize? : boolean ) => void |
hasParent | (p : ILeaf , parent : ILeaf ) => boolean | void |
Defined in â
leafer/packages/display-module/helper/src/LeafHelper.ts:8
WaitHelper â
⢠Const
WaitHelper: Object
Type declaration â
Name | Type |
---|---|
run | (wait : IFunction []) => void |
Defined in â
leafer/packages/display-module/helper/src/WaitHelper.ts:3
FileHelper â
⢠Const
FileHelper: Object
Type declaration â
Name | Type |
---|---|
opacityTypes | IExportFileType [] |
upperCaseTypeMap | IStringMap |
mineType | (type : string ) => string |
fileType | (filename : string ) => string |
isOpaqueImage | (filename : string ) => boolean |
getExportOptions | (options? : number | boolean | IExportOptions ) => IExportOptions |
Defined in â
leafer/packages/file/src/FileHelper.ts:3
ImageManager â
⢠Const
ImageManager: IImageManager
Defined in â
leafer/packages/image/image/src/ImageManager.ts:7
AlignHelper â
⢠Const
AlignHelper: Object
Type declaration â
Name | Type |
---|---|
toPoint | (align : IDirection , contentBounds : IBoundsData , bounds : IBoundsData , to? : IPointData , onlySize? : boolean ) => void |
Defined in â
leafer/packages/math/src/AlignHelper.ts:6
AroundHelper â
⢠Const
AroundHelper: Object
Type declaration â
Name | Type |
---|---|
directionData | IUnitPointData [] |
tempPoint | IPointData |
get | (around : IAround ) => IUnitPointData |
toPoint | (around : IAround , bounds : IBoundsData , to : IPointData , onlySize? : boolean , pointBounds? : IBoundsData ) => void |
Defined in â
leafer/packages/math/src/AroundHelper.ts:18
tempBounds â
⢠Const
tempBounds: Bounds
Defined in â
leafer/packages/math/src/Bounds.ts:179
BoundsHelper â
⢠Const
BoundsHelper: Object
Type declaration â
Name | Type |
---|---|
tempBounds | IBoundsData |
set | (t : IBoundsData , x : number , y : number , width : number , height : number ) => void |
copy | (t : IBoundsData , bounds : IBoundsData ) => void |
copyAndSpread | (t : IBoundsData , bounds : IBoundsData , spread : IFourNumber , isShrink? : boolean , side? : ISide ) => void |
minX | (t : IBoundsData ) => number |
minY | (t : IBoundsData ) => number |
maxX | (t : IBoundsData ) => number |
maxY | (t : IBoundsData ) => number |
move | (t : IBoundsData , x : number , y : number ) => void |
getByMove | (t : IBoundsData , x : number , y : number ) => IBoundsData |
toOffsetOutBounds | (t : IBoundsData , to? : IOffsetBoundsData , parent? : IBoundsData ) => void |
scale | (t : IBoundsData , scaleX : number , scaleY : number ) => void |
scaleOf | (t : IBoundsData , origin : IPointData , scaleX : number , scaleY : number ) => void |
tempToOuterOf | (t : IBoundsData , matrix : IMatrixData ) => IBoundsData |
getOuterOf | (t : IBoundsData , matrix : IMatrixData ) => IBoundsData |
toOuterOf | (t : IBoundsData , matrix : IMatrixData , to? : IBoundsData ) => void |
toInnerOf | (t : IBoundsData , matrix : IMatrixData , to? : IBoundsData ) => void |
getFitMatrix | (t : IBoundsData , put : IBoundsData , baseScale : number ) => IMatrix |
getSpread | (t : IBoundsData , spread : IFourNumber , side? : ISide ) => IBoundsData |
spread | (t : IBoundsData , spread : IFourNumber , side? : ISide ) => void |
shrink | (t : IBoundsData , shrink : IFourNumber , side? : ISide ) => void |
ceil | (t : IBoundsData ) => void |
unsign | (t : IBoundsData ) => void |
float | (t : IBoundsData , maxLength? : number ) => void |
add | (t : IBoundsData , bounds : IBoundsData , isPoint? : boolean ) => void |
addList | (t : IBoundsData , list : IBoundsData []) => void |
setList | (t : IBoundsData , list : IBoundsData [], addMode : boolean ) => void |
addListWithFn | (t : IBoundsData , list : IObject [], boundsDataFn : IBoundsDataFn ) => void |
setListWithFn | (t : IBoundsData , list : IObject [], boundsDataFn : IBoundsDataFn , addMode : boolean ) => void |
setPoints | (t : IBoundsData , points : IPointData []) => void |
setPoint | (t : IBoundsData , point : IPointData ) => void |
addPoint | (t : IBoundsData , point : IPointData ) => void |
getPoints | (t : IBoundsData ) => IPointData [] |
hitRadiusPoint | (t : IBoundsData , point : IRadiusPointData , pointMatrix? : IMatrixWithScaleData ) => boolean |
hitPoint | (t : IBoundsData , point : IPointData , pointMatrix? : IMatrixData ) => boolean |
hit | (t : IBoundsData , other : IBoundsData , otherMatrix? : IMatrixData ) => boolean |
includes | (t : IBoundsData , other : IBoundsData , otherMatrix? : IMatrixData ) => boolean |
getIntersectData | (t : IBoundsData , other : IBoundsData , otherMatrix? : IMatrixData ) => IBoundsData |
intersect | (t : IBoundsData , other : IBoundsData , otherMatrix? : IMatrixData ) => void |
isSame | (t : IBoundsData , bounds : IBoundsData ) => boolean |
isEmpty | (t : IBoundsData ) => boolean |
reset | (t : IBoundsData ) => void |
Defined in â
leafer/packages/math/src/BoundsHelper.ts:18
IncrementId â
⢠Const
IncrementId: Object
Type declaration â
Name | Type |
---|---|
RUNTIME | string |
LEAF | string |
TASK | string |
CNAVAS | string |
IMAGE | string |
types | INumberMap |
create | (typeName : string ) => number |
Defined in â
leafer/packages/math/src/IncrementId.ts:4
MathHelper â
⢠Const
MathHelper: Object
Type declaration â
Name | Type |
---|---|
within | (value : number , min : number | IRangeSize , max? : number ) => number |
fourNumber | (num : number | number [], maxValue? : number ) => number [] |
formatRotation | (rotation : number , unsign? : boolean ) => number |
getGapRotation | (addRotation : number , gap : number , oldRotation : number ) => number |
float | (num : number , maxLength? : number ) => number |
getScaleData | (scale : number | IPointData , size : number | ISizeData , originSize : ISizeData , scaleData? : IScaleData ) => IScaleData |
assignScale | (scaleData : IScaleData , scale : number | IPointData ) => void |
Defined in â
leafer/packages/math/src/MathHelper.ts:5
OneRadian â
⢠Const
OneRadian: number
Defined in â
leafer/packages/math/src/MathHelper.ts:85
PI2 â
⢠Const
PI2: number
Defined in â
leafer/packages/math/src/MathHelper.ts:86
PI_2 â
⢠Const
PI_2: number
Defined in â
leafer/packages/math/src/MathHelper.ts:87
tempMatrix â
⢠Const
tempMatrix: Matrix
Defined in â
leafer/packages/math/src/Matrix.ts:168
MatrixHelper â
⢠Const
MatrixHelper: Object
Type declaration â
Name | Type |
---|---|
defaultMatrix | IMatrixData |
defaultWorld | IMatrixWithLayoutData |
tempMatrix | IMatrixData |
set | (t : IMatrixData , a : number , b : number , c : number , d : number , e : number , f : number ) => void |
get | () => IMatrixData |
getWorld | () => IMatrixWithLayoutData |
copy | (t : IMatrixData , matrix : IMatrixData ) => void |
translate | (t : IMatrixData , x : number , y : number ) => void |
translateInner | (t : IMatrixData , x : number , y : number , hasOrigin? : boolean ) => void |
scale | (t : IMatrixData , scaleX : number , scaleY : number ) => void |
scaleOfOuter | (t : IMatrixData , origin : IPointData , scaleX : number , scaleY? : number ) => void |
scaleOfInner | (t : IMatrixData , origin : IPointData , scaleX : number , scaleY : number ) => void |
rotate | (t : IMatrixData , rotation : number ) => void |
rotateOfOuter | (t : IMatrixData , origin : IPointData , rotation : number ) => void |
rotateOfInner | (t : IMatrixData , origin : IPointData , rotation : number ) => void |
skew | (t : IMatrixData , skewX : number , skewY? : number ) => void |
skewOfOuter | (t : IMatrixData , origin : IPointData , skewX : number , skewY? : number ) => void |
skewOfInner | (t : IMatrixData , origin : IPointData , skewX : number , skewY : number ) => void |
multiply | (t : IMatrixData , child : IMatrixData ) => void |
multiplyParent | (t : IMatrixWithOptionScaleData , parent : IMatrixWithOptionScaleData , to? : IMatrixWithOptionScaleData , abcdChanged? : number | boolean , childScaleData? : IScaleData , scrollData? : IScrollPointData ) => void |
divide | (t : IMatrixData , child : IMatrixData ) => void |
divideParent | (t : IMatrixData , parent : IMatrixData ) => void |
tempInvert | (t : IMatrixData ) => IMatrixData |
invert | (t : IMatrixData ) => void |
toOuterPoint | (t : IMatrixData , inner : IPointData , to? : IPointData , distance? : boolean ) => void |
toInnerPoint | (t : IMatrixData , outer : IPointData , to? : IPointData , distance? : boolean ) => void |
setLayout | (t : IMatrixData , layout : ILayoutData , origin? : IPointData , around? : IPointData , bcChanged? : number | boolean ) => void |
getLayout | (t : IMatrixData , origin? : IPointData , around? : IPointData , firstSkewY? : boolean ) => ILayoutData |
withScale | (t : IMatrixData , scaleX? : number , scaleY : number ) => IMatrixWithScaleData |
reset | (t : IMatrixData ) => void |
Defined in â
leafer/packages/math/src/MatrixHelper.ts:13
tempPoint â
⢠Const
tempPoint: Point
Defined in â
leafer/packages/math/src/Point.ts:98
PointHelper â
⢠Const
PointHelper: Object
Type declaration â
Name | Type |
---|---|
defaultPoint | IPointData |
tempPoint | IPointData |
tempRadiusPoint | IRadiusPointData |
set | (t : IPointData , x : number , y : number ) => void |
setRadius | (t : IRadiusPointData , x : number , y? : number ) => void |
copy | (t : IPointData , point : IPointData ) => void |
copyFrom | (t : IPointData , x : number , y : number ) => void |
move | (t : IPointData , x : number , y : number ) => void |
scale | (t : IPointData , scaleX : number , scaleY : number ) => void |
scaleOf | (t : IPointData , origin : IPointData , scaleX : number , scaleY : number ) => void |
rotate | (t : IPointData , rotation : number , origin? : IPointData ) => void |
tempToInnerOf | (t : IPointData , matrix : IMatrixData ) => IPointData |
tempToOuterOf | (t : IPointData , matrix : IMatrixData ) => IPointData |
tempToInnerRadiusPointOf | (t : IRadiusPointData , matrix : IMatrixWithScaleData ) => IRadiusPointData |
toInnerRadiusPointOf | (t : IRadiusPointData , matrix : IMatrixWithScaleData , to? : IRadiusPointData ) => void |
toInnerOf | (t : IPointData , matrix : IMatrixData , to? : IPointData ) => void |
toOuterOf | (t : IPointData , matrix : IMatrixData , to? : IPointData ) => void |
getCenter | (t : IPointData , to : IPointData ) => IPointData |
getCenterX | (x1 : number , x2 : number ) => number |
getCenterY | (y1 : number , y2 : number ) => number |
getDistance | (t : IPointData , point : IPointData ) => number |
getDistanceFrom | (x1 : number , y1 : number , x2 : number , y2 : number ) => number |
getMinDistanceFrom | (x1 : number , y1 : number , x2 : number , y2 : number , x3 : number , y3 : number ) => number |
getAngle | (t : IPointData , to : IPointData ) => number |
getRotation | (t : IPointData , origin : IPointData , to : IPointData , toOrigin? : IPointData ) => number |
getRadianFrom | (fromX : number , fromY : number , originX : number , originY : number , toX : number , toY : number , toOriginX? : number , toOriginY? : number ) => number |
getAtan2 | (t : IPointData , to : IPointData ) => number |
getDistancePoint | (t : IPointData , to : IPointData , distance : number , changeTo : boolean ) => IPointData |
toNumberPoints | (originPoints : number [] | IPointData []) => number [] |
reset | (t : IPointData ) => void |
Defined in â
leafer/packages/math/src/PointHelper.ts:11
StringNumberMap â
⢠Const
StringNumberMap: INumberMap
Defined in â
leafer/packages/math/src/StringNumber.ts:4
TwoPointBoundsHelper â
⢠Const
TwoPointBoundsHelper: Object
Type declaration â
Name | Type |
---|---|
tempPointBounds | ITwoPointBoundsData |
setPoint | (t : ITwoPointBoundsData , minX : number , minY : number ) => void |
addPoint | (t : ITwoPointBoundsData , x : number , y : number ) => void |
addBounds | (t : ITwoPointBoundsData , x : number , y : number , width : number , height : number ) => void |
copy | (t : ITwoPointBoundsData , pb : ITwoPointBoundsData ) => void |
addPointBounds | (t : ITwoPointBoundsData , pb : ITwoPointBoundsData ) => void |
toBounds | (t : ITwoPointBoundsData , setBounds : IBoundsData ) => void |
Defined in â
leafer/packages/math/src/TwoPointBoundsHelper.ts:3
BezierHelper â
⢠Const
BezierHelper: Object
Type declaration â
Name | Type |
---|---|
points | (data : IPathCommandData , originPoints : number [] | IPointData [], curve? : number | boolean , close? : boolean ) => void |
rect | (data : IPathCommandData , x : number , y : number , width : number , height : number ) => void |
roundRect | (data : IPathCommandData , x : number , y : number , width : number , height : number , radius : number | number []) => void |
arcTo | (data : void | IPathCommandData , fromX : number , fromY : number , x1 : number , y1 : number , toX : number , toY : number , radius : number , setPointBounds? : ITwoPointBoundsData , setEndPoint? : IPointData , setStartPoint? : IPointData ) => void |
arc | (data : void | IPathCommandData , x : number , y : number , radius : number , startAngle : number , endAngle : number , anticlockwise? : boolean , setPointBounds? : ITwoPointBoundsData , setEndPoint? : IPointData , setStartPoint? : IPointData ) => void |
ellipse | (data : void | IPathCommandData , cx : number , cy : number , radiusX : number , radiusY : number , rotation : number , startAngle : number , endAngle : number , anticlockwise? : boolean , setPointBounds? : ITwoPointBoundsData , setEndPoint? : IPointData , setStartPoint? : IPointData ) => void |
quadraticCurveTo | (data : IPathCommandData , fromX : number , fromY : number , x1 : number , y1 : number , toX : number , toY : number ) => void |
toTwoPointBoundsByQuadraticCurve | (fromX : number , fromY : number , x1 : number , y1 : number , toX : number , toY : number , pointBounds : ITwoPointBoundsData , addMode? : boolean ) => void |
toTwoPointBounds | (fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number , pointBounds : ITwoPointBoundsData , addMode? : boolean ) => void |
getPointAndSet | (t : number , fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number , setPoint : IPointData ) => void |
getPoint | (t : number , fromX : number , fromY : number , x1 : number , y1 : number , x2 : number , y2 : number , toX : number , toY : number ) => IPointData |
Defined in â
leafer/packages/path/src/BezierHelper.ts:15
EllipseHelper â
⢠Const
EllipseHelper: Object
Type declaration â
Name | Type |
---|---|
ellipticalArc | (data : IPathCommandData , fromX : number , fromY : number , radiusX : number , radiusY : number , rotation : number , largeFlag : number , sweepFlag : number , toX : number , toY : number , curveMode? : boolean ) => void |
Defined in â
leafer/packages/path/src/EllipseHelper.ts:12
PathBounds â
⢠Const
PathBounds: Object
Type declaration â
Name | Type |
---|---|
toBounds | (data : IPathCommandData , setBounds : IBoundsData ) => void |
toTwoPointBounds | (data : IPathCommandData , setPointBounds : ITwoPointBoundsData ) => void |
Defined in â
leafer/packages/path/src/PathBounds.ts:19
PathCommandDataHelper â
⢠Const
PathCommandDataHelper: Object
Type declaration â
Name | Type |
---|---|
beginPath | (data : IPathCommandData ) => void |
moveTo | (data : IPathCommandData , x : number , y : number ) => void |
lineTo | (data : IPathCommandData , x : number , y : number ) => void |
bezierCurveTo | (data : IPathCommandData , x1 : number , y1 : number , x2 : number , y2 : number , x : number , y : number ) => void |
quadraticCurveTo | (data : IPathCommandData , x1 : number , y1 : number , x : number , y : number ) => void |
closePath | (data : IPathCommandData ) => void |
rect | (data : IPathCommandData , x : number , y : number , width : number , height : number ) => void |
roundRect | (data : IPathCommandData , x : number , y : number , width : number , height : number , cornerRadius : number | number []) => void |
ellipse | (data : IPathCommandData , x : number , y : number , radiusX : number , radiusY : number , rotation? : number , startAngle? : number , endAngle? : number , anticlockwise? : boolean ) => void |
arc | (data : IPathCommandData , x : number , y : number , radius : number , startAngle? : number , endAngle? : number , anticlockwise? : boolean ) => void |
arcTo | (data : IPathCommandData , x1 : number , y1 : number , x2 : number , y2 : number , radius : number , lastX? : number , lastY? : number ) => void |
drawEllipse | (data : IPathCommandData , x : number , y : number , radiusX : number , radiusY : number , rotation? : number , startAngle? : number , endAngle? : number , anticlockwise? : boolean ) => void |
drawArc | (data : IPathCommandData , x : number , y : number , radius : number , startAngle? : number , endAngle? : number , anticlockwise? : boolean ) => void |
drawPoints | (data : IPathCommandData , points : number [] | IPointData [], curve? : number | boolean , close? : boolean ) => void |
Defined in â
leafer/packages/path/src/PathCommandDataHelper.ts:13
PathCommandMap â
⢠Const
PathCommandMap: INumberMap
Defined in â
leafer/packages/path/src/PathCommandMap.ts:16
NeedConvertToCanvasCommandMap â
⢠Const
NeedConvertToCanvasCommandMap: INumberMap
Defined in â
leafer/packages/path/src/PathCommandMap.ts:83
PathNumberCommandMap â
⢠Const
PathNumberCommandMap: IStringMap
= {}
Defined in â
leafer/packages/path/src/PathCommandMap.ts:116
PathNumberCommandLengthMap â
⢠Const
PathNumberCommandLengthMap: INumberMap
= {}
Defined in â
leafer/packages/path/src/PathCommandMap.ts:122
PathConvert â
⢠Const
PathConvert: Object
Type declaration â
Name | Type |
---|---|
current | ICurrentCommand |
stringify | (data : IPathCommandData , floatLength? : number ) => string |
parse | (pathString : string , curveMode? : boolean ) => IPathCommandData |
toCanvasData | (old : IPathCommandData , curveMode? : boolean ) => IPathCommandData |
objectToCanvasData | (list : IPathCommandObject []) => IPathCommandData |
copyData | (data : IPathCommandData , old : IPathCommandData , index : number , count : number ) => void |
pushData | (data : IPathCommandData , strNum : string | number ) => void |
Defined in â
leafer/packages/path/src/PathConvert.ts:25
PathCorner â
⢠Const
PathCorner: Object
Type declaration â
Name | Type |
---|---|
smooth | (data : IPathCommandData , cornerRadius : number , _cornerSmoothing? : number ) => IPathCommandData |
Defined in â
leafer/packages/path/src/PathCorner.ts:12
PathDrawer â
⢠Const
PathDrawer: Object
Type declaration â
Name | Type |
---|---|
drawPathByData | (drawer : IPathDrawer , data : IPathCommandData ) => void |
Defined in â
leafer/packages/path/src/PathDrawer.ts:11
PathHelper â
⢠Const
PathHelper: Object
Type declaration â
Name | Type |
---|---|
creator | IPathCreator |
parse | (_pathString : string , _curveMode? : boolean ) => IPathCommandData |
convertToCanvasData | (_old : IPathCommandData , _curveMode? : boolean ) => IPathCommandData |
Defined in â
leafer/packages/path/src/PathHelper.ts:3
RectHelper â
⢠Const
RectHelper: Object
Type declaration â
Name | Type |
---|---|
drawRoundRect | (drawer : IPathDrawer , x : number , y : number , width : number , height : number , cornerRadius : number | number []) => void |
Defined in â
leafer/packages/path/src/RectHelper.ts:4
pen â
⢠Const
pen: PathCreator
Defined in â
leafer/packages/path/src/index.ts:23
Platform â
⢠Const
Platform: IPlatform
Defined in â
leafer/packages/platform/platform/src/Platform.ts:4
Creator â
⢠Const
Creator: ICreator
= {}
Defined in â
leafer/packages/platform/platform/src/creator/Creator.ts:4
EventCreator â
⢠Const
EventCreator: Object
Type declaration â
Name | Type |
---|---|
nameList | IObject |
register | (Event : IObject ) => void |
changeName | (oldName : string , newName : string ) => void |
has | (type : string ) => boolean |
get | (type : string , ...params : unknown []) => IEvent |
Defined in â
leafer/packages/platform/platform/src/creator/EventCreator.ts:7
UICreator â
⢠Const
UICreator: Object
Type declaration â
Name | Type |
---|---|
list | IObject |
register | (UI : IObject ) => void |
get | (tag : string , data? : IObject , x? : number , y? : number , width? : number , height? : number ) => ILeaf |
Defined in â
leafer/packages/platform/platform/src/creator/UICreator.ts:7
UIBounds â
⢠Const
UIBounds: IUIBoundsModule
Defined in â
ui/packages/display-module/bounds/src/UIBounds.ts:4
RectRender â
⢠Const
RectRender: IRectRenderModule
Defined in â
ui/packages/display-module/render/src/RectRender.ts:6
UIRender â
⢠Const
UIRender: IUIRenderModule
Defined in â
ui/packages/display-module/render/src/UIRender.ts:7
MyImage â
⢠Const
MyImage: typeof Image
= Image
Defined in â
ui/packages/display/src/Image.ts:39
MyDragEvent â
⢠Const
MyDragEvent: typeof DragEvent
= DragEvent
Defined in â
ui/packages/event/src/DragEvent.ts:114
Keyboard â
⢠Const
Keyboard: Object
Type declaration â
Name | Type |
---|---|
isHoldSpaceKey | () => boolean |
isHold | (code : string ) => boolean |
setDownCode | (code : string ) => void |
setUpCode | (code : string ) => void |
Defined in â
ui/packages/event/src/Keyboard.ts:6
PointerButton â
⢠Const
PointerButton: Object
Type declaration â
Name | Type |
---|---|
LEFT | number |
RIGHT | number |
MIDDLE | number |
defaultLeft | (event : IUIEvent ) => void |
left | (event : IUIEvent ) => boolean |
right | (event : IUIEvent ) => boolean |
middle | (event : IUIEvent ) => boolean |
Defined in â
ui/packages/event/src/PointerButton.ts:4
MyPointerEvent â
⢠Const
MyPointerEvent: typeof PointerEvent
= PointerEvent
Defined in â
ui/packages/event/src/PointerEvent.ts:50
TextConvert â
⢠Const
TextConvert: ITextConvertModule
Defined in â
ui/packages/external/src/index.ts:5
ColorConvert â
⢠Const
ColorConvert: IColorConvertModule
Defined in â
ui/packages/external/src/index.ts:7
UnitConvert â
⢠Const
UnitConvert: Object
Type declaration â
Name | Type |
---|---|
number | (value : number | IUnitData , percentRefer? : number ) => number |
Defined in â
ui/packages/external/src/index.ts:9
PathArrow â
⢠Const
PathArrow: IPathArrowModule
Defined in â
ui/packages/external/src/index.ts:19
Paint â
⢠Const
Paint: IPaintModule
Defined in â
ui/packages/external/src/index.ts:22
PaintImage â
⢠Const
PaintImage: IPaintImageModule
Defined in â
ui/packages/external/src/index.ts:24
PaintGradient â
⢠Const
PaintGradient: IPaintGradientModule
Defined in â
ui/packages/external/src/index.ts:26
Effect â
⢠Const
Effect: IEffectModule
Defined in â
ui/packages/external/src/index.ts:28
Export â
⢠Const
Export: IExportModule
Defined in â
ui/packages/external/src/index.ts:30
State â
⢠Const
State: IStateModule
Defined in â
ui/packages/external/src/index.ts:32
Transition â
⢠Const
Transition: ITransitionModule
Defined in â
ui/packages/external/src/index.ts:37
InteractionHelper â
⢠Const
InteractionHelper: Object
Type declaration â
Name | Type |
---|---|
getDragEventData | (startPoint : IPointData , lastPoint : IPointData , event : IPointerEvent ) => IDragEvent |
getDropEventData | (event : IPointerEvent , list : ILeafList , data : IObject ) => IDropEvent |
getSwipeDirection | (angle : number ) => string |
getSwipeEventData | (startPoint : IPointData , lastDragData : IDragEvent , event : IPointerEvent ) => ISwipeEvent |
getBase | (e : IObject ) => IUIEvent |
pathHasEventType | (path : ILeafList , type : string ) => boolean |
filterPathByEventType | (path : ILeafList , type : string ) => ILeafList |
pathCanDrag | (path : ILeafList ) => boolean |
pathHasOutside | (path : ILeafList ) => boolean |
Defined in â
ui/packages/interaction/interaction/src/InteractionHelper.ts:7
Functions â
arrowType â
⸠arrowType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
in/packages/arrow/src/decorator.ts:4
registerEditTool â
⸠registerEditTool(): (target
: IObject
) => void
Returns â
fn
⸠(target
): void
Parameters â
Name | Type |
---|---|
target | IObject |
Returns â
void
Defined in â
in/packages/editor/src/tool/EditToolCreator.ts:9
registerInnerEditor â
⸠registerInnerEditor(): (target
: IObject
) => void
Returns â
fn
⸠(target
): void
Parameters â
Name | Type |
---|---|
target | IObject |
Returns â
void
Defined in â
in/packages/editor/src/tool/EditToolCreator.ts:15
motionPathType â
⸠motionPathType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
in/packages/motion-path/src/decorator.ts:4
scaleResize â
⸠scaleResize(leaf
, scaleX
, scaleY
): void
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
scaleX | number |
scaleY | number |
Returns â
void
Defined in â
in/packages/resize/src/scaler.ts:10
scaleResizeFontSize â
⸠scaleResizeFontSize(leaf
, scaleX
, scaleY
): void
Parameters â
Name | Type |
---|---|
leaf | IText |
scaleX | number |
scaleY | number |
Returns â
void
Defined in â
in/packages/resize/src/scaler.ts:20
scaleResizePath â
⸠scaleResizePath(leaf
, scaleX
, scaleY
): void
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
scaleX | number |
scaleY | number |
Returns â
void
Defined in â
in/packages/resize/src/scaler.ts:60
scaleResizePoints â
⸠scaleResizePoints(leaf
, scaleX
, scaleY
): void
Parameters â
Name | Type |
---|---|
leaf | ILine | IPolygon |
scaleX | number |
scaleY | number |
Returns â
void
Defined in â
in/packages/resize/src/scaler.ts:65
scaleResizeGroup â
⸠scaleResizeGroup(group
, scaleX
, scaleY
): void
Parameters â
Name | Type |
---|---|
group | IBranch |
scaleX | number |
scaleY | number |
Returns â
void
Defined in â
in/packages/resize/src/scaler.ts:72
stateType â
⸠stateType(defaultValue?
, styleName?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
styleName? | string |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
in/packages/state/src/decorator.ts:4
stateStyleType â
⸠stateStyleType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
in/packages/state/src/decorator.ts:13
addViewport â
⸠addViewport(leafer
, mergeConfig?
, custom?
): void
Parameters â
Name | Type |
---|---|
leafer | ILeaferBase |
mergeConfig? | ILeaferConfig |
custom? | boolean |
Returns â
void
Defined in â
in/packages/viewport/src/type/viewport.ts:6
addViewportConfig â
⸠addViewportConfig(leafer
, mergeConfig?
): void
Parameters â
Name | Type |
---|---|
leafer | ILeaferBase |
mergeConfig? | ILeaferConfig |
Returns â
void
Defined in â
in/packages/viewport/src/type/viewport.ts:25
canvasPatch â
⸠canvasPatch(drawer
): void
Parameters â
Name | Type |
---|---|
drawer | IPathDrawer |
Returns â
void
Defined in â
leafer/packages/canvas/canvas/src/patch/index.ts:5
registerUI â
⸠registerUI(): (target
: IObject
) => void
Returns â
fn
⸠(target
): void
Parameters â
Name | Type |
---|---|
target | IObject |
Returns â
void
Defined in â
leafer/packages/decorator/src/class.ts:4
registerUIEvent â
⸠registerUIEvent(): (target
: IObject
) => void
Returns â
fn
⸠(target
): void
Parameters â
Name | Type |
---|---|
target | IObject |
Returns â
void
Defined in â
leafer/packages/decorator/src/class.ts:10
decorateLeafAttr â
⸠decorateLeafAttr(defaultValue?
, descriptorFn?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
descriptorFn? | ILeafAttrDescriptorFn |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:10
attr â
⸠attr(partDescriptor?
): ILeafAttrDescriptor
Parameters â
Name | Type |
---|---|
partDescriptor? | ILeafAttrDescriptor |
Returns â
Defined in â
leafer/packages/decorator/src/data.ts:14
defineLeafAttr â
⸠defineLeafAttr(target
, key
, defaultValue?
, partDescriptor?
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
defaultValue? | IValue |
partDescriptor? | ILeafAttrDescriptor |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:19
dataType â
⸠dataType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:29
positionType â
⸠positionType(defaultValue?
, checkFiniteNumber?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
checkFiniteNumber? | boolean |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:33
autoLayoutType â
⸠autoLayoutType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:41
scaleType â
⸠scaleType(defaultValue?
, checkFiniteNumber?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
checkFiniteNumber? | boolean |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:53
rotationType â
⸠rotationType(defaultValue?
, checkFiniteNumber?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
checkFiniteNumber? | boolean |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:62
boundsType â
⸠boundsType(defaultValue?
, checkFiniteNumber?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
checkFiniteNumber? | boolean |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:71
naturalBoundsType â
⸠naturalBoundsType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:79
doBoundsType â
⸠doBoundsType(leaf
): void
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:87
pathInputType â
⸠pathInputType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:92
pathType â
⸠pathType(defaultValue?
, checkFiniteNumber?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
checkFiniteNumber? | boolean |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:104
affectStrokeBoundsType â
⸠affectStrokeBoundsType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:107
doStrokeType â
⸠doStrokeType(leaf
): void
Parameters â
Name | Type |
---|---|
leaf | ILeaf |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:115
strokeType â
⸠strokeType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:120
affectRenderBoundsType â
⸠affectRenderBoundsType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:122
surfaceType â
⸠surfaceType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:131
opacityType â
⸠opacityType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:139
visibleType â
⸠visibleType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:148
sortType â
⸠sortType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:179
maskType â
⸠maskType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:190
eraserType â
⸠eraserType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:201
hitType â
⸠hitType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:209
cursorType â
⸠cursorType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:221
dataProcessor â
⸠dataProcessor(processor
): (target
: IObject
, _key?
: string
) => void
Parameters â
Name | Type |
---|---|
processor | IObject |
Returns â
fn
⸠(target
, _key?
): void
Parameters â
Name | Type |
---|---|
target | IObject |
_key? | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:233
layoutProcessor â
⸠layoutProcessor(processor
): (target
: IObject
, _key?
: string
) => void
Parameters â
Name | Type |
---|---|
processor | IObject |
Returns â
fn
⸠(target
, _key?
): void
Parameters â
Name | Type |
---|---|
target | IObject |
_key? | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:241
defineDataProcessor â
⸠defineDataProcessor(target
, key
, defaultValue?
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
defaultValue? | IValue |
Returns â
void
Defined in â
leafer/packages/decorator/src/data.ts:258
defineKey â
⸠defineKey<T
>(target
, key
, descriptor
, noConfigurable?
): void
Type parameters â
Name |
---|
T |
Parameters â
Name | Type |
---|---|
target | T |
key | string |
descriptor | IObject & ThisType <T > |
noConfigurable? | boolean |
Returns â
void
Defined in â
leafer/packages/decorator/src/object.ts:3
getDescriptor â
⸠getDescriptor(object
, name
): PropertyDescriptor
Parameters â
Name | Type |
---|---|
object | IObject |
name | string |
Returns â
PropertyDescriptor
Defined in â
leafer/packages/decorator/src/object.ts:8
rewrite â
⸠rewrite(method
): (target
: IObject
, key
: string
) => void
Parameters â
Name | Type |
---|---|
method | IFunction |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | IObject |
key | string |
Returns â
void
Defined in â
leafer/packages/decorator/src/rewrite.ts:18
rewriteAble â
⸠rewriteAble(): (_target
: IObject
) => void
Returns â
fn
⸠(_target
): void
Parameters â
Name | Type |
---|---|
_target | IObject |
Returns â
void
Defined in â
leafer/packages/decorator/src/rewrite.ts:24
useModule â
⸠useModule(module
, exclude?
): (target
: IObject
) => void
Parameters â
Name | Type |
---|---|
module | IObject |
exclude? | string [] |
Returns â
fn
⸠(target
): void
Parameters â
Name | Type |
---|---|
target | IObject |
Returns â
void
Defined in â
leafer/packages/decorator/src/rewrite.ts:45
isNull â
⸠isNull(value
): boolean
Parameters â
Name | Type |
---|---|
value | any |
Returns â
boolean
Defined in â
leafer/packages/display-module/data/src/index.ts:15
getPointData â
⸠getPointData(): IPointData
Returns â
Defined in â
leafer/packages/math/src/MathHelper.ts:89
getBoundsData â
⸠getBoundsData(): IBoundsData
Returns â
Defined in â
leafer/packages/math/src/MathHelper.ts:90
useCanvas â
⸠useCanvas(_canvasType
, _power?
): void
Parameters â
Name | Type |
---|---|
_canvasType | ICanvasType |
_power? | IObject |
Returns â
void
Defined in â
leafer/packages/platform/web/src/index.ts:22
effectType â
⸠effectType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
ui/packages/decorator/src/data.ts:7
resizeType â
⸠resizeType(defaultValue?
): (target
: ILeaf
, key
: string
) => void
Parameters â
Name | Type |
---|---|
defaultValue? | IValue |
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | ILeaf |
key | string |
Returns â
void
Defined in â
ui/packages/decorator/src/data.ts:17
zoomLayerType â
⸠zoomLayerType(): (target
: IUI
, key
: string
) => void
Returns â
fn
⸠(target
, key
): void
Parameters â
Name | Type |
---|---|
target | IUI |
key | string |
Returns â
void