server/aspnetapp/wwwroot/lib/css3transform/asset/alloy_flow.js

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/* AlloyFlow 0.1.0
 * By AlloyTeam
 * https://github.com/AlloyTeam/AlloyFlow
 */

var AlloyFlow = function (option) {

    this.start_time = null;
    this.workflow = option.workflow;
    this.wf_len = this.workflow.length;
    this.timer = null;
    this.interval = option.interval || 15;

    this.onStart = option.onStart || function () { };
    this.onProgress = option.onProgress || function () { };
    this.onEnd = option.onEnd || function () { };

    if (typeof this.workflow[0] === "function") {
        this.stopSeries = false;
        this.isSeries = true;
        this.workIndex = 0;
    } else {
        var i=0,
            j,
            startLen;
        for (; i < this.wf_len; i++) {
            var start =  this.workflow[i].start;
            if (typeof start !== "number") {


                j=0;
                startLen=start.length;
                for (; j < startLen; j++) {
                    this.workflow.splice(i, 0, { work: this.workflow[i].work, start: start[j] });
                }
                i += startLen;
                this.workflow.splice(i--, 1);
                this.wf_len--;
                this.wf_len += startLen;

            }
        }
    }
};

AlloyFlow.prototype = {
    start: function () {
        this.onStart();
        if (this.isSeries) {
            this.stopSeries = false;
            this.workIndex = 0;
            this._startSeries();
            return;
        }
        var self = this;

        this._forEach(this.workflow,function (item) {
            item.done = false;
        });
        this.start_time = new Date();
后面还有 73 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。