Lines Matching defs:timeline
6435 { view: "timeline", scrollX: "scrollHor", scrollY: "scrollVer" },
7733 // use timeline start if project start is not specified
7741 // earliest task start if neither project start nor timeline are specified
11544 return gantt.$ui.getView("timeline");
11685 var timeline = getTimeline(this);
11686 if (!timeline || !timeline.isVisible()) {
11689 return timeline._taskRenderer.rendered[id];
11695 var timeline = getTimeline(this);
11696 if (!timeline.isVisible()) {
11699 return timeline._linkRenderer.rendered[id];
12370 var ScaleHelper = __webpack_require__(/*! ./ui/timeline/scales_ignore */ "./sources/core/ui/timeline/scales.js");
12371 var PrimaryScaleHelper = __webpack_require__(/*! ./ui/timeline/scales */ "./sources/core/ui/timeline/scales.js");
13324 var timeline = gantt.$ui.getView("timeline");
13325 if (timeline && timeline.isVisible()) {
15894 function getResourceLoad(resource, resourceProperty, scale, timeline){
15898 res = resourceTaskCache[cacheKey] = calculateResourceLoad(resource, resourceProperty, scale, timeline);
15906 function calculateResourceLoad(resource, resourceProperty, scale, timeline) {
15943 var config = timeline.$getConfig();
15966 function renderResourceLineCell(resource, day, templates, config, timeline){
15971 var sizes = timeline.getItemPosition(resource, day.start_date, day.end_date);
15999 function renderResourceLine(resource, timeline, viewport) {
16000 var config = timeline.$getConfig(),
16001 templates = timeline.$getTemplates();
16002 var scale = timeline.getScale();
16003 var timetable = getResourceLoad(resource, config.resource_property, timeline.getScale(), timeline);
16015 var cell = renderResourceLineCell(resource, day, templates, config, timeline);
16032 function updateResourceLine(resource, node, timeline, viewport) {
16033 var config = timeline.$getConfig(),
16034 templates = timeline.$getTemplates();
16035 var scale = timeline.getScale();
16036 var timetable = getResourceLoad(resource, config.resource_property, timeline.getScale(), timeline);
16048 var cell = renderResourceLineCell(resource, day, templates, config, timeline);
16067 function renderBar(level, start, end, timeline){
16069 var left = timeline.posFromDate(start);
16070 var right = timeline.posFromDate(end);
16119 function renderHistogramLine(capacity, timeline, maxCapacity, viewPort){
16120 var scale = timeline.getScale();
16139 var bar = renderBar(level, colStart, colEnd, timeline);
16143 var connection = renderConnection(level, nextLevel, timeline.posFromDate(colEnd));
16152 function renderCapacityElement(resource, sizes, capacityMatrix, config, timeline, maxCapacity, viewport){
16159 var capacityElement = renderHistogramLine(capacityMatrix, timeline, maxCapacity, viewport);
16204 function renderResourceHistogram(resource, timeline, viewport) {
16205 var config = timeline.$getConfig(),
16206 templates = timeline.$getTemplates();
16207 var scale = timeline.getScale();
16208 var timetable = getResourceLoad(resource, config.resource_property, scale, timeline);
16212 var maxCapacity = resource.capacity || timeline.$config.capacity || 24;
16227 var sizes = timeline.getItemPosition(resource, day.start_date, day.end_date);
16243 var capacityElement = renderCapacityElement(resource, sizes, capacityMatrix, config, timeline, maxCapacity, viewport);
16254 function updateResourceHistogram(resource, node, timeline, viewport) {
16255 var config = timeline.$getConfig(),
16256 templates = timeline.$getTemplates();
16257 var scale = timeline.getScale();
16258 var timetable = getResourceLoad(resource, config.resource_property, scale, timeline);
16259 var maxCapacity = resource.capacity || timeline.$config.capacity || 24;
16268 var sizes = timeline.getItemPosition(resource, day.start_date, day.end_date);
16288 var capacityElement = renderCapacityElement(resource, sizes, capacityMatrix, config, timeline, maxCapacity, viewport);
16982 if(gantt.$ui.getView("timeline")){
16983 _tasks_dnd = gantt.$ui.getView("timeline")._tasks_dnd;
17308 }else if(gantt.$ui.getView("timeline")){
17309 return gantt.$ui.getView("timeline").$task_data;
17315 }else if(gantt.$ui.getView("timeline")){
17316 return gantt.$ui.getView("timeline").$task_links;
17329 }else if(gantt.$ui.getView("timeline")){
17330 return gantt.$ui.getView("timeline").$task_data;
17342 config.view = "timeline";
17363 config.view = "timeline";
20309 Timeline = __webpack_require__(/*! ./timeline/timeline */ "./sources/core/ui/timeline/timeline.js"),
20312 ResourceTimeline = __webpack_require__(/*! ./timeline/resource_timeline */ "./sources/core/ui/timeline/timeline.js"),
20313 ResourceHistogram = __webpack_require__(/*! ./timeline/resource_histogram */ "./sources/core/ui/timeline/timeline.js");
20326 var mainTimelineInitializer = __webpack_require__(/*! ./timeline/main_timeline_initializer */ "./sources/core/ui/timeline/main_timeline_initializer.js");
20356 factory.registerView("timeline", Timeline, function(view){
20358 if(id === "timeline" || view.$config.bind == "task"){
21866 if(view && (view.$config.view == "timeline" || view.$config.view == "grid")){
22306 var mainTimeline = gantt.$ui.getView("timeline");
22338 // timeline is being displayed after being not visible, reset grid with from full screen
22361 // hiding timeline, remember grid with to restore it when timeline is displayed again
22480 onDestroyed: function (timeline) {
24346 function renderSplitTask(task, timeline) {
24357 var element = defaultRender(child, timeline);
24576 /***/ "./sources/core/ui/timeline/links_dnd.js":
24578 !*** ./sources/core/ui/timeline/links_dnd.js ***!
24585 var initLinksDND = function(timeline, gantt) {
24596 var origWidth = timeline.getItemHeight();//m-s have square shape
24621 var dnd = new DnD(timeline.$task_bars, { sensitivity : 0, updates_per_second : 60 }),
24648 this._dir_start = getLinePos(t, !!_link_source_task_start, shift, timeline.$getConfig(), true);
24791 var config = timeline.$getConfig();
24800 this._dir_end = domHelpers.getRelativeEventPosition(e, timeline.$task_data);
24985 timeline.$task_links.appendChild(dnd._direction);
25014 /***/ "./sources/core/ui/timeline/main_timeline_initializer.js":
25016 !*** ./sources/core/ui/timeline/main_timeline_initializer.js ***!
25022 taskDnD = __webpack_require__(/*! ./tasks_dnd */ "./sources/core/ui/timeline/tasks_dnd.js"),
25023 linkDnD = __webpack_require__(/*! ./links_dnd */ "./sources/core/ui/timeline/links_dnd.js"),
25030 onCreated: function (timeline) {
25031 var config = timeline.$config;
25035 timeline._linksDnD = linkDnD.createLinkDND();
25036 timeline._tasksDnD = taskDnD.createTaskDND();
25037 timeline._tasksDnD.extend(timeline);
25041 onInitialized: function (timeline) {
25044 this._attachStateProvider(gantt, timeline);
25046 timeline._tasksDnD.init(timeline, gantt);
25047 timeline._linksDnD.init(timeline, gantt);
25049 if(timeline.$config.id == "timeline"){
25050 this.extendDom(timeline);
25054 onDestroyed: function (timeline) {
25057 if (timeline._tasksDnD) {
25058 timeline._tasksDnD.destructor();
25061 extendDom: function(timeline){
25062 gantt.$task = timeline.$task;
25063 gantt.$task_scale = timeline.$task_scale;
25064 gantt.$task_data = timeline.$task_data;
25065 gantt.$task_bg = timeline.$task_bg;
25066 gantt.$task_links = timeline.$task_links;
25067 gantt.$task_bars = timeline.$task_bars;
25133 _attachStateProvider: function(gantt, timeline){
25134 var self = timeline;
25157 /***/ "./sources/core/ui/timeline/scales.js":
25159 !*** ./sources/core/ui/timeline/scales.js ***!
25554 /***/ "./sources/core/ui/timeline/tasks_canvas_render.gpl.js":
25556 !*** ./sources/core/ui/timeline/tasks_canvas_render.gpl.js ***!
25578 /***/ "./sources/core/ui/timeline/tasks_dnd.js":
25580 !*** ./sources/core/ui/timeline/tasks_dnd.js ***!
25590 function createTaskDND(timeline, gantt) {
25633 var data = timeline.$task_data;
25658 var cfg = timeline.$getConfig();
25695 var config = timeline.$getConfig();
25798 var config = timeline.$getConfig();
25800 var pos = domHelpers.getRelativeEventPosition(e, timeline.$task_data);
25854 var config = timeline.$getConfig();
25912 var config = timeline.$getConfig();
25923 var config = timeline.$getConfig();
25936 var config = timeline.$getConfig();
25961 var config = timeline.$getConfig();
26010 var config = timeline.$getConfig();
26027 var config = timeline.$getConfig();
26067 var cfg = timeline.$getConfig();
26120 var config = timeline.$getConfig();
26146 extend: function(timeline) {
26147 timeline.roundTaskDates = function(task) {
26152 init: function(timeline, gantt) {
26153 _tasks_dnd = createTaskDND(timeline, gantt);
26154 // TODO: entry point for touch handlers, move touch to timeline
26155 timeline._tasks_dnd = _tasks_dnd;
26174 /***/ "./sources/core/ui/timeline/timeline.js":
26176 !*** ./sources/core/ui/timeline/timeline.js ***!
26181 var ScaleHelper = __webpack_require__(/*! ./scales_ignore */ "./sources/core/ui/timeline/scales.js");
26185 var canvasRender = __webpack_require__(/*! ./tasks_canvas_render */ "./sources/core/ui/timeline/tasks_canvas_render.gpl.js");
26273 //timeline area layers