@3dnest/wall-material-ajk
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@3dnest/wall-material-ajk", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "> TODO: description", | ||
@@ -30,3 +30,3 @@ "author": "zhangsen <zhangsen@3dnest.cn>", | ||
}, | ||
"gitHead": "568a90d5ae974e412f2055bf0d61bc786f76af38" | ||
"gitHead": "589795fbe8d32f42f5efee000292537e0b447e53" | ||
} |
@@ -0,6 +1,8 @@ | ||
import { LINE_WIDTH } from '../constant.js'; | ||
import { getColors } from '../utils.js'; | ||
export const Bealock = (graphics, context) => { | ||
const { width, height} = context; | ||
const { width, height, scale } = context; | ||
const color = getColors(context); | ||
const lineWidth = LINE_WIDTH / scale; | ||
@@ -10,3 +12,8 @@ graphics | ||
.drawRect(0, 0, width, height) | ||
.endFill(); | ||
.endFill() | ||
.lineStyle(lineWidth, color.arcLine) | ||
.moveTo(0, 0) | ||
.lineTo(0, height) | ||
.moveTo(width, 0) | ||
.lineTo(width, height); | ||
@@ -13,0 +20,0 @@ graphics.pivot.x = width / 2; |
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
60535
1837