Fix outlined 2d box area update handing (Fixes #29)
This commit is contained in:
parent
ce80666949
commit
693de26b8c
@ -43,7 +43,7 @@ export const createArea = (options: DynmapArea, converter: Function): DynmapPoly
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const updateArea = (area: DynmapPolyline | DynmapPolygon | undefined, options: DynmapArea, converter: Function): DynmapPolyline | DynmapPolygon => {
|
export const updateArea = (area: DynmapPolyline | DynmapPolygon | undefined, options: DynmapArea, converter: Function): DynmapPolyline | DynmapPolygon => {
|
||||||
const outline = (options.style && options.style.fillOpacity && (options.style.fillOpacity <= 0)) as boolean,
|
const outline = !options.style || !options.style.fillOpacity || (options.style.fillOpacity <= 0) as boolean,
|
||||||
points = getPoints(options, converter, outline);
|
points = getPoints(options, converter, outline);
|
||||||
|
|
||||||
if (!area) {
|
if (!area) {
|
||||||
|
Loading…
Reference in New Issue
Block a user