layerchart 2.0.0-next.11 → 2.0.0-next.12

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.
@@ -100,7 +100,7 @@
100
100
  initialY: initialYProp,
101
101
  center = false,
102
102
  preventTouchMove = false,
103
- opacity = 1,
103
+ opacity = undefined,
104
104
  motion,
105
105
  transitionIn: transitionInProp,
106
106
  transitionInParams: transitionInParamsProp,
@@ -144,7 +144,7 @@
144
144
  name: 'Group',
145
145
  render: (ctx) => {
146
146
  const currentGlobalAlpha = ctx.globalAlpha;
147
- ctx.globalAlpha = opacity;
147
+ ctx.globalAlpha = opacity ?? 1;
148
148
 
149
149
  ctx.translate(motionX.current ?? 0, motionY.current ?? 0);
150
150
 
@@ -21,7 +21,7 @@ export function getDurationFormat(duration, multiline = false) {
21
21
  }
22
22
  else if (+duration >= +new Duration({ duration: { days: 1 } })) {
23
23
  // Day
24
- const isFirst = i === 0 || date.getDate() < duration.days;
24
+ const isFirst = i === 0 || date.getDate() <= duration.days;
25
25
  if (multiline) {
26
26
  return (format(date, PeriodType.Custom, { custom: DateToken.DayOfMonth_numeric }) +
27
27
  (isFirst ? `\n${format(date, PeriodType.Month, { variant: 'short' })}` : ''));
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "Sean Lynch <techniq35@gmail.com>",
5
5
  "license": "MIT",
6
6
  "repository": "techniq/layerchart",
7
- "version": "2.0.0-next.11",
7
+ "version": "2.0.0-next.12",
8
8
  "devDependencies": {
9
9
  "@changesets/cli": "^2.29.4",
10
10
  "@iconify-json/lucide": "^1.2.44",