@progress/kendo-charts 2.8.0-develop.4 → 2.8.0

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.
@@ -61,6 +61,8 @@ class Chart {
61
61
  this._focusState = {};
62
62
 
63
63
  this._initHandlers();
64
+
65
+ this._createSurface = context.createSurface || draw.Surface.create.bind(draw.Surface);
64
66
  this._initSurface();
65
67
 
66
68
  this.bindCategories();
@@ -307,7 +309,7 @@ class Chart {
307
309
  if (!surface || surface.options.type !== this.options.renderAs) {
308
310
  this._destroySurface();
309
311
 
310
- this.surface = draw.Surface.create(wrap, {
312
+ this.surface = this._createSurface(wrap, {
311
313
  type: this.options.renderAs
312
314
  });
313
315
 
@@ -61,6 +61,8 @@ class Chart {
61
61
  this._focusState = {};
62
62
 
63
63
  this._initHandlers();
64
+
65
+ this._createSurface = context.createSurface || draw.Surface.create.bind(draw.Surface);
64
66
  this._initSurface();
65
67
 
66
68
  this.bindCategories();
@@ -307,7 +309,7 @@ class Chart {
307
309
  if (!surface || surface.options.type !== this.options.renderAs) {
308
310
  this._destroySurface();
309
311
 
310
- this.surface = draw.Surface.create(wrap, {
312
+ this.surface = this._createSurface(wrap, {
311
313
  type: this.options.renderAs
312
314
  });
313
315