How to use the @swim/style.BoxShadow.fromAny function in @swim/style

To help you get started, we’ve selected a few @swim/style examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github swimos / swim / swim-js / swim-ui-js / @swim / view / main / style / BoxShadowStyleAnimator.ts View on Github external
let _this: BoxShadowStyleAnimator = function (value?: AnyBoxShadow | null, tween?: Tween, priority?: string | null): BoxShadow | null | undefined | V {
      if (value === void 0) {
        return _this.value;
      } else {
        if (value !== null) {
          value = BoxShadow.fromAny(value);
        }
        _this.setState(value as BoxShadow | null, tween, priority);
        return _this._view;
      }
    } as BoxShadowStyleAnimator;
    (_this as any).__proto__ = this;

@swim/style

Font, color, gradient, shadow and related types and parsers

Apache-2.0
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages