How to use the weavejs.Weave.setClassInfo function in weavejs

To help you get started, we’ve selected a few weavejs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WeaveTeam / WeaveJS / WeaveApp / src / weaveapp / tool / PIXIScatterPlot.tsx View on Github external
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);
github WeaveTeam / WeaveJS / WeaveApp / src / weaveapp / tool / DataMessageTool.tsx View on Github external
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();
	}
github WeaveTeam / WeaveJS / WeaveApp / src / weaveapp / data / source / SpatialJoinTransform.ts View on Github external
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);
	}
github WeaveTeam / WeaveJS / WeaveApp / src / weaveapp / editor / DiscreteValuesDataFilterEditor.tsx View on Github external
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)
github WeaveTeam / WeaveJS / WeaveApp / src / weaveapp / api / ui / IAltText.ts View on Github external
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;
}

weavejs

Application architecture library for building modern web applications

MPL-2.0
Latest version published 8 years ago

Package Health Score

39 / 100
Full package analysis