How to use the @swim/transform.Transform.parse function in @swim/transform

To help you get started, we’ve selected a few @swim/transform 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 / TransformStyleAnimator.ts View on Github external
get: function (this: TransformStyleAnimator): Transform | null | undefined {
      let value = this._value;
      if (value === void 0) {
        const propertyValue = this.propertyValue;
        if (propertyValue) {
          try {
            value = Transform.parse(propertyValue);
          } catch (swallow) {
            // nop
          }
        }
      }
      return value;
    },
    enumerable: true,
github swimos / swim / swim-js / swim-ui-js / @swim / view / main / attribute / TransformAttributeAnimator.ts View on Github external
get: function (this: TransformAttributeAnimator): Transform | null | undefined {
      let value = this._value;
      if (value === void 0) {
        const attributeValue = this.attributeValue;
        if (attributeValue) {
          try {
            value = Transform.parse(attributeValue);
          } catch (swallow) {
            // nop
          }
        }
      }
      return value;
    },
    enumerable: true,

@swim/transform

CSS and SVG compatible transform types with unit-aware algebraic operators and parsers

Apache-2.0
Latest version published 5 years ago

Package Health Score

59 / 100
Full package analysis

Similar packages