@octostar/platform-types 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/assets/navigation.js +1 -1
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/enums/ProcessingStatusCode.html +30 -0
- package/dist/docs/enums/SortOrder.html +3 -3
- package/dist/docs/enums/WorkspacePermissionValue.html +3 -3
- package/dist/docs/hierarchy.html +1 -1
- package/dist/docs/index.html +2 -2
- package/dist/docs/interfaces/ActionContext.html +5 -4
- package/dist/docs/interfaces/{QueryObjectFilterClause.html → BinaryObjectFilterClause.html} +6 -5
- package/dist/docs/interfaces/ChartDataResponseResult.html +20 -0
- package/dist/docs/interfaces/Colorful.html +3 -3
- package/dist/docs/interfaces/Concept.html +12 -12
- package/dist/docs/interfaces/Desktop.html +90 -81
- package/dist/docs/interfaces/DesktopActionContext.html +8 -7
- package/dist/docs/interfaces/DesktopSettings.html +5 -5
- package/dist/docs/interfaces/GetAttachmentOptions.html +5 -5
- package/dist/docs/interfaces/IDataTransfer.html +11 -11
- package/dist/docs/interfaces/Inheritance.html +5 -5
- package/dist/docs/interfaces/NativeFilterColumn.html +3 -0
- package/dist/docs/interfaces/NativeFilterScope.html +3 -0
- package/dist/docs/interfaces/NativeFilterTarget.html +3 -0
- package/dist/docs/interfaces/Ontology.html +23 -23
- package/dist/docs/interfaces/ProcessingStatus.html +12 -0
- package/dist/docs/interfaces/Property.html +5 -5
- package/dist/docs/interfaces/RecordData.html +20 -0
- package/dist/docs/interfaces/RecordProvider.html +6 -6
- package/dist/docs/interfaces/RefObject.html +3 -3
- package/dist/docs/interfaces/Relationship.html +20 -20
- package/dist/docs/interfaces/SavedDatasource.html +7 -0
- package/dist/docs/interfaces/SavedSearchAPIInterface.html +6 -0
- package/dist/docs/interfaces/SavedSearchContent.html +7 -0
- package/dist/docs/interfaces/SearchProps.html +7 -5
- package/dist/docs/interfaces/SearchXperienceModalProps.html +9 -9
- package/dist/docs/interfaces/SearchXperienceProps.html +7 -7
- package/dist/docs/interfaces/SemanticBindingProps.html +5 -5
- package/dist/docs/interfaces/StylerContext.html +11 -11
- package/dist/docs/interfaces/TagAttributes.html +7 -7
- package/dist/docs/interfaces/UnaryObjectFilterClause.html +5 -0
- package/dist/docs/interfaces/WorkspaceChangeEmitter.html +5 -5
- package/dist/docs/interfaces/WorkspaceItemConfig.html +6 -6
- package/dist/docs/interfaces/WorkspaceRecordIdentifier.html +5 -5
- package/dist/docs/modules.html +34 -3
- package/dist/docs/types/ActionHandler.html +2 -2
- package/dist/docs/types/AddCommentParams.html +2 -2
- package/dist/docs/types/AddListener.html +2 -2
- package/dist/docs/types/ApiErrorResult.html +2 -2
- package/dist/docs/types/ApiResult.html +2 -2
- package/dist/docs/types/ApiSuccessResult.html +2 -2
- package/dist/docs/types/App.html +2 -2
- package/dist/docs/types/AppRegistry.html +2 -2
- package/dist/docs/types/AppServiceCallOptions.html +2 -2
- package/dist/docs/types/AppServiceCallProps.html +2 -2
- package/dist/docs/types/AsyncFilter.html +2 -2
- package/dist/docs/types/AttachmentResponseType.html +2 -2
- package/dist/docs/types/AttachmentType.html +2 -2
- package/dist/docs/types/Behaviour.html +2 -2
- package/dist/docs/types/BinaryOperator.html +2 -2
- package/dist/docs/types/Callback.html +2 -2
- package/dist/docs/types/CommentWorkspaceItem.html +2 -2
- package/dist/docs/types/Comparator.html +2 -2
- package/dist/docs/types/ConceptFilter.html +3 -3
- package/dist/docs/types/ConceptMap.html +2 -2
- package/dist/docs/types/ConceptName.html +1 -1
- package/dist/docs/types/ConceptWithParents.html +2 -2
- package/dist/docs/types/ConnectedEntity.html +2 -2
- package/dist/docs/types/ContextMenuGroup.html +2 -2
- package/dist/docs/types/ContextMenuLabels.html +2 -2
- package/dist/docs/types/ContextMenuOptions.html +2 -2
- package/dist/docs/types/ContextMenuParams.html +2 -2
- package/dist/docs/types/ContextMenuRequest.html +2 -2
- package/dist/docs/types/CopyOptions.html +2 -2
- package/dist/docs/types/CreateEntityFormProps.html +4 -3
- package/dist/docs/types/CreateLinkChartFn.html +1 -0
- package/dist/docs/types/CreateLinkChartParams.html +1 -0
- package/dist/docs/types/CreateRelationsDialogProps.html +2 -2
- package/dist/docs/types/CustomEventListener.html +2 -2
- package/dist/docs/types/CustomTemplate.html +2 -2
- package/dist/docs/types/CustomTemplateIframeProps.html +2 -2
- package/dist/docs/types/DataContextType.html +2 -2
- package/dist/docs/types/DataMask.html +1 -0
- package/dist/docs/types/DesktopAction.html +2 -2
- package/dist/docs/types/DesktopActionFilter.html +2 -2
- package/dist/docs/types/DesktopActionMenuItem.html +2 -2
- package/dist/docs/types/DesktopActionMenuItemGroup.html +2 -2
- package/dist/docs/types/DesktopActionOptions.html +2 -2
- package/dist/docs/types/DesktopOpenParams.html +2 -2
- package/dist/docs/types/DesktopStylerContext.html +2 -2
- package/dist/docs/types/DraftWorkspaceItem.html +2 -2
- package/dist/docs/types/DragEndParams.html +2 -2
- package/dist/docs/types/DragStartParams.html +2 -2
- package/dist/docs/types/DropZoneRequestFn.html +1 -0
- package/dist/docs/types/DropZoneRequestResult.html +1 -0
- package/dist/docs/types/EConnection.html +2 -2
- package/dist/docs/types/EdgeSpec.html +2 -2
- package/dist/docs/types/EmitEventTransformDefinition.html +2 -2
- package/dist/docs/types/Entity.html +2 -2
- package/dist/docs/types/EntityEdge.html +2 -2
- package/dist/docs/types/EntityOTM.html +2 -2
- package/dist/docs/types/EntityPasteContext.html +2 -2
- package/dist/docs/types/EvalContext.html +1 -1
- package/dist/docs/types/EventContextType.html +2 -2
- package/dist/docs/types/EventEmitterType.html +2 -2
- package/dist/docs/types/EventName.html +2 -2
- package/dist/docs/types/EventProducer.html +2 -2
- package/dist/docs/types/EventPublisher.html +2 -2
- package/dist/docs/types/EventSubscriber.html +2 -2
- package/dist/docs/types/EventUnsubscriber.html +2 -2
- package/dist/docs/types/ExportOptions.html +2 -2
- package/dist/docs/types/ExtractEntitiesOptions.html +2 -2
- package/dist/docs/types/ExtrasApi.html +1 -0
- package/dist/docs/types/FileCode.html +2 -2
- package/dist/docs/types/FileTreeOptions.html +2 -2
- package/dist/docs/types/Filter.html +1 -0
- package/dist/docs/types/FilterDefinition.html +2 -2
- package/dist/docs/types/FilterDefinitions.html +2 -2
- package/dist/docs/types/FilterName.html +2 -2
- package/dist/docs/types/FilterReference.html +2 -2
- package/dist/docs/types/FilterState.html +1 -0
- package/dist/docs/types/FocusListItem.html +2 -2
- package/dist/docs/types/FolderPasteOptions.html +2 -2
- package/dist/docs/types/GraphDataSpec.html +1 -1
- package/dist/docs/types/GraphSpec.html +2 -2
- package/dist/docs/types/HttpTransformDefinition.html +2 -2
- package/dist/docs/types/Icon.html +2 -2
- package/dist/docs/types/IconProps.html +2 -2
- package/dist/docs/types/IframeTransformDefinition.html +2 -2
- package/dist/docs/types/ImageInfo.html +2 -2
- package/dist/docs/types/ImportZipOptions.html +2 -2
- package/dist/docs/types/InlineCode.html +2 -2
- package/dist/docs/types/JavascriptFileStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptFileTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptFilterDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineStylerDefinition.html +2 -2
- package/dist/docs/types/JavascriptInlineTransformDefinition.html +2 -2
- package/dist/docs/types/JavascriptType.html +2 -2
- package/dist/docs/types/JobManifest.html +3 -3
- package/dist/docs/types/KnownCounts.html +2 -2
- package/dist/docs/types/ManifestSecrets.html +1 -0
- package/dist/docs/types/ModalTemplateProps.html +2 -2
- package/dist/docs/types/NamedEntityGroup.html +2 -2
- package/dist/docs/types/NunjucksFileTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksInlineTransformDefinition.html +2 -2
- package/dist/docs/types/NunjucksType.html +2 -2
- package/dist/docs/types/OS_CONFIRM_MODAL_RESPONSE.html +2 -2
- package/dist/docs/types/OntologyTags.html +2 -2
- package/dist/docs/types/OsAuditFields.html +2 -2
- package/dist/docs/types/OsConfirmProps.html +2 -2
- package/dist/docs/types/OsNotification.html +2 -2
- package/dist/docs/types/OsProgress.html +2 -2
- package/dist/docs/types/OsTag.html +2 -2
- package/dist/docs/types/OsWorkspaceEntity.html +2 -2
- package/dist/docs/types/OsWorkspacePickerProps.html +2 -2
- package/dist/docs/types/PasteContextOptions.html +2 -2
- package/dist/docs/types/Permission.html +2 -2
- package/dist/docs/types/Point.html +2 -2
- package/dist/docs/types/ProvidedFilterDefinition.html +2 -2
- package/dist/docs/types/ProvidedTransformDefinition.html +2 -2
- package/dist/docs/types/PythonFileStylerDefinition.html +2 -2
- package/dist/docs/types/PythonFileTransformDefinition.html +2 -2
- package/dist/docs/types/PythonFilterDefinition.html +2 -2
- package/dist/docs/types/PythonInlineStylerDefinition.html +2 -2
- package/dist/docs/types/PythonInlineTransformDefinition.html +2 -2
- package/dist/docs/types/PythonType.html +2 -2
- package/dist/docs/types/Query.html +2 -2
- package/dist/docs/types/QueryBatchResult.html +2 -2
- package/dist/docs/types/QueryErrorResult.html +2 -2
- package/dist/docs/types/QueryExecutor.html +2 -2
- package/dist/docs/types/QueryObjectFilterClause.html +3 -0
- package/dist/docs/types/QueryResponse.html +2 -2
- package/dist/docs/types/QueryResult.html +2 -2
- package/dist/docs/types/QuerySuccessResult.html +2 -2
- package/dist/docs/types/ReactCssProperties.html +2 -2
- package/dist/docs/types/ReactNode.html +2 -2
- package/dist/docs/types/ReactRef.html +2 -2
- package/dist/docs/types/ReasonedBoolean.html +2 -2
- package/dist/docs/types/RecordFetchOptions.html +1 -0
- package/dist/docs/types/RefCallback.html +2 -2
- package/dist/docs/types/RelationshipCountResult.html +2 -2
- package/dist/docs/types/RemoteAppApi.html +1 -0
- package/dist/docs/types/SaveAsModalProps.html +2 -2
- package/dist/docs/types/SaveFileOptions.html +2 -2
- package/dist/docs/types/SaveOptions.html +2 -2
- package/dist/docs/types/SavedTemplate.html +2 -2
- package/dist/docs/types/SearchFilter.html +2 -2
- package/dist/docs/types/SemanticBinding.html +2 -2
- package/dist/docs/types/SemanticBindingType.html +2 -2
- package/dist/docs/types/SemanticBindings.html +2 -2
- package/dist/docs/types/SemanticallyBoundApp.html +2 -2
- package/dist/docs/types/SemanticallyBoundFilterDefinition.html +2 -2
- package/dist/docs/types/SendQueryOptions.html +2 -2
- package/dist/docs/types/ServiceDefinition.html +2 -2
- package/dist/docs/types/ServiceDefinitions.html +2 -2
- package/dist/docs/types/ServiceRole.html +2 -2
- package/dist/docs/types/SetTransformResultFn.html +1 -0
- package/dist/docs/types/ShowOntology.html +2 -2
- package/dist/docs/types/ShowTabProps.html +2 -2
- package/dist/docs/types/Styler.html +19 -10
- package/dist/docs/types/StylerConfig.html +2 -2
- package/dist/docs/types/StylerDefinition.html +2 -2
- package/dist/docs/types/StylerDefinitions.html +2 -2
- package/dist/docs/types/StylerOption.html +2 -2
- package/dist/docs/types/StylerProducer.html +2 -2
- package/dist/docs/types/SubscribeDragStartFn.html +1 -0
- package/dist/docs/types/SubscribeToContextFn.html +1 -0
- package/dist/docs/types/Tag.html +2 -2
- package/dist/docs/types/TagInfo.html +2 -2
- package/dist/docs/types/TagWithRelationship.html +2 -2
- package/dist/docs/types/TaskCleanupReason.html +2 -2
- package/dist/docs/types/TemplateMetadata.html +3 -2
- package/dist/docs/types/TemplateType.html +2 -2
- package/dist/docs/types/TemplateVariant.html +2 -2
- package/dist/docs/types/TransformAction.html +2 -2
- package/dist/docs/types/TransformActionContext.html +2 -2
- package/dist/docs/types/TransformDefinition.html +2 -2
- package/dist/docs/types/TransformDefinitions.html +2 -2
- package/dist/docs/types/Unsubscribe.html +2 -2
- package/dist/docs/types/UnsubscribeFn.html +1 -0
- package/dist/docs/types/UnsubscribeFromContextFn.html +1 -0
- package/dist/docs/types/UnsubscribeFromDragStartFn.html +1 -0
- package/dist/docs/types/UserProfile.html +2 -2
- package/dist/docs/types/Watcher.html +2 -2
- package/dist/docs/types/Whoami.html +2 -2
- package/dist/docs/types/WithProgressBarOptions.html +2 -2
- package/dist/docs/types/Workspace.html +2 -2
- package/dist/docs/types/WorkspaceFlags.html +2 -2
- package/dist/docs/types/WorkspaceIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItem.html +4 -2
- package/dist/docs/types/WorkspaceItemBase.html +2 -2
- package/dist/docs/types/WorkspaceItemIdentifier.html +2 -2
- package/dist/docs/types/WorkspaceItemModel.html +2 -2
- package/dist/docs/types/WorkspaceItemTitleProps.html +3 -2
- package/dist/docs/types/WorkspaceItems.html +2 -2
- package/dist/docs/types/WorkspacePermission.html +2 -2
- package/dist/docs/types/WorkspaceRecord.html +2 -2
- package/dist/docs/types/WorkspaceRecordInfo.html +2 -2
- package/dist/docs/types/WorkspaceRecordWithRelationships.html +2 -2
- package/dist/docs/types/WorkspaceRecords.html +2 -2
- package/dist/docs/types/WorkspaceRelationship.html +2 -2
- package/dist/docs/types/WorkspaceSettings.html +2 -2
- package/dist/docs/types/trigger.html +2 -2
- package/dist/docs/types/uuid.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_CANCEL.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_NO.html +2 -2
- package/dist/docs/variables/OS_CONFIRM_MODAL_YES.html +2 -2
- package/dist/docs/variables/SAVED_SEARCH_MESSAGE_TYPES.html +1 -0
- package/dist/docs/variables/SAVED_SEARCH_PREFIX.html +1 -0
- package/dist/platform-types.d.ts +355 -23
- package/lib/action.d.ts +2 -1
- package/lib/action.d.ts.map +1 -1
- package/lib/desktop.d.ts +37 -6
- package/lib/desktop.d.ts.map +1 -1
- package/lib/extras.d.ts +15 -0
- package/lib/extras.d.ts.map +1 -0
- package/lib/extras.js +2 -0
- package/lib/extras.js.map +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/jobManifestTypes.d.ts +8 -0
- package/lib/jobManifestTypes.d.ts.map +1 -1
- package/lib/model.d.ts +86 -2
- package/lib/model.d.ts.map +1 -1
- package/lib/model.js +35 -0
- package/lib/model.js.map +1 -1
- package/lib/remoteApp.d.ts +21 -0
- package/lib/remoteApp.d.ts.map +1 -0
- package/lib/remoteApp.js +2 -0
- package/lib/remoteApp.js.map +1 -0
- package/lib/savedSearch.d.ts +128 -0
- package/lib/savedSearch.d.ts.map +1 -0
- package/lib/savedSearch.js +16 -0
- package/lib/savedSearch.js.map +1 -0
- package/lib/search.d.ts +5 -1
- package/lib/search.d.ts.map +1 -1
- package/lib/styling.d.ts +23 -10
- package/lib/styling.d.ts.map +1 -1
- package/lib/templates.d.ts +2 -0
- package/lib/templates.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
var GenericDataType;
|
|
2
|
+
(function (GenericDataType) {
|
|
3
|
+
GenericDataType[GenericDataType["NUMERIC"] = 0] = "NUMERIC";
|
|
4
|
+
GenericDataType[GenericDataType["STRING"] = 1] = "STRING";
|
|
5
|
+
GenericDataType[GenericDataType["TEMPORAL"] = 2] = "TEMPORAL";
|
|
6
|
+
GenericDataType[GenericDataType["BOOLEAN"] = 3] = "BOOLEAN";
|
|
7
|
+
})(GenericDataType || (GenericDataType = {}));
|
|
8
|
+
export const SAVED_SEARCH_PREFIX = 'octostar:savedSearch:';
|
|
9
|
+
export const SAVED_SEARCH_MESSAGE_TYPES = Object.freeze({
|
|
10
|
+
getRecordsCount: `${SAVED_SEARCH_PREFIX}getRecordsCount`,
|
|
11
|
+
getRecordsCountQuery: `${SAVED_SEARCH_PREFIX}getRecordsCountQuery`,
|
|
12
|
+
getRecords: `${SAVED_SEARCH_PREFIX}getRecords`,
|
|
13
|
+
getRecordsQuery: `${SAVED_SEARCH_PREFIX}getRecordsQuery`,
|
|
14
|
+
getSavedSearchPasteContext: `${SAVED_SEARCH_PREFIX}getSavedSearchPasteContext`,
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=savedSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"savedSearch.js","sourceRoot":"","sources":["../src/savedSearch.ts"],"names":[],"mappings":"AAgFA,IAAK,eAKJ;AALD,WAAK,eAAe;IAClB,2DAAW,CAAA;IACX,yDAAU,CAAA;IACV,6DAAY,CAAA;IACZ,2DAAW,CAAA;AACb,CAAC,EALI,eAAe,KAAf,eAAe,QAKnB;AA2CD,MAAM,CAAC,MAAM,mBAAmB,GAAG,uBAAuB,CAAC;AAC3D,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC,MAAM,CAAC;IACtD,eAAe,EAAE,GAAG,mBAAmB,iBAAiB;IACxD,oBAAoB,EAAE,GAAG,mBAAmB,sBAAsB;IAClE,UAAU,EAAE,GAAG,mBAAmB,YAAY;IAC9C,eAAe,EAAE,GAAG,mBAAmB,iBAAiB;IACxD,0BAA0B,EAAE,GAAG,mBAAmB,4BAA4B;CAC/E,CAAC,CAAC"}
|
package/lib/search.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/lib/api/types';
|
|
2
|
-
import { Entity } from './model';
|
|
2
|
+
import { Entity, WorkspaceItem } from './model';
|
|
3
3
|
/**
|
|
4
4
|
* @beta
|
|
5
5
|
* Interface representing the properties for the SearchXperience component.
|
|
@@ -60,5 +60,9 @@ export interface SearchProps {
|
|
|
60
60
|
* the filters to apply to the search.
|
|
61
61
|
*/
|
|
62
62
|
filters?: SearchFilter[];
|
|
63
|
+
/**
|
|
64
|
+
* the default image to use for the search.
|
|
65
|
+
*/
|
|
66
|
+
image?: WorkspaceItem;
|
|
63
67
|
}
|
|
64
68
|
//# sourceMappingURL=search.d.ts.map
|
package/lib/search.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../src/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sCAAsC,CAAC;AAC9E,OAAO,EAAE,MAAM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E,YAAY,EAAE,CAAC;IACzB;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB"}
|
package/lib/styling.d.ts
CHANGED
|
@@ -7,22 +7,35 @@ type TODO = any;
|
|
|
7
7
|
/**
|
|
8
8
|
* @beta
|
|
9
9
|
* Type representing a styler with methods for getting G6 node and edge styles.
|
|
10
|
+
* See ColorByType.ts for an example
|
|
10
11
|
*/
|
|
11
12
|
export type Styler = {
|
|
12
13
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
14
|
+
* Use this function to modify style of a node from outside the graph.
|
|
15
|
+
* You can overwrite the style, but DO NOT merge currentStyle or originStyle when returning new styling (or rather styling patch).
|
|
16
|
+
* This can lead do recursive clone error later on.
|
|
17
|
+
* Merging with actual style will be handled automatically!
|
|
18
|
+
* Use them just as a reference:
|
|
19
|
+
* - @param originStyle for eg original node radius (if its a circural node), so you want to eg multiply it by amount of connections.
|
|
20
|
+
* - @param currentStyle for eg current node radius (if its a circural node), so you want to eg apply a holor like a heatmap by amount of connections.
|
|
21
|
+
* @param entity - The entity for which to get the node style.
|
|
22
|
+
* @param originStyle - The original style (the one passed to node during it's initialization). See '@antv/graphin' -> NodeStyle
|
|
23
|
+
* @param currentStyle - The current style. See '@antv/graphin' -> NodeStyle
|
|
24
|
+
* @returns A promise that resolves to the style patch. See '@antv/graphin' -> NodeStyle
|
|
17
25
|
*/
|
|
18
|
-
getG6NodeStyle?: (
|
|
26
|
+
getG6NodeStyle?: (entity: Entity, originStyle: TODO, currentStyle: TODO) => Promise<TODO>;
|
|
19
27
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
28
|
+
* Use this function to modify style of a edge from outside the graph.
|
|
29
|
+
* You can overwrite the style, but DO NOT merge currentStyle or originStyle when returning new styling (or rather styling patch).
|
|
30
|
+
* This can lead do recursive clone error later on.
|
|
31
|
+
* Merging with actual style will be handled automatically!
|
|
32
|
+
* Use them just as a reference, eg edge width to multiply.
|
|
33
|
+
* @param edge - The edge specification for which to get the edge style.
|
|
34
|
+
* @param originStyle - The original style (the one passed to edge during it's initialization). See '@antv/graphin' -> EdgeStyle
|
|
35
|
+
* @param currentStyle - The current style. See '@antv/graphin' -> EdgeStyle
|
|
36
|
+
* @returns A promise that resolves to the style patch. See '@antv/graphin' -> EdgeStyle
|
|
24
37
|
*/
|
|
25
|
-
getG6EdgeStyle?: (
|
|
38
|
+
getG6EdgeStyle?: (edge: EdgeSpec, originStyle: TODO, currentStyle: TODO) => Promise<TODO>;
|
|
26
39
|
};
|
|
27
40
|
/**
|
|
28
41
|
* @beta
|
package/lib/styling.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styling.d.ts","sourceRoot":"","sources":["../src/styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"styling.d.ts","sourceRoot":"","sources":["../src/styling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,KAAK,IAAI,GAAG,GAAG,CAAC;AAEhB;;;;GAIG;AACH,MAAM,MAAM,MAAM,GAAG;IACnB;;;;;;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IAAI,EAAE,cAAc,CAAC;IACrB,oDAAoD;IACpD,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B,CAAC"}
|
package/lib/templates.d.ts
CHANGED
|
@@ -22,6 +22,8 @@ export type TemplateMetadata = {
|
|
|
22
22
|
description: string;
|
|
23
23
|
/** The concepts associated with the template. */
|
|
24
24
|
concepts: string[];
|
|
25
|
+
/** The priority of the template. Default is 100, lower is higher priority. */
|
|
26
|
+
priority?: number;
|
|
25
27
|
/** The type of the template. */
|
|
26
28
|
type: TemplateType;
|
|
27
29
|
/** The layout of the template. */
|
package/lib/templates.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,YAAY,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC;AAErC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,gCAAgC;IAChC,IAAI,EAAE,YAAY,CAAC;IACnB,kCAAkC;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,OAAO,EAAE,eAAe,CAAC;IACzB,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oDAAoD;IACpD,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,gDAAgD;IAChD,KAAK,CAAC,EA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IAC7C,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octostar/platform-types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Types for the API exposed by Octostar platform to third parties",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"octostar",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "63aeec6895a1470e0066fa0266a3ca76f060fb5c"
|
|
58
58
|
}
|