Skip to content

Commit

Permalink
fix:remove compiler.update
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Nov 21, 2019
1 parent 3a360bc commit aeab8a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/graphin/src/shape/render/compiler.ts
Expand Up @@ -27,11 +27,11 @@ const compiler = (extendNodeShape: ExtendNodeShape) => {
draw(inputCfg: any, group: G.Group) {
/** 得到用户返回的shapeComponents,然后拼装 */

const { shapeComponents, state: RenderState, update } = renderNodeShape(inputCfg);
const { shapeComponents, state: RenderState } = renderNodeShape(inputCfg);
/** 每次draw后的shape就是初始化shape,这个在节点update后,用于setstate的reset */
initShapeComponentMap[inputCfg.data.id] = shapeComponents;
initStateMap[inputCfg.data.id] = RenderState;
initUpdateMap[inputCfg.data.id] = update;

let keyshapeIndex = 0;
const g6Shapes = shapeComponents.map((component, index: number) => {
if (component.isKeyShape) keyshapeIndex = index;
Expand Down

0 comments on commit aeab8a6

Please sign in to comment.