@3dnest/wall-material-ajk
Advanced tools
Comparing version 0.0.5 to 0.0.6
{ | ||
"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; | ||
}; |
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
23084
538