@postermywall/fabricjs-2 6.6.2-pmw-45 → 6.6.2-pmw-47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -383,7 +383,7 @@
383
383
  }
384
384
  const cache = new Cache();
385
385
 
386
- var version = "6.6.2-pmw-45";
386
+ var version = "6.6.2-pmw-47";
387
387
 
388
388
  // use this syntax so babel plugin see this import here
389
389
  const VERSION = version;
@@ -4938,7 +4938,6 @@
4938
4938
  ShadowOrGlowType["CUSTOM_SHADOW"] = "custom_shadow";
4939
4939
  ShadowOrGlowType["LIGHT_GLOW"] = "light_glow";
4940
4940
  ShadowOrGlowType["STRONG_GLOW"] = "strong_glow";
4941
- ShadowOrGlowType["NONE"] = "none";
4942
4941
  return ShadowOrGlowType;
4943
4942
  }({});
4944
4943
  const shadowOffsetRegex = '(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?';
@@ -4950,8 +4949,7 @@
4950
4949
  offsetY: 0,
4951
4950
  affectStroke: false,
4952
4951
  includeDefaultValues: true,
4953
- nonScaling: false,
4954
- shadowOrGlowType: ShadowOrGlowType.NONE
4952
+ nonScaling: false
4955
4953
  };
4956
4954
  class Shadow {
4957
4955
  /**
@@ -4990,6 +4988,12 @@
4990
4988
  isGlow() {
4991
4989
  return this.shadowOrGlowType === ShadowOrGlowType.LIGHT_GLOW || this.shadowOrGlowType === ShadowOrGlowType.STRONG_GLOW;
4992
4990
  }
4991
+ isLightShadow() {
4992
+ return this.shadowOrGlowType === ShadowOrGlowType.LIGHT_SHADOW;
4993
+ }
4994
+ isStrongShadow() {
4995
+ return this.shadowOrGlowType === ShadowOrGlowType.STRONG_SHADOW;
4996
+ }
4993
4997
 
4994
4998
  /**
4995
4999
  * Returns a string representation of an instance