@event-calendar/build 0.15.3 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -116,9 +116,8 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
116
116
  - [refetchEvents](#refetchevents)
117
117
  </td><td>
118
118
 
119
+ - [dateFromPoint](#datefrompoint)
119
120
  - [getView](#getview)
120
- </td><td>
121
-
122
121
  - [unselect](#unselect-1)
123
122
  </td></tr>
124
123
  </table>
@@ -192,8 +191,8 @@ import '@event-calendar/core/index.css';
192
191
  ### Pre-built browser ready bundle
193
192
  Include the following lines of code in the `<head>` section of your page:
194
193
  ```html
195
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.15.3/event-calendar.min.css">
196
- <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.15.3/event-calendar.min.js"></script>
194
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.16.0/event-calendar.min.css">
195
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@0.16.0/event-calendar.min.js"></script>
197
196
  ```
198
197
 
199
198
  <details>
@@ -1988,6 +1987,20 @@ Updates a single event with the matching `event`.`id`.
1988
1987
 
1989
1988
  Refetches events from all sources.
1990
1989
 
1990
+ ### dateFromPoint( x, y )
1991
+ - Return value `Date` or `null`
1992
+
1993
+ Returns the date and time that would be determined if a click was made on the specified coordinates within the application's [viewport](https://developer.mozilla.org/en-US/docs/Glossary/Viewport).
1994
+
1995
+ Using this method, you can get the date and time for any point inside the calendar, as if it was clicked. For example, you want to know, when you click on a multi-day event, which day the click happened on. To do this, inside [eventClick](#eventclick), pass the `jsEvent.clientX` and `jsEvent.clientY` coordinates to `dateFromPoint` and get the date that corresponds to the place in the calendar where the click was.
1996
+
1997
+ <details>
1998
+ <summary>Note</summary>
1999
+
2000
+ > In the `'listDay'`, `'listWeek'`, `'listMonth'` and `'listYear'` views, the events are rendered outside of the day container, so the method will return `null` for the coordinates that are inside the events.
2001
+
2002
+ </details>
2003
+
1991
2004
  ### getView()
1992
2005
  - Return value `View`
1993
2006