@3dnest/wall-material-e100
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"name": "@3dnest/wall-material-e100", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "> TODO: description", | ||
@@ -30,3 +30,3 @@ "author": "zhangsen <zhangsen@3dnest.cn>", | ||
}, | ||
"gitHead": "41ce8bb36100d6511ce01e53da3cad1319b1fed2" | ||
"gitHead": "82c788d9e872123f2257977bd61e07276c158418" | ||
} |
@@ -5,5 +5,4 @@ import { LINE_WIDTH, ALPHA } from '../constant.js'; | ||
export const BoilerWindow = (graphics, context) => { | ||
const { width, scale, sillThickness = 500 / scale, height } = context; | ||
const { width, height, scale, sillThickness = 500 / scale, windowThickness = 240 / scale} = context; | ||
const lineWidth = LINE_WIDTH / scale; | ||
const windowThickness = height; | ||
const color = getColors(context); | ||
@@ -14,13 +13,13 @@ | ||
.lineStyle(lineWidth, color.line) | ||
.drawRect(0, -(sillThickness + windowThickness - height), width, sillThickness + windowThickness) | ||
.drawRect(0, -(sillThickness + windowThickness), width, sillThickness + windowThickness + height) | ||
// .drawRect(windowThickness / 2, -(sillThickness + windowThickness / 2), width + windowThickness , sillThickness + windowThickness / 2) | ||
.drawRect(windowThickness, -(sillThickness - height), width - windowThickness * 2, sillThickness) | ||
.drawRect(windowThickness, -sillThickness, width - windowThickness * 2, sillThickness + height) | ||
.endFill() | ||
.lineStyle(lineWidth * 2, color.line) | ||
.moveTo(width / 2, -(sillThickness + windowThickness - height)) | ||
.lineTo(width / 2, -(sillThickness - height)) | ||
.moveTo(width / 2, -(sillThickness + windowThickness)) | ||
.lineTo(width / 2, -(sillThickness)) | ||
.lineStyle(lineWidth * 3, color.line) | ||
.moveTo(windowThickness / 2, height) | ||
.lineTo(windowThickness / 2, -(sillThickness + windowThickness / 2 - height)) | ||
.lineTo(width - windowThickness / 2, -(sillThickness + windowThickness / 2 - height)) | ||
.lineTo(windowThickness / 2, -(sillThickness + windowThickness / 2)) | ||
.lineTo(width - windowThickness / 2, -(sillThickness + windowThickness / 2)) | ||
.lineTo(width - windowThickness / 2, height); | ||
@@ -27,0 +26,0 @@ |
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
29474
527