@popcraft/kit 1.1.0 → 1.2.0
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/dist/chunks/{agent-UXEVU3PP.js → agent-ORS5BEZC.js} +1 -1
- package/dist/chunks/{builtin-Z3JB7AQR.js → builtin-2KL2EXTB.js} +3 -3
- package/dist/chunks/{buy-credits-G7NUE6ZB.js → buy-credits-NARMZ33F.js} +2 -2
- package/dist/chunks/{check-template-SOF7SCBW.js → check-template-6D3CE5JN.js} +2 -2
- package/dist/chunks/{chunk-XXR2TY7O.js → chunk-5DIPBJ54.js} +5 -5
- package/dist/chunks/{chunk-KSOUY2WC.js → chunk-7JRE5KFW.js} +17 -5
- package/dist/chunks/{chunk-TTHTG4AT.js → chunk-7K4DVIS7.js} +1 -1
- package/dist/chunks/{chunk-ODX6NC4Y.js → chunk-A433G4Q3.js} +1 -1
- package/dist/chunks/{chunk-YAIPIG2T.js → chunk-AQ7VIL3I.js} +5 -5
- package/dist/chunks/{chunk-FQAXGCTR.js → chunk-AX7B2WCS.js} +3 -3
- package/dist/chunks/{chunk-HJ2OTGEV.js → chunk-BO35G3Z6.js} +1 -1
- package/dist/chunks/{chunk-7HZDPAV4.js → chunk-BPU5YIDG.js} +11 -11
- package/dist/chunks/{chunk-JDKR2URT.js → chunk-C7L2KQY5.js} +2 -2
- package/dist/chunks/{chunk-EPXMVWU6.js → chunk-E56VSHG3.js} +9 -9
- package/dist/chunks/{chunk-KBH3DY37.js → chunk-FF2OZPHF.js} +3 -3
- package/dist/chunks/{chunk-ICG7LWCM.js → chunk-G73CQMMJ.js} +2 -2
- package/dist/chunks/{chunk-YBXHSJZG.js → chunk-H3F5EWSJ.js} +1 -1
- package/dist/chunks/{chunk-TU3AYIIJ.js → chunk-I5NXE524.js} +43 -43
- package/dist/chunks/{chunk-QU4HXR5E.js → chunk-IXK5DQVP.js} +5 -5
- package/dist/chunks/{chunk-TNQNH3V3.js → chunk-JGC6PIT5.js} +88 -13
- package/dist/chunks/{chunk-OI74BAIT.js → chunk-MBS22UU3.js} +1 -1
- package/dist/chunks/{chunk-TC7IHZZL.js → chunk-MJVFENH4.js} +3 -3
- package/dist/chunks/{chunk-253XHQUI.js → chunk-MO6VTJRB.js} +2 -2
- package/dist/chunks/{chunk-VULPLVRT.js → chunk-MWHXK5L3.js} +4 -4
- package/dist/chunks/{chunk-3LA7EL7G.js → chunk-OBCV7RHJ.js} +1 -1
- package/dist/chunks/{chunk-TWG5JTA7.js → chunk-PNLVMTDJ.js} +1 -1
- package/dist/chunks/{chunk-R2SDI262.js → chunk-Q2ZB3FHK.js} +12 -5
- package/dist/chunks/{chunk-KDLFP3DC.js → chunk-RAKVPFZV.js} +1 -1
- package/dist/chunks/{chunk-HRYJ5YQT.js → chunk-RUD5NE4E.js} +1 -1
- package/dist/chunks/{chunk-ZODSUXQL.js → chunk-U63R2IUJ.js} +2 -2
- package/dist/chunks/{chunk-QQL3GGJD.js → chunk-UGUFREHV.js} +4 -4
- package/dist/chunks/{chunk-3KNQR6CL.js → chunk-ULSPD424.js} +2 -2
- package/dist/chunks/{chunk-XLLXOVVZ.js → chunk-UMPR42SA.js} +5 -5
- package/dist/chunks/{chunk-YRGHWQT5.js → chunk-WEM3QUB5.js} +53 -20
- package/dist/chunks/{chunk-WFOR35TQ.js → chunk-XATKFHIC.js} +6 -6
- package/dist/chunks/{chunk-NCKYRWBR.js → chunk-XDEOO7Q3.js} +1 -1
- package/dist/chunks/{chunk-HFBXTTUQ.js → chunk-XLMMVQTY.js} +1 -1
- package/dist/chunks/{client-IKQMNK4P.js → client-3XVU7EZN.js} +2 -2
- package/dist/chunks/{client-J5DLHQY5.js → client-NKXABBB2.js} +1 -1
- package/dist/chunks/{client-CFUYJ27O.js → client-UEBKLRWH.js} +3 -3
- package/dist/chunks/{client-actions-MGRTGVLB.js → client-actions-HSU6LXB3.js} +5 -5
- package/dist/chunks/{dangerous-ZXVEEDTX.js → dangerous-IUSV6JMX.js} +3 -3
- package/dist/chunks/{delete-current-file-ATFSV5HE.js → delete-current-file-B7GF6WKT.js} +5 -5
- package/dist/chunks/{editor-seams-MNACNSMF.js → editor-seams-7V7DY52W.js} +12 -12
- package/dist/chunks/{editor-store-FGXPU3UO.js → editor-store-JFHEOFHY.js} +1 -1
- package/dist/chunks/{export-watermark-MYN7T5KL.js → export-watermark-22LJTK5X.js} +5 -5
- package/dist/chunks/{eyedropper-6T3GH5QA.js → eyedropper-BGMQDPTB.js} +1 -1
- package/dist/chunks/{generate-media-PUC27DFY.js → generate-media-7RV2ZT4X.js} +3 -3
- package/dist/chunks/{host-YBEAX4RZ.js → host-PPWYGYTN.js} +6 -6
- package/dist/chunks/{integrations-YFBT6VMA.js → integrations-TMJB7SEY.js} +1 -1
- package/dist/chunks/{libraries-XPQT4ICF.js → libraries-7AUYSQU4.js} +5 -5
- package/dist/chunks/{live-RWTT4BGD.js → live-JRCK5ROW.js} +1 -1
- package/dist/chunks/{media-tool-PRVEIKYF.js → media-tool-BGIARYN2.js} +1 -1
- package/dist/chunks/{new-file-7WMZVHYL.js → new-file-XB2B4U6V.js} +3 -3
- package/dist/chunks/{next-commerce-LNSNGX4Z.js → next-commerce-A7ZHR63R.js} +2 -2
- package/dist/chunks/{plugin-4JOUMU3A.js → plugin-J6JF3PXI.js} +2 -2
- package/dist/chunks/{plugin-import-3VAIIKAX.js → plugin-import-YRTFZW5S.js} +16 -16
- package/dist/chunks/{presence-WCPLK37W.js → presence-MW5DBXWS.js} +2 -2
- package/dist/chunks/{project-OXKZCAUE.js → project-37JVFD6K.js} +1 -1
- package/dist/chunks/{publish-site-W74H7AYH.js → publish-site-4BKVML3W.js} +6 -6
- package/dist/chunks/{publish-store-756CUU4F.js → publish-store-QXVBQRV7.js} +5 -5
- package/dist/chunks/{raster-actions-U5WAAU7C.js → raster-actions-FSIUMW5Y.js} +1 -1
- package/dist/chunks/{runner-KWTHN3U5.js → runner-Q53FUQ4P.js} +18 -18
- package/dist/chunks/{store-FFLZCMSB.js → store-QGNPU45L.js} +6 -6
- package/dist/chunks/{storefront-N3Q5WUPF.js → storefront-YZAY7XSO.js} +2 -2
- package/dist/chunks/{sync-ZMDBWZV7.js → sync-XVXFWCTT.js} +5 -5
- package/dist/chunks/{tabs-SSQFEWTW.js → tabs-GRBJ3KDT.js} +8 -8
- package/dist/chunks/{team-ZWNOX4CP.js → team-GWLLCLUM.js} +1 -1
- package/dist/chunks/{team-client-24UFEZIK.js → team-client-JTGXOWAU.js} +1 -1
- package/dist/chunks/{tools-P67S2SXN.js → tools-RMNATBMU.js} +2 -2
- package/dist/chunks/{ui-commands-OGE7WUKH.js → ui-commands-C4R3GX3N.js} +12 -12
- package/dist/chunks/{versions-77MNOGSJ.js → versions-33OVXBDN.js} +5 -5
- package/dist/index.js +1 -1
- package/dist/templates/count.js +1 -1
- package/dist/templates/index.js +12 -12
- package/dist/templates/motion/landing-hero/index.js +4 -4
- package/dist/templates/motion/launch-trailer/document.js +12 -12
- package/dist/templates/motion/launch-trailer/index.js +4 -4
- package/dist/templates/motion/launch-trailer/scenes.js +3 -3
- package/dist/templates/motion/template-wall.js +2 -2
- package/dist/templates/print/knit-christmas-tree-sweater.js +2 -2
- package/dist/templates/print/knit-nordic-snowflake-sweater.js +2 -2
- package/dist/templates/print/knit-shared.js +74 -1
- package/dist/templates/print/knit-snowflake-beanie.js +2 -2
- package/dist/templates/themes/holidays.js +5 -5
- package/dist/templates/themes/index.js +6 -6
- package/package.json +1 -1
- package/src/templates/print/knit-christmas-tree-sweater.ts +57 -20
- package/src/templates/print/knit-nordic-snowflake-sweater.ts +19 -6
- package/src/templates/print/knit-shared.ts +98 -11
- package/src/templates/print/knit-snowflake-beanie.ts +12 -4
- package/types/templates/src/print/knit-shared.d.ts +49 -1
|
@@ -8,16 +8,18 @@ import {
|
|
|
8
8
|
BEANIE,
|
|
9
9
|
Stitches,
|
|
10
10
|
YARN,
|
|
11
|
+
between,
|
|
11
12
|
clear,
|
|
12
13
|
heart,
|
|
13
14
|
knitPanel,
|
|
14
15
|
knitPreset,
|
|
15
16
|
lice,
|
|
17
|
+
linear,
|
|
18
|
+
logoStitches,
|
|
16
19
|
nordicStar,
|
|
17
|
-
popcraftLogo,
|
|
18
20
|
snowflake,
|
|
19
21
|
zigzag
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JGC6PIT5.js";
|
|
21
23
|
import {
|
|
22
24
|
defineTemplate
|
|
23
25
|
} from "./chunk-2ZE6IV3T.js";
|
|
@@ -56,12 +58,17 @@ var knit_snowflake_beanie_default = defineTemplate({
|
|
|
56
58
|
const s = new Stitches(panel.width, panel.height);
|
|
57
59
|
for (let x = 0; x < s.width; x += 82) snowflake(s, x + 41, 40, 24, BLEACH);
|
|
58
60
|
zigzag(s, 80, 20, 7, 3, CHILI);
|
|
59
|
-
const
|
|
60
|
-
for (let x = 0; x < s.width; x += 58) if (x + 29 + 27 <
|
|
61
|
+
const half = logoStitches(150).width / 2;
|
|
62
|
+
for (let x = 0; x < s.width; x += 58) if (x + 29 + 27 < 205 - half || x + 29 - 27 > 205 + half) nordicStar(s, x + 29, 124, 24, BLEACH, PINE);
|
|
61
63
|
zigzag(s, 160, 20, 7, 3, CHILI);
|
|
62
64
|
for (let x = 0; x < s.width; x += 41) heart(s, x + 20, 198, 11, BLEACH);
|
|
63
65
|
lice(s, 6, 70, 26, BLEACH, clear(s, 6));
|
|
64
|
-
knitPanel(k, k.sheet, panel, YARNS, s, PINE)
|
|
66
|
+
knitPanel(k, k.sheet, panel, YARNS, s, PINE, { layers: (L) => {
|
|
67
|
+
L.halo(205, 121, 110, 46, YARN.bleach, 0.45, 0.85, "Logo glow");
|
|
68
|
+
L.logo(207, 123, 150, linear(90, [[0, YARN.chili]]), "Logo shadow");
|
|
69
|
+
L.logo(205, 121, 150, linear(90, [[0, YARN.bleach], [0.55, YARN.bleach], [1, between(YARN.bleach, YARN.chili, 0.45)]]));
|
|
70
|
+
L.rect(0, 0, s.width, 18, linear(90, [[0, YARN.bleach, 0.55], [1, YARN.bleach, 0]]), "Crown frost");
|
|
71
|
+
} });
|
|
65
72
|
return k.doc;
|
|
66
73
|
}
|
|
67
74
|
});
|
|
@@ -14,7 +14,7 @@ init_define_POPCRAFT_COMPONENT_IDS();
|
|
|
14
14
|
// packages/runtime/package.json
|
|
15
15
|
var package_default = {
|
|
16
16
|
name: "@popcraft/runtime",
|
|
17
|
-
version: "1.
|
|
17
|
+
version: "1.2.0",
|
|
18
18
|
description: "What code exported from PopCraft shares: the meaning of expressions (operators and functions) and, as it grows, the parts of a design's behaviour that are common code rather than generated React.",
|
|
19
19
|
license: "MIT",
|
|
20
20
|
homepage: "https://popcraft.app/docs/exporting/nextjs",
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
popIn,
|
|
14
14
|
shadow,
|
|
15
15
|
travel
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XLMMVQTY.js";
|
|
17
17
|
import {
|
|
18
18
|
DURATION,
|
|
19
19
|
buildTemplateWall
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7K4DVIS7.js";
|
|
21
21
|
import {
|
|
22
22
|
trailerType
|
|
23
23
|
} from "./chunk-Y2QHMGV2.js";
|
|
@@ -17,14 +17,14 @@ import {
|
|
|
17
17
|
reportOpenStage,
|
|
18
18
|
setCloudLink,
|
|
19
19
|
trackOpen
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ULSPD424.js";
|
|
21
21
|
import {
|
|
22
22
|
parseDeepLink,
|
|
23
23
|
withDeepLink
|
|
24
24
|
} from "./chunk-MAIOW77V.js";
|
|
25
25
|
import {
|
|
26
26
|
activeTeamWorkspaceId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-MBS22UU3.js";
|
|
28
28
|
import {
|
|
29
29
|
ApiError,
|
|
30
30
|
api,
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
} from "./chunk-CMPXWCFB.js";
|
|
33
33
|
import {
|
|
34
34
|
attachPresence
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PNLVMTDJ.js";
|
|
36
36
|
import {
|
|
37
37
|
fileOpeningMode,
|
|
38
38
|
isAppleMobile,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
setCollabHistory,
|
|
46
46
|
storedDocument,
|
|
47
47
|
useEditorStore
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-IXK5DQVP.js";
|
|
49
49
|
import {
|
|
50
50
|
currentHistoryGroup
|
|
51
51
|
} from "./chunk-F36HILOC.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-QH6PUSXO.js";
|
|
10
10
|
import {
|
|
11
11
|
activeTeamWorkspaceId
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-MBS22UU3.js";
|
|
13
13
|
import {
|
|
14
14
|
ApiError,
|
|
15
15
|
cloudApi
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-YU7BEN7M.js";
|
|
23
23
|
import {
|
|
24
24
|
markLibraryDocument
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-IXK5DQVP.js";
|
|
26
26
|
import {
|
|
27
27
|
GUEST_FILE_LIMIT
|
|
28
28
|
} from "./chunk-H3B6PDES.js";
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
} from "./chunk-SW252Z2D.js";
|
|
79
79
|
import {
|
|
80
80
|
THEME_PACKS
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-OBCV7RHJ.js";
|
|
82
82
|
import {
|
|
83
83
|
word_quote_default
|
|
84
84
|
} from "./chunk-2P767HFL.js";
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
} from "./chunk-LQULWI2O.js";
|
|
289
289
|
import {
|
|
290
290
|
launch_trailer_default
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-BO35G3Z6.js";
|
|
292
292
|
import {
|
|
293
293
|
logo_reveal_default
|
|
294
294
|
} from "./chunk-CRTVOLCB.js";
|
|
@@ -303,10 +303,10 @@ import {
|
|
|
303
303
|
} from "./chunk-QOIL356N.js";
|
|
304
304
|
import {
|
|
305
305
|
landing_hero_default
|
|
306
|
-
} from "./chunk-
|
|
306
|
+
} from "./chunk-U63R2IUJ.js";
|
|
307
307
|
import {
|
|
308
308
|
template_wall_default
|
|
309
|
-
} from "./chunk-
|
|
309
|
+
} from "./chunk-7K4DVIS7.js";
|
|
310
310
|
import {
|
|
311
311
|
countdown_default
|
|
312
312
|
} from "./chunk-HUWJTJ6D.js";
|
|
@@ -408,7 +408,7 @@ import {
|
|
|
408
408
|
} from "./chunk-CJHKUK6R.js";
|
|
409
409
|
import {
|
|
410
410
|
registerTemplateSources
|
|
411
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-MJVFENH4.js";
|
|
412
412
|
import {
|
|
413
413
|
bars_default
|
|
414
414
|
} from "./chunk-NAS3AQMP.js";
|
|
@@ -8,18 +8,18 @@ import {
|
|
|
8
8
|
SWEATER_3XL,
|
|
9
9
|
Stitches,
|
|
10
10
|
YARN,
|
|
11
|
-
|
|
11
|
+
between,
|
|
12
12
|
clear,
|
|
13
13
|
heart,
|
|
14
14
|
knitPanel,
|
|
15
15
|
knitPreset,
|
|
16
16
|
lice,
|
|
17
|
-
|
|
17
|
+
linear,
|
|
18
|
+
radial,
|
|
18
19
|
snowflake,
|
|
19
|
-
star,
|
|
20
20
|
tree,
|
|
21
21
|
zigzag
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JGC6PIT5.js";
|
|
23
23
|
import {
|
|
24
24
|
defineTemplate
|
|
25
25
|
} from "./chunk-2ZE6IV3T.js";
|
|
@@ -33,7 +33,6 @@ import {
|
|
|
33
33
|
// templates/src/print/knit-christmas-tree-sweater.ts
|
|
34
34
|
init_define_POPCRAFT_COMPONENT_IDS();
|
|
35
35
|
var NAME = "Christmas tree knit sweater";
|
|
36
|
-
var CHILI = 0;
|
|
37
36
|
var PINE = 1;
|
|
38
37
|
var BLEACH = 2;
|
|
39
38
|
var MUSTARD = 3;
|
|
@@ -47,13 +46,43 @@ function forest(s, bottom) {
|
|
|
47
46
|
for (let x = 26; x < s.width; x += 52) tree(s, x, bottom - 60, 46, PINE, MUSTARD);
|
|
48
47
|
s.rows(bottom - 8, bottom - 5, PINE);
|
|
49
48
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
var Y = YARN;
|
|
50
|
+
function tiers(cx, top, h) {
|
|
51
|
+
const foot = h * 0.86, tierH = foot / (2 * 0.78 + 1.15);
|
|
52
|
+
return [0, 1, 2].map((i) => {
|
|
53
|
+
const y0 = top + i * tierH * 0.78, y1 = y0 + tierH * 1.15, half = h * (0.2 + i * 0.1);
|
|
54
|
+
return [[cx, y0], [cx + half, y1], [cx - half, y1]];
|
|
55
55
|
});
|
|
56
|
-
|
|
56
|
+
}
|
|
57
|
+
function starPts(cx, cy, r) {
|
|
58
|
+
return Array.from({ length: 10 }, (_, i) => {
|
|
59
|
+
const a = -Math.PI / 2 + i * Math.PI / 5, rr = i % 2 ? r * 0.42 : r;
|
|
60
|
+
return [cx + Math.cos(a) * rr, cy + Math.sin(a) * rr];
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function litTree(L, cx, top, h) {
|
|
64
|
+
L.halo(cx, top + h * 0.45, h * 0.62, h * 0.6, Y.mustard, 0.6, 0.66, "Tree glow");
|
|
65
|
+
const lit = linear(0, [[0, between(Y.pine, Y.mustard, 0.5)], [0.42, Y.pine], [1, Y.pine]]);
|
|
66
|
+
tiers(cx, top, h).forEach((t, i) => L.poly(t, lit, `Tier ${i + 1}`));
|
|
67
|
+
const tw = Math.max(2, Math.round(h * 0.045));
|
|
68
|
+
L.rect(cx - tw, top + h * 0.86 - 1, tw * 2, h * 0.14 + 1, linear(0, [[0, between(Y.pine, Y.mustard, 0.3)], [1, Y.pine]]), "Trunk");
|
|
69
|
+
const spots = [[-22, 0.38], [26, 0.4], [-60, 0.6], [6, 0.63], [64, 0.61]];
|
|
70
|
+
spots.forEach(([dx, at], i) => L.bauble(cx + dx, top + h * at, 10, Y.bleach, i % 2 ? Y.mustard : Y.chili, between(i % 2 ? Y.mustard : Y.chili, Y.pine, 0.6)));
|
|
71
|
+
L.halo(cx, top - 6, 46, 46, Y.mustard, 0.8, 0.55, "Star glow");
|
|
72
|
+
L.poly(starPts(cx, top - 6, 30), radial([[0, Y.bleach], [0.45, Y.mustard], [1, between(Y.mustard, Y.chili, 0.5)]], 0.45, 0.4, 0.6), "Star");
|
|
73
|
+
}
|
|
74
|
+
function ribbon(L, cx, cy, w, h, logo) {
|
|
75
|
+
const top = cy - h / 2, bot = cy + h / 2, l = cx - w / 2, r = cx + w / 2, tail = h * 0.55, drop = h * 0.22;
|
|
76
|
+
for (const side of [-1, 1]) {
|
|
77
|
+
const e = side < 0 ? l : r, out = e + side * tail;
|
|
78
|
+
L.poly(
|
|
79
|
+
[[e - side * h * 0.3, top + drop], [out, top + drop], [out - side * h * 0.22, cy + drop], [out, bot + drop], [e - side * h * 0.3, bot + drop]],
|
|
80
|
+
linear(side < 0 ? 0 : 180, [[0, Y.mustard], [1, between(Y.mustard, Y.chili, 0.65)]]),
|
|
81
|
+
side < 0 ? "Ribbon tail left" : "Ribbon tail right"
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
L.rect(l, top, w, h, linear(90, [[0, Y.bleach], [0.62, Y.bleach], [1, between(Y.bleach, Y.mustard, 0.7)]]), "Ribbon");
|
|
85
|
+
L.logo(cx, cy, logo, linear(90, [[0, Y.chili], [0.5, Y.chili], [1, between(Y.chili, Y.pine, 0.5)]]));
|
|
57
86
|
}
|
|
58
87
|
var knit_christmas_tree_sweater_default = defineTemplate({
|
|
59
88
|
id: "print-knit-christmas-tree-sweater",
|
|
@@ -75,22 +104,24 @@ var knit_christmas_tree_sweater_default = defineTemplate({
|
|
|
75
104
|
k.palette({ trim: YARN.pine });
|
|
76
105
|
const f = new Stitches(front.width, front.height);
|
|
77
106
|
topBand(f, 54);
|
|
78
|
-
chestTree(f, 255, 140, 380);
|
|
79
|
-
banner(f, 255, 476, 300, 104, BLEACH, MUSTARD);
|
|
80
|
-
popcraftLogo(f, 255, 476, 240, CHILI);
|
|
81
107
|
for (const [x, y, r] of [[78, 170, 34], [436, 170, 34], [62, 370, 26], [450, 370, 26], [120, 270, 18], [392, 270, 18]]) snowflake(f, x, y, r, BLEACH);
|
|
82
108
|
forest(f, 628);
|
|
83
109
|
lice(f, 110, 540, 30, BLEACH, clear(f, 7));
|
|
84
|
-
knitPanel(k, k.sheet, front, YARNS, f, PINE)
|
|
110
|
+
knitPanel(k, k.sheet, front, YARNS, f, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
|
|
111
|
+
litTree(L, 255, 140, 380);
|
|
112
|
+
ribbon(L, 255, 476, 300, 104, 240);
|
|
113
|
+
} });
|
|
85
114
|
const b = new Stitches(back.width, back.height);
|
|
86
115
|
topBand(b, 20);
|
|
87
116
|
for (let x = 0; x < b.width; x += 128) snowflake(b, x, 120, 22, BLEACH);
|
|
88
|
-
popcraftLogo(b, 255, 300, 420, BLEACH, { c: PINE, ring: 4 });
|
|
89
|
-
for (const x of [70, 441]) tree(b, x, 420, 120, PINE, MUSTARD);
|
|
90
|
-
star(b, 255, 450, 26, MUSTARD);
|
|
91
117
|
forest(b, 628);
|
|
92
118
|
lice(b, 70, 540, 30, BLEACH, clear(b, 7));
|
|
93
|
-
knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, PINE)
|
|
119
|
+
knitPanel(k, k.addSheet(knitPreset(back)), back, YARNS, b, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
|
|
120
|
+
L.halo(255, 300, 270, 130, Y.mustard, 0.55, 0.82, "Logo glow");
|
|
121
|
+
L.logo(259, 305, 420, linear(90, [[0, Y.pine]]), "Logo shadow");
|
|
122
|
+
L.logo(255, 300, 420, linear(90, [[0, Y.bleach], [0.55, Y.bleach], [1, between(Y.bleach, Y.mustard, 0.75)]]));
|
|
123
|
+
for (const x of [80, 431]) litTree(L, x, 420, 120);
|
|
124
|
+
} });
|
|
94
125
|
for (const sleeve of [right, left]) {
|
|
95
126
|
const s = new Stitches(sleeve.width, sleeve.height);
|
|
96
127
|
for (let y = 90, i = 0; y < 520; y += 105, i++) {
|
|
@@ -99,7 +130,9 @@ var knit_christmas_tree_sweater_default = defineTemplate({
|
|
|
99
130
|
}
|
|
100
131
|
forest(s, 628);
|
|
101
132
|
lice(s, 30, 540, 30, BLEACH, clear(s, 7));
|
|
102
|
-
knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, PINE)
|
|
133
|
+
knitPanel(k, k.addSheet(knitPreset(sleeve)), sleeve, YARNS, s, PINE, { blend: "HALFTONE", dot: 5, layers: (L) => {
|
|
134
|
+
L.rect(0, 470, sleeve.width, 86, linear(90, [[0, Y.pine, 0], [1, Y.pine, 0.85]]), "Dusk");
|
|
135
|
+
} });
|
|
103
136
|
}
|
|
104
137
|
return k.doc;
|
|
105
138
|
},
|
|
@@ -6,7 +6,7 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
registerAppCommands
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-E56VSHG3.js";
|
|
10
10
|
import {
|
|
11
11
|
storeOpsSeam
|
|
12
12
|
} from "./chunk-2NFTX3PP.js";
|
|
@@ -23,13 +23,13 @@ import {
|
|
|
23
23
|
sameResolution,
|
|
24
24
|
surfaceSize,
|
|
25
25
|
windowCssSize
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-I5NXE524.js";
|
|
27
27
|
import {
|
|
28
28
|
notice
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-G73CQMMJ.js";
|
|
30
30
|
import {
|
|
31
31
|
agentContext
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AX7B2WCS.js";
|
|
33
33
|
import {
|
|
34
34
|
setAudioOutputDocument,
|
|
35
35
|
setMediaDocument
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
import {
|
|
38
38
|
collabSession,
|
|
39
39
|
syncStatus
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-UGUFREHV.js";
|
|
41
41
|
import {
|
|
42
42
|
loadEntitlements
|
|
43
43
|
} from "./chunk-QH6PUSXO.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
import {
|
|
51
51
|
persist,
|
|
52
52
|
useEditorStore
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-IXK5DQVP.js";
|
|
54
54
|
import {
|
|
55
55
|
create
|
|
56
56
|
} from "./chunk-LLNAXNMG.js";
|
|
@@ -7,7 +7,7 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
defaultMeasure,
|
|
9
9
|
placePicture
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MO6VTJRB.js";
|
|
11
11
|
import "./chunk-V66O2FNK.js";
|
|
12
12
|
import {
|
|
13
13
|
api
|
|
@@ -122,7 +122,7 @@ async function placeLibraryItem(item, opts = {}) {
|
|
|
122
122
|
}
|
|
123
123
|
if (item.contentType.startsWith("video/")) {
|
|
124
124
|
const file = await libraryFile(item, opts);
|
|
125
|
-
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-
|
|
125
|
+
const [{ useEditorStore }, { placeMediaFile }] = await Promise.all([import("./editor-store-JFHEOFHY.js"), import("./media-tool-BGIARYN2.js")]);
|
|
126
126
|
const cam = useEditorStore.getState().camera;
|
|
127
127
|
await placeMediaFile(file, { kind: "point", ...opts.at ?? { x: cam.x, y: cam.y } });
|
|
128
128
|
return useEditorStore.getState().selection[0] ?? null;
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
requestEmbeddings,
|
|
17
17
|
requestImage,
|
|
18
18
|
requestImageAction
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-H3F5EWSJ.js";
|
|
20
|
+
import "./chunk-XDEOO7Q3.js";
|
|
21
21
|
import "./chunk-MKWU7K63.js";
|
|
22
22
|
import "./chunk-QH6PUSXO.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-MBS22UU3.js";
|
|
24
24
|
import "./chunk-CMPXWCFB.js";
|
|
25
25
|
import "./chunk-YU7BEN7M.js";
|
|
26
26
|
import "./chunk-H3B6PDES.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
selectedVectorTarget,
|
|
17
17
|
startImageAction,
|
|
18
18
|
startImageGeneration
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-G73CQMMJ.js";
|
|
20
20
|
import "./chunk-EG2WP5CW.js";
|
|
21
21
|
import "./chunk-R5K2B3R3.js";
|
|
22
22
|
import "./chunk-VOXFFKNY.js";
|
|
@@ -29,18 +29,18 @@ import "./chunk-5J5K3765.js";
|
|
|
29
29
|
import "./chunk-E5NEL7R5.js";
|
|
30
30
|
import "./chunk-5C7A4E7B.js";
|
|
31
31
|
import "./chunk-V275U326.js";
|
|
32
|
-
import "./chunk-
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-H3F5EWSJ.js";
|
|
33
|
+
import "./chunk-XDEOO7Q3.js";
|
|
34
34
|
import "./chunk-MKWU7K63.js";
|
|
35
35
|
import "./chunk-HIOKDYKH.js";
|
|
36
36
|
import "./chunk-DCQIJ5K6.js";
|
|
37
37
|
import "./chunk-XJFP22CM.js";
|
|
38
38
|
import "./chunk-QH6PUSXO.js";
|
|
39
39
|
import "./chunk-SRXRN7N5.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-MBS22UU3.js";
|
|
41
41
|
import "./chunk-CMPXWCFB.js";
|
|
42
42
|
import "./chunk-YU7BEN7M.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-IXK5DQVP.js";
|
|
44
44
|
import "./chunk-GQV6RKZJ.js";
|
|
45
45
|
import "./chunk-F36HILOC.js";
|
|
46
46
|
import "./chunk-5523LA2B.js";
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
confirmTierCommands,
|
|
9
9
|
dangerousCommands,
|
|
10
10
|
registerDangerousCommands
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-BPU5YIDG.js";
|
|
12
|
+
import "./chunk-AQ7VIL3I.js";
|
|
13
13
|
import "./chunk-2NFTX3PP.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-I5NXE524.js";
|
|
15
15
|
import "./chunk-YQA5IWOG.js";
|
|
16
16
|
import "./chunk-VT2A3WIM.js";
|
|
17
17
|
import "./chunk-L6RMNPUS.js";
|
|
@@ -6,21 +6,21 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGUFREHV.js";
|
|
10
10
|
import "./chunk-LDPWCKGV.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-ULSPD424.js";
|
|
12
12
|
import "./chunk-QH6PUSXO.js";
|
|
13
13
|
import "./chunk-MAIOW77V.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-MBS22UU3.js";
|
|
15
15
|
import {
|
|
16
16
|
cloudApi
|
|
17
17
|
} from "./chunk-CMPXWCFB.js";
|
|
18
18
|
import "./chunk-VOUDBB3B.js";
|
|
19
19
|
import "./chunk-YU7BEN7M.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-PNLVMTDJ.js";
|
|
21
21
|
import {
|
|
22
22
|
useEditorStore
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-IXK5DQVP.js";
|
|
24
24
|
import "./chunk-GQV6RKZJ.js";
|
|
25
25
|
import "./chunk-F36HILOC.js";
|
|
26
26
|
import "./chunk-5523LA2B.js";
|
|
@@ -7,21 +7,21 @@ const __dirname = __popcraftDirname(__filename);
|
|
|
7
7
|
import {
|
|
8
8
|
editBlockReason,
|
|
9
9
|
editorToolContext
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-XATKFHIC.js";
|
|
11
|
+
import "./chunk-E56VSHG3.js";
|
|
12
12
|
import "./chunk-2NFTX3PP.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-I5NXE524.js";
|
|
14
14
|
import "./chunk-YQA5IWOG.js";
|
|
15
15
|
import "./chunk-VT2A3WIM.js";
|
|
16
16
|
import "./chunk-L6RMNPUS.js";
|
|
17
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-G73CQMMJ.js";
|
|
18
18
|
import "./chunk-EG2WP5CW.js";
|
|
19
19
|
import "./chunk-4IUHCC33.js";
|
|
20
20
|
import "./chunk-3FUAWRIT.js";
|
|
21
21
|
import "./chunk-JEIJJB4H.js";
|
|
22
22
|
import "./chunk-ZEJGI7M6.js";
|
|
23
23
|
import "./chunk-R5K2B3R3.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-AX7B2WCS.js";
|
|
25
25
|
import "./chunk-CYD3CB7J.js";
|
|
26
26
|
import "./chunk-VOXFFKNY.js";
|
|
27
27
|
import "./chunk-LPV57UQN.js";
|
|
@@ -35,28 +35,28 @@ import "./chunk-5J5K3765.js";
|
|
|
35
35
|
import "./chunk-E5NEL7R5.js";
|
|
36
36
|
import "./chunk-5C7A4E7B.js";
|
|
37
37
|
import "./chunk-V275U326.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-H3F5EWSJ.js";
|
|
39
|
+
import "./chunk-XDEOO7Q3.js";
|
|
40
40
|
import "./chunk-MKWU7K63.js";
|
|
41
41
|
import "./chunk-562V65KY.js";
|
|
42
42
|
import "./chunk-HIOKDYKH.js";
|
|
43
43
|
import "./chunk-DCQIJ5K6.js";
|
|
44
44
|
import "./chunk-XJFP22CM.js";
|
|
45
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-UGUFREHV.js";
|
|
46
46
|
import "./chunk-LDPWCKGV.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-ULSPD424.js";
|
|
48
48
|
import "./chunk-QH6PUSXO.js";
|
|
49
49
|
import "./chunk-MAIOW77V.js";
|
|
50
50
|
import "./chunk-SRXRN7N5.js";
|
|
51
|
-
import "./chunk-
|
|
51
|
+
import "./chunk-MBS22UU3.js";
|
|
52
52
|
import "./chunk-CMPXWCFB.js";
|
|
53
53
|
import "./chunk-VOUDBB3B.js";
|
|
54
54
|
import "./chunk-HEJDYXEN.js";
|
|
55
55
|
import "./chunk-MAQCM7EB.js";
|
|
56
56
|
import "./chunk-YU7BEN7M.js";
|
|
57
57
|
import "./chunk-NFKRHEFS.js";
|
|
58
|
-
import "./chunk-
|
|
59
|
-
import "./chunk-
|
|
58
|
+
import "./chunk-PNLVMTDJ.js";
|
|
59
|
+
import "./chunk-IXK5DQVP.js";
|
|
60
60
|
import "./chunk-GQV6RKZJ.js";
|
|
61
61
|
import "./chunk-F36HILOC.js";
|
|
62
62
|
import "./chunk-5523LA2B.js";
|
|
@@ -6,24 +6,24 @@ const __filename = __popcraftPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __popcraftDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
syncStatus
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-UGUFREHV.js";
|
|
10
10
|
import "./chunk-LDPWCKGV.js";
|
|
11
11
|
import {
|
|
12
12
|
isGuest
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-ULSPD424.js";
|
|
14
14
|
import {
|
|
15
15
|
cachedLimits,
|
|
16
16
|
loadEntitlements
|
|
17
17
|
} from "./chunk-QH6PUSXO.js";
|
|
18
18
|
import "./chunk-MAIOW77V.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MBS22UU3.js";
|
|
20
20
|
import {
|
|
21
21
|
cloudApi
|
|
22
22
|
} from "./chunk-CMPXWCFB.js";
|
|
23
23
|
import "./chunk-VOUDBB3B.js";
|
|
24
24
|
import "./chunk-YU7BEN7M.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-PNLVMTDJ.js";
|
|
26
|
+
import "./chunk-IXK5DQVP.js";
|
|
27
27
|
import "./chunk-GQV6RKZJ.js";
|
|
28
28
|
import "./chunk-F36HILOC.js";
|
|
29
29
|
import "./chunk-5523LA2B.js";
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
AiClientError,
|
|
17
17
|
aiFetch
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-H3F5EWSJ.js";
|
|
19
|
+
import "./chunk-XDEOO7Q3.js";
|
|
20
20
|
import {
|
|
21
21
|
useAiStore
|
|
22
22
|
} from "./chunk-MKWU7K63.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-DCQIJ5K6.js";
|
|
|
24
24
|
import "./chunk-XJFP22CM.js";
|
|
25
25
|
import "./chunk-QH6PUSXO.js";
|
|
26
26
|
import "./chunk-SRXRN7N5.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-MBS22UU3.js";
|
|
28
28
|
import "./chunk-CMPXWCFB.js";
|
|
29
29
|
import "./chunk-YU7BEN7M.js";
|
|
30
30
|
import {
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
runPluginWithImport,
|
|
20
20
|
runningSessionFor,
|
|
21
21
|
setEnabled
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-5DIPBJ54.js";
|
|
23
23
|
import "./chunk-3PKAWDNQ.js";
|
|
24
24
|
import "./chunk-R5K2B3R3.js";
|
|
25
25
|
import "./chunk-CYD3CB7J.js";
|
|
@@ -35,19 +35,19 @@ import "./chunk-QIOK2HY5.js";
|
|
|
35
35
|
import "./chunk-HIOKDYKH.js";
|
|
36
36
|
import "./chunk-DCQIJ5K6.js";
|
|
37
37
|
import "./chunk-XJFP22CM.js";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-UGUFREHV.js";
|
|
39
39
|
import "./chunk-LDPWCKGV.js";
|
|
40
|
-
import "./chunk-
|
|
40
|
+
import "./chunk-ULSPD424.js";
|
|
41
41
|
import "./chunk-QH6PUSXO.js";
|
|
42
42
|
import "./chunk-MAIOW77V.js";
|
|
43
43
|
import "./chunk-SRXRN7N5.js";
|
|
44
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-MBS22UU3.js";
|
|
45
45
|
import "./chunk-CMPXWCFB.js";
|
|
46
46
|
import "./chunk-VOUDBB3B.js";
|
|
47
47
|
import "./chunk-KIIAD4SO.js";
|
|
48
48
|
import "./chunk-YU7BEN7M.js";
|
|
49
|
-
import "./chunk-
|
|
50
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-PNLVMTDJ.js";
|
|
50
|
+
import "./chunk-IXK5DQVP.js";
|
|
51
51
|
import "./chunk-GQV6RKZJ.js";
|
|
52
52
|
import "./chunk-F36HILOC.js";
|
|
53
53
|
import "./chunk-5523LA2B.js";
|