@agent-scope/render 1.20.5 → 1.20.6
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.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -3
- package/dist/index.d.ts +12 -3
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -808,6 +808,7 @@ var RenderMatrix = class {
|
|
|
808
808
|
renderer;
|
|
809
809
|
axes;
|
|
810
810
|
complexityClass;
|
|
811
|
+
renderMode;
|
|
811
812
|
/** Maximum number of cells to render in parallel. @default 8 */
|
|
812
813
|
concurrency;
|
|
813
814
|
constructor(renderer, axes, options = {}) {
|
|
@@ -822,6 +823,7 @@ var RenderMatrix = class {
|
|
|
822
823
|
this.renderer = renderer;
|
|
823
824
|
this.axes = axes;
|
|
824
825
|
this.complexityClass = options.complexityClass ?? "simple";
|
|
826
|
+
this.renderMode = options.renderMode ?? "auto";
|
|
825
827
|
this.concurrency = options.concurrency ?? 8;
|
|
826
828
|
}
|
|
827
829
|
// ---------------------------------------------------------------------------
|
|
@@ -887,7 +889,7 @@ var RenderMatrix = class {
|
|
|
887
889
|
const val = combo[axisIdx];
|
|
888
890
|
axisIndices.push(axis ? axis.values.indexOf(val) : -1);
|
|
889
891
|
}
|
|
890
|
-
const result = await this.renderer.renderCell(props, this.complexityClass);
|
|
892
|
+
const result = await this.renderer.renderCell(props, this.complexityClass, this.renderMode);
|
|
891
893
|
cells[i] = { props, result, index: i, axisIndices };
|
|
892
894
|
}
|
|
893
895
|
};
|