versao nrgocios 3
tests / ci (push) Canceled after 0s

This commit is contained in:
2026-10-18 11:17:35 +02:00
parent cef6e201c7
commit 6bc0cc6f52
18199 changed files with 3919254 additions and 10257 deletions
@@ -220,6 +220,16 @@ collections initialize all seven `show*` flags to `false`. A series without its
own label collection inherits chart labels; omitted point flags inherit series
or chart labels.
### Text Style Edits
```ts
chart.xAxis.textStyle.italic = true;
chart.xAxis.textStyle = { fontSize: 12, bold: true };
chart.yAxis.textStyle = { fontSize: "12pt", color: "#475569" };
```
Style configs update supplied fields and preserve omitted fields.
### Axis Placement
```ts
@@ -262,6 +272,16 @@ Use `chart.series.getItemAt(index)` for a series and
2 through 72, even when `symbol` is `"none"`. To hide a marker, use
`marker: { symbol: "none" }` and omit `size`. `size: 0` is rejected.
Edit an existing series through its marker and collection facades:
```ts
const series = chart.series.getItemAt(seriesIndex);
series.marker = { symbol: "circle", size: 8 };
series.marker.fill = "#2563EB";
series.points.add(dataPointIdx).fill = fillConfig;
series.dataLabelOverrides.add(dataPointIdx).text = labelText;
```
```ts
type ChartSeriesConfig = {
id?: string;
@@ -310,6 +330,7 @@ const override = chart.series
.dataLabelOverrides.add(dataPointIdx);
override.text = labelText;
override.position = labelPosition;
override.textStyle = { fontSize: 12, bold: true };
override.textStyle.fontSize = fontSizePx;
override.textStyle.fill = textFill;
override.fill = fillConfig;
@@ -23,7 +23,6 @@ const slide = presentation.slides.add({ layout, layoutId, background: { fill } }
const inserted = presentation.slides.insert({ after, layout, layoutId });
const byIndex = presentation.slides.getItem(slideIndex);
presentation.slides.keep([0, 2, 4]);
presentation.slides.reorder(orderedSlideIds);
```
Slide indexes start at zero and must be less than
@@ -69,6 +68,24 @@ selected slides in their existing relative order. Repeated selections are ignore
an empty array deletes all slides. `reorder` requires the complete desired order,
with every current slide ID exactly once. Invalid selections fail before mutation.
Read canonical `sl/` IDs from the current inspect or exported layout records.
A live `Slide` facade's `.id` is a raw model ID.
```ts
const selected = await presentation.inspect({
select: '$.slides[0,2]', include: ['id'],
});
presentation.slides.keep(selected.records.map(record => record.id));
```
```ts
const current = await presentation.inspect({
select: '$.slides[*]', include: ['id'],
});
const orderedSlideIds = current.records.map(record => record.id).reverse();
presentation.slides.reorder(orderedSlideIds);
```
## Presentation Slide Collection Inline Types
```ts
@@ -94,6 +111,25 @@ interface Presentation {
}
```
## Import Slides
```ts
const { slides, imageIds } = presentation.importSlides(sourceProto);
```
Append every slide, master, layout and asset from a normalized
presentation proto. Existing content, layouts and the presentation theme remain
unchanged. Imported slides, layouts and assets receive fresh IDs; repeated imports
remain independent. `imageIds` maps every source image ID to its imported ID,
including images used only by layouts.
Conflicting embedded font definitions are rejected before editing. Review comments
are not copied.
Each import step uses ordinary Undo/Redo history. Call `importSlides()` outside
synchronous `record()`. Hosts must save individual updates; a save failure can leave a partial
import, and reopening does not retain the local Undo history. Placeholder cleanup
belongs to the caller and is separate from the import action.
## Discover And Edit
```ts