Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Click annotations handler #1

Draft
wants to merge 5 commits into
base: add-annotations
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dashboarding"
],
"private": true,
"version": "3.0.0",
"version": "2.6.0",
"branch": "main",
"types": "./opensearch_dashboards.d.ts",
"tsdocMetadata": "./build/tsdoc-metadata.json",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/vis_augmenter/README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Contains interfaces and type definitions used for allowing external plugins to augment Visualizations. Registers the relevant saved object types and expression functions.
Contains interfaces, type definitions, helper functions, and services used for allowing external plugins to augment Visualizations. Registers the relevant saved object types and expression functions.
8 changes: 7 additions & 1 deletion src/plugins/vis_augmenter/opensearch_dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,11 @@
"version": "opensearchDashboards",
"server": true,
"ui": true,
"requiredPlugins": ["data", "savedObjects", "opensearchDashboardsUtils", "expressions"]
"requiredPlugins": [
"data",
"savedObjects",
"opensearchDashboardsUtils",
"expressions",
"visTypeVega"
]
}
12 changes: 12 additions & 0 deletions src/plugins/vis_augmenter/public/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright OpenSearch Contributors
* SPDX-License-Identifier: Apache-2.0
*/

export const VIS_LAYER_COLUMN_TYPE = 'vis_layer';
export const EVENT_COLOR = 'red';
export const HOVER_PARAM = 'HOVER';
export const EVENT_MARK_SIZE = 100;
export const EVENT_MARK_SIZE_ENLARGED = 140;
export const EVENT_MARK_SHAPE = 'triangle-up';
export const EVENT_TIMELINE_HEIGHT = 25;
16 changes: 9 additions & 7 deletions src/plugins/vis_augmenter/public/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ export function plugin(initializerContext: PluginInitializerContext) {
export { VisAugmenterSetup, VisAugmenterStart };

export {
createSavedAugmentVisLoader,
createAugmentVisSavedObject,
SavedAugmentVisLoader,
SavedObjectOpenSearchDashboardsServicesWithAugmentVis,
} from './saved_augment_vis';

export { VisLayer, VisLayers, VisLayerTypes } from './types';
VisLayer,
VisLayers,
VisLayerTypes,
PointInTimeEvent,
PointInTimeEventsVisLayer,
isPointInTimeEventsVisLayer,
} from './types';

export * from './expressions';
export * from './utils';
export * from './constants';
export * from './vega';
export * from './saved_augment_vis';
Loading