Bento, the office suite that fits in a file
TypeScript mit-licenseofficeoffice-365office-suiteoffice-toolsoffice365open-sourcepowerpointself-hostedsingle-page-appslidesslideshareslideshowslideshow-galleryslideshow-makerslideshows
Remove a test-file reference from comments (#676)
nyblnet61c4443170ec
diff --git a/scripts/test-clipboard.ts b/scripts/test-clipboard.tsindex 8faee179..40427184 100644--- a/scripts/test-clipboard.ts+++ b/scripts/test-clipboard.ts@@ -112,7 +112,7 @@ function richElements(): SlideElement[] {id: 'text-1', html: '<b>Bold</b> & fine', fontFamily: "'Acme', sans-serif",letterSpacing: 1.5, role: 'title', placeholder: 'Click to add title',// color(srgb …) is what a deck converted from a design tool actually- // carries — the longest colour notation in OneMarket, at 45 characters+ // carries — the longest colour notation seen in a real deck, 45 characterscolor: 'color(srgb 0.156863 0.188235 0.227451 / 0.55)',colorGradient: { angle: 90, stops: [{ at: 0, color: '#FFFFFF' }, { at: 1, color: 'rgba(0,0,0,0.5)' }] },textStroke: { width: 2, color: '#000000', fill: 'none' },@@ -122,8 +122,8 @@ function richElements(): SlideElement[] {defaultShape('path', {id: 'shape-1', d: 'M0,0 C10,10 20,-5 30,0 Z', pathBox: [0, 0, 30, 10],// an svg paint may reference a gradient/filter in the document's own- // markup, quotes and all: OneMarket_Commercial_Architecture slide 21,- // element `topo-0`. Dropping it left render.ts writing fill="undefined",+ // markup, quotes and all, as a real deck did. Dropping it left+ // render.ts writing fill="undefined",// which paints the shape BLACK.fill: 'url("#core-glow")',strokeStyle: 'dashed', lineStart: 'arrow', lineEnd: 'dot', strokeDash: 6,diff --git a/slides/src/untrusted.ts b/slides/src/untrusted.tsindex 1c7f8f78..a07ad68c 100644--- a/slides/src/untrusted.ts+++ b/slides/src/untrusted.ts@@ -111,8 +111,8 @@ const PROTO = '__proto__'export const LIMITS = {/** ids, group tags, asset keys, a slide's `background` shorthand */scalar: 200,- /** one colour notation. The longest in a real deck (OneMarket, 21 slides,- * ~1400 colour-typed values) is 45: `color(srgb 0.156863 0.188235 … / 0.55)`.+ /** one colour notation. The longest seen in a real deck (one converted from+ * a design tool) is 45: `color(srgb 0.156863 0.188235 … / 0.55)`.* render.ts:cssColor caps at 48 — it FALLS BACK past that, this DROPS, so a* little more headroom here costs a degraded colour rather than a lost one. */color: 64,@@ -201,9 +201,9 @@ const color = (max = LIMITS.color): Check => tag((v) => {/*** An svg PAINT (`fill` / `stroke`): a colour, or a reference to a gradient or* filter defined inside this document's own markup. The quoted form is what- * real files carry — OneMarket_Commercial_Architecture slide 21, element- * `topo-0`, paints `fill: url("#core-glow")`, and the pre-change validator- * dropped it (CSS_BREAKOUT rejects `"`), leaving render.ts:shapeSvg to write+ * real files carry — a shape in a real deck paints `fill: url("#core-glow")`,+ * and the pre-change validator dropped it (CSS_BREAKOUT rejects `"`),+ * leaving render.ts:shapeSvg to write* `fill="undefined"` and paint the shape BLACK. Only a bare fragment id is* allowed: `url(https://evil/track.svg#g)` is a network fetch the paste never* asked for, and it is a colour rule that would otherwise wave it through.