Socket
Socket
Sign inDemoInstall

circle-mesh

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circle-mesh - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

8

index.jsx

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc