refactor: aliases ^_^
This commit is contained in:
parent
e901873f62
commit
b5a71ccdc6
|
@ -1,3 +1,4 @@
|
||||||
|
import Renderer from '@avocado/graphics/renderer';
|
||||||
import {Vector} from '@avocado/math';
|
import {Vector} from '@avocado/math';
|
||||||
import {
|
import {
|
||||||
forwardRef,
|
forwardRef,
|
||||||
|
@ -12,7 +13,6 @@ import {
|
||||||
import K from 'kefir';
|
import K from 'kefir';
|
||||||
import Slider from 'rc-slider';
|
import Slider from 'rc-slider';
|
||||||
|
|
||||||
import Renderer from '../../renderer';
|
|
||||||
import './index.css';
|
import './index.css';
|
||||||
|
|
||||||
const marks = {
|
const marks = {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import {Vector} from '@avocado/math';
|
import {Vector} from '@avocado/math';
|
||||||
|
import RectangleShape from '@avocado/physics/shape/rectangle';
|
||||||
import RectangleShape from '../../shape/rectangle';
|
import World from '@avocado/physics/matter/world';
|
||||||
import World from '../../matter/world';
|
|
||||||
|
|
||||||
const ROOM_BOUND_SIZE = 64;
|
const ROOM_BOUND_SIZE = 64;
|
||||||
const HALF_ROOM_BOUND_SIZE = ROOM_BOUND_SIZE / 2;
|
const HALF_ROOM_BOUND_SIZE = ROOM_BOUND_SIZE / 2;
|
||||||
|
@ -76,7 +75,7 @@ export default (Room) => class PhysicsRoom extends Room {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('../../matter/world', () => {
|
module.hot.accept('@avocado/physics/matter/world', () => {
|
||||||
const it = rooms.values();
|
const it = rooms.values();
|
||||||
for (let value = it.next(); value.done !== true; value = it.next()) {
|
for (let value = it.next(); value.done !== true; value = it.next()) {
|
||||||
const {value: room} = value;
|
const {value: room} = value;
|
||||||
|
|
|
@ -2,8 +2,7 @@ import {
|
||||||
Vector,
|
Vector,
|
||||||
Vertice,
|
Vertice,
|
||||||
} from '@avocado/math';
|
} from '@avocado/math';
|
||||||
|
import PolygonShape from '@avocado/physics/shape/polygon';
|
||||||
import PolygonShape from '../../shape/polygon';
|
|
||||||
|
|
||||||
export default (Tiles) => class PhysicsTiles extends Tiles {
|
export default (Tiles) => class PhysicsTiles extends Tiles {
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
import './index.scss';
|
|
||||||
|
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -8,6 +6,7 @@ import {
|
||||||
TabList,
|
TabList,
|
||||||
TabPanel,
|
TabPanel,
|
||||||
} from '@avocado/react';
|
} from '@avocado/react';
|
||||||
|
import useJsonPatcher from '@avocado/resource-persea/hooks/use-json-patcher';
|
||||||
import {
|
import {
|
||||||
PropTypes,
|
PropTypes,
|
||||||
React,
|
React,
|
||||||
|
@ -17,7 +16,7 @@ import {
|
||||||
useState,
|
useState,
|
||||||
} from '@flecks/react';
|
} from '@flecks/react';
|
||||||
|
|
||||||
import useJsonPatcher from '../../hooks/use-json-patcher';
|
import './index.scss';
|
||||||
|
|
||||||
const JsonTabs = ({
|
const JsonTabs = ({
|
||||||
createPanel,
|
createPanel,
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
|
import useResourceController from '@avocado/resource-persea/hooks/use-resource-controller';
|
||||||
import {
|
import {
|
||||||
PropTypes,
|
PropTypes,
|
||||||
React,
|
React,
|
||||||
} from '@flecks/react';
|
} from '@flecks/react';
|
||||||
|
|
||||||
import useResourceController from '../../hooks/use-resource-controller';
|
|
||||||
|
|
||||||
import styles from './index.module.scss';
|
import styles from './index.module.scss';
|
||||||
|
|
||||||
const Resource = ({resource, uri}) => {
|
const Resource = ({resource, uri}) => {
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
import './component.scss';
|
import './component.scss';
|
||||||
|
|
||||||
|
import {controller as controllerPropTypes} from '@avocado/resource-persea/prop-types';
|
||||||
import {React} from '@flecks/react';
|
import {React} from '@flecks/react';
|
||||||
import HexEditor from 'react-hex-editor';
|
import HexEditor from 'react-hex-editor';
|
||||||
import oneDarkPro from 'react-hex-editor/themes/oneDarkPro';
|
import oneDarkPro from 'react-hex-editor/themes/oneDarkPro';
|
||||||
|
|
||||||
import {controller as controllerPropTypes} from '../../prop-types';
|
|
||||||
import toBuffer from './to-buffer';
|
import toBuffer from './to-buffer';
|
||||||
|
|
||||||
const Binary = ({resource}) => {
|
const Binary = ({resource}) => {
|
||||||
|
|
|
@ -3,12 +3,11 @@ import './component.scss';
|
||||||
import {join} from 'path';
|
import {join} from 'path';
|
||||||
|
|
||||||
import {Json as JsonComponent} from '@avocado/react';
|
import {Json as JsonComponent} from '@avocado/react';
|
||||||
|
import useJsonPatcher from '@avocado/resource-persea/hooks/use-json-patcher';
|
||||||
|
import {controller as controllerPropTypes} from '@avocado/resource-persea/prop-types';
|
||||||
import {React} from '@flecks/react';
|
import {React} from '@flecks/react';
|
||||||
import {compare} from 'fast-json-patch';
|
import {compare} from 'fast-json-patch';
|
||||||
|
|
||||||
import useJsonPatcher from '../../hooks/use-json-patcher';
|
|
||||||
import {controller as controllerPropTypes} from '../../prop-types';
|
|
||||||
|
|
||||||
const Json = ({path, resource}) => {
|
const Json = ({path, resource}) => {
|
||||||
const patch = useJsonPatcher();
|
const patch = useJsonPatcher();
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -12,8 +12,7 @@ import {
|
||||||
vectorPropType,
|
vectorPropType,
|
||||||
} from '@avocado/math-persea';
|
} from '@avocado/math-persea';
|
||||||
import {useJsonPatcher} from '@avocado/resource-persea';
|
import {useJsonPatcher} from '@avocado/resource-persea';
|
||||||
|
import AnimationVisualization from '@avocado/timing-persea/components/animation-visualization';
|
||||||
import AnimationVisualization from '../../components/animation-visualization';
|
|
||||||
|
|
||||||
const Animation = ({
|
const Animation = ({
|
||||||
resource,
|
resource,
|
||||||
|
|
|
@ -10,6 +10,7 @@ import {
|
||||||
useFullJson,
|
useFullJson,
|
||||||
} from '@avocado/resource-persea';
|
} from '@avocado/resource-persea';
|
||||||
import {AnimationView} from '@avocado/timing';
|
import {AnimationView} from '@avocado/timing';
|
||||||
|
import AnimationVisualization from '@avocado/timing-persea/components/animation-visualization';
|
||||||
import {
|
import {
|
||||||
PropTypes,
|
PropTypes,
|
||||||
React,
|
React,
|
||||||
|
@ -18,8 +19,6 @@ import {
|
||||||
useState,
|
useState,
|
||||||
} from '@flecks/react';
|
} from '@flecks/react';
|
||||||
|
|
||||||
import AnimationVisualization from '../../components/animation-visualization';
|
|
||||||
|
|
||||||
const Animation = ({
|
const Animation = ({
|
||||||
json,
|
json,
|
||||||
}) => {
|
}) => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import {TickingPromise} from '@avocado/core';
|
import {TickingPromise} from '@avocado/core';
|
||||||
|
|
||||||
import LfoResult from '../../lfo/result';
|
import LfoResult from '@avocado/timing/lfo/result';
|
||||||
import TransitionResult from '../../transition/result';
|
import TransitionResult from '@avocado/timing/transition/result';
|
||||||
|
|
||||||
export default (Entity) => class EvolvingEntity extends Entity {
|
export default (Entity) => class EvolvingEntity extends Entity {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user