Skip to content

Commit

Permalink
style: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
F-star committed Mar 3, 2024
1 parent d8ce1cd commit 0ca8d07
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/core/src/path_editor/path_editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ export class PathEditor {
// 1. draw anchor
// 是否要高亮。
let anchorSize = 6;
let fillColorStr = '#fff';
let strokeColorStr = handleStroke;
let anchorFill = '#fff';
let anchorStroke = handleStroke;
if (this.hasSelectedIndex('anchor', i, j)) {
anchorSize = 8;
fillColorStr = handleStroke;
strokeColorStr = '#fff';
anchorFill = handleStroke;
anchorStroke = '#fff';
}
const anchorControlHandle = new ControlHandle({
cx: anchor.x,
Expand All @@ -243,13 +243,13 @@ export class PathEditor {
fill: [
{
type: TextureType.Solid,
attrs: parseHexToRGBA(fillColorStr)!,
attrs: parseHexToRGBA(anchorFill)!,
},
],
stroke: [
{
type: TextureType.Solid,
attrs: parseHexToRGBA(strokeColorStr)!,
attrs: parseHexToRGBA(anchorStroke)!,
},
],
strokeWidth: 1,
Expand Down

0 comments on commit 0ca8d07

Please sign in to comment.