@opendata-ai/openchart-engine 8.0.0-rc.21 → 8.0.0-rc.23

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
@@ -9063,6 +9063,7 @@ var ruleRenderer = (spec, scales, chartArea, _strategy, _theme) => {
9063
9063
  };
9064
9064
 
9065
9065
  // src/charts/scatter/compute.ts
9066
+ import { isOpaqueColor } from "@opendata-ai/openchart-core";
9066
9067
  var DEFAULT_POINT_RADIUS2 = 5;
9067
9068
  function resolvePosition2(value2, channelType, scale) {
9068
9069
  switch (channelType) {
@@ -9109,7 +9110,7 @@ function computeScatterMarks(spec, scales, _chartArea, _strategy, theme) {
9109
9110
  const constFill = spec.markDef.fill;
9110
9111
  const constSize = spec.markDef.size;
9111
9112
  const bg = theme?.colors?.background;
9112
- const defaultStroke = bg && bg !== "transparent" ? bg : "#ffffff";
9113
+ const defaultStroke = bg && isOpaqueColor(bg) ? bg : "#ffffff";
9113
9114
  const keyEnc = encoding.key && "field" in encoding.key ? encoding.key : void 0;
9114
9115
  const keyField = keyEnc?.field;
9115
9116
  const marks = [];
@@ -15926,7 +15927,7 @@ function resolveYouDrawIt(config, marks, scales, chartArea, xField) {
15926
15927
  }
15927
15928
 
15928
15929
  // src/compiler/a11y-warnings.ts
15929
- import { contrastRatio, findAccessibleColor, isOpaqueColor } from "@opendata-ai/openchart-core";
15930
+ import { contrastRatio, findAccessibleColor, isOpaqueColor as isOpaqueColor2 } from "@opendata-ai/openchart-core";
15930
15931
  var GRAPHIC_MIN = 3;
15931
15932
  var TEXT_MIN = 4.5;
15932
15933
  var ADJACENT_FILL_MARKS = /* @__PURE__ */ new Set(["bar", "area", "arc", "waffle"]);
@@ -15934,7 +15935,7 @@ var fmt = (ratio) => `${ratio.toFixed(2)}:1`;
15934
15935
  function collectContrastWarnings(scales, markType, theme) {
15935
15936
  const warnings = [];
15936
15937
  const bg = theme.colors.background;
15937
- const bgIsCheckable = isOpaqueColor(bg);
15938
+ const bgIsCheckable = isOpaqueColor2(bg);
15938
15939
  const series = [];
15939
15940
  if (scales.color && scales.color.type !== "sequential") {
15940
15941
  const ordinal2 = scales.color.scale;