Changed the type of cell style from string to CellStyle.
parent
b51504d7bb
commit
07565aae9b
|
@ -139,7 +139,7 @@ export type CellStateStyle = {
|
|||
strokeWidth?: number;
|
||||
swimlaneFillColor?: ColorValue;
|
||||
swimlaneLine?: boolean;
|
||||
targetJettySize: number | 'auto';
|
||||
targetJettySize?: number | 'auto';
|
||||
targetPerimeterSpacing?: number;
|
||||
targetPort?: string;
|
||||
targetPortConstraint?: DIRECTION;
|
||||
|
|
|
@ -396,7 +396,7 @@ const EdgeMixin: PartialType = {
|
|||
* @param value JavaScript object to be used as the user object.
|
||||
* @param source {@link mxCell} that defines the source of the edge.
|
||||
* @param target {@link mxCell} that defines the target of the edge.
|
||||
* @param style Optional string that defines the cell style.
|
||||
* @param style Optional object that defines the cell style.
|
||||
*/
|
||||
insertEdge(...args) {
|
||||
let parent: Cell;
|
||||
|
|
|
@ -107,7 +107,7 @@ const VertexMixin: PartialType = {
|
|||
* @param y Integer that defines the y coordinate of the vertex.
|
||||
* @param width Integer that defines the width of the vertex.
|
||||
* @param height Integer that defines the height of the vertex.
|
||||
* @param style Optional string that defines the cell style.
|
||||
* @param style Optional object that defines the cell style.
|
||||
* @param relative Optional boolean that specifies if the geometry is relative.
|
||||
* Default is false.
|
||||
* @param geometryClass Optional class reference to a class derived from mxGeometry.
|
||||
|
|
|
@ -180,10 +180,10 @@ export class Stylesheet {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the cell style for the specified stylename or the given
|
||||
* defaultStyle if no style can be found for the given stylename.
|
||||
* Returns the cell style for the specified baseStyleName or the given
|
||||
* defaultStyle if no style can be found for the given baseStyleName.
|
||||
*
|
||||
* @param cellStyle String of the form [(stylename|key=value);] that represents the style. // TODO
|
||||
* @param cellStyle An object that represents the style.
|
||||
* @param defaultStyle Default style to be returned if no style can be found.
|
||||
*/
|
||||
getCellStyle(cellStyle: CellStyle, defaultStyle: CellStateStyle) {
|
||||
|
|
Loading…
Reference in New Issue