@visactor/vchart 2.0.12-alpha.3 → 2.0.12-alpha.4

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/build/index.es.js CHANGED
@@ -35126,7 +35126,15 @@ class AnimationTransitionRegistry {
35126
35126
  AnimationTransitionRegistry.getInstance();
35127
35127
 
35128
35128
  function getCustomType(custom) {
35129
- return custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
35129
+ if (!custom || !isFunction$1(custom)) return 0;
35130
+ const functionStr = Function.prototype.toString.call(custom);
35131
+ if (/^class\s/.test(functionStr)) return 1;
35132
+ if (!custom.prototype) return 2;
35133
+ if (custom.prototype.constructor === custom) {
35134
+ const descriptor = Object.getOwnPropertyDescriptor(custom, "prototype");
35135
+ if (descriptor && !descriptor.writable) return 1;
35136
+ }
35137
+ return 2;
35130
35138
  }
35131
35139
 
35132
35140
  class AnimateExecutor {
package/build/index.js CHANGED
@@ -35132,7 +35132,15 @@
35132
35132
  AnimationTransitionRegistry.getInstance();
35133
35133
 
35134
35134
  function getCustomType(custom) {
35135
- return custom && isFunction$1(custom) ? /^class\s/.test(Function.prototype.toString.call(custom)) ? 1 : 2 : 0;
35135
+ if (!custom || !isFunction$1(custom)) return 0;
35136
+ const functionStr = Function.prototype.toString.call(custom);
35137
+ if (/^class\s/.test(functionStr)) return 1;
35138
+ if (!custom.prototype) return 2;
35139
+ if (custom.prototype.constructor === custom) {
35140
+ const descriptor = Object.getOwnPropertyDescriptor(custom, "prototype");
35141
+ if (descriptor && !descriptor.writable) return 1;
35142
+ }
35143
+ return 2;
35136
35144
  }
35137
35145
 
35138
35146
  class AnimateExecutor {