Skip to content

Commit

Permalink
fix: module mix fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
cycgit committed May 28, 2020
1 parent 47b9434 commit d17c4d8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"files": [
"src",
"lib",
"build",
"dist",
"bundler"
],
Expand Down
7 changes: 7 additions & 0 deletions src/interaction/mixin/move.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,3 +162,10 @@ export {
_handleLinearScale,
_handleCatScale
};

export default {
_handleMove,
_doMove,
_handleLinearScale,
_handleCatScale
};
6 changes: 5 additions & 1 deletion src/interaction/mixin/update-scale.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ function updateCatScale(field, newValues, ticks, values, minIndex, maxIndex) {
});
}


export {
updateLinearScale,
updateCatScale
};

export default {
updateLinearScale,
updateCatScale
};
4 changes: 2 additions & 2 deletions src/interaction/pan.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { mix, isWx, isMy } from '../util/common';
import Interaction from './base';
import Chart from '../chart/chart';
import * as FilterPlugin from '../plugin/filter';
import * as MoveMixin from './mixin/move';
import * as UpdateScaleMixin from './mixin/update-scale';
import MoveMixin from './mixin/move';
import UpdateScaleMixin from './mixin/update-scale';

class Pan extends Interaction {
getDefaultCfg() {
Expand Down
2 changes: 1 addition & 1 deletion src/interaction/pinch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getLimitRange, getFieldRange } from './helper';
import Interaction from './base';
import Chart from '../chart/chart';
import * as FilterPlugin from '../plugin/filter';
import * as UpdateScaleMixin from './mixin/update-scale';
import UpdateScaleMixin from './mixin/update-scale';

class Pinch extends Interaction {
getDefaultCfg() {
Expand Down
4 changes: 2 additions & 2 deletions src/interaction/swipe.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { mix } from '../util/common';
import Interaction from './base';
import Chart from '../chart/chart';
import * as FilterPlugin from '../plugin/filter';
import * as MoveMixin from './mixin/move';
import * as UpdateScaleMixin from './mixin/update-scale';
import MoveMixin from './mixin/move';
import UpdateScaleMixin from './mixin/update-scale';

class Swipe extends Interaction {
getDefaultCfg() {
Expand Down

0 comments on commit d17c4d8

Please sign in to comment.