Skip to content

Commit

Permalink
Fix labels in line plot json export.
Browse files Browse the repository at this point in the history
  • Loading branch information
derpylz committed Mar 24, 2022
1 parent 2755ea1 commit 2040c2f
Show file tree
Hide file tree
Showing 19 changed files with 70 additions and 44 deletions.
2 changes: 1 addition & 1 deletion build/babyplots.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,5 +271,5 @@ export declare class Plots {
resize(width?: number, height?: number): Plots;
thumbnail(size: number, saveCallback: (data: string) => void): void;
dispose(): void;
addLabels(labelList: [[number, number, number, string]]): void;
addLabels(labelList: [[number, number, number, string, string?, number?]]): void;
}
7 changes: 5 additions & 2 deletions build/babyplots.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/babyplots.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/plotTypes/Line.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/plotTypes/Line.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/plotTypes/PointCloud.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/plotTypes/PointCloud.js.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions build/utils/Label.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ declare class Label {
size: number;
color: string;
fixed: boolean;
constructor(text: string, position: Vector3, scene: Scene, color?: string, size?: number);
plotCreated: boolean;
constructor(text: string, position: Vector3, scene: Scene, color?: string, size?: number, plotCreated?: boolean);
setText(text: string): void;
update(camera: ArcRotateCamera, scene: Scene): void;
fix(): void;
unfix(): void;
dispose(): void;
export(): [number, number, number, string];
export(): [number, number, number, string, string, number];
}
export declare class AnnotationManager {
private _canvas;
Expand Down Expand Up @@ -61,11 +62,11 @@ export declare class AnnotationManager {
redrawInfo(): void;
displayInfo(text: string, target: TransformNode): void;
clearInfo(): void;
addLabel(text: string, position?: number[], color?: string, size?: number): number;
addLabels(labelList: [[number, number, number, string]]): void;
addLabel(text: string, position?: number[], color?: string, size?: number, plotCreated?: boolean): number;
addLabels(labelList: [number, number, number, string, string?, number?][]): void;
private _editLabelText;
private _removeLabel;
exportLabels(): any[];
exportLabels(): [number, number, number, string, string, number][];
fixLabels(): void;
unfixLabels(): void;
}
Expand Down
19 changes: 14 additions & 5 deletions build/utils/Label.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2040c2f

Please sign in to comment.