opencrush 0.3.18 → 0.3.19

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -245656,8 +245656,8 @@ function escapeXml(str2) {
245656
245656
  }
245657
245657
  function buildTextOverlay(data, bgR = 20, bgG = 20, bgB = 30) {
245658
245658
  const S2 = SCALE;
245659
- const textX = 56 * S2;
245660
- const panelW = 520 * S2;
245659
+ const textX = 44 * S2;
245660
+ const panelW = 480 * S2;
245661
245661
  const availW = panelW - textX - 30 * S2;
245662
245662
  const meta = [data.age, data.location].filter(Boolean).join(" \xB7 ");
245663
245663
  const lineCount = 1 + (meta ? 1 : 0) + (data.job ? 1 : 0) + 1 + (data.tags.length > 0 ? 1 : 0) + (data.vibe ? 1 : 0);
@@ -245773,7 +245773,7 @@ async function generateCard(characterName) {
245773
245773
  </svg>`
245774
245774
  );
245775
245775
  const maskedPortrait = await sharp(portrait).composite([{ input: fadeMask, blend: "dest-in" }]).png().toBuffer();
245776
- const panelW = Math.round(520 * SCALE);
245776
+ const panelW = Math.round(480 * SCALE);
245777
245777
  const textSvg = buildTextOverlay(data, bgR, bgG, bgB);
245778
245778
  const textPanel = await sharp(Buffer.from(textSvg)).resize(panelW, H2).png().toBuffer();
245779
245779
  const card = sharp(bgSolid).composite([
@@ -245817,7 +245817,7 @@ var init_card = __esm({
245817
245817
  init_source();
245818
245818
  SCALE = 2;
245819
245819
  W2 = 1200 * SCALE;
245820
- H2 = 630 * SCALE;
245820
+ H2 = 960 * SCALE;
245821
245821
  }
245822
245822
  });
245823
245823
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencrush",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Your AI companion lives on your device. She watches dramas, listens to music, and thinks of you.",
5
5
  "bin": {
6
6
  "opencrush": "dist/index.js"