Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/app/views/canvas/chart_editor.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable max-lines-per-function */
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.

Expand Down Expand Up @@ -650,6 +651,7 @@ export class ChartEditorView
// let boundsGuides = chartClass.getSnappingGuides();
return this.getSnappingGuides().map((info, idx) => {
const theGuide = info.guide;
// TODO fix ration render
if (theGuide.visible) {
if (theGuide.type == "x") {
const guide = theGuide as Prototypes.SnappingGuides.Axis;
Expand All @@ -676,6 +678,7 @@ export class ChartEditorView
);
}
if (theGuide.type == "y") {
debugger;
const guide = theGuide as Prototypes.SnappingGuides.Axis;
return (
<line
Expand Down
1 change: 1 addition & 0 deletions src/app/views/canvas/mark_editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -814,6 +814,7 @@ export class SingleMarkView

// eslint-disable-next-line
public renderBoundsGuides() {
// TODO fix ration render
// eslint-disable-next-line
return this.getSnappingGuides().map((info, idx) => {
const theGuide = info.guide;
Expand Down
Loading