Skip to content

Commit f941349

Browse files
author
Thomas Bolis
committed
Upgrading to latest libraries and bug fixes
React 15.1.0 Fabric 1.6.2 Bug fixes and performance improvements exposing disable/enable Scroll for tablets and touch devices
1 parent 77e3339 commit f941349

File tree

11 files changed

+148
-94
lines changed

11 files changed

+148
-94
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
## Changelog
22

3+
* **0.2.4** Upgrading to latest libraries and bug fixes
4+
- Major
5+
- React 15.1.0
6+
- Fabric 1.6.2
7+
- Bug fixes and performance improvements
8+
- exposing disable/enable Scroll for tablets and touch devices
39

410
* **0.2.3** Upgrading to latest libraries
511
- Major

examples/base.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
s.parentNode.insertBefore(wf, s);
3232
})();
3333
</script>
34+
<!--
35+
Define your local ip
36+
<script src="http://192.168.3.119:8080/target/target-script-min.js#anonymous"></script>
37+
-->
3438
</body>
3539

3640
</html>

examples/main.jsx

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ import DownloadIcon from 'material-ui/svg-icons/file/file-download';
2828
import dataJson from './data.json'
2929
import dataUrl from './data.url'
3030

31-
//import Tools from '../src/tools';
32-
//import SketchField from '../src/SketchField';
33-
import {SketchField, Tools} from '../lib';
31+
import {SketchField, Tools} from '../src';
3432

3533
const styles = {
3634
root: {
@@ -87,7 +85,7 @@ class SketchFieldDemo extends React.Component {
8785

8886
this.state = {
8987
lineColor: 'black',
90-
lineWidth: 2,
88+
lineWidth: 10,
9189
fillColor: '#68CCCA',
9290
shadowWidth: 0,
9391
shadowOffset: 0,
@@ -256,7 +254,6 @@ class SketchFieldDemo extends React.Component {
256254
lineWidth={this.state.lineWidth}
257255
fillColor={this.state.fillWithColor ? this.state.fillColor : 'transparent'}
258256
scaleOnResize={true}
259-
height={660}
260257
defaultData={dataJson}
261258
defaultDataType="json"
262259
onChange={(e) => {
@@ -293,15 +290,15 @@ class SketchFieldDemo extends React.Component {
293290
<label htmlFor='lineColor'>Line</label>
294291
<CompactPicker
295292
id='lineColor' color={this.state.lineColor}
296-
onChange={(color) => this.setState({lineColor:'#'+color.hex})}/>
293+
onChange={(color) => this.setState({lineColor:color.hex})}/>
297294
<br/>
298295
<br/>
299296
<Toggle label="Fill"
300297
defaultToggled={this.state.fillWithColor}
301298
onToggle={(e) => this.setState({fillWithColor:!this.state.fillWithColor})}/>
302299
<CompactPicker
303300
color={this.state.fillColor}
304-
onChange={(color) => this.setState({fillColor:'#'+color.hex})}/>
301+
onChange={(color) => this.setState({fillColor:color.hex})}/>
305302
</CardText>
306303
</Card>
307304
</div>

karma.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ module.exports = function (config) {
3838
resolve: {
3939
extensions: ['', '.js', '.jsx'],
4040
alias: {
41-
Utils: path.join(srcPath, 'utils'),
42-
History: path.join(srcPath, 'history'),
43-
SketchField: path.join(srcPath, 'SketchField')
41+
'react-sketch': srcPath
4442
}
4543
},
4644
module: {

package.json

Lines changed: 25 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,37 @@
3232
"lint": "eslint ./src",
3333
"lint:fix": "eslint --fix ./src",
3434
"start": "node webpack.server.js",
35+
"start:debug": "weinre --boundHost `my-local-ip` ",
3536
"test": "karma start karma.config.js",
3637
"posttest": "npm run lint"
3738
},
3839
"engines": {
3940
"node": ">0.4.0 <1.0.0"
4041
},
41-
"peerDependencies": {
42-
"react": "^15.0.2",
43-
"react-dom": "^15.0.2"
44-
},
4542
"devDependencies": {
46-
"babel-cli": "^6.8.0",
47-
"babel-core": "^6.8.0",
43+
"babel-cli": "^6.9.0",
44+
"babel-core": "^6.9.1",
4845
"babel-eslint": "^6.0.4",
4946
"babel-loader": "^6.2.4",
5047
"babel-plugin-transform-object-assign": "^6.8.0",
5148
"babel-plugin-transform-react-display-name": "^6.8.0",
52-
"babel-plugin-transform-runtime": "^6.8.0",
53-
"babel-preset-react-hmre": "^1.1.1",
54-
"babel-polyfill": "^6.8.0",
55-
"babel-preset-es2015": "^6.6.0",
49+
"babel-plugin-transform-runtime": "^6.9.0",
50+
"babel-polyfill": "^6.9.1",
51+
"babel-preset-es2015": "^6.9.0",
5652
"babel-preset-es2015-loose": "^7.0.0",
5753
"babel-preset-react": "^6.5.0",
54+
"babel-preset-react-hmre": "^1.1.1",
5855
"babel-preset-stage-0": "^6.5.0",
59-
"canvas": "^1.3.15",
56+
"canvas": "^1.3.16",
6057
"chai": "^3.5.0",
6158
"core-js": "^2.4.0",
6259
"css-loader": "^0.23.1",
63-
"eslint": "^2.9.0",
60+
"eslint": "^2.11.1",
6461
"eslint-loader": "^1.3.0",
6562
"eslint-plugin-react": "^5.1.1",
66-
"fabric": "^1.6.1",
63+
"fabric": "^1.6.2",
6764
"flexboxgrid": "^6.3.0",
68-
"html-webpack-plugin": "^2.16.1",
65+
"html-webpack-plugin": "^2.19.0",
6966
"karma": "^0.13.22",
7067
"karma-babel-preprocessor": "^6.0.1",
7168
"karma-chai": "^0.1.0",
@@ -77,20 +74,27 @@
7774
"karma-sourcemap-loader": "^0.3.7",
7875
"karma-webpack": "^1.7.0",
7976
"material-ui": "^0.15.0",
80-
"mocha": "^2.4.5",
77+
"mocha": "^2.5.3",
78+
"my-local-ip": "^1.0.0",
8179
"open": "0.0.5",
8280
"open-browser-webpack-plugin": "0.0.2",
8381
"phantomjs": "^2.1.7",
8482
"phantomjs-prebuilt": "^2.1.7",
85-
"react": "^15.0.2",
86-
"react-addons-test-utils": "^15.0.2",
87-
"react-color": "^2.1.0",
88-
"react-dom": "^15.0.2",
83+
"react": "^15.1.0",
84+
"react-addons-test-utils": "^15.1.0",
85+
"react-color": "^2.2.0",
86+
"react-dom": "^15.1.0",
8987
"react-hot-loader": "^1.3.0",
9088
"react-tap-event-plugin": "latest",
9189
"rimraf": "^2.5.2",
9290
"style-loader": "^0.13.1",
93-
"webpack": "^1.13.0",
94-
"webpack-dev-server": "^1.14.1"
91+
"webpack": "^1.13.1",
92+
"webpack-dev-server": "^1.14.1",
93+
"weinre": "^2.0.0-pre-I0Z7U9OV"
94+
},
95+
"dependencies": {
96+
"react": "^15.1.0",
97+
"react-dom": "^15.1.0",
98+
"react-addons-pure-render-mixin": "^15.1.0"
9599
}
96100
}

0 commit comments

Comments
 (0)