Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { SimpleRope } from '@pixi/mesh-extras';
/**
* Renders the object using the Canvas renderer
*
* @protected
* @method _renderCanvas
* @memberof PIXI.Mesh#
* @param {PIXI.CanvasRenderer} renderer - The canvas renderer.
*/
SimpleRope.prototype._renderCanvas = function _renderCanvas(renderer)
{
if (this.autoUpdate
|| this.geometry.width !== this.shader.texture.height)
{
this.geometry.width = this.shader.texture.height;
this.geometry.update();
}
if (this.shader.update)
{
this.shader.update();
}
this.calculateUvs();
this.material._renderCanvas(renderer, this);