@joint/core 4.2.0 → 4.2.2
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/geometry.js +1 -1
- package/dist/geometry.min.js +1 -1
- package/dist/joint.d.ts +94 -136
- package/dist/joint.js +18 -3
- package/dist/joint.min.js +2 -2
- package/dist/joint.nowrap.js +18 -3
- package/dist/joint.nowrap.min.js +2 -2
- package/dist/vectorizer.js +1 -1
- package/dist/vectorizer.min.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/src/dia/Graph.mjs +17 -1
- package/types/joint.d.ts +93 -135
package/dist/geometry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.
|
|
1
|
+
/*! JointJS v4.2.2 (2025-12-16) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
4
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
package/dist/geometry.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.
|
|
1
|
+
/*! JointJS v4.2.2 (2025-12-16) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
4
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
package/dist/joint.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.
|
|
1
|
+
/*! JointJS v4.2.2 (2025-12-16) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
4
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -926,6 +926,7 @@ export declare namespace dia {
|
|
|
926
926
|
constructor(attributes?: Graph.Attributes, opt?: {
|
|
927
927
|
cellNamespace?: any,
|
|
928
928
|
layerNamespace?: any,
|
|
929
|
+
ignoreLayers?: boolean,
|
|
929
930
|
/** @deprecated use cellNamespace instead */
|
|
930
931
|
cellModel?: typeof Cell
|
|
931
932
|
});
|
|
@@ -1101,7 +1102,7 @@ export declare namespace dia {
|
|
|
1101
1102
|
}
|
|
1102
1103
|
|
|
1103
1104
|
export interface Selectors {
|
|
1104
|
-
[selector: string]: attributes.SVGAttributes | undefined;
|
|
1105
|
+
[selector: string]: Nullable<attributes.SVGAttributes> | undefined;
|
|
1105
1106
|
}
|
|
1106
1107
|
|
|
1107
1108
|
export interface Attributes extends GenericAttributes<Selectors> {
|
|
@@ -1154,7 +1155,7 @@ export declare namespace dia {
|
|
|
1154
1155
|
}
|
|
1155
1156
|
|
|
1156
1157
|
export interface ExportOptions {
|
|
1157
|
-
|
|
1158
|
+
ignoreDefaults?: boolean | string[];
|
|
1158
1159
|
ignoreEmptyAttributes?: boolean;
|
|
1159
1160
|
}
|
|
1160
1161
|
|
|
@@ -1526,18 +1527,7 @@ export declare namespace dia {
|
|
|
1526
1527
|
connector?: connectors.Connector | connectors.ConnectorJSON;
|
|
1527
1528
|
}
|
|
1528
1529
|
|
|
1529
|
-
export interface
|
|
1530
|
-
'.connection'?: attributes.SVGPathAttributes;
|
|
1531
|
-
'.connection-wrap'?: attributes.SVGPathAttributes;
|
|
1532
|
-
'.marker-source'?: attributes.SVGPathAttributes;
|
|
1533
|
-
'.marker-target'?: attributes.SVGPathAttributes;
|
|
1534
|
-
'.labels'?: attributes.SVGAttributes;
|
|
1535
|
-
'.marker-vertices'?: attributes.SVGAttributes;
|
|
1536
|
-
'.marker-arrowheads'?: attributes.SVGAttributes;
|
|
1537
|
-
'.link-tools'?: attributes.SVGAttributes;
|
|
1538
|
-
}
|
|
1539
|
-
|
|
1540
|
-
export interface Attributes extends Cell.GenericAttributes<LinkSelectors> {
|
|
1530
|
+
export interface Attributes extends Cell.GenericAttributes<Cell.Selectors> {
|
|
1541
1531
|
}
|
|
1542
1532
|
|
|
1543
1533
|
export interface LabelPosition {
|
|
@@ -4312,9 +4302,17 @@ export declare namespace layout {
|
|
|
4312
4302
|
angle: number;
|
|
4313
4303
|
};
|
|
4314
4304
|
|
|
4315
|
-
export
|
|
4305
|
+
export interface LayoutOptions {
|
|
4306
|
+
[key: string]: any;
|
|
4307
|
+
}
|
|
4308
|
+
|
|
4309
|
+
export type LayoutFunction<T = LayoutOptions> = (
|
|
4310
|
+
portsArgs: Array<T>,
|
|
4311
|
+
elBBox: g.Rect,
|
|
4312
|
+
portGroupArgs: LayoutOptions
|
|
4313
|
+
) => Array<Partial<Transformation>>;
|
|
4316
4314
|
|
|
4317
|
-
export interface Options {
|
|
4315
|
+
export interface Options extends LayoutOptions {
|
|
4318
4316
|
x?: number | string;
|
|
4319
4317
|
y?: number | string;
|
|
4320
4318
|
dx?: number;
|
|
@@ -4325,19 +4323,20 @@ export declare namespace layout {
|
|
|
4325
4323
|
startAngle?: number;
|
|
4326
4324
|
step?: number;
|
|
4327
4325
|
compensateRotation?: boolean;
|
|
4328
|
-
[key: string]: any;
|
|
4329
4326
|
}
|
|
4330
4327
|
|
|
4331
|
-
|
|
4328
|
+
/** @todo define Options types per-layout */
|
|
4329
|
+
var absolute: LayoutFunction<Options>;
|
|
4330
|
+
var line: LayoutFunction<Options>;
|
|
4331
|
+
var left: LayoutFunction<Options>;
|
|
4332
|
+
var right: LayoutFunction<Options>;
|
|
4333
|
+
var top: LayoutFunction<Options>;
|
|
4334
|
+
var bottom: LayoutFunction<Options>;
|
|
4335
|
+
var ellipseSpread: LayoutFunction<Options>;
|
|
4336
|
+
var ellipse: LayoutFunction<Options>;
|
|
4337
|
+
|
|
4332
4338
|
/** @deprecated */
|
|
4333
|
-
var fn: LayoutFunction
|
|
4334
|
-
var line: LayoutFunction;
|
|
4335
|
-
var left: LayoutFunction;
|
|
4336
|
-
var right: LayoutFunction;
|
|
4337
|
-
var top: LayoutFunction;
|
|
4338
|
-
var bottom: LayoutFunction;
|
|
4339
|
-
var ellipseSpread: LayoutFunction;
|
|
4340
|
-
var ellipse: LayoutFunction;
|
|
4339
|
+
var fn: LayoutFunction<Options>;
|
|
4341
4340
|
}
|
|
4342
4341
|
|
|
4343
4342
|
export namespace PortLabel {
|
|
@@ -5247,6 +5246,11 @@ export declare namespace mvc {
|
|
|
5247
5246
|
|
|
5248
5247
|
declare type NativeEvent = Event;
|
|
5249
5248
|
|
|
5249
|
+
/**
|
|
5250
|
+
* A type that makes all properties of T nullable.
|
|
5251
|
+
*/
|
|
5252
|
+
declare type Nullable<T> = { [K in keyof T]: T[K] | null };
|
|
5253
|
+
|
|
5250
5254
|
export declare namespace routers {
|
|
5251
5255
|
|
|
5252
5256
|
export interface NormalRouterArguments {
|
|
@@ -5354,43 +5358,43 @@ export declare function setTheme(theme: string): void;
|
|
|
5354
5358
|
export declare namespace shapes {
|
|
5355
5359
|
|
|
5356
5360
|
export interface SVGTextSelector extends dia.Cell.Selectors {
|
|
5357
|
-
text?: attributes.SVGTextAttributes
|
|
5361
|
+
text?: Nullable<attributes.SVGTextAttributes>;
|
|
5358
5362
|
}
|
|
5359
5363
|
|
|
5360
5364
|
export interface SVGRectSelector extends dia.Cell.Selectors {
|
|
5361
|
-
rect?: attributes.SVGRectAttributes
|
|
5365
|
+
rect?: Nullable<attributes.SVGRectAttributes>;
|
|
5362
5366
|
}
|
|
5363
5367
|
|
|
5364
5368
|
export interface SVGCircleSelector extends dia.Cell.Selectors {
|
|
5365
|
-
circle?: attributes.SVGCircleAttributes
|
|
5369
|
+
circle?: Nullable<attributes.SVGCircleAttributes>;
|
|
5366
5370
|
}
|
|
5367
5371
|
|
|
5368
5372
|
export interface SVGEllipseSelector extends dia.Cell.Selectors {
|
|
5369
|
-
ellipse?: attributes.SVGEllipseAttributes
|
|
5373
|
+
ellipse?: Nullable<attributes.SVGEllipseAttributes>;
|
|
5370
5374
|
}
|
|
5371
5375
|
|
|
5372
5376
|
export interface SVGPolygonSelector extends dia.Cell.Selectors {
|
|
5373
|
-
polygon?: attributes.SVGPolygonAttributes
|
|
5377
|
+
polygon?: Nullable<attributes.SVGPolygonAttributes>;
|
|
5374
5378
|
}
|
|
5375
5379
|
|
|
5376
5380
|
export interface SVGPolylineSelector extends dia.Cell.Selectors {
|
|
5377
|
-
polyline?: attributes.SVGPolylineAttributes
|
|
5381
|
+
polyline?: Nullable<attributes.SVGPolylineAttributes>;
|
|
5378
5382
|
}
|
|
5379
5383
|
|
|
5380
5384
|
export interface SVGImageSelector extends dia.Cell.Selectors {
|
|
5381
|
-
image?: attributes.SVGImageAttributes
|
|
5385
|
+
image?: Nullable<attributes.SVGImageAttributes>;
|
|
5382
5386
|
}
|
|
5383
5387
|
|
|
5384
5388
|
export interface SVGPathSelector extends dia.Cell.Selectors {
|
|
5385
|
-
path?: attributes.SVGPathAttributes
|
|
5389
|
+
path?: Nullable<attributes.SVGPathAttributes>;
|
|
5386
5390
|
}
|
|
5387
5391
|
|
|
5388
5392
|
export namespace standard {
|
|
5389
5393
|
|
|
5390
5394
|
export interface RectangleSelectors extends dia.Cell.Selectors {
|
|
5391
|
-
root?: attributes.SVGAttributes
|
|
5392
|
-
body?: attributes.SVGRectAttributes
|
|
5393
|
-
label?: attributes.SVGTextAttributes
|
|
5395
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5396
|
+
body?: Nullable<attributes.SVGRectAttributes>;
|
|
5397
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5394
5398
|
}
|
|
5395
5399
|
|
|
5396
5400
|
export type RectangleAttributes = dia.Element.GenericAttributes<RectangleSelectors>;
|
|
@@ -5399,9 +5403,9 @@ export declare namespace shapes {
|
|
|
5399
5403
|
}
|
|
5400
5404
|
|
|
5401
5405
|
export interface CircleSelectors extends dia.Cell.Selectors {
|
|
5402
|
-
root?: attributes.SVGAttributes
|
|
5403
|
-
body?: attributes.SVGCircleAttributes
|
|
5404
|
-
label?: attributes.SVGTextAttributes
|
|
5406
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5407
|
+
body?: Nullable<attributes.SVGCircleAttributes>;
|
|
5408
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5405
5409
|
}
|
|
5406
5410
|
|
|
5407
5411
|
export type CircleAttributes = dia.Element.GenericAttributes<CircleSelectors>;
|
|
@@ -5410,9 +5414,9 @@ export declare namespace shapes {
|
|
|
5410
5414
|
}
|
|
5411
5415
|
|
|
5412
5416
|
export interface EllipseSelectors extends dia.Cell.Selectors {
|
|
5413
|
-
root?: attributes.SVGAttributes
|
|
5414
|
-
body?: attributes.SVGEllipseAttributes
|
|
5415
|
-
label?: attributes.SVGTextAttributes
|
|
5417
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5418
|
+
body?: Nullable<attributes.SVGEllipseAttributes>;
|
|
5419
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5416
5420
|
}
|
|
5417
5421
|
|
|
5418
5422
|
export type EllipseAttributes = dia.Element.GenericAttributes<EllipseSelectors>;
|
|
@@ -5421,9 +5425,9 @@ export declare namespace shapes {
|
|
|
5421
5425
|
}
|
|
5422
5426
|
|
|
5423
5427
|
export interface PathSelectors extends dia.Cell.Selectors {
|
|
5424
|
-
root?: attributes.SVGAttributes
|
|
5425
|
-
body?: attributes.SVGPathAttributes
|
|
5426
|
-
label?: attributes.SVGTextAttributes
|
|
5428
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5429
|
+
body?: Nullable<attributes.SVGPathAttributes>;
|
|
5430
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5427
5431
|
}
|
|
5428
5432
|
|
|
5429
5433
|
export type PathAttributes = dia.Element.GenericAttributes<PathSelectors>;
|
|
@@ -5432,9 +5436,9 @@ export declare namespace shapes {
|
|
|
5432
5436
|
}
|
|
5433
5437
|
|
|
5434
5438
|
export interface PolygonSelectors extends dia.Cell.Selectors {
|
|
5435
|
-
root?: attributes.SVGAttributes
|
|
5436
|
-
body?: attributes.SVGPolygonAttributes
|
|
5437
|
-
label?: attributes.SVGTextAttributes
|
|
5439
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5440
|
+
body?: Nullable<attributes.SVGPolygonAttributes>;
|
|
5441
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5438
5442
|
}
|
|
5439
5443
|
|
|
5440
5444
|
export type PolygonAttributes = dia.Element.GenericAttributes<PolygonSelectors>;
|
|
@@ -5443,9 +5447,9 @@ export declare namespace shapes {
|
|
|
5443
5447
|
}
|
|
5444
5448
|
|
|
5445
5449
|
export interface PolylineSelectors extends dia.Cell.Selectors {
|
|
5446
|
-
root?: attributes.SVGAttributes
|
|
5447
|
-
body?: attributes.SVGPolylineAttributes
|
|
5448
|
-
label?: attributes.SVGTextAttributes
|
|
5450
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5451
|
+
body?: Nullable<attributes.SVGPolylineAttributes>;
|
|
5452
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5449
5453
|
}
|
|
5450
5454
|
|
|
5451
5455
|
export type PolylineAttributes = dia.Element.GenericAttributes<PolylineSelectors>;
|
|
@@ -5454,9 +5458,9 @@ export declare namespace shapes {
|
|
|
5454
5458
|
}
|
|
5455
5459
|
|
|
5456
5460
|
export interface ImageSelectors extends dia.Cell.Selectors {
|
|
5457
|
-
root?: attributes.SVGAttributes
|
|
5458
|
-
image?: attributes.SVGImageAttributes
|
|
5459
|
-
label?: attributes.SVGTextAttributes
|
|
5461
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5462
|
+
image?: Nullable<attributes.SVGImageAttributes>;
|
|
5463
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5460
5464
|
}
|
|
5461
5465
|
|
|
5462
5466
|
export type ImageAttributes = dia.Element.GenericAttributes<ImageSelectors>;
|
|
@@ -5465,11 +5469,11 @@ export declare namespace shapes {
|
|
|
5465
5469
|
}
|
|
5466
5470
|
|
|
5467
5471
|
export interface BorderedImageSelectors extends dia.Cell.Selectors {
|
|
5468
|
-
root?: attributes.SVGAttributes
|
|
5469
|
-
border?: attributes.SVGRectAttributes
|
|
5470
|
-
background?: attributes.SVGRectAttributes
|
|
5471
|
-
image?: attributes.SVGImageAttributes
|
|
5472
|
-
label?: attributes.SVGTextAttributes
|
|
5472
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5473
|
+
border?: Nullable<attributes.SVGRectAttributes>;
|
|
5474
|
+
background?: Nullable<attributes.SVGRectAttributes>;
|
|
5475
|
+
image?: Nullable<attributes.SVGImageAttributes>;
|
|
5476
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5473
5477
|
}
|
|
5474
5478
|
|
|
5475
5479
|
export type BorderedImageAttributes = dia.Element.GenericAttributes<BorderedImageSelectors>;
|
|
@@ -5478,10 +5482,10 @@ export declare namespace shapes {
|
|
|
5478
5482
|
}
|
|
5479
5483
|
|
|
5480
5484
|
export interface EmbeddedImageSelectors extends dia.Cell.Selectors {
|
|
5481
|
-
root?: attributes.SVGAttributes
|
|
5482
|
-
body?: attributes.SVGRectAttributes
|
|
5483
|
-
image?: attributes.SVGImageAttributes
|
|
5484
|
-
label?: attributes.SVGTextAttributes
|
|
5485
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5486
|
+
body?: Nullable<attributes.SVGRectAttributes>;
|
|
5487
|
+
image?: Nullable<attributes.SVGImageAttributes>;
|
|
5488
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5485
5489
|
}
|
|
5486
5490
|
|
|
5487
5491
|
export type EmbeddedImageAttributes = dia.Element.GenericAttributes<EmbeddedImageSelectors>;
|
|
@@ -5490,11 +5494,11 @@ export declare namespace shapes {
|
|
|
5490
5494
|
}
|
|
5491
5495
|
|
|
5492
5496
|
export interface InscribedImageSelectors extends dia.Cell.Selectors {
|
|
5493
|
-
root?: attributes.SVGAttributes
|
|
5494
|
-
border?: attributes.SVGEllipseAttributes
|
|
5495
|
-
background?: attributes.SVGEllipseAttributes
|
|
5496
|
-
image?: attributes.SVGImageAttributes
|
|
5497
|
-
label?: attributes.SVGTextAttributes
|
|
5497
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5498
|
+
border?: Nullable<attributes.SVGEllipseAttributes>;
|
|
5499
|
+
background?: Nullable<attributes.SVGEllipseAttributes>;
|
|
5500
|
+
image?: Nullable<attributes.SVGImageAttributes>;
|
|
5501
|
+
label?: Nullable<attributes.SVGTextAttributes>;
|
|
5498
5502
|
}
|
|
5499
5503
|
|
|
5500
5504
|
export type InscribedImageAttributes = dia.Element.GenericAttributes<InscribedImageSelectors>;
|
|
@@ -5503,11 +5507,11 @@ export declare namespace shapes {
|
|
|
5503
5507
|
}
|
|
5504
5508
|
|
|
5505
5509
|
export interface HeaderedRectangleSelectors extends dia.Cell.Selectors {
|
|
5506
|
-
root?: attributes.SVGAttributes
|
|
5507
|
-
body?: attributes.SVGRectAttributes
|
|
5508
|
-
header?: attributes.SVGRectAttributes
|
|
5509
|
-
headerText?: attributes.SVGTextAttributes
|
|
5510
|
-
bodyText?: attributes.SVGTextAttributes
|
|
5510
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5511
|
+
body?: Nullable<attributes.SVGRectAttributes>;
|
|
5512
|
+
header?: Nullable<attributes.SVGRectAttributes>;
|
|
5513
|
+
headerText?: Nullable<attributes.SVGTextAttributes>;
|
|
5514
|
+
bodyText?: Nullable<attributes.SVGTextAttributes>;
|
|
5511
5515
|
}
|
|
5512
5516
|
|
|
5513
5517
|
export type HeaderedRectangleAttributes = dia.Element.GenericAttributes<HeaderedRectangleSelectors>;
|
|
@@ -5520,9 +5524,9 @@ export declare namespace shapes {
|
|
|
5520
5524
|
}
|
|
5521
5525
|
|
|
5522
5526
|
export interface CylinderSelectors extends dia.Cell.Selectors {
|
|
5523
|
-
root?: attributes.SVGAttributes
|
|
5527
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5524
5528
|
body?: CylinderBodyAttributes;
|
|
5525
|
-
top?: attributes.SVGEllipseAttributes
|
|
5529
|
+
top?: Nullable<attributes.SVGEllipseAttributes>;
|
|
5526
5530
|
}
|
|
5527
5531
|
|
|
5528
5532
|
export type CylinderAttributes = dia.Element.GenericAttributes<CylinderSelectors>;
|
|
@@ -5533,13 +5537,13 @@ export declare namespace shapes {
|
|
|
5533
5537
|
}
|
|
5534
5538
|
|
|
5535
5539
|
export interface TextBlockSelectors extends dia.Cell.Selectors {
|
|
5536
|
-
root?: attributes.SVGAttributes
|
|
5537
|
-
body?: attributes.SVGRectAttributes
|
|
5538
|
-
label?: {
|
|
5540
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5541
|
+
body?: Nullable<attributes.SVGRectAttributes>;
|
|
5542
|
+
label?: Nullable<{
|
|
5539
5543
|
text?: string;
|
|
5540
5544
|
style?: { [key: string]: any };
|
|
5541
5545
|
[key: string]: any;
|
|
5542
|
-
}
|
|
5546
|
+
}>;
|
|
5543
5547
|
}
|
|
5544
5548
|
|
|
5545
5549
|
export type TextBlockAttributes = dia.Element.GenericAttributes<TextBlockSelectors>;
|
|
@@ -5548,9 +5552,9 @@ export declare namespace shapes {
|
|
|
5548
5552
|
}
|
|
5549
5553
|
|
|
5550
5554
|
export interface LinkSelectors extends dia.Cell.Selectors {
|
|
5551
|
-
root?: attributes.SVGAttributes
|
|
5552
|
-
line?: attributes.SVGPathAttributes
|
|
5553
|
-
wrapper?: attributes.SVGPathAttributes
|
|
5555
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5556
|
+
line?: Nullable<attributes.SVGPathAttributes>;
|
|
5557
|
+
wrapper?: Nullable<attributes.SVGPathAttributes>;
|
|
5554
5558
|
}
|
|
5555
5559
|
|
|
5556
5560
|
export type LinkAttributes = dia.Link.GenericAttributes<LinkSelectors>;
|
|
@@ -5559,9 +5563,9 @@ export declare namespace shapes {
|
|
|
5559
5563
|
}
|
|
5560
5564
|
|
|
5561
5565
|
export interface DoubleLinkSelectors extends dia.Cell.Selectors {
|
|
5562
|
-
root?: attributes.SVGAttributes
|
|
5563
|
-
line?: attributes.SVGPathAttributes
|
|
5564
|
-
outline?: attributes.SVGPathAttributes
|
|
5566
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5567
|
+
line?: Nullable<attributes.SVGPathAttributes>;
|
|
5568
|
+
outline?: Nullable<attributes.SVGPathAttributes>;
|
|
5565
5569
|
}
|
|
5566
5570
|
|
|
5567
5571
|
export type DoubleLinkAttributes = dia.Link.GenericAttributes<DoubleLinkSelectors>;
|
|
@@ -5570,9 +5574,9 @@ export declare namespace shapes {
|
|
|
5570
5574
|
}
|
|
5571
5575
|
|
|
5572
5576
|
export interface ShadowLinkSelectors extends dia.Cell.Selectors {
|
|
5573
|
-
root?: attributes.SVGAttributes
|
|
5574
|
-
line?: attributes.SVGPathAttributes
|
|
5575
|
-
shadow?: attributes.SVGPathAttributes
|
|
5577
|
+
root?: Nullable<attributes.SVGAttributes>;
|
|
5578
|
+
line?: Nullable<attributes.SVGPathAttributes>;
|
|
5579
|
+
shadow?: Nullable<attributes.SVGPathAttributes>;
|
|
5576
5580
|
}
|
|
5577
5581
|
|
|
5578
5582
|
export type ShadowLinkAttributes = dia.Link.GenericAttributes<ShadowLinkSelectors>;
|
|
@@ -5580,52 +5584,6 @@ export declare namespace shapes {
|
|
|
5580
5584
|
export class ShadowLink extends dia.Link<ShadowLinkAttributes> {
|
|
5581
5585
|
}
|
|
5582
5586
|
}
|
|
5583
|
-
|
|
5584
|
-
export namespace devs {
|
|
5585
|
-
|
|
5586
|
-
export interface ModelSelectors extends dia.Cell.Selectors {
|
|
5587
|
-
'.label'?: attributes.SVGTextAttributes;
|
|
5588
|
-
'.body'?: attributes.SVGRectAttributes;
|
|
5589
|
-
}
|
|
5590
|
-
|
|
5591
|
-
export interface ModelAttributes extends dia.Element.GenericAttributes<ModelSelectors> {
|
|
5592
|
-
inPorts?: string[];
|
|
5593
|
-
outPorts?: string[];
|
|
5594
|
-
}
|
|
5595
|
-
|
|
5596
|
-
export class Model extends dia.Element {
|
|
5597
|
-
|
|
5598
|
-
constructor(attributes?: ModelAttributes, opt?: { [key: string]: any });
|
|
5599
|
-
|
|
5600
|
-
changeInGroup(properties: any, opt?: any): boolean;
|
|
5601
|
-
|
|
5602
|
-
changeOutGroup(properties: any, opt?: any): boolean;
|
|
5603
|
-
|
|
5604
|
-
createPortItem(group: string, port: string): any;
|
|
5605
|
-
|
|
5606
|
-
createPortItems(group: string, ports: string[]): any[];
|
|
5607
|
-
|
|
5608
|
-
addOutPort(port: string, opt?: any): this;
|
|
5609
|
-
|
|
5610
|
-
addInPort(port: string, opt?: any): this;
|
|
5611
|
-
|
|
5612
|
-
removeOutPort(port: string, opt?: any): this;
|
|
5613
|
-
|
|
5614
|
-
removeInPort(port: string, opt?: any): this;
|
|
5615
|
-
}
|
|
5616
|
-
|
|
5617
|
-
export class Coupled extends Model {
|
|
5618
|
-
|
|
5619
|
-
}
|
|
5620
|
-
|
|
5621
|
-
export class Atomic extends Model {
|
|
5622
|
-
|
|
5623
|
-
}
|
|
5624
|
-
|
|
5625
|
-
export class Link extends dia.Link {
|
|
5626
|
-
|
|
5627
|
-
}
|
|
5628
|
-
}
|
|
5629
5587
|
}
|
|
5630
5588
|
|
|
5631
5589
|
export declare namespace util {
|
package/dist/joint.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! JointJS v4.2.
|
|
1
|
+
/*! JointJS v4.2.2 (2025-12-16) - JavaScript diagramming library
|
|
2
2
|
|
|
3
3
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
4
4
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
@@ -27568,6 +27568,12 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
27568
27568
|
* @description The ID of the default layer.
|
|
27569
27569
|
*/
|
|
27570
27570
|
defaultLayerId: DEFAULT_LAYER_ID,
|
|
27571
|
+
/**
|
|
27572
|
+
* @protected
|
|
27573
|
+
* @description If `true`, layer functionality is disabled
|
|
27574
|
+
* and all cells are assigned to the default layer.
|
|
27575
|
+
*/
|
|
27576
|
+
ignoreLayers: false,
|
|
27571
27577
|
initialize: function (attrs, options = {}) {
|
|
27572
27578
|
const layerCollection = this.layerCollection = new GraphLayerCollection([], {
|
|
27573
27579
|
layerNamespace: options.layerNamespace,
|
|
@@ -27596,6 +27602,11 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
27596
27602
|
graph: this
|
|
27597
27603
|
});
|
|
27598
27604
|
|
|
27605
|
+
// Option to ignore layers altogether.
|
|
27606
|
+
if (options.ignoreLayers) {
|
|
27607
|
+
this.ignoreLayers = true;
|
|
27608
|
+
}
|
|
27609
|
+
|
|
27599
27610
|
// `Graph` keeps an internal data structure (an adjacency list)
|
|
27600
27611
|
// for fast graph queries. All changes that affect the structure of the graph
|
|
27601
27612
|
// must be reflected in the `al` object. This object provides fast answers to
|
|
@@ -27691,7 +27702,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
27691
27702
|
// Backward compatibility: prior v4.2, z-index was not set during reset.
|
|
27692
27703
|
if (opt && opt.ensureZIndex) {
|
|
27693
27704
|
if (cellAttributes.z === undefined) {
|
|
27694
|
-
const layerId =
|
|
27705
|
+
const layerId = this.getCellLayerId(cellInit);
|
|
27695
27706
|
const zIndex = this.maxZIndex(layerId) + 1;
|
|
27696
27707
|
if (cellInit[CELL_MARKER]) {
|
|
27697
27708
|
// Set with event in case there is a listener
|
|
@@ -27796,6 +27807,10 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
27796
27807
|
if (!cellInit) {
|
|
27797
27808
|
throw new Error('dia.Graph: No cell provided.');
|
|
27798
27809
|
}
|
|
27810
|
+
if (this.ignoreLayers) {
|
|
27811
|
+
// When layers are ignored, all cells belong to the default layer.
|
|
27812
|
+
return this.defaultLayerId;
|
|
27813
|
+
}
|
|
27799
27814
|
const cellAttributes = cellInit[CELL_MARKER] ? cellInit.attributes : cellInit;
|
|
27800
27815
|
return cellAttributes[config$3.layerAttribute] || this.defaultLayerId;
|
|
27801
27816
|
},
|
|
@@ -39645,7 +39660,7 @@ file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
39645
39660
|
Remove: Remove
|
|
39646
39661
|
};
|
|
39647
39662
|
|
|
39648
|
-
var version = "4.2.
|
|
39663
|
+
var version = "4.2.2";
|
|
39649
39664
|
|
|
39650
39665
|
const Vectorizer = V;
|
|
39651
39666
|
const layout$1 = {
|