Skip to content

Commit

Permalink
fix(dist): corrected naming of umd dist files
Browse files Browse the repository at this point in the history
  • Loading branch information
saschwarz committed Jan 11, 2016
1 parent ffa5172 commit 7369c2e
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class Demo extends React.Component {

See the [demo](http://saschwarz.github.io/react-svgpathplayer/script.html) using this component in a plain HTML/JS file.

A UMD build for use directly in the browser is available via CDN at https://npmcdn.com/react-svgpathplayer.js, https://npmcdn.com/react-svgpathplayer.min.js with corresponding map files.
A UMD build for use directly in the browser is available via CDN at https://npmcdn.com/dist/react-svgpathplayer.min.js, https://npmcdn.com/dist/react-svgpathplayer.js with corresponding map files.

You'll need to include all the dependencies:

Expand Down
8 changes: 4 additions & 4 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
if (this.props.segments) {
this.snapSegments = this.svg.selectAll(this.props.segments + ' path');
this.segmentLengths = this._segmentLengths();
this.segmentLengths = this._calculateSegmentLengths();
if (this.segmentLengths.length > 0 && !pathLength) {
pathLength = this._segmentPosition(this.snapSegments.length - 1);
}
Expand Down Expand Up @@ -398,7 +398,7 @@ return /******/ (function(modules) { // webpackBootstrap
var x = _lodash2['default'].findLastIndex(this.segmentLengths, function (length) {
return pos >= length;
});
x = x < 0 ? 0 : x;
x = x < 0 ? 0 : x + 1;
return x;
}
}, {
Expand Down Expand Up @@ -439,8 +439,8 @@ return /******/ (function(modules) { // webpackBootstrap
this.currentSegment.attr({ display: 'block' });
}
}, {
key: '_segmentLengths',
value: function _segmentLengths() {
key: '_calculateSegmentLengths',
value: function _calculateSegmentLengths() {
// total length of path at end of each segment
return _lodash2['default'].reduce(this.snapSegments, function (a, v) {
if (_lodash2['default'].last(a)) {
Expand Down
10 changes: 5 additions & 5 deletions dist/svgpathplayer.js → dist/react-svgpathplayer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions dist/react-svgpathplayer.js.map

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions dist/react-svgpathplayer.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/react-svgpathplayer.min.js.map

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/svgpathplayer.js.map

This file was deleted.

7 changes: 0 additions & 7 deletions dist/svgpathplayer.min.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/svgpathplayer.min.js.map

This file was deleted.

2 changes: 1 addition & 1 deletion webpack.config.babel.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config = {
demo: path.join(ROOT_PATH, 'demo'),
test: path.join(ROOT_PATH, 'tests')
},
filename: 'svgpathplayer',
filename: 'react-svgpathplayer',
library: 'SVGPathPlayer'
};
const CSS_PATHS = [
Expand Down

0 comments on commit 7369c2e

Please sign in to comment.