From d77bbc632cf80c2e6fc43d51df4f969ac0fe970c Mon Sep 17 00:00:00 2001 From: aram2k4 <75240562+aram2k4@users.noreply.github.com> Date: Mon, 30 Nov 2020 12:41:01 +0530 Subject: [PATCH 1/2] Replaced addAttribute with setAttribute Replaced addAttribute with setAttribute as assAttribute is deprecated. --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index fb01791..b9d3552 100644 --- a/index.js +++ b/index.js @@ -18,16 +18,16 @@ module.exports = function createLineMesh (THREE) { opt = opt || {}; - this.addAttribute('position', new THREE.BufferAttribute(undefined, 3)); - this.addAttribute('lineNormal', new THREE.BufferAttribute(undefined, 2)); - this.addAttribute('lineMiter', new THREE.BufferAttribute(undefined, 1)); + this.setAttribute('position', new THREE.BufferAttribute(undefined, 3)); + this.setAttribute('lineNormal', new THREE.BufferAttribute(undefined, 2)); + this.setAttribute('lineMiter', new THREE.BufferAttribute(undefined, 1)); if (opt.distances) { - this.addAttribute('lineDistance', new THREE.BufferAttribute(undefined, 1)); + this.setAttribute('lineDistance', new THREE.BufferAttribute(undefined, 1)); } if (typeof this.setIndex === 'function') { this.setIndex(new THREE.BufferAttribute(undefined, 1)); } else { - this.addAttribute('index', new THREE.BufferAttribute(undefined, 1)); + this.setAttribute('index', new THREE.BufferAttribute(undefined, 1)); } this.update(path, opt.closed); } From 87fef0b3707108b9b9a5a4878540d836f88fc8db Mon Sep 17 00:00:00 2001 From: aram2k4 <75240562+aram2k4@users.noreply.github.com> Date: Mon, 30 Nov 2020 12:42:03 +0530 Subject: [PATCH 2/2] Incremented the package version to 1.1.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 77b1461..860e909 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "three-line-2d", - "version": "1.1.6", + "version": "1.1.7", "description": "lines expanded in a vertex shader", "main": "index.js", "license": "MIT",