Lines Matching refs:from

5329 function copyDescriptors(from, to, filter) {  argument
5330 var keys = es5.names(from);
5335 es5.defineProperty(to, key, es5.getDescriptor(from, key));
5349 var ArrayFrom = typeof Array.from === "function" ? function(v) {
5350 return Array.from(v);
7634 var from = gantt.getTask(link.source),
7637 return "<b>" + from.text + "</b> &ndash; <b>" + to.text + "</b>";
7640 drag_link: function (from, from_start, to, to_start) { argument
7641 from = gantt.getTask(from);
7644 …var text = "<b>" + from.text + "</b> " + (from_start ? labels.link_start : labels.link_end) + "<br…
7651 drag_link_class: function (from, from_start, to, to_start) { argument
7654 if (from && to) {
7655 var allowed = gantt.isLinkAllowed(from, to, from_start, to_start);
7976 gantt._assign_project_dates = function (task, from, to) { argument
7979 if (from && from != Infinity) {
7980 task.start_date = new Date(from);
9846 getIndexRange: function(from, to){ argument
9850 for (var i=(from||0); i <= to; i++)
11378 getTaskByTime: function (from, to) {
11383 if (!(from || to)) {
11386 from = +from || -Infinity;
11390 if (+task.start_date < to && +task.end_date > from)
12035 gantt.init = function(node, from, to){ argument
12036 if(from && to){
12037 this.config.start_date = this._min_date = new Date(from);
12309 gantt.isLinkAllowed = function (from, to, from_start, to_start) { argument
12311 if (typeof(from) == "object") {
12312 link = from;
12314 link = {source: from, target: to, type: this._get_link_type(from_start, to_start)};
23154 _get_line: function (from, to) { argument
23155 var direction = this.get_direction(from, to);
23157 x: from.x,
23158 y: from.y,
23159 direction: this.get_direction(from, to)
23162 vect.size = Math.abs(from.x - to.x);
23164 vect.size = Math.abs(from.y - to.y);
23168 get_direction: function (from, to) { argument
23170 if (to.x < from.x) {
23172 } else if (to.x > from.x) {
23174 } else if (to.y > from.y) {
23335 var from = getMilestonePosition(source, view),
23339 x: from_start ? from.left : (from.left + from.width),
23341 y: from.top,
25171 getSum: function (sizes, from, to) {
25174 if (from === undefined)
25175 from = 0;
25178 for (var i = from; i <= to; i++)
25183 setSumWidth: function (sum_width, scale, from, to) {
25188 if (from === undefined)
25189 from = 0;
25190 var length = to - from + 1;
25192 if (from > parts.length - 1 || length <= 0 || to > parts.length - 1)
25195 var oldWidth = this.getSum(parts, from, to);
25199 this.adjustSize(diff, parts, from, to);
25212 adjustSize: function (width, parts, from, to) {
25213 if (!from)
25214 from = 0;
25218 var length = to - from + 1;
25220 var full = this.getSum(parts, from, to);
25222 for (var i = from; i <= to; i++) {
25460 iterateScales: function (lower_scale, upper_scale, from, to, callback) {
25464 var prev = from || 0;
25481 alineScaleColumns: function (lower_scale, upper_scale, from, to) {
25482 …this.iterateScales(lower_scale, upper_scale, from, to, function (upper_start, upper_end, lower_sta…
27919 _getWorkUnitsBetweenGeneric: function (from, to, unit, step) { argument
27921 var start = new Date(from),
27985 _getWorkUnitsForRange: function (from, to, unit, step) { argument
27987 var start = new Date(from),
28009 _getWorkUnitsBetweenQuick: function (from, to, unit, step) { argument
28010 var start = new Date(from),
28018 return this._getWorkUnitsBetweenGeneric(from, to, unit, step);
28161 _calculateDuration: function (from, to, unit, step) { argument
28164 res = this._getWorkUnitsBetweenQuick(from, to, unit, step);
28166 res = this._getWorkUnitsBetweenGeneric(from, to, unit, step);
28175 var from = config.start_date,
28183 var start = new Date(from),
28198 var from = config.start_date,
28208 return this._calculateEndDate(from, duration, unit, step * mult);
28211 _calculateEndDate: function (from, duration, unit, step) { argument
28216 return this._calculateMinuteEndDate(from, duration, step);
28218 return this._calculateHourEndDate(from, duration, step);
28220 var interval = this._addInterval(from, duration, unit, step, null);
28242 _calculateHourEndDate: function (from, duration, step) { argument
28243 var start = new Date(from),
28291 _calculateMinuteEndDate: function (from, duration, step) { argument
28293 var start = new Date(from),
28446 var from = config.start_date,
28451 return this._calculateDuration(from, to, unit, step);
28466 var from = new Date(start),
28468 while (from.valueOf() < to.valueOf()) {
28470 from = dateHelper.add(from, step, unit);
28473 if (from.valueOf() != end.valueOf()) {
28474 res += (to - from) / (dateHelper.add(from, step, unit) - from);
28483 var from = config.start_date,
28490 from = new Date(from);
28493 return (from.valueOf() < to.valueOf());