|
400 | 400 | if(this.strokewidth){
|
401 | 401 | this._penParameters.width = this.strokewidth;
|
402 | 402 | }
|
403 |
| - |
404 |
| - this._inkPaper = new MyScript.InkPaper(this._inputArea, { |
405 |
| - host: this.host, |
406 |
| - protocol: this.protocol, |
407 |
| - ssl: this.ssl, |
408 |
| - type : this.type, |
409 |
| - width : this.offsetWidth, |
410 |
| - height : this.offsetHeight, |
411 |
| - timeout : this.timeout, |
412 |
| - applicationKey : this.applicationkey, |
413 |
| - hmacKey : this.hmackey, |
414 |
| - typeset: this.typeset, |
415 |
| - components : this.components, |
416 |
| - textParameters : this.textparameters, |
417 |
| - mathParameters : this.mathparameters, |
418 |
| - shapeParameters : this.shapeparameters, |
419 |
| - musicParameters : this.musicparameters, |
420 |
| - analyzerParameters : this.analyzerparameters, |
421 |
| - penParameters : this._penParameters |
422 |
| - }); |
| 403 | + if(!this._inkPaper) { |
| 404 | + this._inkPaper = new MyScript.InkPaper(this._inputArea, { |
| 405 | + host: this.host, |
| 406 | + protocol: this.protocol, |
| 407 | + ssl: this.ssl, |
| 408 | + type: this.type, |
| 409 | + width: this.offsetWidth, |
| 410 | + height: this.offsetHeight, |
| 411 | + timeout: this.timeout, |
| 412 | + applicationKey: this.applicationkey, |
| 413 | + hmacKey: this.hmackey, |
| 414 | + typeset: this.typeset, |
| 415 | + components: this.components, |
| 416 | + textParameters: this.textparameters, |
| 417 | + mathParameters: this.mathparameters, |
| 418 | + shapeParameters: this.shapeparameters, |
| 419 | + musicParameters: this.musicparameters, |
| 420 | + analyzerParameters: this.analyzerparameters, |
| 421 | + penParameters: this._penParameters |
| 422 | + }); |
| 423 | + } |
423 | 424 | },
|
424 | 425 | _onResize: function () {
|
425 | 426 | if (this._inkPaper) {
|
|
0 commit comments