Skip to content

Commit

Permalink
[twisty] Fix imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Aug 6, 2020
1 parent 4a69426 commit dfd1f8a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 21 deletions.
7 changes: 4 additions & 3 deletions src/twisty/3D/puzzles/Cube3D.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,11 @@ import {
} from "three";
import { BlockMove } from "../../../alg";
import { Puzzles, Transformation } from "../../../kpuzzle";
import { AlgCursor, PuzzlePosition } from "../../animation/alg/AlgCursor";
import { Twisty3DPuzzle } from "./Twisty3DPuzzle";
import { TAU } from "../TAU";
import { AlgCursor } from "../../animation/alg/AlgCursor";
import { smootherStep } from "../../animation/easing";
import { TAU } from "../TAU";
import { Twisty3DPuzzle } from "./Twisty3DPuzzle";
import { PuzzlePosition } from "../../animation/alg/CursorTypes";

class AxisInfo {
public stickerMaterial: MeshBasicMaterial;
Expand Down
6 changes: 0 additions & 6 deletions src/twisty/dom/controls/buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ class TwistyControlButton extends ManagedCustomElement

// TODO: Can we avoid duplicate calculations?
private autoSetTimelineBasedDisabled(): void {
console.log(
"this.timelineCommand",
this.timelineCommand,
this.timeline.timestamp,
this.timeline.maxTimestamp(),
);
switch (this.timelineCommand!) {
case "jump-to-start":
case "play-pause":
Expand Down
24 changes: 12 additions & 12 deletions src/twisty/dom/viewers/Twisty2DSVG.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
import { TwistyViewerElement } from "./TwistyViewerElement";
import {
PositionListener,
PositionDispatcher,
PuzzlePosition,
} from "../../animation/alg/AlgCursor";
import { RenderScheduler } from "../../animation/RenderScheduler";
import { BlockMove } from "../../../alg";
import {
SVG,
Puzzles,
KPuzzleDefinition,
Combine,
Transformation,
KPuzzleDefinition,
Puzzles,
stateForBlockMove,
SVG,
Transformation,
} from "../../../kpuzzle";
import {
PositionDispatcher,
PositionListener,
} from "../../animation/alg/AlgCursor";
import { RenderScheduler } from "../../animation/RenderScheduler";
import { ManagedCustomElement } from "../ManagedCustomElement";
import { twisty2DSVGCSS } from "./Twisty2DSVGView.css";
import { BlockMove } from "../../../alg";
import { TwistyViewerElement } from "./TwistyViewerElement";
import { PuzzlePosition } from "../../animation/alg/CursorTypes";

// <twisty-2d-svg>
export class Twisty2DSVG extends ManagedCustomElement
Expand Down

0 comments on commit dfd1f8a

Please sign in to comment.