Skip to content

Commit

Permalink
fix: Eslint 问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
luozefeng committed Sep 7, 2021
1 parent b265eee commit 2de721c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
* @author lijingchi <lijingchi1@sensetime.com>
*/

import _ from 'lodash';
import { ELineColor, EDependPattern, ELineTypes, ETextType } from '@/constant/tool';
import ActionsHistory from '@/utils/ActionsHistory';
import uuid from '@/utils/uuid';
import { isInRange } from '@/utils/math';
import EKeyCode from '@/constant/keyCode';
import _ from 'lodash';
import { BasicToolOperation, IBasicToolOperationProps } from './basicToolOperation';
import LineToolUtils from '../LineToolUtils';
import { getTextAttribute, textAttributeValidate } from '../attribute';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ class PolygonOperation extends BasicToolOperation {
return;
}
const { textAttribute, attribute } = polygon;
const toolColor = this.getColor(polygon.attribute);
const toolColor = this.getColor(attribute);
const toolData = StyleUtil.getStrokeAndFill(toolColor, polygon.valid);
const transformPointList = AxisUtils.changePointListByZoom(polygon.pointList || [], this.zoom, this.currentPos);

Expand All @@ -1077,7 +1077,7 @@ class PolygonOperation extends BasicToolOperation {
lineType: this.config?.lineType,
});

let showText = `${AttributeUtil.getAttributeShowText(polygon.attribute, this.config.attributeList) ?? ''}`;
let showText = `${AttributeUtil.getAttributeShowText(attribute, this.config.attributeList) ?? ''}`;
if (this.config?.isShowOrder && polygon?.order > 0) {
showText = `${polygon.order} ${showText}`;
}
Expand Down

0 comments on commit 2de721c

Please sign in to comment.