import { DataUtilities } from "../../Common/DataUtilities";
import { FlowStepSequence } from "./FlowStepSequence";
import { FlowConstants } from "../CommonUI/FlowConstants";
export class CandidateSequence {
    constructor(instruction) {
        this.sequenceType = "path_candidate";
        this._id = DataUtilities.generateUniqueId();
        this.instruction = instruction;
        this.x = instruction.candidateStackX;
        this.y = instruction.candidateStackY;
    }
    getElementId() {
        return this._id;
    }
    renderEditUI() {
        return null;
    }
    createSequence() {
        let s = new FlowStepSequence();
        s.desiredX = this.x;
        s.desiredY = this.y + FlowConstants.TITLE_AREA_HEIGHT + 15;
        s._id = this._id;
        return s;
    }
    get desiredX() {
        return this.instruction.candidateStackX;
    }
    set desiredX(value) {
        this.instruction.candidateStackX = value;
    }
    get desiredY() {
        return this.instruction.candidateStackY;
    }
    set desiredY(value) {
        this.instruction.candidateStackY = value;
    }
    reset() {
        this.x = this.desiredX;
        this.y = this.desiredY;
    }
    shouldRender() {
        return this.desiredY > 0;
    }
}
//# sourceMappingURL=CandidateSequence.js.map