How to use the @swim/style.BoxShadow.parse 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
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,

@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