@progress/kendo-angular-diagrams 19.3.0-develop.23 → 19.3.0-develop.25

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.
@@ -7,7 +7,7 @@ import { ConnectionDefaults, ConnectionOptions, DiagramEditable, DiagramLayout,
7
7
  import { Group } from '@progress/kendo-drawing';
8
8
  import * as i0 from "@angular/core";
9
9
  /**
10
- * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagrams %}).
10
+ * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagram %}).
11
11
  *
12
12
  * The Diagram component is used to create organizational charts, and other types of diagrams.
13
13
  *
@@ -144,7 +144,7 @@ export declare class DiagramComponent implements AfterViewInit, OnChanges, OnDes
144
144
  * @hidden
145
145
  * Represents the Diagram instance, holding the core functionality of the Diagram.
146
146
  */
147
- diagram: Diagram;
147
+ diagramWidget: Diagram;
148
148
  /**
149
149
  * The currently selected items in the Diagram.
150
150
  */
@@ -12,7 +12,7 @@ import { events, loadTheme } from '@progress/kendo-diagram-common';
12
12
  import { CONNECTION_DEFAULTS, SHAPE_DEFAULTS } from './utils';
13
13
  import * as i0 from "@angular/core";
14
14
  /**
15
- * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagrams %}).
15
+ * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagram %}).
16
16
  *
17
17
  * The Diagram component is used to create organizational charts, and other types of diagrams.
18
18
  *
@@ -149,24 +149,24 @@ export class DiagramComponent {
149
149
  * @hidden
150
150
  * Represents the Diagram instance, holding the core functionality of the Diagram.
151
151
  */
152
- diagram;
152
+ diagramWidget;
153
153
  /**
154
154
  * The currently selected items in the Diagram.
155
155
  */
156
156
  get selection() {
157
- return this.diagram?.select();
157
+ return this.diagramWidget?.select();
158
158
  }
159
159
  /**
160
160
  * The actual shapes created by the Diagram.
161
161
  */
162
162
  get diagramShapes() {
163
- return this.diagram?.shapes;
163
+ return this.diagramWidget?.shapes;
164
164
  }
165
165
  /**
166
166
  * The actual connections created by the Diagram.
167
167
  */
168
168
  get diagramConnections() {
169
- return this.diagram?.connections;
169
+ return this.diagramWidget?.connections;
170
170
  }
171
171
  /**
172
172
  * @hidden
@@ -249,14 +249,14 @@ export class DiagramComponent {
249
249
  }
250
250
  if (changes['layout']) {
251
251
  this.updateOptions('layout');
252
- this.diagram?.layout(this.options.layout);
252
+ this.diagramWidget?.layout(this.options.layout);
253
253
  }
254
254
  if (changes['pannable']) {
255
255
  this.updateOptions('pannable');
256
256
  }
257
257
  if (changes['zoom']) {
258
258
  this.updateOptions('zoom');
259
- this.diagram?.zoom(this.diagram.options.zoom);
259
+ this.diagramWidget?.zoom(this.diagramWidget.options.zoom);
260
260
  }
261
261
  if (recreate) {
262
262
  this.init();
@@ -266,7 +266,7 @@ export class DiagramComponent {
266
266
  this.renderer.setStyle(this.wrapperElement.nativeElement, 'display', 'block');
267
267
  this.init();
268
268
  events.forEach((eventName) => {
269
- this.diagram.bind(eventName, (e) => {
269
+ this.diagramWidget.bind(eventName, (e) => {
270
270
  if (eventName === 'click') {
271
271
  eventName = 'diagramClick';
272
272
  }
@@ -289,27 +289,27 @@ export class DiagramComponent {
289
289
  });
290
290
  }
291
291
  ngOnDestroy() {
292
- this.diagram?.destroy();
292
+ this.diagramWidget?.destroy();
293
293
  }
294
294
  /**
295
295
  * Provides the current Diagram's shapes and connections that can be used to create a new Diagram when needed.
296
296
  * @returns {DiagramState} Object containing shapes and connections arrays.
297
297
  */
298
298
  getState() {
299
- return this.diagram?.save();
299
+ return this.diagramWidget?.save();
300
300
  }
301
301
  /**
302
302
  * Focuses the Diagram.
303
303
  * @returns {boolean} true if focus was set successfully.
304
304
  */
305
305
  focus() {
306
- return this.diagram?.focus();
306
+ return this.diagramWidget?.focus();
307
307
  }
308
308
  /**
309
309
  * Clears the Diagram.
310
310
  */
311
311
  clear() {
312
- this.diagram?.clear();
312
+ this.diagramWidget?.clear();
313
313
  }
314
314
  /**
315
315
  * Determines whether two shapes are connected.
@@ -318,7 +318,7 @@ export class DiagramComponent {
318
318
  * @returns {boolean} true if the two shapes are connected.
319
319
  */
320
320
  connected(source, target) {
321
- return this.diagram?.connected(source, target);
321
+ return this.diagramWidget?.connected(source, target);
322
322
  }
323
323
  /**
324
324
  * Adds connection to the Diagram.
@@ -327,7 +327,7 @@ export class DiagramComponent {
327
327
  * @returns {Connection} The newly created connection.
328
328
  */
329
329
  addConnection(connection, undoable) {
330
- const newConnection = this.diagram?.addConnection(connection, undoable);
330
+ const newConnection = this.diagramWidget?.addConnection(connection, undoable);
331
331
  return newConnection;
332
332
  }
333
333
  /**
@@ -337,7 +337,7 @@ export class DiagramComponent {
337
337
  * @returns {Shape} The newly created shape.
338
338
  */
339
339
  addShape(item, undoable) {
340
- const newShape = this.diagram?.addShape(item, undoable);
340
+ const newShape = this.diagramWidget?.addShape(item, undoable);
341
341
  return newShape;
342
342
  }
343
343
  /**
@@ -346,7 +346,7 @@ export class DiagramComponent {
346
346
  * @param {Boolean} Boolean indicating if the action should be undoable.
347
347
  */
348
348
  remove(items, undoable) {
349
- this.diagram?.remove(items, undoable);
349
+ this.diagramWidget?.remove(items, undoable);
350
350
  }
351
351
  /**
352
352
  * Connects two items in the Diagram.
@@ -356,19 +356,19 @@ export class DiagramComponent {
356
356
  * @returns {Connection} The created connection.
357
357
  */
358
358
  connect(source, target, options) {
359
- return this.diagram?.connect(source, target, options);
359
+ return this.diagramWidget?.connect(source, target, options);
360
360
  }
361
361
  /**
362
362
  * Executes the next undoable action on top of the undo stack if any.
363
363
  */
364
364
  undo() {
365
- this.diagram?.undo();
365
+ this.diagramWidget?.undo();
366
366
  }
367
367
  /**
368
368
  * Executes the previous undoable action on top of the redo stack if any.
369
369
  */
370
370
  redo() {
371
- this.diagram?.redo();
371
+ this.diagramWidget?.redo();
372
372
  }
373
373
  /**
374
374
  * Selects items on the basis of the given input.
@@ -377,27 +377,27 @@ export class DiagramComponent {
377
377
  * @returns {(Shape | Connection)[]} Array of selected items.
378
378
  */
379
379
  select(items, options) {
380
- return this.diagram?.select(items, options);
380
+ return this.diagramWidget?.select(items, options);
381
381
  }
382
382
  /**
383
383
  * Selects all items in the Diagram.
384
384
  */
385
385
  selectAll() {
386
- this.diagram?.selectAll();
386
+ this.diagramWidget?.selectAll();
387
387
  }
388
388
  /**
389
389
  * Selects items in the specified area.
390
390
  * @param {Rect} rect Rectangle area to select.
391
391
  */
392
392
  selectArea(rect) {
393
- this.diagram?.selectArea(rect);
393
+ this.diagramWidget?.selectArea(rect);
394
394
  }
395
395
  /**
396
396
  * Deselects the specified items or all items if no item is specified.
397
397
  * @param {Shape | Connection | (Shape | Connection)[]} Shape, Connection or an Array of Shapes and/or Connections.
398
398
  */
399
399
  deselect(items) {
400
- this.diagram?.deselect(items);
400
+ this.diagramWidget?.deselect(items);
401
401
  }
402
402
  /**
403
403
  * Brings to front the passed items.
@@ -405,7 +405,7 @@ export class DiagramComponent {
405
405
  * @param {boolean} By default the action is undoable.
406
406
  */
407
407
  bringToFront(items, undoable) {
408
- this.diagram?.toFront(items, undoable);
408
+ this.diagramWidget?.toFront(items, undoable);
409
409
  }
410
410
  /**
411
411
  * Sends to back the passed items.
@@ -413,7 +413,7 @@ export class DiagramComponent {
413
413
  * @param {boolean} By default the action is undoable.
414
414
  */
415
415
  bringToBack(items, undoable) {
416
- this.diagram?.toBack(items, undoable);
416
+ this.diagramWidget?.toBack(items, undoable);
417
417
  }
418
418
  /**
419
419
  * Bring into view the passed item(s) or rectangle.
@@ -422,14 +422,14 @@ export class DiagramComponent {
422
422
  * "Center middle" will position the items in the center. animate - controls if the pan should be animated.
423
423
  */
424
424
  bringIntoView(item, options) {
425
- this.diagram?.bringIntoView(item, options);
425
+ this.diagramWidget?.bringIntoView(item, options);
426
426
  }
427
427
  /**
428
428
  * Aligns shapes in the specified direction.
429
429
  * @param {Direction} Direction to align shapes.
430
430
  */
431
431
  alignShapes(direction) {
432
- this.diagram?.alignShapes(direction);
432
+ this.diagramWidget?.alignShapes(direction);
433
433
  }
434
434
  /**
435
435
  * @hidden
@@ -439,33 +439,33 @@ export class DiagramComponent {
439
439
  * @returns {Point} Current pan position.
440
440
  */
441
441
  pan(pan, animate) {
442
- return this.diagram?.pan(pan, animate);
442
+ return this.diagramWidget?.pan(pan, animate);
443
443
  }
444
444
  /**
445
445
  * Gets the current `Diagram` viewport rectangle.
446
446
  * @returns {Rect} Viewport rectangle.
447
447
  */
448
448
  viewport() {
449
- return this.diagram?.viewport();
449
+ return this.diagramWidget?.viewport();
450
450
  }
451
451
  /**
452
452
  * Copies selected items to clipboard.
453
453
  */
454
454
  copy() {
455
- this.diagram?.copy();
455
+ this.diagramWidget?.copy();
456
456
  }
457
457
  /**
458
458
  * @hidden
459
459
  * Cuts selected items to clipboard.
460
460
  */
461
461
  cut() {
462
- this.diagram?.cut();
462
+ this.diagramWidget?.cut();
463
463
  }
464
464
  /**
465
465
  * Pastes items from clipboard.
466
466
  */
467
467
  paste() {
468
- this.diagram?.paste();
468
+ this.diagramWidget?.paste();
469
469
  }
470
470
  /**
471
471
  * Gets the bounding rectangle of the given items.
@@ -474,7 +474,7 @@ export class DiagramComponent {
474
474
  * @returns {Rect} Bounding rectangle.
475
475
  */
476
476
  boundingBox(items, origin) {
477
- return this.diagram?.boundingBox(items, origin);
477
+ return this.diagramWidget?.boundingBox(items, origin);
478
478
  }
479
479
  /**
480
480
  * Converts document coordinates to view coordinates.
@@ -482,7 +482,7 @@ export class DiagramComponent {
482
482
  * @returns {Point} Point in view coordinates.
483
483
  */
484
484
  documentToView(point) {
485
- return this.diagram?.documentToView(point);
485
+ return this.diagramWidget?.documentToView(point);
486
486
  }
487
487
  /**
488
488
  * Converts view coordinates to document coordinates.
@@ -490,7 +490,7 @@ export class DiagramComponent {
490
490
  * @returns {Point} Point in document coordinates.
491
491
  */
492
492
  viewToDocument(point) {
493
- return this.diagram?.viewToDocument(point);
493
+ return this.diagramWidget?.viewToDocument(point);
494
494
  }
495
495
  /**
496
496
  * Converts view coordinates to model coordinates.
@@ -498,7 +498,7 @@ export class DiagramComponent {
498
498
  * @returns {Point} Point in model coordinates.
499
499
  */
500
500
  viewToModel(point) {
501
- return this.diagram?.viewToModel(point);
501
+ return this.diagramWidget?.viewToModel(point);
502
502
  }
503
503
  /**
504
504
  * Converts model coordinates to view coordinates.
@@ -506,7 +506,7 @@ export class DiagramComponent {
506
506
  * @returns {Point} Point in view coordinates.
507
507
  */
508
508
  modelToView(point) {
509
- return this.diagram?.modelToView(point);
509
+ return this.diagramWidget?.modelToView(point);
510
510
  }
511
511
  /**
512
512
  * Converts model coordinates to layer coordinates.
@@ -514,7 +514,7 @@ export class DiagramComponent {
514
514
  * @returns {Point} Point in layer coordinates.
515
515
  */
516
516
  modelToLayer(point) {
517
- return this.diagram?.modelToLayer(point);
517
+ return this.diagramWidget?.modelToLayer(point);
518
518
  }
519
519
  /**
520
520
  * Converts layer coordinates to model coordinates.
@@ -522,7 +522,7 @@ export class DiagramComponent {
522
522
  * @returns {Point} Point in model coordinates.
523
523
  */
524
524
  layerToModel(point) {
525
- return this.diagram?.layerToModel(point);
525
+ return this.diagramWidget?.layerToModel(point);
526
526
  }
527
527
  /**
528
528
  * Converts document coordinates to model coordinates.
@@ -530,7 +530,7 @@ export class DiagramComponent {
530
530
  * @returns {Point} Point in model coordinates.
531
531
  */
532
532
  documentToModel(point) {
533
- return this.diagram?.documentToModel(point);
533
+ return this.diagramWidget?.documentToModel(point);
534
534
  }
535
535
  /**
536
536
  * Converts model coordinates to document coordinates.
@@ -538,7 +538,7 @@ export class DiagramComponent {
538
538
  * @returns {Point} Point in document coordinates.
539
539
  */
540
540
  modelToDocument(point) {
541
- return this.diagram?.modelToDocument(point);
541
+ return this.diagramWidget?.modelToDocument(point);
542
542
  }
543
543
  /**
544
544
  * Gets a shape on the basis of its identifier.
@@ -546,7 +546,7 @@ export class DiagramComponent {
546
546
  * @returns {Shape} The shape with the specified ID.
547
547
  */
548
548
  getShapeById(id) {
549
- return this.diagram?.getShapeById(id);
549
+ return this.diagramWidget?.getShapeById(id);
550
550
  }
551
551
  /**
552
552
  * Exports the diagram's DOM visual representation for rendering or export purposes.
@@ -554,7 +554,7 @@ export class DiagramComponent {
554
554
  * @returns {Group} A drawing Group element containing the exported DOM visual
555
555
  */
556
556
  exportDOMVisual() {
557
- return this.diagram?.exportDOMVisual();
557
+ return this.diagramWidget?.exportDOMVisual();
558
558
  }
559
559
  /**
560
560
  * Exports the diagram's visual representation with proper scaling based on zoom level.
@@ -562,7 +562,7 @@ export class DiagramComponent {
562
562
  * @returns {Group} A drawing Group element containing the exported visual with inverse zoom scaling
563
563
  */
564
564
  exportVisual() {
565
- return this.diagram?.exportVisual();
565
+ return this.diagramWidget?.exportVisual();
566
566
  }
567
567
  activeEmitter(name) {
568
568
  const emitter = this[name];
@@ -571,20 +571,20 @@ export class DiagramComponent {
571
571
  }
572
572
  }
573
573
  init() {
574
- if (this.diagram) {
575
- this.diagram.destroy();
574
+ if (this.diagramWidget) {
575
+ this.diagramWidget.destroy();
576
576
  }
577
577
  this.zone.runOutsideAngular(() => {
578
578
  const theme = loadTheme(this.wrapperElement.nativeElement);
579
- this.diagram = new Diagram(this.wrapperElement.nativeElement, this.options, theme);
580
- this.diagram._createOptionElements();
581
- this.diagram.zoom(this.diagram.options.zoom);
582
- this.diagram.canvas.draw();
579
+ this.diagramWidget = new Diagram(this.wrapperElement.nativeElement, this.options, theme);
580
+ this.diagramWidget._createOptionElements();
581
+ this.diagramWidget.zoom(this.diagramWidget.options.zoom);
582
+ this.diagramWidget.canvas.draw();
583
583
  });
584
584
  }
585
585
  updateOptions(prop) {
586
586
  this.options[prop] = this[prop];
587
- this.diagram?.setOptions(this.options);
587
+ this.diagramWidget?.setOptions(this.options);
588
588
  }
589
589
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DiagramComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
590
590
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DiagramComponent, isStandalone: true, selector: "kendo-diagram", inputs: { connectionDefaults: "connectionDefaults", connections: "connections", editable: "editable", layout: "layout", pannable: "pannable", selectable: "selectable", shapeDefaults: "shapeDefaults", shapes: "shapes", zoom: "zoom", zoomMax: "zoomMax", zoomMin: "zoomMin", zoomRate: "zoomRate" }, outputs: { change: "change", diagramClick: "diagramClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", shapeBoundsChange: "shapeBoundsChange", mouseEnter: "mouseEnter", mouseLeave: "mouseLeave", onPan: "pan", onSelect: "select", zoomEnd: "zoomEnd", zoomStart: "zoomStart" }, host: { properties: { "class.k-diagram": "this.diagramClass" } }, exportAs: ["kendoDiagram"], usesOnChanges: true, ngImport: i0, template: `
package/esm2022/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- export { Shape, Connection, Connector, Diagram, Point, Rect, Circle, Group, FlowchartShapeType } from '@progress/kendo-diagram-common';
5
+ export { Shape, Connection, Connector, Diagram, Point, Rect, Circle, Group, FlowchartShapeType, ArrowMarker, CircleMarker, Collate, DataInputOutput, DataStorage, Database, Decision, Delay, DirectAccessStorage, Display, Document, MultipleDocuments, Extract, Image, InternalStorage, Layout, Line, LogicalOr, ManualInputOutput, ManualOperation, Merge, MultiLineTextBlock, OffPageConnector, OnPageConnector, Path, Polyline, PredefinedProcess, Preparation, Process, Rectangle, Sort, SummingJunction, Terminator, TextBlock, MarkerType } from '@progress/kendo-diagram-common';
6
6
  export { DiagramModule } from './diagram.module';
7
7
  export { DiagramComponent } from './diagram.component';
8
8
  export * from './directives';
@@ -9,7 +9,7 @@ export const packageMetadata = {
9
9
  name: '@progress/kendo-angular-diagrams',
10
10
  productName: 'Kendo UI for Angular',
11
11
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
12
- publishDate: 1754484586,
13
- version: '19.3.0-develop.23',
12
+ publishDate: 1754497834,
13
+ version: '19.3.0-develop.25',
14
14
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
15
15
  };
@@ -3,7 +3,7 @@
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
5
  import { events, loadTheme, Diagram } from '@progress/kendo-diagram-common';
6
- export { Circle, Connection, Connector, Diagram, FlowchartShapeType, Group, Point, Rect, Shape } from '@progress/kendo-diagram-common';
6
+ export { ArrowMarker, Circle, CircleMarker, Collate, Connection, Connector, DataInputOutput, DataStorage, Database, Decision, Delay, Diagram, DirectAccessStorage, Display, Document, Extract, FlowchartShapeType, Group, Image, InternalStorage, Layout, Line, LogicalOr, ManualInputOutput, ManualOperation, MarkerType, Merge, MultiLineTextBlock, MultipleDocuments, OffPageConnector, OnPageConnector, Path, Point, Polyline, PredefinedProcess, Preparation, Process, Rect, Rectangle, Shape, Sort, SummingJunction, Terminator, TextBlock } from '@progress/kendo-diagram-common';
7
7
  import * as i0 from '@angular/core';
8
8
  import { EventEmitter, Component, HostBinding, Input, Output, NgModule } from '@angular/core';
9
9
  import { validatePackage } from '@progress/kendo-licensing';
@@ -17,8 +17,8 @@ const packageMetadata = {
17
17
  name: '@progress/kendo-angular-diagrams',
18
18
  productName: 'Kendo UI for Angular',
19
19
  productCodes: ['KENDOUIANGULAR', 'KENDOUICOMPLETE'],
20
- publishDate: 1754484586,
21
- version: '19.3.0-develop.23',
20
+ publishDate: 1754497834,
21
+ version: '19.3.0-develop.25',
22
22
  licensingDocsUrl: 'https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning',
23
23
  };
24
24
 
@@ -49,7 +49,7 @@ const SHAPE_DEFAULTS = {
49
49
  };
50
50
 
51
51
  /**
52
- * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagrams %}).
52
+ * Represents the [Kendo UI Diagram component for Angular({% slug overview_diagram %}).
53
53
  *
54
54
  * The Diagram component is used to create organizational charts, and other types of diagrams.
55
55
  *
@@ -186,24 +186,24 @@ class DiagramComponent {
186
186
  * @hidden
187
187
  * Represents the Diagram instance, holding the core functionality of the Diagram.
188
188
  */
189
- diagram;
189
+ diagramWidget;
190
190
  /**
191
191
  * The currently selected items in the Diagram.
192
192
  */
193
193
  get selection() {
194
- return this.diagram?.select();
194
+ return this.diagramWidget?.select();
195
195
  }
196
196
  /**
197
197
  * The actual shapes created by the Diagram.
198
198
  */
199
199
  get diagramShapes() {
200
- return this.diagram?.shapes;
200
+ return this.diagramWidget?.shapes;
201
201
  }
202
202
  /**
203
203
  * The actual connections created by the Diagram.
204
204
  */
205
205
  get diagramConnections() {
206
- return this.diagram?.connections;
206
+ return this.diagramWidget?.connections;
207
207
  }
208
208
  /**
209
209
  * @hidden
@@ -286,14 +286,14 @@ class DiagramComponent {
286
286
  }
287
287
  if (changes['layout']) {
288
288
  this.updateOptions('layout');
289
- this.diagram?.layout(this.options.layout);
289
+ this.diagramWidget?.layout(this.options.layout);
290
290
  }
291
291
  if (changes['pannable']) {
292
292
  this.updateOptions('pannable');
293
293
  }
294
294
  if (changes['zoom']) {
295
295
  this.updateOptions('zoom');
296
- this.diagram?.zoom(this.diagram.options.zoom);
296
+ this.diagramWidget?.zoom(this.diagramWidget.options.zoom);
297
297
  }
298
298
  if (recreate) {
299
299
  this.init();
@@ -303,7 +303,7 @@ class DiagramComponent {
303
303
  this.renderer.setStyle(this.wrapperElement.nativeElement, 'display', 'block');
304
304
  this.init();
305
305
  events.forEach((eventName) => {
306
- this.diagram.bind(eventName, (e) => {
306
+ this.diagramWidget.bind(eventName, (e) => {
307
307
  if (eventName === 'click') {
308
308
  eventName = 'diagramClick';
309
309
  }
@@ -326,27 +326,27 @@ class DiagramComponent {
326
326
  });
327
327
  }
328
328
  ngOnDestroy() {
329
- this.diagram?.destroy();
329
+ this.diagramWidget?.destroy();
330
330
  }
331
331
  /**
332
332
  * Provides the current Diagram's shapes and connections that can be used to create a new Diagram when needed.
333
333
  * @returns {DiagramState} Object containing shapes and connections arrays.
334
334
  */
335
335
  getState() {
336
- return this.diagram?.save();
336
+ return this.diagramWidget?.save();
337
337
  }
338
338
  /**
339
339
  * Focuses the Diagram.
340
340
  * @returns {boolean} true if focus was set successfully.
341
341
  */
342
342
  focus() {
343
- return this.diagram?.focus();
343
+ return this.diagramWidget?.focus();
344
344
  }
345
345
  /**
346
346
  * Clears the Diagram.
347
347
  */
348
348
  clear() {
349
- this.diagram?.clear();
349
+ this.diagramWidget?.clear();
350
350
  }
351
351
  /**
352
352
  * Determines whether two shapes are connected.
@@ -355,7 +355,7 @@ class DiagramComponent {
355
355
  * @returns {boolean} true if the two shapes are connected.
356
356
  */
357
357
  connected(source, target) {
358
- return this.diagram?.connected(source, target);
358
+ return this.diagramWidget?.connected(source, target);
359
359
  }
360
360
  /**
361
361
  * Adds connection to the Diagram.
@@ -364,7 +364,7 @@ class DiagramComponent {
364
364
  * @returns {Connection} The newly created connection.
365
365
  */
366
366
  addConnection(connection, undoable) {
367
- const newConnection = this.diagram?.addConnection(connection, undoable);
367
+ const newConnection = this.diagramWidget?.addConnection(connection, undoable);
368
368
  return newConnection;
369
369
  }
370
370
  /**
@@ -374,7 +374,7 @@ class DiagramComponent {
374
374
  * @returns {Shape} The newly created shape.
375
375
  */
376
376
  addShape(item, undoable) {
377
- const newShape = this.diagram?.addShape(item, undoable);
377
+ const newShape = this.diagramWidget?.addShape(item, undoable);
378
378
  return newShape;
379
379
  }
380
380
  /**
@@ -383,7 +383,7 @@ class DiagramComponent {
383
383
  * @param {Boolean} Boolean indicating if the action should be undoable.
384
384
  */
385
385
  remove(items, undoable) {
386
- this.diagram?.remove(items, undoable);
386
+ this.diagramWidget?.remove(items, undoable);
387
387
  }
388
388
  /**
389
389
  * Connects two items in the Diagram.
@@ -393,19 +393,19 @@ class DiagramComponent {
393
393
  * @returns {Connection} The created connection.
394
394
  */
395
395
  connect(source, target, options) {
396
- return this.diagram?.connect(source, target, options);
396
+ return this.diagramWidget?.connect(source, target, options);
397
397
  }
398
398
  /**
399
399
  * Executes the next undoable action on top of the undo stack if any.
400
400
  */
401
401
  undo() {
402
- this.diagram?.undo();
402
+ this.diagramWidget?.undo();
403
403
  }
404
404
  /**
405
405
  * Executes the previous undoable action on top of the redo stack if any.
406
406
  */
407
407
  redo() {
408
- this.diagram?.redo();
408
+ this.diagramWidget?.redo();
409
409
  }
410
410
  /**
411
411
  * Selects items on the basis of the given input.
@@ -414,27 +414,27 @@ class DiagramComponent {
414
414
  * @returns {(Shape | Connection)[]} Array of selected items.
415
415
  */
416
416
  select(items, options) {
417
- return this.diagram?.select(items, options);
417
+ return this.diagramWidget?.select(items, options);
418
418
  }
419
419
  /**
420
420
  * Selects all items in the Diagram.
421
421
  */
422
422
  selectAll() {
423
- this.diagram?.selectAll();
423
+ this.diagramWidget?.selectAll();
424
424
  }
425
425
  /**
426
426
  * Selects items in the specified area.
427
427
  * @param {Rect} rect Rectangle area to select.
428
428
  */
429
429
  selectArea(rect) {
430
- this.diagram?.selectArea(rect);
430
+ this.diagramWidget?.selectArea(rect);
431
431
  }
432
432
  /**
433
433
  * Deselects the specified items or all items if no item is specified.
434
434
  * @param {Shape | Connection | (Shape | Connection)[]} Shape, Connection or an Array of Shapes and/or Connections.
435
435
  */
436
436
  deselect(items) {
437
- this.diagram?.deselect(items);
437
+ this.diagramWidget?.deselect(items);
438
438
  }
439
439
  /**
440
440
  * Brings to front the passed items.
@@ -442,7 +442,7 @@ class DiagramComponent {
442
442
  * @param {boolean} By default the action is undoable.
443
443
  */
444
444
  bringToFront(items, undoable) {
445
- this.diagram?.toFront(items, undoable);
445
+ this.diagramWidget?.toFront(items, undoable);
446
446
  }
447
447
  /**
448
448
  * Sends to back the passed items.
@@ -450,7 +450,7 @@ class DiagramComponent {
450
450
  * @param {boolean} By default the action is undoable.
451
451
  */
452
452
  bringToBack(items, undoable) {
453
- this.diagram?.toBack(items, undoable);
453
+ this.diagramWidget?.toBack(items, undoable);
454
454
  }
455
455
  /**
456
456
  * Bring into view the passed item(s) or rectangle.
@@ -459,14 +459,14 @@ class DiagramComponent {
459
459
  * "Center middle" will position the items in the center. animate - controls if the pan should be animated.
460
460
  */
461
461
  bringIntoView(item, options) {
462
- this.diagram?.bringIntoView(item, options);
462
+ this.diagramWidget?.bringIntoView(item, options);
463
463
  }
464
464
  /**
465
465
  * Aligns shapes in the specified direction.
466
466
  * @param {Direction} Direction to align shapes.
467
467
  */
468
468
  alignShapes(direction) {
469
- this.diagram?.alignShapes(direction);
469
+ this.diagramWidget?.alignShapes(direction);
470
470
  }
471
471
  /**
472
472
  * @hidden
@@ -476,33 +476,33 @@ class DiagramComponent {
476
476
  * @returns {Point} Current pan position.
477
477
  */
478
478
  pan(pan, animate) {
479
- return this.diagram?.pan(pan, animate);
479
+ return this.diagramWidget?.pan(pan, animate);
480
480
  }
481
481
  /**
482
482
  * Gets the current `Diagram` viewport rectangle.
483
483
  * @returns {Rect} Viewport rectangle.
484
484
  */
485
485
  viewport() {
486
- return this.diagram?.viewport();
486
+ return this.diagramWidget?.viewport();
487
487
  }
488
488
  /**
489
489
  * Copies selected items to clipboard.
490
490
  */
491
491
  copy() {
492
- this.diagram?.copy();
492
+ this.diagramWidget?.copy();
493
493
  }
494
494
  /**
495
495
  * @hidden
496
496
  * Cuts selected items to clipboard.
497
497
  */
498
498
  cut() {
499
- this.diagram?.cut();
499
+ this.diagramWidget?.cut();
500
500
  }
501
501
  /**
502
502
  * Pastes items from clipboard.
503
503
  */
504
504
  paste() {
505
- this.diagram?.paste();
505
+ this.diagramWidget?.paste();
506
506
  }
507
507
  /**
508
508
  * Gets the bounding rectangle of the given items.
@@ -511,7 +511,7 @@ class DiagramComponent {
511
511
  * @returns {Rect} Bounding rectangle.
512
512
  */
513
513
  boundingBox(items, origin) {
514
- return this.diagram?.boundingBox(items, origin);
514
+ return this.diagramWidget?.boundingBox(items, origin);
515
515
  }
516
516
  /**
517
517
  * Converts document coordinates to view coordinates.
@@ -519,7 +519,7 @@ class DiagramComponent {
519
519
  * @returns {Point} Point in view coordinates.
520
520
  */
521
521
  documentToView(point) {
522
- return this.diagram?.documentToView(point);
522
+ return this.diagramWidget?.documentToView(point);
523
523
  }
524
524
  /**
525
525
  * Converts view coordinates to document coordinates.
@@ -527,7 +527,7 @@ class DiagramComponent {
527
527
  * @returns {Point} Point in document coordinates.
528
528
  */
529
529
  viewToDocument(point) {
530
- return this.diagram?.viewToDocument(point);
530
+ return this.diagramWidget?.viewToDocument(point);
531
531
  }
532
532
  /**
533
533
  * Converts view coordinates to model coordinates.
@@ -535,7 +535,7 @@ class DiagramComponent {
535
535
  * @returns {Point} Point in model coordinates.
536
536
  */
537
537
  viewToModel(point) {
538
- return this.diagram?.viewToModel(point);
538
+ return this.diagramWidget?.viewToModel(point);
539
539
  }
540
540
  /**
541
541
  * Converts model coordinates to view coordinates.
@@ -543,7 +543,7 @@ class DiagramComponent {
543
543
  * @returns {Point} Point in view coordinates.
544
544
  */
545
545
  modelToView(point) {
546
- return this.diagram?.modelToView(point);
546
+ return this.diagramWidget?.modelToView(point);
547
547
  }
548
548
  /**
549
549
  * Converts model coordinates to layer coordinates.
@@ -551,7 +551,7 @@ class DiagramComponent {
551
551
  * @returns {Point} Point in layer coordinates.
552
552
  */
553
553
  modelToLayer(point) {
554
- return this.diagram?.modelToLayer(point);
554
+ return this.diagramWidget?.modelToLayer(point);
555
555
  }
556
556
  /**
557
557
  * Converts layer coordinates to model coordinates.
@@ -559,7 +559,7 @@ class DiagramComponent {
559
559
  * @returns {Point} Point in model coordinates.
560
560
  */
561
561
  layerToModel(point) {
562
- return this.diagram?.layerToModel(point);
562
+ return this.diagramWidget?.layerToModel(point);
563
563
  }
564
564
  /**
565
565
  * Converts document coordinates to model coordinates.
@@ -567,7 +567,7 @@ class DiagramComponent {
567
567
  * @returns {Point} Point in model coordinates.
568
568
  */
569
569
  documentToModel(point) {
570
- return this.diagram?.documentToModel(point);
570
+ return this.diagramWidget?.documentToModel(point);
571
571
  }
572
572
  /**
573
573
  * Converts model coordinates to document coordinates.
@@ -575,7 +575,7 @@ class DiagramComponent {
575
575
  * @returns {Point} Point in document coordinates.
576
576
  */
577
577
  modelToDocument(point) {
578
- return this.diagram?.modelToDocument(point);
578
+ return this.diagramWidget?.modelToDocument(point);
579
579
  }
580
580
  /**
581
581
  * Gets a shape on the basis of its identifier.
@@ -583,7 +583,7 @@ class DiagramComponent {
583
583
  * @returns {Shape} The shape with the specified ID.
584
584
  */
585
585
  getShapeById(id) {
586
- return this.diagram?.getShapeById(id);
586
+ return this.diagramWidget?.getShapeById(id);
587
587
  }
588
588
  /**
589
589
  * Exports the diagram's DOM visual representation for rendering or export purposes.
@@ -591,7 +591,7 @@ class DiagramComponent {
591
591
  * @returns {Group} A drawing Group element containing the exported DOM visual
592
592
  */
593
593
  exportDOMVisual() {
594
- return this.diagram?.exportDOMVisual();
594
+ return this.diagramWidget?.exportDOMVisual();
595
595
  }
596
596
  /**
597
597
  * Exports the diagram's visual representation with proper scaling based on zoom level.
@@ -599,7 +599,7 @@ class DiagramComponent {
599
599
  * @returns {Group} A drawing Group element containing the exported visual with inverse zoom scaling
600
600
  */
601
601
  exportVisual() {
602
- return this.diagram?.exportVisual();
602
+ return this.diagramWidget?.exportVisual();
603
603
  }
604
604
  activeEmitter(name) {
605
605
  const emitter = this[name];
@@ -608,20 +608,20 @@ class DiagramComponent {
608
608
  }
609
609
  }
610
610
  init() {
611
- if (this.diagram) {
612
- this.diagram.destroy();
611
+ if (this.diagramWidget) {
612
+ this.diagramWidget.destroy();
613
613
  }
614
614
  this.zone.runOutsideAngular(() => {
615
615
  const theme = loadTheme(this.wrapperElement.nativeElement);
616
- this.diagram = new Diagram(this.wrapperElement.nativeElement, this.options, theme);
617
- this.diagram._createOptionElements();
618
- this.diagram.zoom(this.diagram.options.zoom);
619
- this.diagram.canvas.draw();
616
+ this.diagramWidget = new Diagram(this.wrapperElement.nativeElement, this.options, theme);
617
+ this.diagramWidget._createOptionElements();
618
+ this.diagramWidget.zoom(this.diagramWidget.options.zoom);
619
+ this.diagramWidget.canvas.draw();
620
620
  });
621
621
  }
622
622
  updateOptions(prop) {
623
623
  this.options[prop] = this[prop];
624
- this.diagram?.setOptions(this.options);
624
+ this.diagramWidget?.setOptions(this.options);
625
625
  }
626
626
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DiagramComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
627
627
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DiagramComponent, isStandalone: true, selector: "kendo-diagram", inputs: { connectionDefaults: "connectionDefaults", connections: "connections", editable: "editable", layout: "layout", pannable: "pannable", selectable: "selectable", shapeDefaults: "shapeDefaults", shapes: "shapes", zoom: "zoom", zoomMax: "zoomMax", zoomMin: "zoomMin", zoomRate: "zoomRate" }, outputs: { change: "change", diagramClick: "diagramClick", drag: "drag", dragEnd: "dragEnd", dragStart: "dragStart", shapeBoundsChange: "shapeBoundsChange", mouseEnter: "mouseEnter", mouseLeave: "mouseLeave", onPan: "pan", onSelect: "select", zoomEnd: "zoomEnd", zoomStart: "zoomStart" }, host: { properties: { "class.k-diagram": "this.diagramClass" } }, exportAs: ["kendoDiagram"], usesOnChanges: true, ngImport: i0, template: `
package/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Copyright © 2025 Progress Software Corporation. All rights reserved.
3
3
  * Licensed under commercial license. See LICENSE.md in the project root for more information
4
4
  *-------------------------------------------------------------------------------------------*/
5
- export { DiagramOptions, ShapeConnector, ShapeContent, EditableDefaults, ShapeDefaultsEditable, ShapeEditable, ShapeFillGradientStop, ShapeFillGradient, ShapeFill, ShapeHover, ShapeRotation, Fill, Stroke, DashType, ShapeType, ShapeConnectorHover, ShapeConnectorDefaults, ShapeDefaults, ShapeOptions, Selectable, Pannable, LayoutGrid, DiagramLayout, DiagramEditable, Coordinate, ConnectionOptions, ConnectionDefaults, DiagramDragEvent, DiagramDomEvent, DiagramZoomStartEvent, DiagramZoomEndEvent, DiagramPanEvent, DiagramSelectEvent, DiagramChangeEvent, DiagramItemBoundsChangeEvent, Shape, Connection, Connector, Diagram, Point, Rect, DiagramState, BringIntoViewOptions, SelectionOptions, Direction, Circle, Group, FlowchartShapeType } from '@progress/kendo-diagram-common';
5
+ export { DiagramOptions, ShapeConnector, ShapeContent, EditableDefaults, ShapeDefaultsEditable, ShapeEditable, ShapeFillGradientStop, ShapeFillGradient, ShapeFill, ShapeHover, ShapeRotation, Fill, Stroke, DashType, ShapeType, ShapeConnectorHover, ShapeConnectorDefaults, ShapeDefaults, ShapeOptions, Selectable, Pannable, LayoutGrid, DiagramLayout, DiagramEditable, Coordinate, ConnectionOptions, ConnectionDefaults, DiagramDragEvent, DiagramDomEvent, DiagramZoomStartEvent, DiagramZoomEndEvent, DiagramPanEvent, DiagramSelectEvent, DiagramChangeEvent, DiagramItemBoundsChangeEvent, Shape, Connection, Connector, Diagram, Point, Rect, DiagramState, BringIntoViewOptions, SelectionOptions, Direction, Circle, Group, FlowchartShapeType, ArrowMarker, CircleMarker, Collate, DataInputOutput, DataStorage, Database, Decision, Delay, DirectAccessStorage, Display, Document, MultipleDocuments, Extract, Image, InternalStorage, Layout, Line, LogicalOr, ManualInputOutput, ManualOperation, Merge, MultiLineTextBlock, OffPageConnector, OnPageConnector, Path, Polyline, PredefinedProcess, Preparation, Process, Rectangle, Sort, SummingJunction, Terminator, TextBlock, MarkerType } from '@progress/kendo-diagram-common';
6
6
  export { DiagramModule } from './diagram.module';
7
7
  export { DiagramComponent } from './diagram.component';
8
8
  export * from './directives';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@progress/kendo-angular-diagrams",
3
- "version": "19.3.0-develop.23",
3
+ "version": "19.3.0-develop.25",
4
4
  "description": "Kendo UI Angular diagrams component",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "author": "Progress",
@@ -18,7 +18,7 @@
18
18
  "friendlyName": "Diagrams",
19
19
  "package": {
20
20
  "productName": "Kendo UI for Angular",
21
- "publishDate": 1754484586,
21
+ "publishDate": 1754497834,
22
22
  "licensingDocsUrl": "https://www.telerik.com/kendo-angular-ui/my-license/?utm_medium=product&utm_source=kendoangular&utm_campaign=kendo-ui-angular-purchase-license-keys-warning"
23
23
  }
24
24
  },
@@ -28,19 +28,19 @@
28
28
  "@angular/core": "16 - 20",
29
29
  "@angular/platform-browser": "16 - 20",
30
30
  "@progress/kendo-licensing": "^1.7.0",
31
- "@progress/kendo-angular-common": "19.3.0-develop.23",
32
- "@progress/kendo-angular-buttons": "19.3.0-develop.23",
33
- "@progress/kendo-angular-dialog": "19.3.0-develop.23",
34
- "@progress/kendo-angular-dropdowns": "19.3.0-develop.23",
35
- "@progress/kendo-angular-icons": "19.3.0-develop.23",
36
- "@progress/kendo-angular-inputs": "19.3.0-develop.23",
37
- "@progress/kendo-angular-popup": "19.3.0-develop.23",
31
+ "@progress/kendo-angular-common": "19.3.0-develop.25",
32
+ "@progress/kendo-angular-buttons": "19.3.0-develop.25",
33
+ "@progress/kendo-angular-dialog": "19.3.0-develop.25",
34
+ "@progress/kendo-angular-dropdowns": "19.3.0-develop.25",
35
+ "@progress/kendo-angular-icons": "19.3.0-develop.25",
36
+ "@progress/kendo-angular-inputs": "19.3.0-develop.25",
37
+ "@progress/kendo-angular-popup": "19.3.0-develop.25",
38
38
  "rxjs": "^6.5.3 || ^7.0.0"
39
39
  },
40
40
  "dependencies": {
41
41
  "tslib": "^2.3.1",
42
- "@progress/kendo-angular-schematics": "19.3.0-develop.23",
43
- "@progress/kendo-diagram-common": "1.2.0-develop.9"
42
+ "@progress/kendo-angular-schematics": "19.3.0-develop.25",
43
+ "@progress/kendo-diagram-common": "1.2.1"
44
44
  },
45
45
  "schematics": "./schematics/collection.json",
46
46
  "module": "fesm2022/progress-kendo-angular-diagrams.mjs",