// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. // // API docs from [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web). // Attributions and copyright licensing by Mozilla Contributors is licensed // under [CC-BY-SA 2.5](https://creativecommons.org/licenses/by-sa/2.5/. // Generated from Web IDL definitions. // ignore_for_file: unintended_html_in_doc_comment @JS() library; import 'dart:js_interop'; import 'css_font_loading.dart'; import 'css_typed_om.dart'; import 'css_view_transitions.dart'; import 'cssom.dart'; import 'cssom_view.dart'; import 'fullscreen.dart'; import 'geometry.dart'; import 'html.dart'; import 'pointerlock.dart'; import 'selection_api.dart'; import 'svg.dart'; import 'web_animations.dart'; typedef MutationCallback = JSFunction; typedef EventListener = JSFunction; typedef NodeFilter = JSFunction; typedef XPathNSResolver = JSFunction; typedef ShadowRootMode = String; typedef SlotAssignmentMode = String; /// The **`Event`** interface represents an event which takes place on an /// [`EventTarget`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget). /// /// An event can be triggered by the user action e.g. clicking the mouse button /// or tapping keyboard, or generated by APIs to represent the progress of an /// asynchronous task. It can also be triggered programmatically, such as by /// calling the /// [`HTMLElement.click()`](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/click) /// method of an element, or by defining the event, then sending it to a /// specified target using /// [`EventTarget.dispatchEvent()`](https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/dispatchEvent). /// /// There are many types of events, some of which use other interfaces based on /// the main `Event` interface. `Event` itself contains the properties and /// methods which are common to all events. /// /// Many DOM elements can be set up to accept (or "listen" for) these events, /// and execute code in response to process (or "handle") them. Event-handlers /// are usually connected (or "attached") to various /// [HTML elements](https://developer.mozilla.org/en-US/docs/Web/HTML/Element) /// (such as `