How to use @swim/style - 2 common examples

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
get: function (this: BoxShadowStyleAnimator): BoxShadow | null | undefined {
      let value = this._value;
      if (value === void 0) {
        const propertyValue = this.propertyValue;
        if (propertyValue) {
          try {
            value = BoxShadow.parse(propertyValue);
          } catch (swallow) {
            // nop
          }
        }
      }
      return value;
    },
    enumerable: true,
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

57 / 100
Full package analysis

Similar packages