File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { StageManager } from "../../stage/stageManager/StageManager";
88import { Stage } from "../../stage/Stage" ;
99import { EntityCreateLineEffect } from "../../effect/concrete/EntityCreateLineEffect" ;
1010import { isDesktop } from "../../../utils/platform" ;
11+ import { StageStyleManager } from "../../stageStyle/StageStyleManager" ;
1112
1213/**
1314 * 可能有多个控制器公用同一个代码,
@@ -34,7 +35,7 @@ export function editNode(clickedNode: TextNode) {
3435 {
3536 fontSize : Renderer . FONT_SIZE * Camera . currentScale + "px" ,
3637 backgroundColor : "transparent" ,
37- color : "white" ,
38+ color : StageStyleManager . currentStyle . StageObjectBorderColor . toString ( ) ,
3839 outline : "none" ,
3940 marginTop : - 8 * Camera . currentScale + "px" ,
4041 width : "100vw" ,
Original file line number Diff line number Diff line change @@ -750,6 +750,7 @@ export namespace Renderer {
750750 inputElement . style . position = "fixed" ;
751751 inputElement . style . top = `${ location . y } px` ;
752752 inputElement . style . left = `${ location . x } px` ;
753+ inputElement . id = "input-element" ;
753754 Object . assign ( inputElement . style , style ) ;
754755 document . body . appendChild ( inputElement ) ;
755756 inputElement . focus ( ) ;
You can’t perform that action at this time.
0 commit comments