Skip to content

Commit 7419e15

Browse files
committed
demo: fix color
1 parent 1272178 commit 7419e15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

demo/src/Editor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ const moveable = new Moveable(editorElement, {
143143
const guides1 = new Guides(horizontalRulerElement, {
144144
type: "horizontal",
145145
setGuides: refreshGuidelines,
146+
backgroundColor: "#444444",
146147
});
147148
const guides2 = new Guides(verticalRulerElement, {
148149
type: "vertical",
149150
setGuides: refreshGuidelines,
151+
backgroundColor: "#444444",
150152
});
151153

152154
function setLabelCSS(clientX: number, clientY: number) {
@@ -185,6 +187,8 @@ KeyContoller.global.on("keydown", ({ shiftKey }) => {
185187
window.addEventListener("resize", () => {
186188
refreshGuidelines();
187189
moveable.updateRect();
190+
guides1.resize();
191+
guides2.resize();
188192
});
189193

190194
document.body.addEventListener("gesturestart", e => {

0 commit comments

Comments
 (0)