@cadit-app/maker-chips 0.2.2 → 0.2.3
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/package.json +4 -4
- package/src/params.ts +5 -4
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cadit-app/maker-chips",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Customizable maker chip generator with patterns and embedded QR codes",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/main.ts",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@cadit-app/script-params": "^0.4.1",
|
|
9
|
-
"@cadit-app/svg-sampler": "^0.1.0",
|
|
10
|
-
"@cadit-app/qr-code": "^0.5.1",
|
|
11
8
|
"@cadit-app/image-extrude": "^0.3.2",
|
|
9
|
+
"@cadit-app/qr-code": "^0.5.1",
|
|
10
|
+
"@cadit-app/script-params": "^0.5.2",
|
|
11
|
+
"@cadit-app/svg-sampler": "^0.1.0",
|
|
12
12
|
"@jscadui/3mf-export": "^0.5.0",
|
|
13
13
|
"fflate": "^0.8.2"
|
|
14
14
|
},
|
package/src/params.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { svgDataUrls } from './embeddedSvgs';
|
|
6
6
|
import qrCodeMaker from '@cadit-app/qr-code';
|
|
7
7
|
import imageExtrudeMaker from '@cadit-app/image-extrude';
|
|
8
|
+
import { embedParams } from '@cadit-app/script-params';
|
|
8
9
|
import type { EmbeddedParamValue } from '@cadit-app/script-params';
|
|
9
10
|
|
|
10
11
|
// Get the params from the imported makers
|
|
@@ -82,20 +83,20 @@ export const makerChipParamsSchema = {
|
|
|
82
83
|
],
|
|
83
84
|
default: 'makerChipV1',
|
|
84
85
|
},
|
|
85
|
-
qrCodeSettings: {
|
|
86
|
+
qrCodeSettings: embedParams('@cadit-app/qr-code', {
|
|
86
87
|
type: 'embedded',
|
|
87
88
|
label: 'QR Code (Optional)',
|
|
88
89
|
params: qrCodeParamsWithOverrides,
|
|
89
90
|
enabled: false,
|
|
90
91
|
showSettings: false,
|
|
91
|
-
},
|
|
92
|
-
imageExtrudeSettings: {
|
|
92
|
+
}),
|
|
93
|
+
imageExtrudeSettings: embedParams('@cadit-app/image-extrude', {
|
|
93
94
|
type: 'embedded',
|
|
94
95
|
label: 'Image Extrude (Optional)',
|
|
95
96
|
params: imageExtrudeParamsWithOverrides,
|
|
96
97
|
enabled: false,
|
|
97
98
|
showSettings: false,
|
|
98
|
-
},
|
|
99
|
+
}),
|
|
99
100
|
} as const;
|
|
100
101
|
|
|
101
102
|
export type MakerChipParams = {
|