mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-28 17:30:24 +01:00
commit
271ece082d
15 files changed
+334
-15
No files matched your search
@@ -5,6 +5,7 @@
|
||||
> **Last reviewed:** 2026-11-15 · **Last updated:** 2026-11-16 · **Change:** minor (a selected chart outlines its names, categories and values in Excel's colours, and dragging the values outline's corner changes the chart's data, #4389, #4390; earlier: performance: formula entry and XLSX save win back time lost since 23829d8c (#2654), 465 → 420 ms and 540 → 488 ms on the 100k-row benchmark; Sandbox refuses fcntl's asynchronous notification and the socket ioctls that notify another process on Linux (#3846); CI provisions pinned fonts for coverage tests; the oversized pivot-cache warning's test names the part limit; readiness estimates unchanged) · **Target:** Microsoft Excel (Microsoft 365)
|
||||
> **Last reviewed:** 2026-11-01 · **Last updated:** 2026-11-05 · **Change:** minor (CJK fallback text shares the Latin baseline; earlier: form controls: buttons, sliders and spin buttons; earlier: RefEdit reference boxes in dialogs: Goal Seek, Solver and Data Analysis take ranges by selection on the grid; earlier: Python mode in the formula bar; earlier: Python cells stored and kept in files; earlier: equations: Insert › Equation, editor, gridcraft-math; earlier: What-if and analysis: Solver Sensitivity report for Simplex LP and GRG Nonlinear; earlier: floating objects: one selection, eight resize handles, keyboard delete; earlier: Chart data tables: live source values beneath column, bar, line, area and compatible combo charts; legend keys and borders; XLSX round-trip and print/PDF; earlier: Formulas › Function Library as labelled buttons with category menus; Recently Used and Insert Function categories; XLSX workbook-view selection, bounded tab ratios and sheet-edit regressions; readiness estimates unchanged; earlier: CSV and text open detects each column's date order, so day-first dates are not silently swapped; earlier: searchable data validation dropdown) · **Target:** Microsoft Excel (Microsoft 365)
|
||||
|
||||
|
||||
GridCraft aims at full Microsoft Excel parity, and at being better in places: faster, open (XLSX
|
||||
is the native format), fully scriptable by agents (MCP, control channel, CLI), and on the web.
|
||||
This page is the summary. The detail is in:
|
||||
@@ -151,6 +152,7 @@ Ranked; estimates in Opus 5.5 agent-hours. Detail and the full beta-gate list in
|
||||
| 2026-10-31 | Recently Used lists the functions most recently entered in a formula from any source (ribbon, control channel, MCP, scripts), kept with the preferences and returned by `formulas.recentlyUsed`; the Insert Function dialog takes Excel's title and a working category list (Most Recently Used, All, each category) |
|
||||
| 2026-10-31 | Formulas › Function Library as a big Insert Function button, the AutoSum split button and three columns of labelled small buttons, each category book in its own colour; category menus end with Insert Function… on that category; More Functions cascades into the remaining categories; Home › Editing shares the AutoSum menu; the MR key tip opens Recently Used |
|
||||
| 2026-10-31 | System and embedded CJK fallback text shares the Latin baseline in cells, editors and window titles (#1265, #2621). Symbol and emoji alignment, manual row heights and clipping are unchanged |
|
||||
| 2026-10-26 | Excel open check (`packaging/windows/excel-open-check`): saves workbooks with `gridcraft-cli`, opens each in real Excel through COM so a repair counts as a failure, and records pass or the failure per file; 0.12.1 over 18 public fixtures and 7 feature scenarios: 24 of 25 open cleanly, the other is the legacy-formula slowness of #410 |
|
||||
| 2026-10-26 | Paste Special ▸ Transpose turns a formula's references with the cell that carries it, as Excel does: the row offset becomes the column offset and the other way round, so `=A3+1` copied from A3:A4 and pasted at C3 reads the cell to its left (`=C3+1`) instead of keeping the offset it had in the column; a reference pinned with `$` is left standing, a whole row or column comes back as a cell range open to the sheet's edge, and one off the grid is `#REF!` (#2450) |
|
||||
| 2026-10-26 | PDF preserves Context/LTR/RTL reading direction through wrapping and drawing; RTL sheet cells, borders, headings, objects and sparklines mirror consistently |
|
||||
| 2026-10-26 | Arabic PDF export shapes licensed glyph outlines and preserves searchable logical text; characters the font lacks, or a missing Arabic font, fall back to the standard fonts instead of failing the export |
|
||||
@@ -302,6 +304,7 @@ Ranked; estimates in Opus 5.5 agent-hours. Detail and the full beta-gate list in
|
||||
| 2026-10-31 | minor | Progress log: Recently Used and Insert Function categories |
|
||||
| 2026-10-31 | minor | Progress log: Function Library |
|
||||
| 2026-10-31 | minor | Progress log: shared CJK/Latin baselines in cells, editors and window titles |
|
||||
| 2026-10-26 | minor | Progress log: Excel open check |
|
||||
| 2026-10-26 | minor | Progress log: PDF reading direction and RTL sheets |
|
||||
| 2026-10-26 | minor | Progress log: Arabic PDF text |
|
||||
| 2026-10-26 | minor | Progress log: Arabic bidi display and editing |
|
||||
|
||||
@@ -345,7 +345,10 @@ pub fn bind_faces(fonts: &mut egui::FontDefinitions, family: &str, faces: &[Face
|
||||
let mut bound: Vec<String> = Vec::new();
|
||||
for (bold, italic) in [(false, false), (true, false), (false, true), (true, true)] {
|
||||
let Some(primary) = pick_face(faces, bold, italic) else { continue };
|
||||
let role = role_key(family, bold, italic);
|
||||
let mut chain: Vec<String> = Vec::new();
|
||||
// The face the role's text is actually drawn in: the first one whose file could be read.
|
||||
let mut drawn: Option<&Face> = None;
|
||||
for face in [Some(primary), pick_face(faces, false, false)] {
|
||||
let Some(face) = face else { continue };
|
||||
let key = face_key(face);
|
||||
@@ -359,12 +362,15 @@ pub fn bind_faces(fonts: &mut egui::FontDefinitions, family: &str, faces: &[Face
|
||||
fonts.font_data.insert(key.clone(), std::sync::Arc::new(fd));
|
||||
}
|
||||
chain.push(key);
|
||||
drawn.get_or_insert(face);
|
||||
}
|
||||
if chain.is_empty() {
|
||||
continue;
|
||||
}
|
||||
let Some(drawn) = drawn else { continue };
|
||||
// Imitate what the drawn face lacks: italic when it is upright; bold when it is the family's
|
||||
// plain face (the family has no bold of its own, or the bold file couldn't be read).
|
||||
let own_bold = pick_face(faces, false, italic).is_none_or(|plain| face_key(plain) != face_key(primary));
|
||||
set_synthetic(&role, SLANT, italic && !drawn.italic);
|
||||
set_synthetic(&role, BOLD, bold && (face_key(drawn) != face_key(primary) || !own_bold));
|
||||
chain.extend(base.iter().cloned());
|
||||
let role = role_key(family, bold, italic);
|
||||
fonts.families.insert(egui::FontFamily::Name(role.clone().into()), chain);
|
||||
bound.push(role);
|
||||
}
|
||||
@@ -389,6 +395,41 @@ pub fn is_bound(role: &str) -> bool {
|
||||
bound().read().unwrap_or_else(std::sync::PoisonError::into_inner).contains(role)
|
||||
}
|
||||
|
||||
/// Roles drawn with a face that lacks their slant or weight (Arial Black has one face only), as
|
||||
/// `{role}|slant` and `{role}|bold`. Excel imitates the missing style (observed in its PDF: a cell in
|
||||
/// Arial Black, bold italic, is slanted by 1/3 and outlined about 1/36 of its size thick).
|
||||
static SYNTHETIC: OnceLock<std::sync::RwLock<HashSet<String>>> = OnceLock::new();
|
||||
const SLANT: &str = "slant";
|
||||
const BOLD: &str = "bold";
|
||||
|
||||
fn synthetic() -> &'static std::sync::RwLock<HashSet<String>> {
|
||||
SYNTHETIC.get_or_init(|| std::sync::RwLock::new(HashSet::new()))
|
||||
}
|
||||
|
||||
fn set_synthetic(role: &str, style: &str, on: bool) {
|
||||
let mut set = synthetic().write().unwrap_or_else(|e| e.into_inner());
|
||||
let key = format!("{role}|{style}");
|
||||
if on {
|
||||
set.insert(key);
|
||||
} else {
|
||||
set.remove(&key);
|
||||
}
|
||||
}
|
||||
|
||||
fn is_synthetic(role: &str, style: &str) -> bool {
|
||||
is_bound(role) && synthetic().read().unwrap_or_else(|e| e.into_inner()).contains(&format!("{role}|{style}"))
|
||||
}
|
||||
|
||||
/// Does italic text in this installed family have to be slanted when drawn (no italic face)?
|
||||
pub fn is_slanted(family: &str, bold: bool) -> bool {
|
||||
is_synthetic(&role_key(family, bold, true), SLANT)
|
||||
}
|
||||
|
||||
/// Does bold text in this installed family have to be thickened when drawn (no face of its own)?
|
||||
pub fn is_emboldened(family: &str, italic: bool) -> bool {
|
||||
is_synthetic(&role_key(family, true, italic), BOLD)
|
||||
}
|
||||
|
||||
/// Serializes tests that mutate the process-wide bound-family registry.
|
||||
#[cfg(test)]
|
||||
pub(crate) static TEST_LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(());
|
||||
@@ -490,6 +531,44 @@ mod tests {
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn styles_a_family_has_no_face_for_are_imitated() {
|
||||
let _g = TEST_LOCK.lock().unwrap_or_else(|e| e.into_inner());
|
||||
let dir = std::env::temp_dir().join(format!("gridcraft-fonts-synthetic-{}", std::process::id()));
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
std::fs::create_dir_all(&dir).expect("temp dir");
|
||||
// One font file stands in for every face; each face is its own (path, index) by its name.
|
||||
let face = |family: &str, file: &str, weight: f32, italic: bool| {
|
||||
let path = dir.join(file);
|
||||
std::fs::write(&path, epaint_default_fonts::UBUNTU_LIGHT).expect("write");
|
||||
Face { family: family.into(), names: vec![family.into()], path, index: 0, weight, italic }
|
||||
};
|
||||
let mut fonts = egui::FontDefinitions::default();
|
||||
// Like Arial Black: one face, whatever its weight.
|
||||
let mut bound = bind_faces(&mut fonts, "One Face", &[face("One Face", "one.ttf", 900.0, false)]);
|
||||
let full = [
|
||||
face("Full", "full.ttf", 400.0, false),
|
||||
face("Full", "full-b.ttf", 700.0, false),
|
||||
face("Full", "full-i.ttf", 400.0, true),
|
||||
face("Full", "full-bi.ttf", 700.0, true),
|
||||
];
|
||||
bound.extend(bind_faces(&mut fonts, "Full", &full));
|
||||
// Bold and italic faces whose files can't be read: the regular face draws them, imitated.
|
||||
let gone = |file: &str, weight: f32, italic: bool| Face { path: dir.join(file), ..face("Gone", "gone.ttf", weight, italic) };
|
||||
let broken = [face("Gone", "gone.ttf", 400.0, false), gone("missing-b.ttf", 700.0, false), gone("missing-i.ttf", 400.0, true)];
|
||||
bound.extend(bind_faces(&mut fonts, "Gone", &broken));
|
||||
set_bound(bound);
|
||||
assert!(is_slanted("One Face", false) && is_slanted("One Face", true));
|
||||
assert!(is_emboldened("One Face", false) && is_emboldened("One Face", true));
|
||||
assert!(is_slanted("Gone", false) && is_emboldened("Gone", false), "the regular face stands in, imitated");
|
||||
assert!(!is_slanted("Full", false) && !is_slanted("Full", true), "its own italic faces are drawn as they are");
|
||||
assert!(!is_emboldened("Full", false) && !is_emboldened("Full", true), "its own bold faces are drawn as they are");
|
||||
assert!(!is_slanted("Not Bound", false) && !is_emboldened("Not Bound", false));
|
||||
set_bound([]);
|
||||
assert!(!is_slanted("One Face", false) && !is_emboldened("One Face", false), "nothing is imitated once unbound");
|
||||
let _ = std::fs::remove_dir_all(&dir);
|
||||
}
|
||||
|
||||
/// A font that is just a table directory and a `name` table holding `records` as
|
||||
/// `(Windows language id, name id, text)`: all [`file_faces`] reads.
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
|
||||
@@ -230,6 +230,25 @@ pub(super) fn merged_edges(wb: &Workbook, si: usize, sh: &Sheet, geo: &Geo, area
|
||||
out
|
||||
}
|
||||
|
||||
/// One cell's text as a layout job, wrapped at `wrap` (`f32::INFINITY`: one line). `slant` draws it
|
||||
/// oblique, for an italic cell whose font has no italic face (see [`crate::fonts::is_slanted`]).
|
||||
pub(super) fn cell_job(text: String, font: FontId, color: Color32, wrap: f32, slant: bool) -> egui::text::LayoutJob {
|
||||
let mut job = egui::text::LayoutJob::simple(text, font, color, wrap);
|
||||
for section in &mut job.sections {
|
||||
section.format.italics = slant;
|
||||
}
|
||||
job
|
||||
}
|
||||
|
||||
/// Paints one cell's text; `bold_dx` > 0 paints it again that far right, to thicken a bold cell
|
||||
/// whose font has no bold face (see [`crate::fonts::is_emboldened`]).
|
||||
pub(super) fn paint_cell_galley(p: &Painter, pos: Pos2, galley: std::sync::Arc<egui::Galley>, color: Color32, bold_dx: f32) {
|
||||
if bold_dx > 0.0 {
|
||||
p.galley(pos + egui::vec2(bold_dx, 0.0), galley.clone(), color);
|
||||
}
|
||||
p.galley(pos, galley, color);
|
||||
}
|
||||
|
||||
/// The smaller font that makes `text` fit in `room` points of width (Shrink to fit), or `None`
|
||||
/// when it already fits at its own size.
|
||||
pub(super) fn shrink_font(p: &Painter, text: &str, font: &FontId, room: f32) -> Option<FontId> {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
use super::active_row::paint_active_row;
|
||||
use super::cell_paint::{
|
||||
Look, MergedArea, cell_text_y, center_across_end, col32, display_text, galley_baseline_bounds, look, merged_edges, paint_border, paint_cf_icon,
|
||||
painted_halign, rotated_text_pos, shrink_font, wrapped_cell_text_y,
|
||||
Look, MergedArea, cell_job, cell_text_y, center_across_end, col32, display_text, galley_baseline_bounds, look, merged_edges, paint_border,
|
||||
paint_cell_galley, paint_cf_icon, painted_halign, rotated_text_pos, shrink_font, wrapped_cell_text_y,
|
||||
};
|
||||
use super::geo::Geo;
|
||||
use super::tables::{filter_button_rect, paint_filter_button};
|
||||
@@ -352,6 +352,11 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
let size = st.font.size * 96.0 / 72.0 * z;
|
||||
let fam = theme::cell_family(&st.font.name, st.font.bold, st.font.italic);
|
||||
let font = FontId::new(size, fam);
|
||||
let slant = st.font.italic && crate::fonts::is_slanted(&st.font.name, st.font.bold);
|
||||
let embolden = st.font.bold && crate::fonts::is_emboldened(&st.font.name, st.font.italic);
|
||||
// How far the second impression of imitated bold sits from the first, by the size painted.
|
||||
let ppp = p.ctx().pixels_per_point();
|
||||
let bold_dx = |size: f32| if embolden { (size / 36.0).max(1.0 / ppp) } else { 0.0 };
|
||||
// Digits fit by the cell's own font and size, not the default 11pt (9pt marks in narrow columns).
|
||||
let char_w = p.layout_no_wrap("0".to_string(), font.clone(), Color32::PLACEHOLDER).size().x.max(1.0);
|
||||
let avail_w = rect.right() - text_left;
|
||||
@@ -380,7 +385,7 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
// Rotated text wraps along its own direction (below), not across the column width.
|
||||
if !rotated && (st.align.wrap || st.align.h == HAlign::Justify) {
|
||||
let wrap_w = (rect.width() - 2.0 * pad - indent).max(4.0);
|
||||
let mut job = egui::text::LayoutJob::simple(text.clone(), font.clone(), color, wrap_w);
|
||||
let mut job = cell_job(text.clone(), font.clone(), color, wrap_w, slant);
|
||||
job.direction = direction;
|
||||
job.halign_min_is_start = false;
|
||||
job.halign = match painted_halign(halign, geo.rtl) {
|
||||
@@ -397,7 +402,7 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
let (text_top, text_bottom) = galley_baseline_bounds(&galley);
|
||||
let y = wrapped_cell_text_y(st.align.v, *rect, text_bottom - text_top, z) - text_top;
|
||||
let text_clip = wrapped_text_clip(p, *rect, &galley, y, st.align.v);
|
||||
p.with_clip_rect(text_clip).galley(pos2(x, y), galley, color);
|
||||
paint_cell_galley(&p.with_clip_rect(text_clip), pos2(x, y), galley, color, bold_dx(size));
|
||||
return;
|
||||
}
|
||||
// Wrap Text off: Excel ignores the line breaks and draws the whole string on one line.
|
||||
@@ -412,7 +417,7 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
let shrunk = small.is_some();
|
||||
let font = small.unwrap_or(font);
|
||||
let layout = |text: String| {
|
||||
let mut job = egui::text::LayoutJob::simple(text, font.clone(), color, f32::INFINITY);
|
||||
let mut job = cell_job(text, font.clone(), color, f32::INFINITY, slant);
|
||||
job.direction = direction;
|
||||
job.halign_min_is_start = false;
|
||||
p.layout_job(job)
|
||||
@@ -507,18 +512,16 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
let angle = -(st.align.rotation as f32).to_radians();
|
||||
// Upright (±90°) wrapped text wraps to the row height: lines then stack across the column.
|
||||
let galley = if st.align.wrap && st.align.rotation.abs() == 90 {
|
||||
let mut job = egui::text::LayoutJob::simple(text.clone(), font.clone(), color, (rect.height() - 2.0 * pad).max(4.0));
|
||||
let mut job = cell_job(text.clone(), font.clone(), color, (rect.height() - 2.0 * pad).max(4.0), slant);
|
||||
job.direction = direction;
|
||||
p.layout_job(job)
|
||||
} else {
|
||||
galley.clone()
|
||||
};
|
||||
let pos = rotated_text_pos(*rect, galley.size(), angle, halign, st.align.v, pad, indent);
|
||||
let mut shape = egui::epaint::TextShape::new(pos, galley, color);
|
||||
shape.angle = angle;
|
||||
cp.add(shape);
|
||||
paint_rotated_galley(&cp, pos, galley, color, angle, bold_dx(font.size));
|
||||
} else {
|
||||
cp.galley(pos2(x, y), galley.clone(), color);
|
||||
paint_cell_galley(&cp, pos2(x, y), galley.clone(), color, bold_dx(font.size));
|
||||
}
|
||||
paint_text_decorations(
|
||||
&cp,
|
||||
@@ -526,6 +529,19 @@ fn paint_cell(q: &QuadrantPaint<'_>, painted: &(CellRef, Rect, Look, Option<CfLo
|
||||
);
|
||||
}
|
||||
|
||||
/// Paints rotated cell text; `bold_dx` > 0 first paints it that far along the text's own
|
||||
/// direction, the second impression of imitated bold.
|
||||
fn paint_rotated_galley(cp: &Painter, pos: Pos2, galley: std::sync::Arc<egui::Galley>, color: Color32, angle: f32, bold_dx: f32) {
|
||||
if bold_dx > 0.0 {
|
||||
let mut thick = egui::epaint::TextShape::new(pos + bold_dx * egui::vec2(angle.cos(), angle.sin()), galley.clone(), color);
|
||||
thick.angle = angle;
|
||||
cp.add(thick);
|
||||
}
|
||||
let mut shape = egui::epaint::TextShape::new(pos, galley, color);
|
||||
shape.angle = angle;
|
||||
cp.add(shape);
|
||||
}
|
||||
|
||||
struct TextDecoration {
|
||||
x: f32,
|
||||
y: f32,
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
> **Last reviewed:** 2026-10-11 · **Last updated:** 2026-11-13 · **Change:** minor (§5: Arabic PDF output preserves cell direction, joined glyphs and RTL sheet geometry; earlier: §17: equations; earlier: §13: Solver Sensitivity report; earlier: §4: chart resizing is no longer a gap; earlier: §13: Analysis ToolPak has all 19 tools; earlier: §4: chart data tables implemented with XLSX round-trip and print/PDF; earlier: §13: Solver Options; earlier: §13: Solver Load/Save Model and Reset All) · **Target:** Microsoft Excel (Microsoft 365)
|
||||
|
||||
|
||||
Every known shortfall against Excel, one entry each, ranked by user impact (what blocks someone
|
||||
using GridCraft for real work first). This is the work list: pick from the top, check the open
|
||||
PRs first (50 open on 2026-10-10; several already address entries here), and update the entry
|
||||
@@ -22,6 +23,7 @@ No alpha blockers: every core workflow passes the [alpha gate](roadmap.md#alpha-
|
||||
- **Evidence:** round-trip tests cover our own files only (`crates/xlsx/src/tests/`); PivotTable
|
||||
round-trip noted as "unverified in real Excel" since 10-07; #64 (dynamic-array flag) shows the
|
||||
class of bug.
|
||||
- **Check:** `packaging/windows/excel-open-check/check.ps1` saves workbooks with `gridcraft-cli` and opens each result in real Excel through COM with `CorruptLoad` = normal load, so a repair is a failure. The 0.12.1 run (18 public synthetic fixtures + 7 feature scenarios: charts, pivots with pivot chart and slicer, CF, validation, tables and names, shapes and pictures, sheets and protection) gave 24 of 25 saved files opening cleanly; the 25th (`gc_legacy_to_array`) is not a repair but Excel taking over 200 s on legacy formulas saved as whole-column array formulas (#410, open PRs #417, #1367, #1660). Still open: a run over a large real-world corpus.
|
||||
- **Impact:** the main format; a repair prompt or silent loss destroys trust.
|
||||
- **Estimate:** 15–25 h, plus owner time in Excel. [file-format-parity.md](file-format-parity.md)
|
||||
|
||||
@@ -203,6 +205,7 @@ No alpha blockers: every core workflow passes the [alpha gate](roadmap.md#alpha-
|
||||
| 2026-11-01 | minor | §4: chart data tables implemented for column, bar, line, area and compatible combo charts, with legend keys and border settings, live source values, XLSX round-trip and print/PDF; other chart gaps remain. |
|
||||
| 2026-10-31 | minor | §13: Solver Options (Max Evaluations, Integer Optimality and the Evolutionary options), saved with the model |
|
||||
| 2026-10-31 | minor | §13: Solver Load/Save Model (`data.solverSaveModel`, `data.solverLoadModel`) and Reset All (`data.solverReset`), with buttons in the Solver Parameters dialog |
|
||||
| 2026-10-26 | minor | §1: `packaging/windows/excel-open-check` opens saved workbooks in real Excel and records pass or the exact failure; first run: 24 of 25 open cleanly |
|
||||
| 2026-10-26 | minor | §5: Arabic PDF output preserves cell direction, joined glyphs and RTL sheet geometry. Other script and UI gaps remain. |
|
||||
| 2026-10-26 | minor | Arabic shared bidi display/editing and persisted cell reading direction; other script and PDF work remain separate |
|
||||
| 2026-10-26 | minor | §5: Arabic text renders in cells and the interface: a system Arabic face (Tahoma, Arial or Segoe UI on Windows, Geeza Pro on macOS, Noto Sans or Naskh Arabic on Linux) joins the script fallbacks, fontconfig's Arabic choice, when it has Arabic letters, leads the Arabic fallbacks and draws Arabic wherever the UI or cell font has none, such as the default cell fonts (part of #229; a UI font with Arabic of its own, such as DejaVu Sans in the Flatpak, still draws interface Arabic, left for a follow-up), and craft-fonts' Noto Sans Arabic is a required face allowed on the web. Workbook fonts without Arabic keep every script fallback. Shaping and bidirectional layout remain separate work |
|
||||
|
||||
+3
-1
@@ -1,6 +1,6 @@
|
||||
# UI parity
|
||||
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (preserve imported filter row bounds in shared statistics and choices; earlier: AutoFit Column Width measures a table's header in the table style's bold font; earlier: ribbon number formats widen columns nobody sized by hand, #1077; earlier: a leading + or - starts a formula, #2023; earlier: AutoSum on one cell proposes its range in the editor, #1834; earlier: Quick Analysis, Ctrl+Q (#791); earlier: validation list rows keep to their slot height whatever the font, and the "More entries not shown" note is translated; earlier: the searched validation list shows its eight rows, keeps the highlight in view and opens above a cell near the bottom of the window; earlier: the dropdown arrow's full list reads its source once within the same budget, draws only its visible rows and shows eight of them; earlier: a searched validation list reads at most 200,000 cells of its source; earlier: Find and Replace keeps workbook Undo/Redo available while a button has keyboard focus; text fields keep their own Undo; earlier: punctuation shortcuts follow the keyboard layout's characters; earlier: preserve centered emoji and symbol fallback placement; earlier: preserve leading and trailing blank cell lines; earlier: align wrapped and unwrapped cells; earlier: CJK title baseline regression and mixed-script rendering validation; earlier: form controls: buttons, sliders and spin buttons on the sheet; earlier: Highlight the active cell's row, a global preference in File › Options › General; earlier: a linked cell's menu edits, opens or removes the link; earlier: Display options for this workbook: sheet tabs and scroll bars; earlier: dragging over row or column headers in point mode extends the reference; earlier: a picture on the system clipboard pastes as a floating picture at the active cell with Cmd/Ctrl+V or Paste (#699); earlier: frozen columns keep their text, gridlines and merged borders whole while the sheet scrolls (#2544); earlier: every Paste Special option has its access key; earlier: the Draw tab's live stroke preview uses the pen's colour and thickness; earlier: copy quotes only cells with a tab or line break, as Excel does; earlier: Ctrl+. Next Corner of Selection; earlier: dragging the selection's border onto data asks before replacing it; earlier: RefEdit reference boxes in dialogs: Goal Seek, Solver and Data Analysis use them, the arrow keys select while a dialog is collapsed and F4 cycles a reference's anchors; earlier: Python cells: Python mode in the formula bar; earlier: Insert › Equation and the equation editor; earlier: every floating object selects, resizes from eight handles and deletes with the keyboard; earlier: Formulas › Error Checking › Trace Error; trace arrows stay through a zoom (#3097); earlier: Page Setup sets the page order, Down, then over or Over, then down, which printing, the print preview, Page Break Preview and Page Layout view follow; earlier: Formulas › Function Library as labelled buttons with category menus; Recently Used and the Insert Function categories; Esc leaves a File-page text field before closing the view; earlier: checkbox cells print as boxes; Ctrl+arrow and Ctrl+Shift+arrow while pointing a formula reference; editing a hyperlink loads its existing fields; AutoSum over a selected row puts its total to the right; ribbon catalog count 276 / 292; earlier: typing into a cell with a list validation searches its dropdown; Enter/Tab take the highlighted entry) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4
|
||||
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-19 · **Change:** minor (preserve imported filter row bounds in shared statistics and choices; earlier: italic and bold in a font with one face, such as Arial Black, are slanted and thickened as Excel does; earlier: AutoFit Column Width measures a table's header in the table style's bold font; earlier: ribbon number formats widen columns nobody sized by hand, #1077; earlier: a leading + or - starts a formula, #2023; earlier: AutoSum on one cell proposes its range in the editor, #1834; earlier: Quick Analysis, Ctrl+Q (#791); earlier: validation list rows keep to their slot height whatever the font, and the "More entries not shown" note is translated; earlier: the searched validation list shows its eight rows, keeps the highlight in view and opens above a cell near the bottom of the window; earlier: the dropdown arrow's full list reads its source once within the same budget, draws only its visible rows and shows eight of them; earlier: a searched validation list reads at most 200,000 cells of its source; earlier: Find and Replace keeps workbook Undo/Redo available while a button has keyboard focus; text fields keep their own Undo; earlier: punctuation shortcuts follow the keyboard layout's characters; earlier: preserve centered emoji and symbol fallback placement; earlier: preserve leading and trailing blank cell lines; earlier: align wrapped and unwrapped cells; earlier: CJK title baseline regression and mixed-script rendering validation; earlier: form controls: buttons, sliders and spin buttons on the sheet; earlier: Highlight the active cell's row, a global preference in File › Options › General; earlier: a linked cell's menu edits, opens or removes the link; earlier: Display options for this workbook: sheet tabs and scroll bars; earlier: dragging over row or column headers in point mode extends the reference; earlier: a picture on the system clipboard pastes as a floating picture at the active cell with Cmd/Ctrl+V or Paste (#699); earlier: frozen columns keep their text, gridlines and merged borders whole while the sheet scrolls (#2544); earlier: every Paste Special option has its access key; earlier: the Draw tab's live stroke preview uses the pen's colour and thickness; earlier: copy quotes only cells with a tab or line break, as Excel does; earlier: Ctrl+. Next Corner of Selection; earlier: dragging the selection's border onto data asks before replacing it; earlier: RefEdit reference boxes in dialogs: Goal Seek, Solver and Data Analysis use them, the arrow keys select while a dialog is collapsed and F4 cycles a reference's anchors; earlier: Python cells: Python mode in the formula bar; earlier: Insert › Equation and the equation editor; earlier: every floating object selects, resizes from eight handles and deletes with the keyboard; earlier: Formulas › Error Checking › Trace Error; trace arrows stay through a zoom (#3097); earlier: Page Setup sets the page order, Down, then over or Over, then down, which printing, the print preview, Page Break Preview and Page Layout view follow; earlier: Formulas › Function Library as labelled buttons with category menus; Recently Used and the Insert Function categories; Esc leaves a File-page text field before closing the view; earlier: checkbox cells print as boxes; Ctrl+arrow and Ctrl+Shift+arrow while pointing a formula reference; editing a hyperlink loads its existing fields; AutoSum over a selected row puts its total to the right; ribbon catalog count 276 / 292; earlier: typing into a cell with a list validation searches its dropdown; Enter/Tab take the highlighted entry) · **Target:** Microsoft Excel (Microsoft 365), Excel for Mac 16.113.4
|
||||
|
||||
Interaction, controls and feel, against Excel. Part of [target-app-parity.md](target-app-parity.md).
|
||||
**UI/UX fidelity: ~55% ready, 50–80 h** (estimated). Ribbon command coverage is measured
|
||||
@@ -323,6 +323,7 @@ scrollbar bugs 2–4 · pixel/feel pass against observed Excel 7–12.
|
||||
| 2026-11-03 | minor | Draw tab: the stroke drawn under the pointer while dragging a pen is the ink that will be committed, in the pen's colour and thickness (translucent for a highlighter), instead of always blue at 2 pt (#1786) |
|
||||
| 2026-11-03 | minor | Copy puts a cell that holds a quote on the clipboard as it is (`say "hi"`), quoting only text with a tab or line break, as Excel does; pasting text reads a field as quoted only when its closing quote ends it, so `"hi" there` pastes with its quotes (#2225) |
|
||||
| 2026-11-03 | minor | Ctrl+. (Control+. on a Mac): Next Corner of Selection, `selection.nextCorner`: the active cell moves clockwise to the next corner of the selected area, which stays selected, and becomes the anchor, as in Excel (#1442) |
|
||||
| 2026-11-02 | minor | Form controls: buttons, sliders (scroll bars) and spin buttons placed, worked, selected and edited on the sheet (Insert › Controls, Assign Action, Format Control); catalog 281 / 296 |
|
||||
| 2026-11-02 | minor | Dragging the selection's border onto cells that hold data asks "There's already data here. Do you want to replace it?" (OK replaces, Cancel leaves the sheet and clipboard as they were) through the new `range.move` command (#3136); the row no longer claims Ctrl/Option copy and Shift insert for the border drag, which are not wired yet |
|
||||
| 2026-11-02 | minor | RefEdit reference boxes in dialogs: pick a range on the grid, collapse the dialog while selecting; Goal Seek, Solver (with the Model Range of Load/Save) and Data Analysis use them; while collapsed the arrow keys move the selection and Shift+arrow extends it, F4 cycles a reference's anchors, a click elsewhere keeps the box picking, a dialog opened over a picking one puts the selection back, OK stays on the sheet its command showed, and scripted cancel and confirm end a pick like the buttons; the dialog's sheet is followed through the recorded undo steps, so a sheet deleted and recreated under its name is not taken for it and an undo of the deletion brings it back; a box the dialog stops showing is no longer picked into; the dialog's sheet is recorded when it opens, not at its first pick |
|
||||
| 2026-11-02 | minor | Python mode edits a cell's code in the formula bar's code editor (Ctrl+Alt+Shift+P, `=PY` then Tab, editing a Python cell), with the PY badge beside fx; its keys apply in input order, also several in one frame, and Ctrl+Enter commits through `python.set` (empty code clears the cell), keeping the code and showing the command's message when the code is refused |
|
||||
@@ -340,6 +341,7 @@ scrollbar bugs 2–4 · pixel/feel pass against observed Excel 7–12.
|
||||
| 2026-10-31 | minor | Formulas › Function Library: Insert Function, the AutoSum split button and three columns of labelled small buttons with category colours; category menus end with Insert Function…; More Functions cascades; Home › Editing shares the AutoSum menu; MR key tip for Recently Used |
|
||||
| 2026-10-31 | minor | CJK fallback text shares the Latin baseline in cells, editors and window titles; fixed row heights and clipping remain workbook-controlled |
|
||||
| 2026-10-30 | minor | AutoFilter choices cascade across other columns while retaining current-column alternatives and blanks (#2641); Apply without search preserves selected and excluded values and blanks hidden by other filters; searched Apply excludes hidden nonmatches while retaining hidden matches; documents pending counts, date grouping and table roundtrip integration; retains slicer row filtering when its criterion is outside the sheet filter columns |
|
||||
| 2026-10-30 | minor | Italic and bold in an installed font that has no face for them (Arial Black has a single face) are imitated on the grid, as Excel does: the text is slanted and drawn a second time a little to the right (about 1/36 of the size, at least one pixel). Observed in Excel's PDF of a cell in Arial Black, bold italic: oblique by 1/3 and outlined 0.23 pt thick at 9 pt. egui's slant is fixed at about 1/4. Print and PDF still use the standard PDF fonts (`fonts.rs` test) |
|
||||
| 2026-10-30 | minor | Checkbox cells print and export to PDF as boxes, as on screen: unchecked white with a grey outline, checked green with a white tick (#2972). They printed their value as TRUE or FALSE; other values in a checkbox cell still print as text |
|
||||
| 2026-10-29 | minor | Formula pointing from the keyboard: Ctrl+arrow (⌘arrow) moves the pointed cell to the edge of its data and Ctrl+Shift+arrow (⌘⇧arrow) extends the pointed range there, as the same keys move and extend the selection, so typing `=COUNTIF(`, clicking the top of a column and pressing ⌘⇧↓ points at the whole column of data; the keys used to move or extend by one cell. A range reaching the sheet edge is written as whole columns or rows (`A:B`). The editor reads the modifiers of the arrow's own key event, so a keystroke pressed and released within one frame (a control client's `ui.key`, an automation tool) keeps its Shift and Ctrl |
|
||||
| 2026-10-29 | minor | Insert Hyperlink opens with an existing link's address, display text and ScreenTip (#2876). An address-only edit preserves the cell's content and formula; Cancel leaves the link unchanged, and Undo restores the edit |
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
# Excel open check
|
||||
|
||||
Saves workbooks with `gridcraft-cli` and opens each result in real Excel (COM), recording per file `PASS` or the
|
||||
exact failure. Windows with Excel only. See `check.ps1` for the options.
|
||||
|
||||
```powershell
|
||||
.\check.ps1 -Cli C:\gridcraft\gridcraft-cli.exe -Inputs C:\workbooks -Csv result.csv
|
||||
```
|
||||
|
||||
Inputs are any `.xlsx`/`.xlsm` (the synthetic `gridcraft/` fixtures in a public fixtures repo are a good start); each
|
||||
`*.jsonl` here is a feature scenario run on the Sales sample. Add a scenario by dropping in another `.jsonl`
|
||||
(`gridcraft-cli run --script` format). Results: `Original` is the input opened in Excel (so a file Excel itself
|
||||
rejects or loads slowly isn't blamed on GridCraft), `Saved` is the GridCraft-saved copy.
|
||||
@@ -0,0 +1,12 @@
|
||||
# One chart of each common kind over the sales table
|
||||
insert.chart={"range":"B4:F8","type":"bar","at":"K36"}
|
||||
insert.chart={"range":"B4:F8","type":"line","subtype":"markers","at":"S3"}
|
||||
insert.chart={"range":"B4:F8","type":"area","subtype":"stacked","at":"S19"}
|
||||
insert.chart={"range":"C5:D8","type":"scatter","at":"S36"}
|
||||
insert.chart={"range":"B4:F8","type":"radar","at":"AA3"}
|
||||
insert.chart={"range":"B4:C8","type":"doughnut","at":"AA19"}
|
||||
insert.chart={"range":"B4:C8","type":"waterfall","at":"AA36"}
|
||||
insert.chart={"range":"B4:C8","type":"treemap","at":"AI3"}
|
||||
insert.chart={"range":"B4:C8","type":"histogram","at":"AI19"}
|
||||
insert.sparkline={"range":"C5:F5","location":"J5","type":"line"}
|
||||
insert.sparkline={"range":"C6:F6","location":"J6","type":"column"}
|
||||
@@ -0,0 +1,125 @@
|
||||
<#
|
||||
Excel open check: saves workbooks with GridCraft, opens each result in real Excel (COM) and records per
|
||||
file whether Excel loads it as it is or has to repair it (docs/file-format-parity.md, "Excel open check").
|
||||
|
||||
check.ps1 -Cli C:\gridcraft\gridcraft-cli.exe [-Inputs C:\workbooks] [-Out C:\out] [-Csv result.csv]
|
||||
[-TimeoutSec 120]
|
||||
|
||||
Files saved:
|
||||
- every .xlsx / .xlsm in -Inputs, opened and saved with `gridcraft-cli run --in --out` (the original
|
||||
is opened in Excel too, so a file Excel itself dislikes or loads slowly is told apart from a
|
||||
GridCraft regression);
|
||||
- every *.jsonl scenario next to this script (one feature each), run on the Sales sample.
|
||||
|
||||
Each file is opened read-only with CorruptLoad = xlNormalLoad (0), so a part Excel would repair is a
|
||||
failure instead of a silent fix, with DisplayAlerts off and VBA macros disabled so nothing waits on a prompt.
|
||||
AutomationSecurity does not cover Excel 4.0 (XLM) macros, which would still prompt, so a workbook that
|
||||
holds XLM macro sheets is never opened: it is reported as SKIP-XLM and the run does not pass.
|
||||
Excel is a fresh instance per file; a file that hangs or kills Excel is recorded as TIMEOUT or CRASH and
|
||||
that instance (found by its window's process id) is stopped. Nothing is written next to the inputs; any other
|
||||
Excel, such as one the person starts meanwhile, is never touched. Exit code 1 when any saved file is not PASS.
|
||||
#>
|
||||
param(
|
||||
[Parameter(Mandatory = $true)][string]$Cli,
|
||||
[string]$Inputs,
|
||||
[string]$Out = (Join-Path ([IO.Path]::GetTempPath()) 'gridcraft-excel-open-check'),
|
||||
[string]$Csv,
|
||||
[int]$TimeoutSec = 120
|
||||
)
|
||||
$ErrorActionPreference = 'Stop'
|
||||
|
||||
# Runs in a child PowerShell so a hang can be killed after $TimeoutSec without taking this script with it.
|
||||
$probe = {
|
||||
param($path)
|
||||
$x = $null
|
||||
try {
|
||||
# Compiled before Excel starts, so nothing between the start and the PID line can fail or stall on it.
|
||||
Add-Type -Namespace Win -Name U -MemberDefinition '[DllImport("user32.dll")] public static extern uint GetWindowThreadProcessId(IntPtr h, out uint pid);'
|
||||
$x = New-Object -ComObject Excel.Application
|
||||
# Report this instance's process id so the caller can stop exactly it and nothing else.
|
||||
$xlPid = [uint32]0
|
||||
[void][Win.U]::GetWindowThreadProcessId([IntPtr]$x.Hwnd, [ref]$xlPid)
|
||||
"PID`t$xlPid"
|
||||
$x.Visible = $false
|
||||
$x.DisplayAlerts = $false
|
||||
$x.AutomationSecurity = 3 # msoAutomationSecurityForceDisable: no VBA macros (XLM is screened by Test-HasXlm)
|
||||
# Named arguments: PowerShell can't skip the optional ones in between positionally.
|
||||
$wb = [System.__ComObject].InvokeMember('Open', [Reflection.BindingFlags]::InvokeMethod, $null, $x.Workbooks,
|
||||
@($path, 0, $true, 0), $null, $null, @('Filename', 'UpdateLinks', 'ReadOnly', 'CorruptLoad'))
|
||||
$sheets = $wb.Worksheets.Count + $wb.Chartsheets.Count
|
||||
$wb.Close($false)
|
||||
"PASS`t$sheets sheets"
|
||||
} catch {
|
||||
"FAIL`t" + ($_.Exception.Message -replace '\s+', ' ')
|
||||
} finally {
|
||||
# Also covers a failure before the PID line: this process's own instance is quit, no other is touched.
|
||||
if ($x) { try { $x.Quit() } catch {} }
|
||||
}
|
||||
}
|
||||
|
||||
# True when the package holds Excel 4.0 macro sheets, which ForceDisable does not stop and Excel would prompt for.
|
||||
function Test-HasXlm([string]$path) {
|
||||
Add-Type -AssemblyName System.IO.Compression.FileSystem
|
||||
# Not a zip at all: nothing to screen, Excel gets to report it.
|
||||
try { $zip = [IO.Compression.ZipFile]::OpenRead($path) } catch { return $false }
|
||||
try { return [bool]($zip.Entries | Where-Object { $_.FullName -like 'xl/macrosheets/*' }) } finally { $zip.Dispose() }
|
||||
}
|
||||
|
||||
function Test-InExcel([string]$path) {
|
||||
if (Test-HasXlm $path) { return [pscustomobject]@{ State = 'SKIP-XLM'; Seconds = 0; Detail = 'Excel 4.0 macro sheets; not opened' } }
|
||||
$clock = [Diagnostics.Stopwatch]::StartNew()
|
||||
$job = Start-Job -ScriptBlock $probe -ArgumentList $path
|
||||
$done = Wait-Job $job -Timeout $TimeoutSec
|
||||
$lines = @(Receive-Job $job -Keep -ErrorAction SilentlyContinue)
|
||||
$failed = $job.State -eq 'Failed'
|
||||
if (-not $done) { Stop-Job $job }
|
||||
Remove-Job $job -Force
|
||||
$xlPid = ($lines | Where-Object { $_ -like "PID`t*" } | Select-Object -First 1) -replace '^PID\t', ''
|
||||
$out = $lines | Where-Object { $_ -notlike "PID`t*" } | Select-Object -Last 1
|
||||
if (-not $done) { $out = "TIMEOUT`tno answer in $TimeoutSec s" } elseif ($failed -or -not $out) { $out = "CRASH`tno result (Excel died)" }
|
||||
if ($xlPid) {
|
||||
# A clean Quit lets Excel exit by itself; give it a moment, then stop only this instance.
|
||||
Wait-Process -Id ([int]$xlPid) -Timeout 15 -ErrorAction SilentlyContinue
|
||||
Stop-Process -Id ([int]$xlPid) -Force -ErrorAction SilentlyContinue
|
||||
}
|
||||
$state, $detail = $out -split "`t", 2
|
||||
[pscustomobject]@{ State = $state; Seconds = [math]::Round($clock.Elapsed.TotalSeconds, 1); Detail = $detail }
|
||||
}
|
||||
|
||||
$saved = Join-Path $Out 'saved'
|
||||
Remove-Item -LiteralPath $saved -Recurse -Force -ErrorAction SilentlyContinue
|
||||
New-Item -ItemType Directory -Path $saved -Force | Out-Null
|
||||
|
||||
# (name, original or $null, saved) per file
|
||||
$work = @()
|
||||
if ($Inputs) {
|
||||
foreach ($f in Get-ChildItem -LiteralPath $Inputs -File | Where-Object { $_.Extension -in '.xlsx', '.xlsm' } | Sort-Object Name) {
|
||||
$work += , @($f.Name, $f.FullName, (Join-Path $saved $f.Name), @('run', '--in', $f.FullName, '--quiet'))
|
||||
}
|
||||
}
|
||||
foreach ($s in Get-ChildItem -Path $PSScriptRoot -Filter *.jsonl | Sort-Object Name) {
|
||||
$work += , @("scenario:$($s.BaseName)", $null, (Join-Path $saved "$($s.BaseName).xlsx"), @('run', '--sample', 'sales', '--script', $s.FullName, '--quiet'))
|
||||
}
|
||||
|
||||
$rows = @()
|
||||
foreach ($w in $work) {
|
||||
$name, $orig, $dest, $cliArgs = $w
|
||||
# The CLI reports on stderr, which Stop would turn into an exception.
|
||||
Remove-Item -LiteralPath $dest -Force -ErrorAction SilentlyContinue
|
||||
$ErrorActionPreference = 'Continue'
|
||||
& $Cli @cliArgs --out $dest *> $null
|
||||
$code = $LASTEXITCODE
|
||||
$ErrorActionPreference = 'Stop'
|
||||
$base = if ($orig) { (Test-InExcel $orig) } else { $null }
|
||||
$r = if ($code -eq 0 -and (Test-Path -LiteralPath $dest)) { Test-InExcel $dest } else { [pscustomobject]@{ State = 'SAVE-FAIL'; Seconds = 0; Detail = "gridcraft-cli exit code $code" } }
|
||||
$rows += [pscustomobject]@{
|
||||
File = $name; Original = if ($base) { $base.State } else { '-' }; Saved = $r.State
|
||||
Seconds = $r.Seconds; Detail = $r.Detail
|
||||
}
|
||||
}
|
||||
$rows | Format-Table -AutoSize -Wrap | Out-String -Width 220 | Write-Output
|
||||
if ($Csv) { $rows | Export-Csv -NoTypeInformation -Path $Csv }
|
||||
$bad = @($rows | Where-Object { $_.Saved -ne 'PASS' -or $_.Original -eq 'SKIP-XLM' }).Count
|
||||
$savedBad = @($rows | Where-Object Saved -ne 'PASS').Count
|
||||
"{0} of {1} saved files pass" -f ($rows.Count - $savedBad), $rows.Count
|
||||
if ($bad) { exit 1 }
|
||||
@@ -0,0 +1,8 @@
|
||||
# Colour scale, data bar, icon set, top 10, formula and text rules
|
||||
home.conditionalFormat={"range":"C5:F8","rule":{"type":"colorScale"}}
|
||||
home.conditionalFormat={"range":"C5:C8","rule":{"type":"dataBar"}}
|
||||
home.conditionalFormat={"range":"D5:D8","rule":{"type":"iconSet"}}
|
||||
home.conditionalFormat={"range":"E5:E8","rule":{"type":"top10","rank":2}}
|
||||
home.conditionalFormat={"range":"F5:F8","rule":{"type":"cellIs","operator":"greaterThan","value":"60000","preset":"lightRedFill"}}
|
||||
home.conditionalFormat={"range":"B5:B8","rule":{"type":"containsText","text":"th","preset":"yellowFill"}}
|
||||
home.conditionalFormat={"range":"C5:F8","rule":{"type":"expression","formula":"=C5>AVERAGE($C$5:$F$8)","preset":"greenFill"}}
|
||||
@@ -0,0 +1,4 @@
|
||||
# PivotTable on the sales table, a pivot chart, a table slicer
|
||||
insert.pivotTable={"source":"Sales","destination":"Sales!K40","rows":["Region"],"values":[{"field":"Q1","func":"sum"}]}
|
||||
insert.pivotChart={"pivot":"Sales!K42","type":"column","at":"S50"}
|
||||
insert.slicer={"table":"Sales","column":"Region","at":"AA50"}
|
||||
@@ -0,0 +1,9 @@
|
||||
# Extra sheets (renamed, coloured, hidden), grouping and a protected sheet
|
||||
home.insertSheet={}
|
||||
sheet.rename={"name":"Second"}
|
||||
sheet.tabColor={"color":"#FF0000"}
|
||||
cell.set={"cell":"A1","input":"=Sales!B5&\" \"&Sales!C5"}
|
||||
home.insertSheet={}
|
||||
sheet.hide={}
|
||||
sheet.activate={"sheet":"Sales"}
|
||||
review.protectSheet={"formatCells":true}
|
||||
@@ -0,0 +1,5 @@
|
||||
# Shapes with text and a picture from base64 (a 1x1 PNG)
|
||||
insert.shape={"kind":"rectangle","at":"K30","width":120,"height":40,"text":"Box","fill":"#FFC000"}
|
||||
insert.shape={"kind":"ellipse","at":"O30","width":80,"height":40}
|
||||
insert.shape={"kind":"arrow","at":"K33","width":80,"height":30}
|
||||
insert.picture={"base64":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==","mime":"image/png","at":"B20","width":60,"height":60,"alt":"dot"}
|
||||
@@ -0,0 +1,13 @@
|
||||
# Table style and total row, defined names, merged cells, frozen panes, hyperlink-free cell notes
|
||||
selection.set={"cell":"C5"}
|
||||
table.totalRow={}
|
||||
table.style={"style":"TableStyleLight9"}
|
||||
formulas.defineName={"name":"NorthQ1","refersTo":"=Sales!$C$5"}
|
||||
formulas.defineName={"name":"AllRegions","refersTo":"=Sales!$B$5:$B$8"}
|
||||
formulas.defineName={"name":"Rate","refersTo":"=0.2","comment":"tax rate"}
|
||||
cell.set={"cell":"K14","input":"=SUM(AllRegions)"}
|
||||
cell.set={"cell":"K15","input":"=NorthQ1*Rate"}
|
||||
home.mergeCells={"range":"K16:M16"}
|
||||
view.freezePanes={"cell":"C5"}
|
||||
review.newNote={"cell":"C5","text":"checked"}
|
||||
review.newComment={"cell":"D5","text":"threaded"}
|
||||
@@ -0,0 +1,8 @@
|
||||
# One rule of each kind
|
||||
data.validation={"range":"K2:K5","type":"list","formula1":"North,South,East,West"}
|
||||
data.validation={"range":"K6:K8","type":"whole","operator":"between","formula1":"1","formula2":"100","inputTitle":"Count","inputMessage":"1 to 100","errorStyle":"warning"}
|
||||
data.validation={"range":"L2:L5","type":"decimal","operator":"greaterThan","formula1":"0"}
|
||||
data.validation={"range":"L6:L8","type":"date","operator":"greaterOrEqual","formula1":"2026-01-01"}
|
||||
data.validation={"range":"M2:M5","type":"textLength","operator":"lessOrEqual","formula1":"10"}
|
||||
data.validation={"range":"M6:M8","type":"custom","formula1":"=ISNUMBER(M6)"}
|
||||
data.validation={"range":"N2:N5","type":"list","formula1":"=$B$5:$B$8"}
|
||||
Reference in new issue
Block a user