@balkangraph/orgchart.js 8.14.121 → 8.14.123

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.
package/orgchart.d.ts CHANGED
@@ -155,14 +155,12 @@ declare class OrgChart {
155
155
 
156
156
  /**
157
157
  * Removes an event listener previously registered. The event listener to be removed is identified using a combination of the event type and the event listener function itself. Returns true if success and false if fail.
158
- * ```typescript
159
158
  * let chart = new OrgChart('#tree', {});
160
159
  * let listener = function(sender, args){
161
160
  * console.log(sender.removeListener('update', listener));
162
161
  * };
163
162
  * chart.on('update', listener);
164
163
  * chart.load(nodes)
165
- * ```
166
164
  };
167
165
 
168
166
  family.on('update', listener);
@@ -1490,8 +1488,9 @@ declare class OrgChart {
1490
1488
 
1491
1489
  /**
1492
1490
  * Opens file upload dialog
1493
- * ```typescript
1491
+ * ```typescript
1494
1492
  * let chart = new OrgChart('#tree', {});
1493
+ *
1495
1494
  * chart.editUI.on('element-btn-click', function (sender, args) {
1496
1495
  * OrgChart.fileUploadDialog(function (file) {
1497
1496
  * var formData = new FormData();
@@ -1499,6 +1498,7 @@ declare class OrgChart {
1499
1498
  * alert('upload the file');
1500
1499
  * })
1501
1500
  * });
1501
+ *
1502
1502
  * chart.load(nodes)
1503
1503
  * ```
1504
1504
  */
@@ -2187,7 +2187,6 @@ declare namespace OrgChart {
2187
2187
  */
2188
2188
  const treeRightOffset: any;
2189
2189
 
2190
-
2191
2190
  interface options {
2192
2191
  /**
2193
2192
  * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
@@ -2243,14 +2242,9 @@ declare namespace OrgChart {
2243
2242
  */
2244
2243
  const COLLAPSE_SUB_CHILDRENS: number;
2245
2244
 
2246
- /**
2247
- * @ignore
2248
- */
2245
+
2249
2246
  var template: object;
2250
2247
 
2251
- /**
2252
- * @ignore
2253
- */
2254
2248
  interface node {
2255
2249
  /**
2256
2250
  * the same id you provided in the source node
@@ -2377,245 +2371,39 @@ declare namespace OrgChart {
2377
2371
  }
2378
2372
 
2379
2373
 
2380
- /**
2381
- * OrgChart JS template
2382
- * ```typescript
2383
- * OrgChart.templates.myTemplate = Object.assign({}, OrgChart.templates.ana);
2384
- * ```
2385
- */
2386
-
2387
2374
  interface template
2388
2375
  {
2389
- /**
2390
- * SVG <defs?> of the template
2391
- * ```typescript
2392
- * OrgChart.templates.rony.defs =
2393
- * `<filter id="{randId}" x="0" y="0" width="200%" height="200%">
2394
- * <feOffset result="offOut" in="SourceAlpha" dx="5" dy="5"></feOffset>
2395
- * <feGaussianBlur result="blurOut" in="offOut" stdDeviation="5"></feGaussianBlur>
2396
- * <feBlend in="SourceGraphic" in2="blurOut" mode="normal"></feBlend>
2397
- * </filter>`;
2398
- * ```
2399
- */
2400
2376
  defs?: string,
2401
-
2402
- /**
2403
- * Size of the template
2404
- * ```typescript
2405
- * OrgChart.templates.myTemplate.size = [200, 100];
2406
- * ```
2407
- */
2408
2377
  size?: Array<number>,
2409
-
2410
- /**
2411
- * Size of the expandCollapse button
2412
- * ```typescript
2413
- * OrgChart.templates.myTemplate.expandCollapseSize = 30;
2414
- * ```
2415
- */
2416
2378
  expandCollapseSize?: number,
2417
-
2418
- /**
2419
- * Adjust link positions
2420
- * ```typescript
2421
- * OrgChart.templates.myTemplate.linkAdjuster = {
2422
- * fromX: 0,
2423
- * fromY: -10,
2424
- * toX: 0,
2425
- * toY: 0
2426
- * }
2427
- * ```
2428
- */
2429
2379
  linkAdjuster?: {
2430
2380
  fromX?: number,
2431
2381
  fromY?: number,
2432
2382
  toX?: number,
2433
2383
  toY?: number
2434
2384
  },
2435
-
2436
- /**
2437
- * Ripple
2438
- * ```typescript
2439
- * OrgChart.templates.myTemplate.ripple =
2440
- * radius: 100,
2441
- * color: "#e6e6e6",
2442
- * rect: null
2443
- * }
2444
- * ```
2445
- */
2446
2385
  ripple?: {
2447
2386
  radius?: number,
2448
2387
  color?: string,
2449
2388
  rect?: Array<number>
2450
2389
  },
2451
-
2452
- /**
2453
- * Assistance link
2454
- * ```typescript
2455
- * OrgChart.templates.ana.assistanseLink =
2456
- * `<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="2px" fill="none"
2457
- * d="M{xa},{ya} {xb},{yb} {xc},{yc} {xd},{yd} L{xe},{ye}" />`;
2458
- * }
2459
- * ```
2460
- */
2461
2390
  assistanseLink?: string,
2462
-
2463
- /**
2464
- * Assistance link
2465
- * ```typescript
2466
- * OrgChart.templates.ana.svg =
2467
- * `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
2468
- * style="display:block;" width="{w}" height="{h}" viewBox="{viewBox}">{content}
2469
- * </svg>`;
2470
- * ```
2471
- */
2472
2391
  svg?: string,
2473
-
2474
- /**
2475
- * Link
2476
- * ```typescript
2477
- * OrgChart.templates.ana.link =
2478
- * `<path stroke-linejoin="round" stroke="#aeaeae" stroke-width="1px" fill="none" d="{rounded}" />`;
2479
- * ```
2480
- */
2481
2392
  link?: string,
2482
-
2483
- /**
2484
- * Pointer
2485
- * ```typescript
2486
- * OrgChart.templates.ana.pointer =
2487
- * `<g data-pointer="pointer" transform="matrix(0,0,0,0,100,100)">
2488
- * <radialGradient id="pointerGradient">
2489
- * <stop stop-color="#ffffff" offset="0" />
2490
- * <stop stop-color="#C1C1C1" offset="1" />
2491
- * </radialGradient>
2492
- * <circle cx="16" cy="16" r="16" stroke-width="1" stroke="#acacac" fill="url(#pointerGradient)"></circle>
2493
- * </g>`;
2494
- * ```
2495
- */
2496
2393
  pointer?: string,
2497
-
2498
- /**
2499
- * Node
2500
- * ```typescript
2501
- * OrgChart.templates.ana.node =
2502
- * `<rect x="0" y="0" height="{h}" width="{w}" fill="#039BE5" stroke-width="1" stroke="#aeaeae" rx="7" ry="7"></rect>`;
2503
- * ```
2504
- */
2505
2394
  node?: string,
2506
-
2507
- /**
2508
- * Plus/expand button
2509
- * ```typescript
2510
- * OrgChart.templates.ana.plus =
2511
- * `<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#aeaeae" stroke-width="1"></circle>
2512
- * <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line>
2513
- * <line x1="15" y1="4" x2="15" y2="26" stroke-width="1" stroke="#aeaeae"></line>`;
2514
- * ```
2515
- */
2516
2395
  plus?: string,
2517
-
2518
- /**
2519
- * Minus/collapse button
2520
- * ```typescript
2521
- * OrgChart.templates.ana.minus =
2522
- * `<circle cx="15" cy="15" r="15" fill="#ffffff" stroke="#aeaeae" stroke-width="1"></circle>
2523
- * <line x1="4" y1="15" x2="26" y2="15" stroke-width="1" stroke="#aeaeae"></line>`;
2524
- * ```
2525
- */
2526
2396
  minus?: string,
2527
-
2528
- /**
2529
- * Node menu button
2530
- * ```typescript
2531
- * OrgChart.templates.ana.nodeMenuButton =
2532
- * `<g style="cursor:pointer;" transform="matrix(1,0,0,1,225,105)" data-ctrl-n-menu-id="{id}">
2533
- * <rect x="-4" y="-10" fill="#000000" fill-opacity="0" width="22" height="22"></rect>
2534
- * <circle cx="0" cy="0" r="2" fill="#ffffff"></circle>
2535
- * <circle cx="7" cy="0" r="2" fill="#ffffff"></circle><circle cx="14" cy="0" r="2" fill="#ffffff"></circle>
2536
- * </g>`;
2537
- * ```
2538
- */
2539
2397
  nodeMenuButton?: string,
2540
-
2541
- /**
2542
- * Menu button
2543
- * ```typescript
2544
- * OrgChart.templates.ana.menuButton =
2545
- * `<div style="position:absolute;right:{p}px;top:{p}px; width:40px;height:50px;cursor:pointer;" data-ctrl-menu="">
2546
- * <hr style="background-color: #7A7A7A; height: 3px; border: none;">
2547
- * <hr style="background-color: #7A7A7A; height: 3px; border: none;">
2548
- * <hr style="background-color: #7A7A7A; height: 3px; border: none;">
2549
- * </div>`;
2550
- * ```
2551
- */
2552
2398
  menuButton?: string,
2553
-
2554
- /**
2555
- * Node image
2556
- * ```typescript
2557
- * OrgChart.templates.ana.img_0 =
2558
- * `<clipPath id="{randId}"><circle cx="50" cy="30" r="40"></circle></clipPath>
2559
- * <image preserveAspectRatio="xMidYMid slice" clip-path="url(#{randId})" xlink:href="{val}" x="10" y="-10" width="80" height="80">
2560
- * </image>`;
2561
- * ```
2562
- */
2563
2399
  img_0?: string,
2564
-
2565
- /**
2566
- * Link label
2567
- * ```typescript
2568
- * OrgChart.templates.ana.link_field_0 =
2569
- * `<text text-anchor="middle" fill="#aeaeae" data-width="290" x="0" y="0" style="font-size:10px;">{val}</text>`;
2570
- * ```
2571
- */
2572
2400
  link_field_0?: string,
2573
-
2574
- /**
2575
- * Edit form header color
2576
- * ```typescript
2577
- * OrgChart.templates.ana.editFormHeaderColor = '#039BE5'
2578
- * ```
2579
- */
2580
2401
  editFormHeaderColor?: string,
2581
-
2582
- /**
2583
- * EMode circle menu button
2584
- * ```typescript
2585
- * OrgChart.templates.ana.nodeCircleMenuButton = {
2586
- * radius: 18,
2587
- * x: 250,
2588
- * y: 60,
2589
- * color: '#fff',
2590
- * stroke: '#aeaeae'
2591
- * }
2592
- * ```
2593
- */
2594
2402
  nodeCircleMenuButton?: object,
2595
-
2596
- /**
2597
- * Minimized template
2598
- * ```typescript
2599
- * OrgChart.templates.ana.min = Object.assign({}, OrgChart.templates.ana);
2600
- * OrgChart.templates.ana.min.size = [250, 60];
2601
- * OrgChart.templates.ana.min.img_0 = "";
2602
- * OrgChart.templates.ana.min.field_0 =
2603
- * `<text data-width="230" style="font-size: 18px;" fill="#ffffff" x="125" y="40" text-anchor="middle">{val}</text>`;
2604
- * OrgChart.templates.ana.min.field_1 = "";
2605
- * ```
2606
- */
2607
2403
  min?: template,
2608
-
2609
- /**
2610
- * A field
2611
- * ```typescript
2612
- * OrgChart.templates.orgTemplate.number =
2613
- * `<text width="230" style="font-size: 11px;" fill="#64696b" x="150" y="53" text-anchor="start">{val}</text>`;
2614
- * ```
2615
- */
2616
2404
  [name: string]: any
2617
2405
  }
2618
-
2406
+
2619
2407
  interface editUI {
2620
2408
  /**
2621
2409
  * Inits edit ui
@@ -3984,10 +3772,7 @@ declare namespace OrgChart {
3984
3772
  elements?: Array<OrgChart.editFormElement | Array<OrgChart.editFormElement>>
3985
3773
  }
3986
3774
  }
3987
-
3988
- /**
3989
- * @ignore
3990
- */
3775
+
3991
3776
  var ui: {
3992
3777
  defs(fromrender: string): string;
3993
3778
  lonely(config: Object): string;
@@ -4001,8 +3786,5 @@ declare namespace OrgChart {
4001
3786
 
4002
3787
  };
4003
3788
 
4004
- /**
4005
- * @ignore
4006
- */
4007
3789
  var t: any;
4008
3790
  }export default OrgChart