You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It ignores any API changes except current highlight item position, it just positions highlight item, no layout recalculation or items rendering performed.
Copy file name to clipboardExpand all lines: samples/FirstOrganizationalChart.md
+30-7
Original file line number
Diff line number
Diff line change
@@ -16,8 +16,11 @@ The following is the minimal set of files needed to use Basic Primitives compone
16
16
The controls are state-full that means they keep internal state of the diagrams in order to minimize updates of visuals and avoid unnecessarily layout calculations. Library has two methods to construct instances of controls: use primitives.orgdiagram.Control for Organizational Diagrams and primitives.famdiagram.Control for Family Diagrams creation. The following code snippet creates organization chart inside empty div having "basicdiagram" id:
17
17
18
18
```Javascript
19
-
var control =primitives.orgdiagram.Control(document.getElementById("basicdiagram"), {
20
-
/* regular JSON object or instance of primitives.orgdiagram.Config class*/
Basic Primitives jQuery UI widgets are added as methods on jQuery object, so for example in order to create a new organization chart inside empty div having "basicdiagram" id, we have to call following jQuery method:
81
84
82
85
```Javascript
83
-
jQuery("#basicdiagram").orgDiagram({/*here is we define items & configuration options for our chart*/});
Plugin draws diagram in current PDFkit document layout transformation context, so developer can rotate, translate and scale diagrams on PDFkit document page.
0 commit comments