Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@3dnest/wall-material-ajk

Package Overview
Dependencies
Maintainers
3
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3dnest/wall-material-ajk - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

4

package.json
{
"name": "@3dnest/wall-material-ajk",
"version": "0.0.4",
"version": "0.0.5",
"description": "> TODO: description",

@@ -33,3 +33,3 @@ "author": "zhangsen <zhangsen@3dnest.cn>",

},
"gitHead": "815052d07fa4c2c62d904a93a7c4f8aae73de82b"
"gitHead": "e41018490c1f1bf1b428f2a4ac9552939f524497"
}

@@ -35,24 +35,22 @@ import { LINE_WIDTH } from '../constant.js';

export const LPathWindow = (graphics, context) => {
// const { scale, main, cross } = context;
const { scale, main, cross } = context;
// const lineWidth = LINE_WIDTH / scale;
// const color = getColors(context);
// const outline = getOutline(main, cross);
const lineWidth = LINE_WIDTH / scale;
const color = getColors(context);
const outline = getOutline(main, cross);
// graphics
// .lineStyle(lineWidth, color.line)
// .beginFill(color.fill)
// .drawPolygon(outline.flat())
// .endFill();
const smallCross = cross.map(c => c / 3);
const smallOutline = getOutline(main, smallCross);
// graphics.moveTo(...main[0]);
graphics
.lineStyle(lineWidth, color.line)
.beginFill(color.fill)
.drawPolygon(outline.flat())
.drawPolygon(smallOutline.flat())
.endFill();
// for (let i = 1; i < main.length; i++) {
// graphics.lineTo(...main[i]);
// }
graphics.pivot.x = 0;
graphics.pivot.y = 0;
// graphics.pivot.x = 0;
// graphics.pivot.y = 0;
return graphics;
};
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