blob: 4ccd7e9ceaf710e92af3d49ff81756206ec71233 [file] [log] [blame]
// Copyright (c) 2023, 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.
//
// Generated from Web IDL definitions.
import 'dart:js_interop';
import 'dom.dart';
import 'geometry.dart';
import 'hr_time.dart';
import 'performance_timeline.dart';
@JS('LayoutShift')
@staticInterop
class LayoutShift implements PerformanceEntry {}
extension LayoutShiftExtension on LayoutShift {
external JSObject toJSON();
external num get value;
external bool get hadRecentInput;
external DOMHighResTimeStamp get lastInputTime;
external JSArray get sources;
}
@JS('LayoutShiftAttribution')
@staticInterop
class LayoutShiftAttribution {}
extension LayoutShiftAttributionExtension on LayoutShiftAttribution {
external Node? get node;
external DOMRectReadOnly get previousRect;
external DOMRectReadOnly get currentRect;
}