From 82107d88347879a65830a41ef1c52c1b41842646 Mon Sep 17 00:00:00 2001 From: JM <743192023@qq.com> Date: Sat, 15 May 2021 19:34:36 +0800 Subject: [PATCH] add name attr --- CHANGELOG.md | 6 ++++++ es/core/graph.class.d.ts | 4 ++++ es/core/graph.class.js | 6 ++++++ package.json | 2 +- src/core/graph.class.ts | 4 ++++ 5 files changed, 21 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ad2444d..e102221 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +# 1.0.0-alpha.4 (2021-05-15) + +### Graph + +- **attr:** Add name attr. + # 1.0.0-alpha.3 (2020-09-23) ### Life Cycle diff --git a/es/core/graph.class.d.ts b/es/core/graph.class.d.ts index c2b587f..10f0938 100644 --- a/es/core/graph.class.d.ts +++ b/es/core/graph.class.d.ts @@ -5,6 +5,10 @@ import CRender from './crender.class'; import { RgbaValue } from '@jiaminghi/color/types/types'; import { EaseCurve } from '@jiaminghi/transition/types/types/core/index'; export default class Graph { + /** + * @description Graph Name + */ + name: string; /** * @description Graph Render */ diff --git a/es/core/graph.class.js b/es/core/graph.class.js index 72e4417..fd91480 100644 --- a/es/core/graph.class.js +++ b/es/core/graph.class.js @@ -20,6 +20,10 @@ var Graph = /*#__PURE__*/function () { _createClass(Graph, [{ key: "draw", + /** + * @description Graph Name + */ + /** * @description Graph Render */ @@ -140,6 +144,8 @@ var Graph = /*#__PURE__*/function () { function Graph(config) { _classCallCheck(this, Graph); + _defineProperty(this, "name", void 0); + _defineProperty(this, "render", void 0); _defineProperty(this, "shape", void 0); diff --git a/package.json b/package.json index 932c45b..4bb2083 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jiaminghi/c-render", - "version": "1.0.0-alpha.3", + "version": "1.0.0-alpha.4", "author": "JiaMing <743192023@qq.com>", "description": "Canvas-based vector graphics rendering plugin", "main": "lib/index.js", diff --git a/src/core/graph.class.ts b/src/core/graph.class.ts index 13377fc..02a8b57 100644 --- a/src/core/graph.class.ts +++ b/src/core/graph.class.ts @@ -18,6 +18,10 @@ import { EaseCurve } from '@jiaminghi/transition/types/types/core/index' // eslint-disable-next-line export default class Graph { + /** + * @description Graph Name + */ + name!: string /** * @description Graph Render */