Skip to content

Commit

Permalink
add name attr
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaming743 committed May 15, 2021
1 parent 99edd9c commit 82107d8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 4 additions & 0 deletions es/core/graph.class.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Shape = any> {
/**
* @description Graph Name
*/
name: string;
/**
* @description Graph Render
*/
Expand Down
6 changes: 6 additions & 0 deletions es/core/graph.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ var Graph = /*#__PURE__*/function () {
_createClass(Graph, [{
key: "draw",

/**
* @description Graph Name
*/

/**
* @description Graph Render
*/
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 4 additions & 0 deletions src/core/graph.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ import { EaseCurve } from '@jiaminghi/transition/types/types/core/index'

// eslint-disable-next-line
export default class Graph<Shape = any> {
/**
* @description Graph Name
*/
name!: string
/**
* @description Graph Render
*/
Expand Down

0 comments on commit 82107d8

Please sign in to comment.