ISurface constructor

ISurface({
  1. Element? domElement,
  2. IContext? context,
  3. num? width,
  4. num? height,
  5. Document? ownerDocument,
  6. void elementFinished(
    1. GraphObject,
    2. SVGElement
    )?,
  7. CSSStyleDeclaration? style,
  8. bool resize(
    1. num,
    2. num,
    3. num,
    4. num,
    )?,
  9. DOMRect getBoundingClientRect()?,
  10. void focus()?,
  11. void dispose()?,
})

Implementation

factory ISurface({
  _i6.Element? domElement,
  _i3.IContext? context,
  _i2.num? width,
  _i2.num? height,
  _i6.Document? ownerDocument,
  void Function(
    _i3.GraphObject,
    _i6.SVGElement,
  )? elementFinished,
  _i6.CSSStyleDeclaration? style,
  _i2.bool Function(
    _i2.num,
    _i2.num,
    _i2.num,
    _i2.num,
  )? resize,
  _i6.DOMRect Function()? getBoundingClientRect,
  void Function()? focus,
  void Function()? dispose,
}) =>
    ISurface._(
      domElement: domElement ?? _i5.undefined,
      context: context ?? _i5.undefined,
      width: width,
      height: height,
      ownerDocument: ownerDocument ?? _i5.undefined,
      elementFinished: elementFinished == null
          ? _i5.undefined
          : _i4.allowInterop(elementFinished),
      style: style ?? _i5.undefined,
      resize: resize == null ? null : _i4.allowInterop(resize),
      getBoundingClientRect: getBoundingClientRect == null
          ? null
          : _i4.allowInterop(getBoundingClientRect),
      focus: focus == null ? null : _i4.allowInterop(focus),
      dispose: dispose == null ? null : _i4.allowInterop(dispose),
    );