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.5 to 0.0.6

4

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

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

},
"gitHead": "e41018490c1f1bf1b428f2a4ac9552939f524497"
"gitHead": "4b300929d3dbbf89490c25bd59abc31087a99426"
}

@@ -6,38 +6,20 @@ import { LINE_WIDTH } from '../constant.js';

export const DoorWay = (graphics, context) => {
// const { width, height, scale } = context;
// const lineWidth = LINE_WIDTH / scale;
// const segment = 100 / scale;
// const blank = 100 / scale;
// const color = getColors(context);
// const number = Math.round(width / (segment + blank)) > 1
// ? Math.round(width / (segment + blank))
// : 1;
const { width, height, scale } = context;
const color = getColors(context);
const lineWidth = LINE_WIDTH / scale;
// graphics
// .beginFill(color.fill)
// .drawRect(0, 0, width, height)
// .endFill()
// .lineStyle(lineWidth, color.line)
// .moveTo(0, 0)
// .lineTo(0, height)
// .moveTo(width, 0)
// .lineTo(width, height);
graphics
.beginFill(color.fill, .01)
.drawRect(0, 0, width, height)
.endFill()
.lineStyle(lineWidth, color.arcLine)
.moveTo(0, 0)
.lineTo(0, height)
.moveTo(width, 0)
.lineTo(width, height);
// for (let i = 0; i < number; i++) {
// const moveNext = (segment + blank) * i;
// const lineNext = segment * (i + 1) + blank * i < width
// ? segment * (i + 1) + blank * i
// : width;
graphics.pivot.x = width / 2;
graphics.pivot.y = height / 2;
// graphics
// .moveTo(moveNext, 0)
// .lineTo(lineNext, 0)
// .moveTo(width - moveNext, height)
// .lineTo(width - lineNext, height);
// }
// graphics.pivot.x = width / 2;
// graphics.pivot.y = height / 2;
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