@3dnest/wall-material-ajk
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "@3dnest/wall-material-ajk", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "> TODO: description", | ||
@@ -30,3 +30,3 @@ "author": "zhangsen <zhangsen@3dnest.cn>", | ||
}, | ||
"gitHead": "77f37f5512bc608355c168e1774d317f01afe721" | ||
"gitHead": "568a90d5ae974e412f2055bf0d61bc786f76af38" | ||
} |
@@ -1,23 +0,16 @@ | ||
import { LINE_WIDTH } from '../constant.js'; | ||
import { getColors } from '../utils.js'; | ||
export const Bealock = (graphics, context) => { | ||
// const { width, height, scale, /* state = 'stateless' */ } = context; | ||
const { width, height} = context; | ||
const color = getColors(context); | ||
// const lineWidth = LINE_WIDTH / scale; | ||
// const color = getColors(context); | ||
graphics | ||
.beginFill(color.fill, .01) | ||
.drawRect(0, 0, width, height) | ||
.endFill(); | ||
// graphics | ||
// .lineStyle(lineWidth, color.fill) | ||
// .beginFill(color.fill) | ||
// .drawRect(0, 0, width, height) | ||
// .endFill() | ||
// .lineStyle(lineWidth, color.line) | ||
// .drawRect(0, 0, width, height / 3) | ||
// .drawRect(0, 2 * height / 3, width, height / 3); | ||
graphics.pivot.x = width / 2; | ||
graphics.pivot.y = height / 2; | ||
// graphics.pivot.x = width / 2; | ||
// graphics.pivot.y = height / 2; | ||
return graphics; | ||
}; |
60315
1830