@3dnest/wall-material-ajk
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"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; | ||
}; |
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
0
23670
554