fix imports

This commit is contained in:
casperlamboo 2017-11-14 16:09:12 +01:00
parent 20995d0ac7
commit 1aa69f58f1
8 changed files with 15 additions and 15 deletions

View File

@ -1,15 +1,15 @@
import update from 'react-addons-update';
import * as contextTools from 'src/js/constants/contextTools.js';
import { COLOR_STRING_TO_HEX, COLOR_HEX_TO_STRING } from 'src/js/constants/general.js';
import { ERASER_SIZES, BRUSH_SIZES } from 'src/js/constants/d2Constants.js';
import * as actions from 'src/js/actions/index.js';
import * as contextTools from '../constants/contextTools.js';
import { COLOR_STRING_TO_HEX, COLOR_HEX_TO_STRING } from '../constants/general.js';
import { ERASER_SIZES, BRUSH_SIZES } from '../constants/d2Constants.js';
import * as actions from '../actions/index.js';
import { select } from './menusReducer.js';
import { getSelectedObjectsSelector, getBoundingBox } from 'src/js/utils/selectionUtils.js';
import { getSelectedObjectsSelector, getBoundingBox } from '../utils/selectionUtils.js';
import { Matrix } from 'cal';
export default function (state, action) {
switch (action.category) {
case actions.sketcher.CAT_SELECTION: {
case actions.CAT_SELECTION: {
let menus = state.menus;
const [firstSelected] = state.selection.objects;
@ -30,7 +30,7 @@ export default function (state, action) {
}
switch (action.type) {
case actions.sketcher.D2_CHANGE_TOOL: {
case actions.D2_CHANGE_TOOL: {
const color = COLOR_HEX_TO_STRING[state.context.color];
return update(state, {
menus: { $set: select(state.menus, color) }

View File

@ -5,7 +5,7 @@ import * as actions from '../../../actions/index.js';
import { SHAPE_TYPE_PROPERTIES } from '../../../constants/shapeTypeProperties.js';
import { LINE_WIDTH, CLIPPER_PRECISION } from '../../../constants/d2Constants.js';
import { shapeToPoints, applyMatrixOnShape, pathToVectorPath } from '../../../shape/shapeDataUtils.js';
import { addObject } from '../../../reducers/objectReducers.js';
import { addObject } from '../../../reducer/objectReducers.js';
import subtractShapeFromState from '../../../utils/subtractShapeFromState.js';
import { getColor, getFirst, filterType, getObjectsFromIds } from '../../../utils/objectSelectors.js';
import createDebug from 'debug';

View File

@ -1,7 +1,7 @@
import update from 'react-addons-update';
import * as actions from '../../../actions/index.js';
import createDebug from 'debug';
import { removeObject, addObjectActive2D, setActive2D } from '../../../reducers/objectReducers.js';
import { removeObject, addObjectActive2D, setActive2D } from '../../../reducer/objectReducers.js';
import { SNAPPING_DISTANCE, LINE_WIDTH } from '../../../constants/d2Constants.js';
import { SHAPE_TYPE_PROPERTIES } from '../../../constants/shapeTypeProperties.js';
import { getSnappingPoints } from '../../../utils/objectSelectors.js';

View File

@ -1,6 +1,6 @@
import update from 'react-addons-update';
import * as actions from '../../../actions/index.js';
import { addObject } from '../../../reducers/objectReducers.js';
import { addObject } from '../../../reducer/objectReducers.js';
import createDebug from 'debug';
const debug = createDebug('d3d:reducer:photoGuide');

View File

@ -1,6 +1,6 @@
import update from 'react-addons-update';
import * as actions from '../../../../actions/index.js';
import { addObjectActive2D, addObject, setActive2D } from '../../../../objectReducers.js';
import { addObjectActive2D, addObject, setActive2D } from '../../../objectReducers.js';
import { Matrix, Vector } from 'cal';
// import createDebug from 'debug';
// const debug = createDebug('d3d:reducer:star');

View File

@ -2,7 +2,7 @@ import { Matrix, Vector } from 'cal';
import update from 'react-addons-update';
import * as actions from '../../../actions/index.js';
import createDebug from 'debug';
import { addObjectActive2D, setActive2D, removeObject } from '../../../reducers/objectReducers.js';
import { addObjectActive2D, setActive2D, removeObject } from '../../../reducer/objectReducers.js';
const debug = createDebug('d3d:reducer:text');
export default function textReducer(state, action) {

View File

@ -1,7 +1,7 @@
import update from 'react-addons-update';
import ClipperShape from 'clipper-js';
import { Matrix } from 'cal';
import { addObject, removeObject } from '../objectReducers.js';
import { addObject, removeObject } from './objectReducers.js';
import { recursiveClone } from '../utils/clone.js';
import { shapeToPoints } from '../shape/shapeToPoints.js';
import { applyMatrixOnShape, pathToVectorPath } from '../utils/vectorUtils.js';

View File

@ -2,11 +2,11 @@ import update from 'react-addons-update';
import { Matrix } from 'cal';
import ClipperShape from 'clipper-js';
import { recursiveClone } from './clone.js';
import { addObject, removeObject } from '../reducers/objectReducers.js';
import { addObject, removeObject } from '../reducer/objectReducers.js';
import { SHAPE_TYPE_PROPERTIES } from '../constants/shapeTypeProperties.js';
import { shapeToPoints } from '../shape/shapeToPoints.js';
import { applyMatrixOnShape, pathToVectorPath } from './vectorUtils.js';
import { findEndPointIndexesOfPaths, mergePaths } from '../reducers/pointsReducers.js';
import { findEndPointIndexesOfPaths, mergePaths } from '../reducer/pointsReducers.js';
import R from 'ramda';
// import createDebug from 'debug';
// const debug = createDebug('d3d:util:substractShapeFromState');