@d3plus/core 3.0.0-alpha.4 → 3.0.0
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/README.md +28 -28
- package/es/src/charts/Viz.js +6 -1
- package/package.json +8 -8
- package/umd/d3plus-core.full.js +7 -2
- package/umd/d3plus-core.full.js.map +1 -1
- package/umd/d3plus-core.full.min.js +2 -2
- package/umd/d3plus-core.js +7 -2
- package/umd/d3plus-core.js.map +1 -1
- package/umd/d3plus-core.min.js +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ import modules from "@d3plus/core";
|
|
|
13
13
|
In vanilla JavaScript, a `d3plus` global is exported from the pre-bundled version:
|
|
14
14
|
|
|
15
15
|
```html
|
|
16
|
-
<script src="https://cdn.jsdelivr.net/npm/@d3plus/core@3.0.0
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/npm/@d3plus/core@3.0.0"></script>
|
|
17
17
|
<script>
|
|
18
18
|
console.log(d3plus);
|
|
19
19
|
</script>
|
|
@@ -2527,7 +2527,7 @@ If *value* is specified, sets the time accessor to the specified function or str
|
|
|
2527
2527
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2528
2528
|
|
|
2529
2529
|
|
|
2530
|
-
<a name="Viz.timeFilter" href="#Viz.timeFilter">#</a> Viz.**timeFilter**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2530
|
+
<a name="Viz.timeFilter" href="#Viz.timeFilter">#</a> Viz.**timeFilter**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1504)
|
|
2531
2531
|
|
|
2532
2532
|
If *value* is specified, sets the time filter to the specified function and returns the current class instance.
|
|
2533
2533
|
|
|
@@ -2535,7 +2535,7 @@ If *value* is specified, sets the time filter to the specified function and retu
|
|
|
2535
2535
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2536
2536
|
|
|
2537
2537
|
|
|
2538
|
-
<a name="Viz.timeline" href="#Viz.timeline">#</a> Viz.**timeline**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2538
|
+
<a name="Viz.timeline" href="#Viz.timeline">#</a> Viz.**timeline**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1514)
|
|
2539
2539
|
|
|
2540
2540
|
If *value* is specified, toggles the timeline based on the specified boolean and returns the current class instance.
|
|
2541
2541
|
|
|
@@ -2543,7 +2543,7 @@ If *value* is specified, toggles the timeline based on the specified boolean and
|
|
|
2543
2543
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2544
2544
|
|
|
2545
2545
|
|
|
2546
|
-
<a name="Viz.timelineConfig" href="#Viz.timelineConfig">#</a> Viz.**timelineConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2546
|
+
<a name="Viz.timelineConfig" href="#Viz.timelineConfig">#</a> Viz.**timelineConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1524)
|
|
2547
2547
|
|
|
2548
2548
|
If *value* is specified, sets the config method for the timeline and returns the current class instance.
|
|
2549
2549
|
|
|
@@ -2551,7 +2551,7 @@ If *value* is specified, sets the config method for the timeline and returns the
|
|
|
2551
2551
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2552
2552
|
|
|
2553
2553
|
|
|
2554
|
-
<a name="Viz.timelineDefault" href="#Viz.timelineDefault">#</a> Viz.**timelineDefault**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2554
|
+
<a name="Viz.timelineDefault" href="#Viz.timelineDefault">#</a> Viz.**timelineDefault**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1534)
|
|
2555
2555
|
|
|
2556
2556
|
Sets the starting time or range for the timeline. The value provided can either be a single Date/String, or an Array of 2 values representing the min and max.
|
|
2557
2557
|
|
|
@@ -2559,7 +2559,7 @@ Sets the starting time or range for the timeline. The value provided can either
|
|
|
2559
2559
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2560
2560
|
|
|
2561
2561
|
|
|
2562
|
-
<a name="Viz.timelinePadding" href="#Viz.timelinePadding">#</a> Viz.**timelinePadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2562
|
+
<a name="Viz.timelinePadding" href="#Viz.timelinePadding">#</a> Viz.**timelinePadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1549)
|
|
2563
2563
|
|
|
2564
2564
|
Tells the timeline whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the timeline appears centered underneath the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
2565
2565
|
|
|
@@ -2567,7 +2567,7 @@ Tells the timeline whether or not to use the internal padding defined by the vis
|
|
|
2567
2567
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2568
2568
|
|
|
2569
2569
|
|
|
2570
|
-
<a name="Viz.title" href="#Viz.title">#</a> Viz.**title**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2570
|
+
<a name="Viz.title" href="#Viz.title">#</a> Viz.**title**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1559)
|
|
2571
2571
|
|
|
2572
2572
|
If *value* is specified, sets the title accessor to the specified function or string and returns the current class instance.
|
|
2573
2573
|
|
|
@@ -2575,7 +2575,7 @@ If *value* is specified, sets the title accessor to the specified function or st
|
|
|
2575
2575
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2576
2576
|
|
|
2577
2577
|
|
|
2578
|
-
<a name="Viz.titleConfig" href="#Viz.titleConfig">#</a> Viz.**titleConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2578
|
+
<a name="Viz.titleConfig" href="#Viz.titleConfig">#</a> Viz.**titleConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1569)
|
|
2579
2579
|
|
|
2580
2580
|
If *value* is specified, sets the config method for the title and returns the current class instance.
|
|
2581
2581
|
|
|
@@ -2583,7 +2583,7 @@ If *value* is specified, sets the config method for the title and returns the cu
|
|
|
2583
2583
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2584
2584
|
|
|
2585
2585
|
|
|
2586
|
-
<a name="Viz.titlePadding" href="#Viz.titlePadding">#</a> Viz.**titlePadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2586
|
+
<a name="Viz.titlePadding" href="#Viz.titlePadding">#</a> Viz.**titlePadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1579)
|
|
2587
2587
|
|
|
2588
2588
|
Tells the title whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the title appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
2589
2589
|
|
|
@@ -2591,7 +2591,7 @@ Tells the title whether or not to use the internal padding defined by the visual
|
|
|
2591
2591
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2592
2592
|
|
|
2593
2593
|
|
|
2594
|
-
<a name="Viz.tooltip" href="#Viz.tooltip">#</a> Viz.**tooltip**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2594
|
+
<a name="Viz.tooltip" href="#Viz.tooltip">#</a> Viz.**tooltip**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1589)
|
|
2595
2595
|
|
|
2596
2596
|
If *value* is specified, toggles the tooltip based on the specified boolean and returns the current class instance.
|
|
2597
2597
|
|
|
@@ -2599,7 +2599,7 @@ If *value* is specified, toggles the tooltip based on the specified boolean and
|
|
|
2599
2599
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2600
2600
|
|
|
2601
2601
|
|
|
2602
|
-
<a name="Viz.tooltipConfig" href="#Viz.tooltipConfig">#</a> Viz.**tooltipConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2602
|
+
<a name="Viz.tooltipConfig" href="#Viz.tooltipConfig">#</a> Viz.**tooltipConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1599)
|
|
2603
2603
|
|
|
2604
2604
|
If *value* is specified, sets the config method for the tooltip and returns the current class instance.
|
|
2605
2605
|
|
|
@@ -2607,7 +2607,7 @@ If *value* is specified, sets the config method for the tooltip and returns the
|
|
|
2607
2607
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2608
2608
|
|
|
2609
2609
|
|
|
2610
|
-
<a name="Viz.total" href="#Viz.total">#</a> Viz.**total**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2610
|
+
<a name="Viz.total" href="#Viz.total">#</a> Viz.**total**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1609)
|
|
2611
2611
|
|
|
2612
2612
|
If *value* is specified, sets the total accessor to the specified function or string and returns the current class instance.
|
|
2613
2613
|
|
|
@@ -2615,7 +2615,7 @@ If *value* is specified, sets the total accessor to the specified function or st
|
|
|
2615
2615
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2616
2616
|
|
|
2617
2617
|
|
|
2618
|
-
<a name="Viz.totalConfig" href="#Viz.totalConfig">#</a> Viz.**totalConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2618
|
+
<a name="Viz.totalConfig" href="#Viz.totalConfig">#</a> Viz.**totalConfig**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1625)
|
|
2619
2619
|
|
|
2620
2620
|
If *value* is specified, sets the config method for the total and returns the current class instance.
|
|
2621
2621
|
|
|
@@ -2623,7 +2623,7 @@ If *value* is specified, sets the config method for the total and returns the cu
|
|
|
2623
2623
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2624
2624
|
|
|
2625
2625
|
|
|
2626
|
-
<a name="Viz.totalFormat" href="#Viz.totalFormat">#</a> Viz.**totalFormat**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2626
|
+
<a name="Viz.totalFormat" href="#Viz.totalFormat">#</a> Viz.**totalFormat**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1635)
|
|
2627
2627
|
|
|
2628
2628
|
Formatter function for the value in the total bar.
|
|
2629
2629
|
|
|
@@ -2631,7 +2631,7 @@ Formatter function for the value in the total bar.
|
|
|
2631
2631
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2632
2632
|
|
|
2633
2633
|
|
|
2634
|
-
<a name="Viz.totalPadding" href="#Viz.totalPadding">#</a> Viz.**totalPadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2634
|
+
<a name="Viz.totalPadding" href="#Viz.totalPadding">#</a> Viz.**totalPadding**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1645)
|
|
2635
2635
|
|
|
2636
2636
|
Tells the total whether or not to use the internal padding defined by the visualization in it's positioning. For example, d3plus-plot will add padding on the left so that the total appears centered above the x-axis. By default, this padding is only applied on screens larger than 600 pixels wide.
|
|
2637
2637
|
|
|
@@ -2639,7 +2639,7 @@ Tells the total whether or not to use the internal padding defined by the visual
|
|
|
2639
2639
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2640
2640
|
|
|
2641
2641
|
|
|
2642
|
-
<a name="Viz.width" href="#Viz.width">#</a> Viz.**width**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2642
|
+
<a name="Viz.width" href="#Viz.width">#</a> Viz.**width**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1655)
|
|
2643
2643
|
|
|
2644
2644
|
If *value* is specified, sets the overallwidth to the specified number and returns the current class instance.
|
|
2645
2645
|
|
|
@@ -2647,7 +2647,7 @@ If *value* is specified, sets the overallwidth to the specified number and retur
|
|
|
2647
2647
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2648
2648
|
|
|
2649
2649
|
|
|
2650
|
-
<a name="Viz.zoom" href="#Viz.zoom">#</a> Viz.**zoom**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2650
|
+
<a name="Viz.zoom" href="#Viz.zoom">#</a> Viz.**zoom**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1665)
|
|
2651
2651
|
|
|
2652
2652
|
Toggles the ability to zoom/pan the visualization. Certain parameters for zooming are required to be hooked up on a visualization by visualization basis.
|
|
2653
2653
|
|
|
@@ -2655,7 +2655,7 @@ Toggles the ability to zoom/pan the visualization. Certain parameters for zoomin
|
|
|
2655
2655
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2656
2656
|
|
|
2657
2657
|
|
|
2658
|
-
<a name="Viz.zoomBrushHandleSize" href="#Viz.zoomBrushHandleSize">#</a> Viz.**zoomBrushHandleSize**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2658
|
+
<a name="Viz.zoomBrushHandleSize" href="#Viz.zoomBrushHandleSize">#</a> Viz.**zoomBrushHandleSize**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1675)
|
|
2659
2659
|
|
|
2660
2660
|
The pixel stroke-width of the zoom brush area.
|
|
2661
2661
|
|
|
@@ -2663,7 +2663,7 @@ The pixel stroke-width of the zoom brush area.
|
|
|
2663
2663
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2664
2664
|
|
|
2665
2665
|
|
|
2666
|
-
<a name="Viz.zoomBrushHandleStyle" href="#Viz.zoomBrushHandleStyle">#</a> Viz.**zoomBrushHandleStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2666
|
+
<a name="Viz.zoomBrushHandleStyle" href="#Viz.zoomBrushHandleStyle">#</a> Viz.**zoomBrushHandleStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1685)
|
|
2667
2667
|
|
|
2668
2668
|
An object containing CSS key/value pairs that is used to style the outer handle area of the zoom brush. Passing `false` will remove all default styling.
|
|
2669
2669
|
|
|
@@ -2671,7 +2671,7 @@ An object containing CSS key/value pairs that is used to style the outer handle
|
|
|
2671
2671
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2672
2672
|
|
|
2673
2673
|
|
|
2674
|
-
<a name="Viz.zoomBrushSelectionStyle" href="#Viz.zoomBrushSelectionStyle">#</a> Viz.**zoomBrushSelectionStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2674
|
+
<a name="Viz.zoomBrushSelectionStyle" href="#Viz.zoomBrushSelectionStyle">#</a> Viz.**zoomBrushSelectionStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1695)
|
|
2675
2675
|
|
|
2676
2676
|
An object containing CSS key/value pairs that is used to style the inner selection area of the zoom brush. Passing `false` will remove all default styling.
|
|
2677
2677
|
|
|
@@ -2679,7 +2679,7 @@ An object containing CSS key/value pairs that is used to style the inner selecti
|
|
|
2679
2679
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2680
2680
|
|
|
2681
2681
|
|
|
2682
|
-
<a name="Viz.zoomControlStyle" href="#Viz.zoomControlStyle">#</a> Viz.**zoomControlStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2682
|
+
<a name="Viz.zoomControlStyle" href="#Viz.zoomControlStyle">#</a> Viz.**zoomControlStyle**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1705)
|
|
2683
2683
|
|
|
2684
2684
|
An object containing CSS key/value pairs that is used to style each zoom control button (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
2685
2685
|
|
|
@@ -2687,7 +2687,7 @@ An object containing CSS key/value pairs that is used to style each zoom control
|
|
|
2687
2687
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2688
2688
|
|
|
2689
2689
|
|
|
2690
|
-
<a name="Viz.zoomControlStyleActive" href="#Viz.zoomControlStyleActive">#</a> Viz.**zoomControlStyleActive**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2690
|
+
<a name="Viz.zoomControlStyleActive" href="#Viz.zoomControlStyleActive">#</a> Viz.**zoomControlStyleActive**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1715)
|
|
2691
2691
|
|
|
2692
2692
|
An object containing CSS key/value pairs that is used to style each zoom control button when active (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
2693
2693
|
|
|
@@ -2695,7 +2695,7 @@ An object containing CSS key/value pairs that is used to style each zoom control
|
|
|
2695
2695
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2696
2696
|
|
|
2697
2697
|
|
|
2698
|
-
<a name="Viz.zoomControlStyleHover" href="#Viz.zoomControlStyleHover">#</a> Viz.**zoomControlStyleHover**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2698
|
+
<a name="Viz.zoomControlStyleHover" href="#Viz.zoomControlStyleHover">#</a> Viz.**zoomControlStyleHover**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1725)
|
|
2699
2699
|
|
|
2700
2700
|
An object containing CSS key/value pairs that is used to style each zoom control button on hover (`.zoom-in`, `.zoom-out`, `.zoom-reset`, and `.zoom-brush`). Passing `false` will remove all default styling.
|
|
2701
2701
|
|
|
@@ -2703,7 +2703,7 @@ An object containing CSS key/value pairs that is used to style each zoom control
|
|
|
2703
2703
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2704
2704
|
|
|
2705
2705
|
|
|
2706
|
-
<a name="Viz.zoomFactor" href="#Viz.zoomFactor">#</a> Viz.**zoomFactor**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2706
|
+
<a name="Viz.zoomFactor" href="#Viz.zoomFactor">#</a> Viz.**zoomFactor**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1735)
|
|
2707
2707
|
|
|
2708
2708
|
The multiplier that is used in with the control buttons when zooming in and out.
|
|
2709
2709
|
|
|
@@ -2711,7 +2711,7 @@ The multiplier that is used in with the control buttons when zooming in and out.
|
|
|
2711
2711
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2712
2712
|
|
|
2713
2713
|
|
|
2714
|
-
<a name="Viz.zoomMax" href="#Viz.zoomMax">#</a> Viz.**zoomMax**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2714
|
+
<a name="Viz.zoomMax" href="#Viz.zoomMax">#</a> Viz.**zoomMax**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1745)
|
|
2715
2715
|
|
|
2716
2716
|
If *value* is specified, sets the max zoom scale to the specified number and returns the current class instance. If *value* is not specified, returns the current max zoom scale.
|
|
2717
2717
|
|
|
@@ -2719,7 +2719,7 @@ If *value* is specified, sets the max zoom scale to the specified number and ret
|
|
|
2719
2719
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2720
2720
|
|
|
2721
2721
|
|
|
2722
|
-
<a name="Viz.zoomPan" href="#Viz.zoomPan">#</a> Viz.**zoomPan**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2722
|
+
<a name="Viz.zoomPan" href="#Viz.zoomPan">#</a> Viz.**zoomPan**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1755)
|
|
2723
2723
|
|
|
2724
2724
|
If *value* is specified, toggles panning to the specified boolean and returns the current class instance. If *value* is not specified, returns the current panning value.
|
|
2725
2725
|
|
|
@@ -2727,7 +2727,7 @@ If *value* is specified, toggles panning to the specified boolean and returns th
|
|
|
2727
2727
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2728
2728
|
|
|
2729
2729
|
|
|
2730
|
-
<a name="Viz.zoomPadding" href="#Viz.zoomPadding">#</a> Viz.**zoomPadding**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2730
|
+
<a name="Viz.zoomPadding" href="#Viz.zoomPadding">#</a> Viz.**zoomPadding**(*value*) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1765)
|
|
2731
2731
|
|
|
2732
2732
|
A pixel value to be used to pad all sides of a zoomed area.
|
|
2733
2733
|
|
|
@@ -2735,7 +2735,7 @@ A pixel value to be used to pad all sides of a zoomed area.
|
|
|
2735
2735
|
This is a static method of [<code>Viz</code>](#Viz), and is chainable with other methods of this Class.
|
|
2736
2736
|
|
|
2737
2737
|
|
|
2738
|
-
<a name="Viz.zoomScroll" href="#Viz.zoomScroll">#</a> Viz.**zoomScroll**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#
|
|
2738
|
+
<a name="Viz.zoomScroll" href="#Viz.zoomScroll">#</a> Viz.**zoomScroll**([*value*]) [<>](https://github.com/d3plus/d3plus/blob/main/packages/core/src/charts/Viz.js#L1775)
|
|
2739
2739
|
|
|
2740
2740
|
If *value* is specified, toggles scroll zooming to the specified boolean and returns the current class instance. If *value* is not specified, returns the current scroll zooming value.
|
|
2741
2741
|
|
package/es/src/charts/Viz.js
CHANGED
|
@@ -1683,7 +1683,7 @@ function value(d) {
|
|
|
1683
1683
|
if (arguments.length) {
|
|
1684
1684
|
if (typeof _ === "function") {
|
|
1685
1685
|
this._time = _;
|
|
1686
|
-
} else {
|
|
1686
|
+
} else if (_) {
|
|
1687
1687
|
this._time = accessor(_);
|
|
1688
1688
|
if (!this._aggs[_]) {
|
|
1689
1689
|
this._aggs[_] = function(a, c) {
|
|
@@ -1696,6 +1696,11 @@ function value(d) {
|
|
|
1696
1696
|
this._timelineSelection = false;
|
|
1697
1697
|
}
|
|
1698
1698
|
this._userTime = _;
|
|
1699
|
+
} else {
|
|
1700
|
+
this._time = undefined;
|
|
1701
|
+
this._userTime = undefined;
|
|
1702
|
+
this._timeFilter = false;
|
|
1703
|
+
this._timelineSelection = false;
|
|
1699
1704
|
}
|
|
1700
1705
|
return this;
|
|
1701
1706
|
} else return this._time;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d3plus/core",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"test": "eslint index.js src/**/*.js && eslint --global=it test && mocha 'test/**/*-test.js'"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@d3plus/color": "3.0.0
|
|
38
|
-
"@d3plus/data": "3.0.0
|
|
39
|
-
"@d3plus/dom": "3.0.0
|
|
40
|
-
"@d3plus/format": "3.0.0
|
|
41
|
-
"@d3plus/locales": "3.0.0
|
|
42
|
-
"@d3plus/math": "3.0.0
|
|
43
|
-
"@d3plus/text": "3.0.0
|
|
37
|
+
"@d3plus/color": "3.0.0",
|
|
38
|
+
"@d3plus/data": "3.0.0",
|
|
39
|
+
"@d3plus/dom": "3.0.0",
|
|
40
|
+
"@d3plus/format": "3.0.0",
|
|
41
|
+
"@d3plus/locales": "3.0.0",
|
|
42
|
+
"@d3plus/math": "3.0.0",
|
|
43
|
+
"@d3plus/text": "3.0.0",
|
|
44
44
|
"@popperjs/core": "^2.11.8",
|
|
45
45
|
"d3-array": "^3.2.4",
|
|
46
46
|
"d3-brush": "^3.0.0",
|
package/umd/d3plus-core.full.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
@d3plus/core v3.0.0
|
|
2
|
+
@d3plus/core v3.0.0
|
|
3
3
|
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
|
4
4
|
Copyright (c) 2025 D3plus - https://d3plus.org
|
|
5
5
|
@license MIT
|
|
@@ -34585,7 +34585,7 @@
|
|
|
34585
34585
|
if (arguments.length) {
|
|
34586
34586
|
if (typeof _ === "function") {
|
|
34587
34587
|
this._time = _;
|
|
34588
|
-
} else {
|
|
34588
|
+
} else if (_) {
|
|
34589
34589
|
this._time = accessor(_);
|
|
34590
34590
|
if (!this._aggs[_]) {
|
|
34591
34591
|
this._aggs[_] = (a, c)=>{
|
|
@@ -34598,6 +34598,11 @@
|
|
|
34598
34598
|
this._timelineSelection = false;
|
|
34599
34599
|
}
|
|
34600
34600
|
this._userTime = _;
|
|
34601
|
+
} else {
|
|
34602
|
+
this._time = undefined;
|
|
34603
|
+
this._userTime = undefined;
|
|
34604
|
+
this._timeFilter = false;
|
|
34605
|
+
this._timelineSelection = false;
|
|
34601
34606
|
}
|
|
34602
34607
|
return this;
|
|
34603
34608
|
} else return this._time;
|