circle-mesh
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -16,11 +16,7 @@ import React from "react"; | ||
init(colors) { | ||
var canvas = document.querySelector("canvas"); | ||
var canvas = document.getElementById("mesh-circle-canvas"); | ||
var width = canvas.offsetWidth, | ||
height = canvas.offsetHeight; | ||
var colors = (colors && | ||
colors.map(c => { | ||
console.log(c); | ||
return new THREE.Color(c); | ||
})) || [ | ||
var colors = (colors && colors.map(c => new THREE.Color(c))) || [ | ||
new THREE.Color(0x4b2e83), | ||
@@ -27,0 +23,0 @@ new THREE.Color(0xe8e3d3), |
{ | ||
"name": "circle-mesh", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "React component from Tympanus demo", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"clean": "rimraf -rf ./dist", | ||
"build": "parcel build index.jsx", | ||
"start": "parcel index.html" | ||
}, | ||
@@ -22,8 +25,10 @@ "repository": { | ||
"react": "^16.6.0", | ||
"react-dom": "^16.5.2", | ||
"react-dom": "^16.6.0", | ||
"three": "^0.97.0" | ||
}, | ||
"devDependencies": { | ||
"cssnano": "^4.1.7" | ||
"cssnano": "^4.1.7", | ||
"parcel-bundler": "^1.10.3", | ||
"rimraf": "^2.6.2" | ||
} | ||
} |
@@ -24,6 +24,5 @@ # React Component for [This Demo](https://tympanus.net/Development/DecorativeBackgrounds/index.html) | ||
$ git clone https://github.com/psbrandt/circle-mesh.git | ||
$ cd circle-mesh | ||
$ npm install -g parcel-bundler | ||
$ npm install | ||
$ parcel index.html | ||
$ npm run build | ||
$ npm start | ||
``` | ||
@@ -30,0 +29,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
10432859
3
2970
36
Updatedreact-dom@^16.6.0