@spider-analyzer/timeline 5.0.0 → 5.0.2
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/CHANGELOG.md +20 -0
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -1
- package/src/TimeLine.tsx +7 -1
- /package/dist/{timeline-EX2XZ6IP.css → timeline.css} +0 -0
- /package/dist/{tipDark-BQEJ43KY.css → tipDark.css} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -6,9 +6,9 @@ import { select, pointer } from 'd3-selection';
|
|
|
6
6
|
import { drag } from 'd3-drag';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import clsx3 from 'clsx';
|
|
9
|
-
import './timeline
|
|
9
|
+
import './timeline.css';
|
|
10
10
|
import ToolTipBase from 'rc-tooltip';
|
|
11
|
-
import './tipDark
|
|
11
|
+
import './tipDark.css';
|
|
12
12
|
import { timeDay } from 'd3-time';
|
|
13
13
|
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
@@ -416,8 +416,8 @@ var defaultLabels = {
|
|
|
416
416
|
var defaultQualityScale = scaleLinear().domain([0, 0.9, 1]).range(["#ff3724", "rgba(255,0,0,0.09)", "rgba(155,249,135,0.94)"]).clamp(true);
|
|
417
417
|
function ToolTip({ overlay, placement = "top", mouseEnterDelay = 0.5, prefixCls, align, visible, hidden, children }) {
|
|
418
418
|
const extraProps = {};
|
|
419
|
-
if (visible) extraProps.
|
|
420
|
-
if (hidden) extraProps.
|
|
419
|
+
if (visible) extraProps.visible = true;
|
|
420
|
+
if (hidden) extraProps.visible = false;
|
|
421
421
|
return /* @__PURE__ */ jsx(
|
|
422
422
|
ToolTipBase,
|
|
423
423
|
{
|
|
@@ -2760,6 +2760,9 @@ var TimeLine2 = forwardRef(function TimeLineWrapper(props, ref) {
|
|
|
2760
2760
|
}, [props.onLoadDefaultDomain, props.onDomainChange, zone]);
|
|
2761
2761
|
const innerProps = {
|
|
2762
2762
|
...props,
|
|
2763
|
+
xAxis: { ...xAxisDefault, ...props.xAxis ?? {} },
|
|
2764
|
+
yAxis: props.yAxis ?? {},
|
|
2765
|
+
margin: { ...marginDefault, ...props.margin ?? {} },
|
|
2763
2766
|
domains: stack,
|
|
2764
2767
|
timeSpan: props.timeSpan ? timeSpanToMoments(props.timeSpan, zone) : void 0,
|
|
2765
2768
|
maxDomain: props.maxDomain ? domainToMoments(props.maxDomain, zone) : void 0,
|