Skip to content

Commit

Permalink
fix: export parseColor 方法 (#276)
Browse files Browse the repository at this point in the history
* fix: 修复单测

* fix: export parseColor 方法

---------

Co-authored-by: xuying.xu <xuying.xu@alibaba-inc.com>
  • Loading branch information
tangying1027 and xuying.xu authored Jul 10, 2024
1 parent 1474032 commit 837ade4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/f-engine/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { computeLayout } from './canvas/render';
import { Renderer as CanvasRenderer } from '@antv/g-mobile-canvas';
import { parseColor } from '@antv/g-lite';
import * as Smooth from './shape/util/smooth';

export { JSX } from './jsx/jsx-namespace';
Expand All @@ -13,7 +14,7 @@ export { default as createRef } from './createRef';
export { default as createContext } from './createContext';
export { default as Timeline, TimelineProps } from './timeline';
export { default as Gesture } from './gesture';
export { CanvasRenderer, computeLayout, Smooth };
export { CanvasRenderer, computeLayout, Smooth, parseColor };
export { default as isEqual } from './canvas/equal';
export { default as Player, PlayerProps } from './player';

Expand Down
4 changes: 2 additions & 2 deletions packages/f-engine/test/timeline/keyFrames.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ describe('player', () => {
await delay(800);

const shape = canvas.container.childNodes[1].childNodes[0].childNodes[0];
//@ts-ignore
expect(Number(shape.style.width)).toBeGreaterThan(10);
//@ts-ignore 初始状态10px = 5
expect(Number(shape.style.width)).toBeGreaterThan(5);
});

it('播放中finish', async () => {
Expand Down

0 comments on commit 837ade4

Please sign in to comment.