Skip to content

Commit eafe44d

Browse files
Merge pull request #10 from fusioncharts/develop
Release 2.0.0
2 parents 9f649bc + 84b452e commit eafe44d

25 files changed

+1229
-38660
lines changed

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [["@babel/preset-env", { "modules": false }]]
3+
}

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
.publish/*
22
dist/*
3+
build/*
34
example/dist/*
45
lib/*
56
node_modules/*
67
_build/*
78
coverage/*
9+
es/*
10+
test/*
11+
example/

.eslintrc

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,28 @@
44
"browser": true,
55
"node": true
66
},
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
}
11+
},
712
"plugins": [
813
"react"
914
],
10-
"extends": "eslint:recommended",
15+
"extends": ["eslint:recommended", "plugin:react/recommended"],
1116
"rules": {
1217
"no-use-before-define": 1,
18+
"no-unused-expressions":"error",
1319
"camelcase": 1,
1420
"new-cap": 1,
1521
"one-var": 1,
1622
"no-mixed-spaces-and-tabs": 0,
1723
"no-cond-assign": 0,
1824
"block-scoped-var": 0,
19-
"semi": 1
25+
"no-useless-escape": 0,
26+
"semi": 1,
27+
"react/no-deprecated": 0,
28+
"react/prop-types": 0,
29+
"react/no-find-dom-node": 0
2030
}
2131
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ node_modules
3232

3333
# ignore temporary build folders
3434
_build/
35+
36+
package-lock.json

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ To Create a new instance
5656
* If a bound box is defined it wraps the text and returns the wrapped height and width.
5757
* It allows to append ellipsis at the end if the text is truncated.
5858
*
59-
* @param {String | Number} id - Id of the instance. If the same id is passed, it disposes the old instance and
60-
* save the new one;
6159
* @param {String | HTMLElement} container - The id or the instance of the container where the intermediate dom
6260
* elements are to be attached. If not passed, it appends in body.
6361
*
@@ -68,7 +66,7 @@ To Create a new instance
6866
* }
6967
* @constructor
7068
*/
71-
var slManager = new SmartLabelManager(id, container, useEllipses, options)
69+
var slManager = new SmartLabelManager(container, useEllipses, options)
7270
```
7371

7472
To apply style before calculating text metrics

bower.json

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)