(configSettings)
| 74 | } |
| 75 | } |
| 76 | function createMarkerConfig(configSettings) { |
| 77 | const { event: event3, layout, viewName, sectionId, eventNode: eventNode2 } = configSettings; |
| 78 | setRequiredStylesToMarker(eventNode2, layout); |
| 79 | const sections = {}; |
| 80 | let markerObject = { start_date: event3.start_date, end_date: event3.end_date, css: "dhx_scheduler_dnd_marker", html: eventNode2 }; |
| 81 | if (layout == "timeline") { |
| 82 | const viewObj = scheduler2.getView(viewName); |
| 83 | if (viewObj.round_position) { |
| 84 | const index = scheduler2._get_date_index(viewObj, event3.start_date); |
| 85 | const rounded_date = viewObj._trace_x[index]; |
| 86 | markerObject.start_date = rounded_date; |
| 87 | } |
| 88 | } |
| 89 | if (layout == "timeline" || layout == "month") { |
| 90 | markerObject = { ...markerObject, end_date: scheduler2.date.add(event3.start_date, 1, "minute") }; |
| 91 | } |
| 92 | if (sectionId) { |
| 93 | sections[viewName] = sectionId; |
| 94 | markerObject.sections = sections; |
| 95 | } |
| 96 | return markerObject; |
| 97 | } |
| 98 | function createViewMarker(settings) { |
| 99 | const { layout } = settings; |
| 100 | let markerConfigs; |
no test coverage detected