Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-diagrams

Package Overview
Dependencies
Maintainers
4
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-diagrams - npm Package Compare versions

Comparing version 17.2.39 to 17.2.40

10

CHANGELOG.md

@@ -7,2 +7,12 @@ # Changelog

#### Bug Fixes
- `#243785` - The issue "Symbol palette first row expands twice on click" is now resolved.
- `#243648` - The issue "Exception raised while adding UML class shapes at runtime" is now resolved.
- `#146017` - The issue "Decorator is not aligned properly in palette when we set large stroke width for it" is now resolved.
## 17.2.39 (2019-07-30)
### Diagram
#### New Features

@@ -9,0 +19,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.2.39
* version : 17.2.40
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved.

@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license.

{
"_from": "@syncfusion/ej2-diagrams@*",
"_id": "@syncfusion/ej2-diagrams@17.2.36",
"_id": "@syncfusion/ej2-diagrams@17.2.39",
"_inBundle": false,
"_integrity": "sha512-/SctiGoyySTSFz40rsTDHfUIT2DtS3vN6ipUt2GEVzCV2oBdIk0aaprDBWSDb29WYlGJz0LY5HW2nGz1Z2y/1Q==",
"_integrity": "sha512-QP0LuqynG1gNV1MMR9yAHPEkeCcjvl2+YfSBbnGajLgDrxDWNhmG/n0t4zuqcjyqvYajw4Com1eUz/bhhZos9Q==",
"_location": "/@syncfusion/ej2-diagrams",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-diagrams/-/ej2-diagrams-17.2.36.tgz",
"_shasum": "85d5c77d435429475b1eb7af20014b8688a3236d",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-diagrams/-/ej2-diagrams-17.2.39.tgz",
"_shasum": "a19144a502893bc74a44619398ce045645cacf7a",
"_spec": "@syncfusion/ej2-diagrams@*",

@@ -39,8 +39,8 @@ "_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~17.2.39",
"@syncfusion/ej2-base": "~17.2.40",
"@syncfusion/ej2-buttons": "~17.2.35",
"@syncfusion/ej2-data": "~17.2.39",
"@syncfusion/ej2-inputs": "~17.2.39",
"@syncfusion/ej2-inputs": "~17.2.40",
"@syncfusion/ej2-lists": "~17.2.34",
"@syncfusion/ej2-navigations": "~17.2.39",
"@syncfusion/ej2-navigations": "~17.2.40",
"@syncfusion/ej2-popups": "~17.2.35"

@@ -70,4 +70,4 @@ },

"typings": "index.d.ts",
"version": "17.2.39",
"version": "17.2.40",
"sideEffects": false
}

@@ -69,2 +69,3 @@ import { SelectorModel } from '../interaction/selector-model';

* Used to stored the added node cause.
* @blazorType object
*/

@@ -71,0 +72,0 @@ historyAction ?: DiagramHistoryAction;

@@ -878,5 +878,2 @@ var __extends = (this && this.__extends) || (function () {

len = (len === 0) ? 1 : len;
var width = connector.style.strokeWidth - 1;
point.x = (Math.round(start.x + width * (end.x - start.x) / len));
point.y = (Math.round(start.y + width * (end.y - start.y) / len));
var strokeWidth = 1;

@@ -887,2 +884,5 @@ var node = isSource ? connector.sourceWrapper : connector.targetWrapper;

}
var width = strokeWidth - 1;
point.x = (Math.round(start.x + width * (end.x - start.x) / len));
point.y = (Math.round(start.y + width * (end.y - start.y) / len));
if ((isSource && connector.sourceDecorator.shape !== 'None') ||

@@ -889,0 +889,0 @@ (!isSource && connector.targetDecorator.shape !== 'None')) {

@@ -15,3 +15,3 @@ import { PointModel } from '../primitives/point-model';

/** @private */
export declare function removeElementsByClass(className: string): void;
export declare function removeElementsByClass(className: string, id?: string): void;
/** @private */

@@ -18,0 +18,0 @@ export declare function findSegmentPoints(element: PathElement): PointModel[];

@@ -13,4 +13,10 @@ import { Rect } from '../primitives/rect';

/** @private */
export function removeElementsByClass(className) {
var elements = document.getElementsByClassName(className);
export function removeElementsByClass(className, id) {
var elements;
if (id) {
elements = document.getElementById(id).getElementsByClassName(className);
}
else {
elements = document.getElementsByClassName(className);
}
while (elements.length > 0) {

@@ -619,3 +625,3 @@ elements[0].parentNode.removeChild(elements[0]);

var addInfo = 'addInfo';
content = element.diagramId + 'content_diagram';
content = node[id] + 'content_diagram';
sentNode[id] = node[id];

@@ -641,8 +647,14 @@ sentNode[height] = node[height];

if (typeof element.content === 'string') {
var compiledString = void 0;
compiledString = compile(element.content);
for (var _i = 0, _a = compiledString(sentNode, null, null, content); _i < _a.length; _i++) {
item = _a[_i];
div.appendChild(item);
var template = document.getElementById(element.content);
if (template) {
div.appendChild(template);
}
else {
var compiledString = void 0;
compiledString = compile(element.content);
for (var _i = 0, _a = compiledString(sentNode, null, null, content); _i < _a.length; _i++) {
item = _a[_i];
div.appendChild(item);
}
}
}

@@ -649,0 +661,0 @@ else {

@@ -254,3 +254,4 @@ import { Component, ChildProperty } from '@syncfusion/ej2-base';

private isExpand;
private isCollapsed;
private isExpandMode;
private isMethod;
/**

@@ -257,0 +258,0 @@ * Constructor for creating the component

@@ -125,3 +125,4 @@ var __extends = (this && this.__extends) || (function () {

_this.isExpand = false;
_this.isCollapsed = false;
_this.isExpandMode = false;
_this.isMethod = false;
/**

@@ -209,3 +210,3 @@ * helper method for draggable

this.accordionElement.items[index].expanded = newProp.palettes[index].expanded;
refresh = true;
this.isExpand = true;
}

@@ -215,10 +216,5 @@ else {

}
this.isExpand = true;
this.accordionElement.items[index].expanded = newProp.palettes[index].expanded;
if (index === 0) {
this.isCollapsed = true;
if (!this.isExpandMode && !this.isMethod && !this.isExpand) {
this.isExpand = true;
}
else {
this.isCollapsed = false;
}
}

@@ -238,2 +234,3 @@ }

refresh = true;
this.isExpandMode = true;
break;

@@ -256,4 +253,5 @@ case 'allowDrag':

}
if (this.isExpand && !refresh && this.isCollapsed) {
if (this.isExpand && !refresh) {
this.refresh();
this.isExpand = false;
for (var p = 0; p < this.palettes.length; p++) {

@@ -269,2 +267,3 @@ var paletteElement = this.palettes[p].id;

}
this.isMethod = false;
};

@@ -642,4 +641,10 @@ /**

stackPanel.style.fill = stackPanel.style.strokeColor = 'transparent';
stackPanel.offsetX = symbol.style.strokeWidth / 2;
stackPanel.offsetY = symbol.style.strokeWidth / 2;
if (symbol instanceof Node) {
stackPanel.offsetX = symbol.style.strokeWidth / 2;
stackPanel.offsetY = symbol.style.strokeWidth / 2;
}
else {
stackPanel.offsetX = 0.5;
stackPanel.offsetY = 0.5;
}
//symbol description-textElement

@@ -982,2 +987,3 @@ this.getSymbolDescription(symbolInfo, width, stackPanel);

SymbolPalette.prototype.mouseUp = function (evt) {
this.isMethod = true;
if (evt && evt.target) {

@@ -1221,3 +1227,3 @@ if (evt.srcElement.id === 'iconSearch') {

this.accordionElement.items = [];
removeElementsByClass('e-remove-palette');
removeElementsByClass('e-remove-palette', this.element.id);
this.updatePalettes();

@@ -1224,0 +1230,0 @@ this.accordionElement.dataBind();

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc