Skip to content

Commit a6d88c8

Browse files
Removed Canvas graphics support
1 parent e67c3e2 commit a6d88c8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+57
-628
lines changed

apireference/enums.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,6 @@ Defines option state.
8484
| `False` | number | `2` | Disabled |
8585
| `True` | number | `1` | Enabled |
8686

87-
## <a name="GraphicsType" id="GraphicsType">GraphicsType</a>
88-
Graphics elements rendering mode
89-
90-
| Name | Type | Value | Description |
91-
| --- | --- | --- | --- |
92-
| `Canvas` | number | `1` | HTML Canvas |
93-
| `SVG` | number | `0` | Scalable Vector Graphics |
94-
9587
## <a name="GroupByType" id="GroupByType">GroupByType</a>
9688
This enumeration defines objects gravity in the chart relative to parents and children. For example connection lines can be drawn with arrows, so this enumeration controls direction of arrows up towards parents or down towards children in the hierarchy. The other example is nodes placement close to their immediate parents or immediate children in case when parents and children are offset from them by multiple levels in hierarchy.
9789

apireference/famdiagram.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Family Chart configuration object. Use this object as a reference for available
2121
| `cursorItem` | string | `null` | Cursor item. Family Chart control has API options equivalent to regular UI controls. The cursor item is used to select single item in the hierarchy with mouse click, highlight item provides visual feed back on mouse over. Selected items collection is equivalent to checked items in ListView or TreeView controls. Chart navigation depends on current cursor item, chart shows cursor and its neighbours in full size regardless of enabled page fit mode. So cursor item plays a role of local zoom in the chart hierarchy. User navigates around chart via clicking and moving cursor item around and zooming into data around new cursor item. The control notifies about this property changes with `onHighlightChanging` and `onHighlightChanged` events. If `null` then no cursor item selected in the diagram. |
2222
| `emptyDiagramMessage` | string | `"Diagram is empty."` | Empty diagram message. This option is supposed to say user that chart is empty when no data is available for rendering. |
2323
| `enablePanning` | boolean | `true` | Enable panning. Enable chart panning with mouse drag & drop for desktop browsers. Disable it if you need to support items Drag & Drop. |
24-
| `graphicsType` | GraphicsType | `SVG` | Sets preferred rendering technology. If selected graphics type is not supported on the device, then control will auto fallback to the first available one. |
2524
| `hasSelectorCheckbox` | Enabled | `Auto` | Sets visibility of selection check boxes for the diagram nodes. `Auto` - visible for cursor item only `True` - visible `False` - hidden See `selectedItems` property. All items listed in this property are going to have checked selection checkboxes. Checkbox can be added to item template, in that case it should be named="checkbox", so control can use it as built in checkbox element. |
2625
| `highlightGravityRadius` | number | `40` | Highlight gravity radius. This property controls mouse over feedback and callout annotation visibility for nodes rendered as markers when diagram auto fits nodes into available screen space. It makes marker highlighted when mouse pointer is inside of the gravity radius cycle of the marker. This property is ignored when the nearest item is outside of the screen boundaries and is not visible to the end user. The normal item has mouse over feedback in form of highlight border only when mouse pointer is inside of its boundaries. |
2726
| `highlightItem` | string | `null` | Highlighted item. Shows highlight and callout annotation for given item id. It does not trigger diagram layout or scrolling so it can be used to synchronize mouse over feedback of the diagram nodes with other collection controls or UI elements. The control notifies about this property changes with `onHighlightChanging` and `onHighlightChanged` events. If `null` then no highlight shown on the diagram. |

apireference/orgdiagram.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Organizational Chart configuration object. Use this object as a reference for av
2121
| `cursorItem` | string | `null` | Cursor item. Organization Chart control has API options equivalent to regular UI controls. The cursor item is used to select single item in the hierarchy with mouse click, highlight item provides visual feed back on mouse over. Selected items collection is equivalent to checked items in ListView or TreeView controls. Chart navigation depends on current cursor item, chart shows cursor and its neighbours in full size regardless of enabled page fit mode. So cursor item plays a role of local zoom in the chart hierarchy. User navigates around chart via clicking and moving cursor item around and zooming into data around new cursor item. The control notifies about this property changes with `onHighlightChanging` and `onHighlightChanged` events. If `null` then no cursor item selected in the diagram. |
2222
| `emptyDiagramMessage` | string | `"Diagram is empty."` | Empty diagram message. This option is supposed to say user that chart is empty when no data is available for rendering. |
2323
| `enablePanning` | boolean | `true` | Enable panning. Enable chart panning with mouse drag & drop for desktop browsers. Disable it if you need to support items Drag & Drop. |
24-
| `graphicsType` | GraphicsType | `SVG` | Sets preferred rendering technology. If selected graphics type is not supported on the device, then control will auto fallback to the first available one. |
2524
| `hasSelectorCheckbox` | Enabled | `Auto` | Sets visibility of selection check boxes for the diagram nodes. `Auto` - visible for cursor item only `True` - visible `False` - hidden See `selectedItems` property. All items listed in this property are going to have checked selection checkboxes. Checkbox can be added to item template, in that case it should be named="checkbox", so control can use it as built in checkbox element. |
2625
| `highlightGravityRadius` | number | `40` | Highlight gravity radius. This property controls mouse over feedback and callout annotation visibility for nodes rendered as markers when diagram auto fits nodes into available screen space. It makes marker highlighted when mouse pointer is inside of the gravity radius cycle of the marker. This property is ignored when the nearest item is outside of the screen boundaries and is not visible to the end user. The normal item has mouse over feedback in form of highlight border only when mouse pointer is inside of its boundaries. |
2726
| `highlightItem` | string | `null` | Highlighted item. Shows highlight and callout annotation for given item id. It does not trigger diagram layout or scrolling so it can be used to synchronize mouse over feedback of the diagram nodes with other collection controls or UI elements. The control notifies about this property changes with `onHighlightChanging` and `onHighlightChanged` events. If `null` then no highlight shown on the diagram. |

apireference/readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
* [ConnectorType](enums.md#ConnectorType)
3434
* [ElbowType](enums.md#ElbowType)
3535
* [Enabled](enums.md#Enabled)
36-
* [GraphicsType](enums.md#GraphicsType)
3736
* [GroupByType](enums.md#GroupByType)
3837
* [HorizontalAlignmentType](enums.md#HorizontalAlignmentType)
3938
* [ItemType](enums.md#ItemType)

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#### Version 6.2.1
2+
* Removed Canvas support.
3+
* Removed GraphicsType enumeration.
4+
* Removed graphicsType from OrgConfig and FamConfig
15
#### Version 6.1.1
26
* Fixed levelOffset property to work regardless of empty levels
37
#### Version 6.1.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "basicprimitives",
33
"sideEffects": false,
44
"homepage": "https://www.basicprimitives.com/",
5-
"version": "6.1.1",
5+
"version": "6.2.1",
66
"author": "Basic Primitives Inc. <support@basicprimitives.com> (https://www.basicprimitives.com)",
77
"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.",
88
"repository": {

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Data visualization diagramming components library for dependencies visualization
1313
### Basic Primitives Diagrams for JavaScript
1414
* 100% client side JavaScript layout and rendering.
1515
* No dependencies on 3rd party libraries.
16-
* [SVG](https://en.wikipedia.org/wiki/Scalable_Vector_Graphics) and [Canvas](https://en.wikipedia.org/wiki/Canvas_element) support.
1716
* Webpack [Tree Shaking](https://webpack.js.org/guides/tree-shaking/) support
1817

1918
### Basic Primitives Diagrams for [React](https://reactjs.org/)

samples/DiagramSizing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The control does not update itself when the application changes the control's pl
99
* Chart does not update itself without the explicit call of "update" method or end-user mouse or keyboard action.
1010

1111
## Pixel alignment
12-
When we draw SVG and Canvas lines, it is essential to have them pixel aligned; otherwise, they become blurred. When we call the `update` method, the control aligns placeholder position within pixel range via adding additional margins to the div's left and top edges. Pixel rounded lines matching the monitor's physical pixels look sharp and clean.
12+
When we draw SVG elements, it is essential to have them pixel aligned; otherwise, they become blurred. When we call the `update` method, the control aligns placeholder position within pixel range via adding additional margins to the div's left and top edges. Pixel rounded lines matching the monitor's physical pixels look sharp and clean.
1313

1414
In the following example, we show how to handle the window size change event and use `Timer` to throttle excessive updates so our application stays responsive.
1515

samples/FirstOrganizationalChart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# First organizational chart
22

3-
Basic Primitives diagramming component library is implemented in JavaScript without dependencies on 3d party libraries and frameworks. It renders diagrams in browsers optionally using SVG, Canvas, and HTML templates. By default, it provides a basic node template, which you can see in the following example. It serves only one purpose to make the first-time user experience as simple as possible. The software engineer is supposed to provide nodes structure with id, name, and parent id properties only, so it is enough to render the first diagram.
3+
Basic Primitives diagramming component library is implemented in JavaScript without dependencies on 3d party libraries and frameworks. It renders diagrams in browsers using SVG and HTML templates. By default, it provides a basic node template, which you can see in the following example. It serves only one purpose to make the first-time user experience as simple as possible. The software engineer is supposed to provide nodes structure with id, name, and parent id properties only, so it is enough to render the first diagram.
44

55
Basic Primitives controls use existing HTML elements as placeholders on the web page to draw diagrams. The only HTML element which can serve as a placeholder is div.
66
When you resize the placeholder, the chart will not update its content automatically. It will not shrink or expand in size. To have the diagram fit to the new placeholder size, you have to explicitly call the "update" method on the control's API.

samples/ShapeAndBackgroundAnnotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Shape & Background Annotations
22
## Shape
3-
Diagrams support on-screen annotations for visualization of non - hierarchical relations between nodes. Components use SVG or Canvas to render geometrical figures depending on user options. If you need some specific custom shapes, you have to make changes to the source code or use images and custom items templates. Shape annotation supports the following figures:
3+
Diagrams support on-screen annotations for visualization of non - hierarchical relations between nodes. Components use SVG elements to render geometrical figures. If you need some specific custom shapes, you have to make changes to the source code or use images and custom items templates. Shape annotation supports the following figures:
44
* Rounded Rectangle
55
* Oval
66
* Triangle

0 commit comments

Comments
 (0)