@decidables/decidables-elements 0.5.4 → 0.5.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.5.6](https://github.com/decidables/decidables/compare/@decidables/decidables-elements@0.5.5...@decidables/decidables-elements@0.5.6) (2026-01-14)
7
+
8
+ **Note:** Version bump only for package @decidables/decidables-elements
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.5.5](https://github.com/decidables/decidables/compare/@decidables/decidables-elements@0.5.4...@decidables/decidables-elements@0.5.5) (2025-11-30)
15
+
16
+ **Note:** Version bump only for package @decidables/decidables-elements
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.5.4](https://github.com/decidables/decidables/compare/@decidables/decidables-elements@0.5.3...@decidables/decidables-elements@0.5.4) (2025-11-13)
7
23
 
8
24
  **Note:** Version bump only for package @decidables/decidables-elements
package/README.md CHANGED
@@ -359,7 +359,7 @@ And `this.stuff` will be a `Set` with members: `'this'`, `'that'`, and `'other'`
359
359
  - `gulpfile.js` (Tasks for *gulp*)
360
360
  - `package.json` (Package config for *yarn* and *npm*)
361
361
  - `README.md` (This file)
362
- - `rollup-stats.html` (Report on js bundle composition and size) **\[autogenerated\]**
362
+ - `rollup-stats.auto.html` (Report on js bundle composition and size) **\[autogenerated\]**
363
363
 
364
364
  ## [License](https://github.com/decidables/decidables/blob/main/LICENSE.md)
365
365
 
@@ -3248,54 +3248,12 @@ class DecidablesElement extends i {
3248
3248
  const ambientS = rotate ? `${-ambientM.y}px ${ambientM.y / 2}px ${ambientM.b}px ${ambientM.s}px` : `${ambientM.y / 2}px ${ambientM.y}px ${ambientM.b}px ${ambientM.s}px`;
3249
3249
  return `${umbraS} ${umbraC}, ${penumbraS} ${penumbraC}, ${ambientS} ${ambientC}`;
3250
3250
  }
3251
- static get svgDefs() {
3252
- const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
3253
-
3254
- const filters = shadows.elevations.map(z => {
3255
- return `
3256
- <filter id=${`shadow-${z}`} filterUnits="userSpaceOnUse" x="-100%" y="-100%" width="200%" height="200%">
3257
- <feComponentTransfer in="SourceAlpha" result="solid">
3258
- <feFuncA type="table" tableValues="0 1 1"/>
3259
- </feComponentTransfer>
3260
- <feOffset in="solid" result="offU" dx=${shadows.mapUmbra[z].y / 2} dy=${shadows.mapUmbra[z].y} />
3261
- <feOffset in="solid" result="offP" dx=${shadows.mapPenumbra[z].y / 2} dy=${shadows.mapPenumbra[z].y} />
3262
- <feOffset in="solid" result="offA" dx=${shadows.mapAmbient[z].y / 2} dy=${shadows.mapAmbient[z].y} />
3263
- ${shadows.mapUmbra[z].s === 0 ? '' : `<feMorphology in="offU" result="spreadU" operator=${shadows.mapUmbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapUmbra[z].s)} />`}
3264
- ${shadows.mapPenumbra[z].s === 0 ? '' : `<feMorphology in="offP" result="spreadP" operator=${shadows.mapPenumbra[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapPenumbra[z].s)} />`}
3265
- ${shadows.mapAmbient[z].s === 0 ? '' : `<feMorphology in="offA" result="spreadA" operator=${shadows.mapAmbient[z].s > 0 ? 'dilate' : 'erode'} radius=${Math.abs(shadows.mapAmbient[z].s)} />`}
3266
- <feGaussianBlur in=${shadows.mapUmbra[z].s === 0 ? 'offU' : 'spreadU'} result="blurU" stdDeviation=${shadows.mapUmbra[z].b / 2} />
3267
- <feGaussianBlur in=${shadows.mapPenumbra[z].s === 0 ? 'offP' : 'spreadP'} result="blurP" stdDeviation=${shadows.mapPenumbra[z].b / 2} />
3268
- <feGaussianBlur in=${shadows.mapAmbient[z].s === 0 ? 'offA' : 'spreadA'} result="blurA" stdDeviation=${shadows.mapAmbient[z].b / 2} />
3269
- <feFlood in="SourceGraphic" result="opU" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityUmbra + shadows.opacityBoost} />
3270
- <feFlood in="SourceGraphic" result="opP" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityPenumbra + shadows.opacityBoost} />
3271
- <feFlood in="SourceGraphic" result="opA" flood-color=${shadows.baselineColor} flood-opacity=${shadows.opacityAmbient + shadows.opacityBoost} />
3272
- <feComposite in="opU" in2="blurU" result="shU" operator="in" />
3273
- <feComposite in="opP" in2="blurP" result="shP" operator="in" />
3274
- <feComposite in="opA" in2="blurA" result="shA" operator="in" />
3275
- <feMorphology in="solid" result="smaller" operator="erode" radius="1" />
3276
- <feComposite in="shU" in2="smaller" result="finalU" operator="out" />
3277
- <feComposite in="shP" in2="smaller" result="finalP" operator="out" />
3278
- <feComposite in="shA" in2="smaller" result="finalA" operator="out" />
3279
- <feMerge>
3280
- <feMergeNode in="finalU" />
3281
- <feMergeNode in="finalP" />
3282
- <feMergeNode in="finalA" />
3283
- <feMergeNode in="SourceGraphic" />
3284
- </feMerge>
3285
- </filter>`;
3286
- });
3287
- return `
3288
- <defs>
3289
- ${filters}
3290
- </defs>
3291
- `;
3292
- }
3293
3251
  static get svgFilters() {
3294
3252
  const shadows = DecidablesElement.shadows; /* eslint-disable-line prefer-destructuring */
3295
3253
 
3296
3254
  const filters = shadows.elevations.map(z => {
3297
3255
  return b`
3298
- <filter id=${`shadow-${z}`} x="-250%" y="-250%" width="600%" height="600%">
3256
+ <filter id=${`shadow-${z}`} filterUnits="userSpaceOnUse" x="-100%" y="-100%" width="200%" height="200%">
3299
3257
  <feComponentTransfer in="SourceAlpha" result="solid">
3300
3258
  <feFuncA type="table" tableValues="0 1 1"/>
3301
3259
  </feComponentTransfer>
@@ -3327,11 +3285,9 @@ class DecidablesElement extends i {
3327
3285
  </filter>`;
3328
3286
  });
3329
3287
  return b`
3330
- <svg class="defs">
3331
- <defs>
3332
- ${filters}
3333
- </defs>
3334
- </svg>
3288
+ <defs class="filtersUser">
3289
+ ${filters}
3290
+ </defs>
3335
3291
  `;
3336
3292
  }
3337
3293
  static get styles() {