graphein 0.7.1 → 0.7.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/dist/index.js CHANGED
@@ -8259,7 +8259,8 @@ function drawPie(surface, spec, tokens, size, context) {
8259
8259
  color: tokens.color.text,
8260
8260
  size: tokens.font.size.small,
8261
8261
  transform: o.align === "right" ? "translate(-100%,-50%)" : "translateY(-50%)",
8262
- opacity: alpha === 1 ? void 0 : alpha
8262
+ opacity: alpha === 1 ? void 0 : alpha,
8263
+ pill: { background: tokens.color.surface, border: tokens.color.border, padX: 6 }
8263
8264
  });
8264
8265
  }
8265
8266
  for (const l of labelPlan.inside) {
@@ -8269,11 +8270,12 @@ function drawPie(surface, spec, tokens, size, context) {
8269
8270
  left: l.x,
8270
8271
  top: l.y,
8271
8272
  text: l.text,
8272
- color: rgbaToCss(readableTextColor(slice.rgba)),
8273
+ color: tokens.color.text,
8273
8274
  size: tokens.font.size.small,
8274
8275
  weight: tokens.font.weight.bold,
8275
8276
  transform: "translate(-50%,-50%)",
8276
- opacity: alpha === 1 ? void 0 : alpha
8277
+ opacity: alpha === 1 ? void 0 : alpha,
8278
+ pill: { background: tokens.color.surface, border: tokens.color.border, padX: 6 }
8277
8279
  });
8278
8280
  }
8279
8281
  }