@satheshsat/puzzle
Version:
Puzzle game
36 lines (35 loc) • 1.07 kB
TypeScript
import { OnInit } from '@angular/core';
import * as i0 from "@angular/core";
export declare class ImagePuzzleComponent implements OnInit {
imageUrl: string;
imageSize: number;
gridsize: number;
boxSize: number;
index: number;
totalBoxes: number;
Image: any[];
imageName: string;
difficulty: string;
steps: number;
ticks: string;
timer: any;
timeVar: any;
gameComplete: Boolean;
indexes: number[];
position: number[];
ngOnInit(): void;
isSorted(indexes: any): Boolean;
randomize(imageParts: any[]): any[];
onDragStart(event: any): void;
onDrop(event: any): void;
allowDrop(event: any): void;
printIndexes(sorts: number[]): void;
reRandomize(): void;
startGame(): void;
settime(t: number): void;
breakImageParts(): void;
initializeGame(): void;
reset(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<ImagePuzzleComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<ImagePuzzleComponent, "lib-image-puzzle", never, {}, {}, never, never>;
}