MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / _

Function _

codebase/dhtmlxscheduler.es.js:20–44  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

18 return l ? l.layout : d;
19 }
20 function _(d) {
21 const { event: l, layout: h, viewName: p, sectionId: m, eventNode: g } = d;
22 (function(f, y) {
23 switch (y) {
24 case "month":
25 f.style.top = "", f.style.left = "";
26 break;
27 case "timeline":
28 f.style.left = "", f.style.marginLeft = "1px";
29 break;
30 default:
31 f.style.top = "";
32 }
33 })(g, h);
34 const c = {};
35 let u = { start_date: l.start_date, end_date: l.end_date, css: "dhx_scheduler_dnd_marker", html: g };
36 if (h == "timeline") {
37 const f = e.getView(p);
38 if (f.round_position) {
39 const y = e._get_date_index(f, l.start_date), w = f._trace_x[y];
40 u.start_date = w;
41 }
42 }
43 return h != "timeline" && h != "month" || (u = { ...u, end_date: e.date.add(l.start_date, 1, "minute") }), m && (c[p] = m, u.sections = c), u;
44 }
45 function r(d) {
46 const { layout: l } = d;
47 let h;

Callers 9

rFunction · 0.70
NtFunction · 0.70
TtFunction · 0.70
WtFunction · 0.70
_renderDayGridHeaderMethod · 0.70
ktFunction · 0.70
sFunction · 0.70
wFunction · 0.70

Calls 11

rFunction · 0.70
iFunction · 0.70
geFunction · 0.70
getViewMethod · 0.65
addMethod · 0.65
getStateMethod · 0.65
day_startMethod · 0.65
callEventMethod · 0.65
getEventMethod · 0.65
date_partMethod · 0.65
showEventMethod · 0.65

Tested by

no test coverage detected