sourceCrossOrigin property

String Function(Picture)? get sourceCrossOrigin

Gets or sets a function that returns a value for image.crossOrigin.

The default value is null, which will not set a value for image.crossOrigin. Set this property to a function that returns "anonymous" or "use-credentials" if you want images to complete a cross-origin request. Example:

   $(go.Picture,
     { width: 64, height: 64 },
     { sourceCrossOrigin: pict => "use-credentials" },
     new go.Binding("source", "path"))

Implementation

_i2.String Function(_i3.Picture)? get sourceCrossOrigin =>
    (_i3.Picture p0) => _i4.callMethod(
          _i4.getProperty(
            this,
            'sourceCrossOrigin',
          ),
          r'call',
          [
            this,
            p0,
          ],
        );
set sourceCrossOrigin (String value(Picture)?)

Implementation

set sourceCrossOrigin(_i2.String Function(_i3.Picture)? value) {
  _i4.setProperty(
    this,
    'sourceCrossOrigin',
    value == null ? _i5.undefined : _i4.allowInterop(value),
  );
}