Skip to content
This repository has been archived by the owner on Jun 16, 2021. It is now read-only.

Commit

Permalink
Fix importing paths
Browse files Browse the repository at this point in the history
  • Loading branch information
cocopon committed Mar 13, 2021
1 parent 1fe6fa0 commit f066dfc
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 12 deletions.
3 changes: 2 additions & 1 deletion src/constraint/interval.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Interval} from 'model/interval';
import {Constraint} from 'tweakpane/lib/plugin/common/constraint/constraint';

import {Interval} from '../model/interval';

export class IntervalConstraint implements Constraint<Interval> {
public readonly edge: Constraint<number> | undefined;

Expand Down
8 changes: 6 additions & 2 deletions src/controller/range-slider-text.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {Interval, IntervalAssembly} from 'model/interval';
import {ValueController} from 'tweakpane/lib/plugin/common/controller/value';
import {Formatter} from 'tweakpane/lib/plugin/common/converter/formatter';
import {Parser} from 'tweakpane/lib/plugin/common/converter/parser';
import {Value} from 'tweakpane/lib/plugin/common/model/value';
import {RangeSliderTextView} from 'view/range-slider-text';

import {Interval, IntervalAssembly} from '../model/interval';
import {RangeSliderTextView} from '../view/range-slider-text';
import {PointNdTextControllerMod} from './point-nd-mod';
import {RangeSliderController} from './range-slider';

Expand Down Expand Up @@ -46,4 +46,8 @@ export class RangeSliderTextController implements ValueController<Interval> {
textView: this.tc_.view,
});
}

public get textController(): PointNdTextControllerMod<Interval> {
return this.tc_;
}
}
2 changes: 1 addition & 1 deletion src/controller/range-slider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {Interval} from 'model/interval';
import {ValueController} from 'tweakpane/lib/plugin/common/controller/value';
import {Value} from 'tweakpane/lib/plugin/common/model/value';
import {mapRange} from 'tweakpane/lib/plugin/common/number-util';
Expand All @@ -8,6 +7,7 @@ import {
PointerHandlerEvent,
} from 'tweakpane/lib/plugin/common/view/pointer-handler';

import {Interval} from '../model/interval';
import {RangeSliderView} from '../view/range-slider';

interface Config {
Expand Down
3 changes: 2 additions & 1 deletion src/converter/interval.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {Interval} from 'model/interval';
import {BindingTarget} from 'tweakpane/lib/plugin/common/binding/target';

import {Interval} from '../model/interval';

export function intervalFromUnknown(value: unknown): Interval {
return Interval.isObject(value)
? new Interval(value.min, value.max)
Expand Down
11 changes: 6 additions & 5 deletions src/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
import {IntervalConstraint} from 'constraint/interval';
import {PointNdTextControllerMod} from 'controller/point-nd-mod';
import {RangeSliderTextController} from 'controller/range-slider-text';
import {intervalFromUnknown, writeInterval} from 'converter/interval';
import {Interval, IntervalAssembly, IntervalObject} from 'model/interval';
import {
CompositeConstraint,
findConstraint,
Expand All @@ -26,6 +21,12 @@ import {
getSuitableDraggingScale,
} from 'tweakpane/lib/plugin/util';

import {IntervalConstraint} from './constraint/interval';
import {PointNdTextControllerMod} from './controller/point-nd-mod';
import {RangeSliderTextController} from './controller/range-slider-text';
import {intervalFromUnknown, writeInterval} from './converter/interval';
import {Interval, IntervalAssembly, IntervalObject} from './model/interval';

interface IntervalInputParams {
max?: number;
min?: number;
Expand Down
2 changes: 1 addition & 1 deletion src/view/range-slider-text.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import {Interval} from 'model/interval';
import {Value} from 'tweakpane/lib/plugin/common/model/value';
import {ClassName} from 'tweakpane/lib/plugin/common/view/class-name';
import {ValueView} from 'tweakpane/lib/plugin/common/view/value';
import {PointNdTextView} from 'tweakpane/lib/plugin/input-bindings/common/view/point-nd-text';

import {Interval} from '../model/interval';
import {RangeSliderView} from './range-slider';

interface Config {
Expand Down
3 changes: 2 additions & 1 deletion src/view/range-slider.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import {Interval} from 'model/interval';
import {Value} from 'tweakpane/lib/plugin/common/model/value';
import {
constrainRange,
Expand All @@ -7,6 +6,8 @@ import {
import {ClassName} from 'tweakpane/lib/plugin/common/view/class-name';
import {ValueView} from 'tweakpane/lib/plugin/common/view/value';

import {Interval} from '../model/interval';

interface Config {
maxValue: number;
minValue: number;
Expand Down

0 comments on commit f066dfc

Please sign in to comment.