Skip to content

Commit

Permalink
Version 1.5.1: Refactor and plot labels uneditable
Browse files Browse the repository at this point in the history
  • Loading branch information
derpylz committed Mar 31, 2022
1 parent 2040c2f commit ecc0ff2
Show file tree
Hide file tree
Showing 68 changed files with 611 additions and 557 deletions.
73 changes: 1 addition & 72 deletions build/babyplots.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,86 +95,15 @@
*
*/
import { Scene } from "@babylonjs/core/scene";
import { Mesh } from "@babylonjs/core/Meshes/mesh";
import { ArcRotateCamera } from "@babylonjs/core/Cameras/arcRotateCamera";
import { AdvancedDynamicTexture } from "@babylonjs/gui/2D/advancedDynamicTexture";
import { PickingInfo } from "@babylonjs/core/Collisions/pickingInfo";
export interface AxisData {
showAxes: boolean[];
static: boolean;
axisLabels: string[];
range: number[][];
color: string[];
scale: number[];
tickBreaks: number[];
showTickLines: boolean[][];
tickLineColor: string[][];
showPlanes: boolean[];
planeColor: string[];
plotType: string;
colnames: string[];
rownames: string[];
}
export interface shapeLegendData {
title: string;
spacing: number;
shapes: string[][];
}
export interface LegendData {
showLegend: boolean;
discrete: boolean;
breaks: string[];
colorScale: string;
inverted: boolean;
position: string;
showShape?: boolean;
customColorScale?: string[];
fontSize?: number;
fontColor?: string;
legendTitle?: string;
legendTitleFontSize?: number;
legendTitleFontColor?: string;
}
export declare class CustomLoadingScreen implements ILoadingScreen {
loadingUIText: string;
loadingUIBackgroundColor: string;
constructor(loadingUIText: string);
displayLoadingUI(): void;
hideLoadingUI(): void;
}
export declare abstract class Plot {
protected _scene: Scene;
allLoaded: boolean;
name: string;
shape: string;
mesh: Mesh;
meshes: Mesh[];
legendData: LegendData;
xScale: number;
yScale: number;
zScale: number;
pickable: boolean;
constructor(name: string, shape: string, scene: Scene, legendData: LegendData, xScale?: number, yScale?: number, zScale?: number);
goToFrame(n: number): void;
update(): boolean;
resetAnimation(): void;
setLooping(looping: boolean): void;
}
export declare abstract class CoordinatePlot extends Plot {
protected _coords: number[][];
protected _coordColors: string[];
protected _groups: string[];
protected _groupNames: string[];
protected _size: number;
pickable: boolean;
selection: number[];
dpInfo: string[];
constructor(name: string, shape: string, scene: Scene, coordinates: number[][], colorVar: string[], size: number, legendData: LegendData, xScale?: number, yScale?: number, zScale?: number);
getPick(pickResult: PickingInfo): {
target: TransformNode;
info: string;
};
}
declare global {
interface Array<T> {
min(): number;
Expand All @@ -184,7 +113,7 @@ declare global {
export declare function matrixMax(matrix: number[][]): number;
export declare function matrixMin(matrix: number[][]): number;
export declare function getUniqueVals(source: string[]): string[];
import { TransformNode } from "@babylonjs/core/Meshes/transformNode";
import { Plot } from "./utils/Plot";
import { ILoadingScreen } from "@babylonjs/core/Loading/loadingScreen";
export declare const PLOTTYPES: {
pointCloud: string[];
Expand Down
63 changes: 4 additions & 59 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.

3 changes: 2 additions & 1 deletion build/plotTypes/HeatMap.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Scene } from "@babylonjs/core/scene";
import { CoordinatePlot, LegendData } from "../babyplots";
import { LegendData } from "../utils/LegendData";
import { CoordinatePlot } from "../utils/Plot";
export declare class HeatMap extends CoordinatePlot {
constructor(scene: Scene, coordinates: number[][], colorVar: string[], size: number, legendData: LegendData, xScale?: number, yScale?: number, zScale?: number, name?: string);
private _createHeatMap;
Expand Down
4 changes: 2 additions & 2 deletions build/plotTypes/HeatMap.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/HeatMap.js.map

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

3 changes: 2 additions & 1 deletion build/plotTypes/ImgStack.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Scene } from "@babylonjs/core/scene";
import { Plot, LegendData } from "../babyplots";
import { LegendData } from "../utils/LegendData";
import { Plot } from "../utils/Plot";
export declare class ImgStack extends Plot {
private _backgroundColor;
private _intensityMode;
Expand Down
4 changes: 2 additions & 2 deletions build/plotTypes/ImgStack.js

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

Loading

0 comments on commit ecc0ff2

Please sign in to comment.