Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import ScatterPlotPlotter from "weaveapp/plot/ScatterPlotPlotter";
import IVisTool, {IVisToolProps, IVisToolState} from "weaveapp/api/ui/IVisTool";
export interface PIXIScatterPlotProps extends IVisToolProps
{
}
export interface PIXIScatterPlotState extends IVisToolState
{
}
export default class PIXIScatterPlot extends AbstractVisTool
{
static WEAVE_INFO = Weave.setClassInfo(PIXIScatterPlot, {
id: "weavejs.tool.PIXIScatterPlot",
label: "Scatter Plot",
interfaces: [
IVisTool,
ILinkableObjectWithNewProperties,
ISelectableAttributes,
]//,
//deprecatedIds: ["weave.visualization.tools::ScatterPlotTool"]
});
element:HTMLDivElement;
renderer:PIXI.WebGLRenderer | PIXI.CanvasRenderer;
graphics:PIXI.Graphics = new PIXI.Graphics();
stage:PIXI.Container = new PIXI.Container();
plotter:ScatterPlotPlotter = Weave.linkableChild(this, ScatterPlotPlotter, this.forceUpdate, true);
import IColumnWrapper = weavejs.api.data.IColumnWrapper;
import LinkableString = weavejs.core.LinkableString;
import LinkableDynamicObject = weavejs.core.LinkableDynamicObject;
import DynamicKeyFilter = weavejs.data.key.DynamicKeyFilter;
import WeaveProperties from "weaveapp/WeaveProperties";
import WebSocketDataSource = weavejs.data.source.WebSocketDataSource;
import IQualifiedKey = weavejs.api.data.IQualifiedKey;
import KeySet = weavejs.data.key.KeySet;
import IVisTool from "weaveapp/api/ui/IVisTool";
import {IVisToolState} from "weaveapp/api/ui/IVisTool";
import {IVisToolProps} from "weaveapp/api/ui/IVisTool";
export default class DataMessageTool extends React.Component implements IVisTool
{
static WEAVE_INFO = Weave.setClassInfo(DataMessageTool, {
id: "weavejs.tool.DataMessageTool",
label: "Data Message Tool",
interfaces: [IVisTool]
});
constructor(props:IVisToolProps)
{
super(props);
this.keySetSource.targetPath = [WeaveProperties.DEFAULT_SELECTION_KEYSET];
}
get selectableAttributes()
{
return new Map();
}
import ColumnTreeNode = weavejs.data.hierarchy.ColumnTreeNode;
import DataSourceUtils = weavejs.data.DataSourceUtils;
import ArrayUtils = weavejs.util.ArrayUtils;
import JS = weavejs.util.JS;
import StandardLib = weavejs.util.StandardLib;
import AbstractDataSource = weavejs.data.source.AbstractDataSource;
import Geometry = ol.geom.Geometry;
import Feature = ol.Feature;
import IColumnReference = weavejs.api.data.IColumnReference;
import Vector = ol.source.Vector;
import GeoJSON = ol.format.GeoJSON;
import GeometryObject = GeoJSON.GeometryObject;
export default class SpatialJoinTransform extends AbstractDataSource implements ISelectableAttributes
{
static WEAVE_INFO = Weave.setClassInfo(SpatialJoinTransform, {
id: "weavejs.data.source.SpatialJoinTransform",
label: "Spatial Join Transform",
interfaces: [IDataSource, ISelectableAttributes]
});
public geometryColumn:DynamicColumn = Weave.linkableChild(this, DynamicColumn);
public xColumn:DynamicColumn = Weave.linkableChild(this, DynamicColumn);
public yColumn:DynamicColumn = Weave.linkableChild(this, DynamicColumn);
public pointProjection:LinkableString = Weave.linkableChild(this, LinkableString);
private _source:Vector;
private _parser:GeoJSON;
public get isLocal():boolean
{
return !DataSourceUtils.hasRemoteColumnDependencies(this);
}
import IAttributeColumn = weavejs.api.data.IAttributeColumn;
import LinkableVariable = weavejs.core.LinkableVariable;
import ILinkableObjectWithNewProperties = weavejs.api.core.ILinkableObjectWithNewProperties;
import IQualifiedKey = weavejs.api.data.IQualifiedKey;
import DataTypes = weavejs.api.data.DataTypes;
import ColumnMetadata = weavejs.api.data.ColumnMetadata;
import ColumnUtils = weavejs.data.ColumnUtils;
import AbstractFilterEditor from "weaveapp/editor/AbstractFilterEditor";
import {FilterEditorProps} from "weaveapp/editor/AbstractFilterEditor";
import {FilterOption} from "weaveapp/editor/AbstractFilterEditor";
import MenuLayoutComponent from "weaveapp/ui/MenuLayoutComponent";
import {LAYOUT_LIST, LAYOUT_COMBO, LAYOUT_VSLIDER, LAYOUT_HSLIDER, LAYOUT_CHECKBOXLIST} from "weaveapp/ui/MenuLayoutComponent";
export default class DiscreteValuesDataFilterEditor extends AbstractFilterEditor
{
static WEAVE_INFO = Weave.setClassInfo(DiscreteValuesDataFilterEditor, {
id: "weavejs.editor.DiscreteValuesDataFilterEditor",
interfaces: [ILinkableObjectWithNewProperties]
});
static get OPTIONS():string[]{
return [LAYOUT_LIST,
LAYOUT_COMBO,
LAYOUT_VSLIDER,
LAYOUT_HSLIDER,
LAYOUT_CHECKBOXLIST];
}
public layoutMode:LinkableString = Weave.linkableChild(this, new LinkableString(LAYOUT_LIST, this.verifyLayoutMode));
public values:LinkableVariable = Weave.linkableChild(this, LinkableVariable);
constructor(props:FilterEditorProps)
import * as weavejs from "weavejs";
import {Weave} from "weavejs";
import LinkableString = weavejs.core.LinkableString;
import LinkableBoolean = weavejs.core.LinkableBoolean;
export class IAltTextConfig
{
static WEAVE_INFO = Weave.setClassInfo(IAltTextConfig, {id: "weavejs.api.ui.IAltTextConfig"});
text = Weave.linkableChild(this, LinkableString);
showAsCaption = Weave.linkableChild(this, new LinkableBoolean(false));
}
export default class IAltText
{
static WEAVE_INFO = Weave.setClassInfo(IAltText, {id: "weavejs.api.ui.IAltText"});
altText = Weave.linkableChild(this, IAltTextConfig);
getAutomaticDescription:()=>string;
}