@leafer/display 2.1.11 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/display",
3
- "version": "2.1.11",
3
+ "version": "2.2.0",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,18 +22,18 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "2.1.11",
26
- "@leafer/data": "2.1.11",
27
- "@leafer/layout": "2.1.11",
28
- "@leafer/display-module": "2.1.11",
29
- "@leafer/event": "2.1.11",
30
- "@leafer/decorator": "2.1.11",
31
- "@leafer/helper": "2.1.11",
32
- "@leafer/image": "2.1.11",
33
- "@leafer/debug": "2.1.11",
34
- "@leafer/platform": "2.1.11"
25
+ "@leafer/math": "2.2.0",
26
+ "@leafer/data": "2.2.0",
27
+ "@leafer/layout": "2.2.0",
28
+ "@leafer/display-module": "2.2.0",
29
+ "@leafer/event": "2.2.0",
30
+ "@leafer/decorator": "2.2.0",
31
+ "@leafer/helper": "2.2.0",
32
+ "@leafer/image": "2.2.0",
33
+ "@leafer/debug": "2.2.0",
34
+ "@leafer/platform": "2.2.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@leafer/interface": "2.1.11"
37
+ "@leafer/interface": "2.2.0"
38
38
  }
39
39
  }
package/src/Leaf.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ILeaferBase, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IBoundsType, ILocationType, IMatrixWithBoundsData, ILayoutBoundsData, IValue, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerId, IEvent, IObject, IFunction, IPointData, IBoundsData, IBranch, IFindMethod, IMatrixData, IAttrDecorator, IMatrixWithBoundsScaleData, IMatrixWithScaleData, IAlign, IJSONOptions, IEventParamsMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction, IEventParams, IScaleData, IScaleFixed, IFourNumber } from '@leafer/interface'
1
+ import { ILeaferBase, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IBoundsType, ILocationType, IMatrixWithBoundsData, ILayoutBoundsData, IValue, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerId, IEvent, IObject, IFunction, IPointData, IBoundsData, IBranch, IFindMethod, IMatrixData, IAttrDecorator, IMatrixWithBoundsScaleData, IMatrixWithScaleData, IAlign, IJSONOptions, IEventParamsMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction, IEventParams, IScaleData, IScaleFixed, IFourNumber, IMotionVertical } from '@leafer/interface'
2
2
  import { BoundsHelper, IncrementId, MathHelper, MatrixHelper, PointHelper } from '@leafer/math'
3
3
  import { LeafData, isUndefined, DataHelper } from '@leafer/data'
4
4
  import { LeafLayout } from '@leafer/layout'
@@ -580,10 +580,14 @@ export interface Leaf {
580
580
  __updateRenderPath(updateCache?: boolean): void
581
581
 
582
582
  // @leafer-in/motion-path rewrite
583
+ getMotionPath(): ILeaf
583
584
  getMotionPathData(): IMotionPathData
584
- getMotionPoint(motionDistance: number | IUnitData): IRotationPointData
585
+ getMotionPoint(motionDistance: number | IUnitData, motionVertical?: IMotionVertical, pathElement?: ILeaf, offsetX?: number, offsetY?: number): IRotationPointData
586
+ getMotionContentHeight(): number
585
587
  getMotionTotal(): number
588
+
586
589
  __updateMotionPath(): void
590
+ __updateMotionText(): void
587
591
 
588
592
  // @leafer-in/animate rewrite
589
593
  __runAnimation(type: 'in' | 'out', complete?: IFunction): void
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, IFunction, IObject, IJSONOptions, IBoundsType, ILeaferCanvas, IRenderOptions, IScaleFixed, IScaleData, ILocationType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IFindMethod, IValue, IValueFunction, IAttrDecorator, IFourNumber, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent } from '@leafer/interface';
1
+ import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, IFunction, IObject, IJSONOptions, IBoundsType, ILeaferCanvas, IRenderOptions, IScaleFixed, IScaleData, ILocationType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IFindMethod, IValue, IValueFunction, IAttrDecorator, IFourNumber, IRadiusPointData, IMotionPathData, IUnitData, IMotionVertical, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent } from '@leafer/interface';
2
2
  import { LeafData } from '@leafer/data';
3
3
  import { LeafLayout } from '@leafer/layout';
4
4
 
@@ -180,10 +180,13 @@ interface Leaf {
180
180
  __drawRenderPath(canvas: ILeaferCanvas): void;
181
181
  __updatePath(): void;
182
182
  __updateRenderPath(updateCache?: boolean): void;
183
+ getMotionPath(): ILeaf;
183
184
  getMotionPathData(): IMotionPathData;
184
- getMotionPoint(motionDistance: number | IUnitData): IRotationPointData;
185
+ getMotionPoint(motionDistance: number | IUnitData, motionVertical?: IMotionVertical, pathElement?: ILeaf, offsetX?: number, offsetY?: number): IRotationPointData;
186
+ getMotionContentHeight(): number;
185
187
  getMotionTotal(): number;
186
188
  __updateMotionPath(): void;
189
+ __updateMotionText(): void;
187
190
  __runAnimation(type: 'in' | 'out', complete?: IFunction): void;
188
191
  __updateSortChildren(): void;
189
192
  add(child: ILeaf | ILeaf[] | ILeafInputData | ILeafInputData[], index?: number): void;