basicprimitives
Advanced tools
Comparing version 6.3.0 to 6.3.1
@@ -0,1 +1,4 @@ | ||
#### Version 6.3.1 | ||
* Fixed family diagram padding | ||
* Fixed `onButtonsRender` in `TemplateConfig` | ||
#### Version 6.3.0 | ||
@@ -2,0 +5,0 @@ **Warning**: Non-backward compatible API changes! |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://www.basicprimitives.com/", | ||
"version": "6.3.0", | ||
"version": "6.3.1", | ||
"author": "Basic Primitives Inc. <support@basicprimitives.com> (https://www.basicprimitives.com)", | ||
@@ -8,0 +8,0 @@ "description": "Basic Primitives Diagrams for JavaScript - data visualization components library that implements organizational chart and multi-parent dependency diagrams, contains implementations of JavaScript Controls and PDF rendering plugins.", |
@@ -320,3 +320,3 @@ import {NavigationMode, PageFitMode, Visibility, OrientationType, VerticalAlignmentType, | ||
* On buttons panel render event. This callback function is called to render context of buttons panel. | ||
* It is used to replace `buttons` collection property in ReactJS component. So we preserve context buttons panel as a functional | ||
* It is used to replace `buttons` collection property in the control. So we preserve context buttons panel as a functional | ||
* concept, but eliminate buttons customization API. | ||
@@ -323,0 +323,0 @@ * |
@@ -187,8 +187,11 @@ import Thickness from '../graphics/structs/Thickness'; | ||
/** | ||
* This callback function is used in React component. It basically makes buttons obsolete | ||
* and gives end user possibility to render any content in buttons panel. | ||
* | ||
* @ignore | ||
* On buttons panel render event. This callback function is called to render context of buttons panel. | ||
* It is used to replace `buttons` collection property in the control. So we preserve context buttons panel as a functional | ||
* concept, but eliminate buttons customization API. | ||
* | ||
* @callback | ||
* @param {Object} event Mouse event | ||
* @param {EventArgs} data Context information | ||
*/ | ||
this.onButtonsRender = null; | ||
}; |
@@ -12,3 +12,2 @@ import TemplateParams from '../../models/TemplateParams'; | ||
var itemsSizesOptions = itemsSizesOptionTask.getOptions(), | ||
hasButtonsRender = (itemsSizesOptions.onButtonsRender != null), | ||
cursorItem = cursorItemOptionTask.getCursorItem(), | ||
@@ -25,3 +24,4 @@ items = itemsSizesOptions.items, | ||
template = readTemplatesTask.getTemplate(itemConfig.templateName, itemsSizesOptions.defaultTemplateName, readTemplatesTask.DefaultWidgetTemplateName), | ||
templateConfig = template.templateConfig; | ||
templateConfig = template.templateConfig, | ||
hasButtonsRender = itemsSizesOptions.onButtonsRender != null || templateConfig.onButtonsRender != null; | ||
@@ -28,0 +28,0 @@ templateParams.template = template; |
@@ -180,4 +180,5 @@ import Rect from '../../../graphics/structs/Rect'; | ||
var treeItemPosition = treeItemsPositions[nodeId]; | ||
var nodeOffset = familyAlignment.getOffset(nodeId) - treeItemPosition.leftPadding - treeItemPosition.actualSize.width / 2; | ||
leftMargin = (leftMargin == null) ? nodeOffset : Math.min(leftMargin, nodeOffset); | ||
var childLayoutPosition = childLayoutsPositions[nodeId]; | ||
var nodeOffset = familyAlignment.getOffset(nodeId) - childLayoutPosition.leftPadding - treeItemPosition.actualSize.width / 2; | ||
leftMargin = (leftMargin === null) ? nodeOffset : Math.min(leftMargin, nodeOffset); | ||
} | ||
@@ -184,0 +185,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1623590
348
38733