@cadit-app/maker-chips 0.2.4 → 0.2.5

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.
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" style="enable-background:new 0 0 128 128" viewBox="0 0 128 128" xml:space="preserve"><radialGradient id="a" cx="63.887" cy="74.925" r="64.936" gradientTransform="matrix(1 0 0 1.0839 0 -6.29)" gradientUnits="userSpaceOnUse"><stop offset=".396" style="stop-color:#e1e7ea"/><stop offset=".993" style="stop-color:#d6e1e6"/></radialGradient><path d="M111.79 67.58c.57-3.41 2.93-15.55.78-27.47-1.37-7.59-6.11-17.5-11.4-22.51C90.96 7.93 76.74 4 63.66 4s-26.59 3.93-36.8 13.6c-5.29 5.01-10.03 14.93-11.4 22.51-2.15 11.92.21 24.06.78 27.47.77 4.65-1.27 9.79-1.67 14.42-.43 5.04 1.95 8.95 6.21 11.72 3.55 2.31 7.69 3.53 11.53 5.32 4.57 2.13.42 9.82 2.11 13.7.85 1.96 2.71 3.31 4.63 4.26 2.44 1.22 5.25 1.98 7.9 1.31-.4.1.76 2.43 2.29 3.38 1.4.86 3.13 1.74 4.74 2.09 3.2.7 6.37-.48 8.35-1.5a3.67 3.67 0 0 1 3.41 0c1.98 1.02 5.15 2.2 8.35 1.5 2.41-.53 4.56-1.96 6.1-3.83.72-.88 1.84-1.36 2.97-1.28 3.36.22 8.5-1.15 10.73-6.22 1.25-2.82-.01-6.14.82-9.09 1.41-5 6.33-6.24 10.29-8.57 5.25-3.08 8.35-6.53 8.49-11.39.14-5.16-2.36-11.83-1.7-15.82z" style="fill:url(#a)"/><ellipse cx="39.83" cy="64.15" rx="13.74" ry="12.49" style="fill:#424242" transform="rotate(-75.001 39.832 64.151)"/><ellipse cx="88.2" cy="64.15" rx="12.49" ry="13.74" style="fill:#424242" transform="rotate(-14.999 88.202 64.154)"/><path d="M55.98 86.71c0-4.43 3.59-15.41 8.03-15.41s8.03 10.97 8.03 15.41c0 9.01-8.03 2.87-8.03 2.87s-8.03 6.66-8.03-2.87z" style="fill:#424242"/><path d="M42.63 118.43c-1.2-.23-2.34-.6-3.36-1.35.85-.2 1.7-.42 2.48-.8 1.94-.97 1.89-2.53 2.32-4.45.37-1.68.73-3.36 1.16-5.03.29-1.12 1.03-2.19 2.18-2.03 1.44.2 1.58 1.22 1.34 2.77-.23 1.44-1.97 10.93-1.97 10.94-.08.43-2.97.14-3.25.1-.3-.04-.6-.09-.9-.15zm43.41 0c1.2-.23 2.34-.6 3.36-1.35-.85-.2-1.7-.42-2.48-.8-1.94-.97-1.89-2.53-2.32-4.45-.37-1.68-.73-3.36-1.16-5.03-.29-1.12-1.03-2.19-2.18-2.03-1.44.2-1.58 1.22-1.34 2.77.23 1.44 1.97 10.93 1.97 10.94.08.43 2.97.14 3.25.1.3-.04.6-.09.9-.15zm-26.57 5.02s2.27-3.06 2.35-5.15c.15-3.73.36-8.77.36-11.69 0-1.16.7-2.05 1.87-2.05 1.16 0 1.81.78 1.81 1.94 0 .05.27 6.83.27 11.55 0 2.18 2.44 5.39 2.44 5.39-1-.45-2.75-1.32-4.55-1.24-2.28.11-4.55 1.25-4.55 1.25z" style="fill:#8abfd1"/></svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cadit-app/maker-chips",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Customizable maker chip generator with patterns and embedded QR codes",
5
5
  "type": "module",
6
6
  "main": "src/main.ts",
@@ -12,7 +12,7 @@
12
12
  "build:3mf": "npx tsx cli.ts output.3mf"
13
13
  },
14
14
  "dependencies": {
15
- "@cadit-app/image-extrude": "^0.4.2",
15
+ "@cadit-app/image-extrude": "^0.4.4",
16
16
  "@cadit-app/qr-code": "^0.5.1",
17
17
  "@cadit-app/script-params": "^0.5.2",
18
18
  "@cadit-app/svg-sampler": "^0.1.0",
package/src/params.ts CHANGED
@@ -12,6 +12,9 @@ import type { EmbeddedParamValue } from '@cadit-app/script-params';
12
12
  const qrCodeParams = qrCodeMaker.params;
13
13
  const imageExtrudeParams = imageExtrudeMaker.params;
14
14
 
15
+ // Default skull emoji image from this repo (served via jsDelivr CDN)
16
+ const defaultSkullImageUrl = 'https://cdn.jsdelivr.net/gh/CADit-app/maker-chips@master/images/1F480.svg';
17
+
15
18
  // Override defaults for embedded use (smaller sizes to fit in chip)
16
19
  const qrCodeParamsWithOverrides = {
17
20
  ...qrCodeParams,
@@ -21,6 +24,15 @@ const qrCodeParamsWithOverrides = {
21
24
  const imageExtrudeParamsWithOverrides = {
22
25
  ...imageExtrudeParams,
23
26
  maxWidth: { ...imageExtrudeParams.maxWidth, default: 18 },
27
+ imageFile: {
28
+ ...imageExtrudeParams.imageFile,
29
+ default: {
30
+ imageUrl: defaultSkullImageUrl,
31
+ fileType: 'image/svg+xml',
32
+ fileName: '1F480.svg',
33
+ },
34
+ },
35
+ mode: { ...imageExtrudeParams.mode, default: 'sample' },
24
36
  };
25
37
 
26
38
  export const makerChipParamsSchema = {
@@ -87,15 +99,15 @@ export const makerChipParamsSchema = {
87
99
  type: 'embedded',
88
100
  label: 'QR Code (Optional)',
89
101
  params: qrCodeParamsWithOverrides,
90
- enabled: false,
102
+ enabled: true,
91
103
  showSettings: false,
92
104
  }),
93
105
  imageExtrudeSettings: embedParams('@cadit-app/image-extrude', {
94
106
  type: 'embedded',
95
107
  label: 'Image Extrude (Optional)',
96
108
  params: imageExtrudeParamsWithOverrides,
97
- enabled: false,
98
- showSettings: false,
109
+ enabled: true,
110
+ showSettings: true,
99
111
  }),
100
112
  } as const;
101
113