@balkangraph/orgchart.js 8.14.114 → 8.14.116

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
@@ -2187,6 +2187,7 @@ declare namespace OrgChart {
2187
2187
  */
2188
2188
  const treeRightOffset: any;
2189
2189
 
2190
+
2190
2191
  interface options {
2191
2192
  /**
2192
2193
  * With the drag and drop features enabled you can move nodes easily and change the tree structure. Default value - *false*.
@@ -2242,9 +2243,14 @@ declare namespace OrgChart {
2242
2243
  */
2243
2244
  const COLLAPSE_SUB_CHILDRENS: number;
2244
2245
 
2245
-
2246
+ /**
2247
+ *
2248
+ */
2246
2249
  var template: object;
2247
2250
 
2251
+ /**
2252
+ * @ignore
2253
+ */
2248
2254
  interface node {
2249
2255
  /**
2250
2256
  * the same id you provided in the source node
@@ -2371,36 +2377,242 @@ declare namespace OrgChart {
2371
2377
  }
2372
2378
 
2373
2379
 
2380
+ /**
2381
+ * OrgChart JS template
2382
+ * ```typescript
2383
+ * OrgChart.templates.myTemplate = Object.assign({}, OrgChart.templates.ana);
2384
+ * ```
2385
+ */
2386
+
2374
2387
  interface template
2375
2388
  {
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
+ */
2376
2400
  defs?: string,
2401
+
2402
+ /**
2403
+ * Size of the template
2404
+ * ```typescript
2405
+ * OrgChart.templates.myTemplate.size = [200, 100];
2406
+ * ```
2407
+ */
2377
2408
  size?: Array<number>,
2409
+
2410
+ /**
2411
+ * Size of the expandCollapse button
2412
+ * ```typescript
2413
+ * OrgChart.templates.myTemplate.expandCollapseSize = 30;
2414
+ * ```
2415
+ */
2378
2416
  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
+ */
2379
2429
  linkAdjuster?: {
2380
2430
  fromX?: number,
2381
2431
  fromY?: number,
2382
2432
  toX?: number,
2383
2433
  toY?: number
2384
2434
  },
2435
+
2436
+ /**
2437
+ * Ripple
2438
+ * ```typescript
2439
+ * OrgChart.templates.myTemplate.ripple =
2440
+ * radius: 100,
2441
+ * color: "#e6e6e6",
2442
+ * rect: null
2443
+ * }
2444
+ * ```
2445
+ */
2385
2446
  ripple?: {
2386
2447
  radius?: number,
2387
2448
  color?: string,
2388
2449
  rect?: Array<number>
2389
2450
  },
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
+ */
2390
2461
  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
+ */
2391
2472
  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
+ */
2392
2481
  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
+ */
2393
2496
  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
+ */
2394
2505
  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
+ */
2395
2516
  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
+ */
2396
2526
  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
+ */
2397
2539
  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
+ */
2398
2552
  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
+ */
2399
2563
  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
+ */
2400
2572
  link_field_0?: string,
2573
+
2574
+ /**
2575
+ * Edit form header color
2576
+ * ```typescript
2577
+ * OrgChart.templates.ana.editFormHeaderColor = '#039BE5'
2578
+ * ```
2579
+ */
2401
2580
  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
+ */
2402
2594
  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
+ */
2403
2607
  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
+ */
2404
2616
  [name: string]: any
2405
2617
  }
2406
2618
 
@@ -3772,7 +3984,10 @@ declare namespace OrgChart {
3772
3984
  elements?: Array<OrgChart.editFormElement | Array<OrgChart.editFormElement>>
3773
3985
  }
3774
3986
  }
3775
-
3987
+
3988
+ /**
3989
+ * @ignore
3990
+ */
3776
3991
  var ui: {
3777
3992
  defs(fromrender: string): string;
3778
3993
  lonely(config: Object): string;
@@ -3786,5 +4001,8 @@ declare namespace OrgChart {
3786
4001
 
3787
4002
  };
3788
4003
 
4004
+ /**
4005
+ * @ignore
4006
+ */
3789
4007
  var t: any;
3790
4008
  }export default OrgChart