From 49bf24030da1652953d3456bfde6c89f0fbb84f8 Mon Sep 17 00:00:00 2001 From: pomelo-nwu Date: Wed, 20 Jan 2021 17:37:20 +0800 Subject: [PATCH] feat(graphin):deconstruct graphin static method --- packages/graphin/src/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/graphin/src/index.ts b/packages/graphin/src/index.ts index 5fc1fe1e1..ce90eb5a2 100644 --- a/packages/graphin/src/index.ts +++ b/packages/graphin/src/index.ts @@ -20,9 +20,12 @@ registerGraphinCircle(); /** 注册 Graphin line Edge */ registerGraphinLine(); +/** 解构静态方法 */ +const { registerFontFamily } = Graphin; + /** export */ export default Graphin; -export { Utils, Layout, GraphinContext, Behaviors }; +export { Utils, Layout, GraphinContext, Behaviors, registerFontFamily }; export { GraphinContextType, NodeStyle, EdgeStyle }; export {