kooriookami / yugioh-card

一个使用 Canvas 渲染游戏王卡片的工具
https://kooriookami.github.io/yugioh-card/
MIT License
37 stars 13 forks source link

React 有时会触发Renderer rendering,此时export出的图片尺寸有问题 #7

Closed HenryFishYu closed 1 month ago

HenryFishYu commented 1 month ago
Screenshot 2024-10-20 at 1 37 50 pm

注意这个图片的尺寸是1454 × 2091:

SD25-SC002_2295440

import { useRef, useState } from "react";
import { CardRenderProps } from "../lib/Props";
import axios from "axios";
import { defaultCardData } from "../lib/Constant";
import Button from "../components/Button";
import { YugiohCard } from "yugioh-card";
import { cards } from "../lib/Constant";
const MainPage = () => {
  const [data, setData] = useState<CardRenderProps>(defaultCardData);
  const ref = useRef();
  const searchAndPrint = async () => {
    try {
      const response = await axios.get("packages/SD25/cards/draw?language=sc");
      for (const e of response.data) {
        const updatedData: CardRenderProps = { ...data };
        // Update only matching keys from response.data
        Object.keys(e).forEach((key) => {
          if (data.hasOwnProperty(key)) {
            updatedData[key] = e[key];
          }
        });
        updatedData.image = `https://raw.githubusercontent.com/HenryFishYu/yugioh-card-pic/refs/heads/master/card-pic/${e.password}.jpg`;
        const res = await new YugiohCard({
          data: updatedData,
          resourcePath: "/assets/yugioh-card/",
        }).leafer.export(`${e.package}_${e.password}.png`);
        console.log(res);
      }
    } catch (error) {
      console.error("Error fetching data:", error);
    }
  };
  return (
    <>
      <div className="flex h-screen ">
        <div ref={ref} />
        <Button text={"download"} onClick={searchAndPrint} />
      </div>
    </>
  );
};
export default MainPage;

此处触发Renderer rendering,接口返回结果:

[
    {
        "language": "sc",
        "font": "",
        "name": "暗黑暴风龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/双生/效果",
        "atkBar": true,
        "atk": 2700,
        "def": 2500,
        "arrowList": [],
        "description": "①:这张卡只要在场上·墓地存在,当作通常怪兽使用。\r\n②:可以把场上的当作通常怪兽使用的这张卡作为通常召唤作再1次召唤。那个场合这张卡变成当作效果怪兽使用并得到以下效果。\r\n●1回合1次,把自己场上1张表侧表示的魔法·陷阱卡送去墓地才能发动。场上的魔法·陷阱卡全部破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "57662975",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC001"
    },
    {
        "language": "sc",
        "font": "",
        "name": "一对一",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:从手卡把1只怪兽送去墓地才能发动。从手卡·卡组把1只1星怪兽特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "2295440",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC002"
    },
    {
        "language": "sc",
        "font": "",
        "name": "正义盟军 灾亡虫",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 5,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "机械族/同步/效果",
        "atkBar": true,
        "atk": 2200,
        "def": 1200,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n①:这张卡和暗属性以外的表侧表示怪兽进行战斗的伤害步骤开始时发动。那只怪兽破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "26593852",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC003"
    },
    {
        "language": "sc",
        "font": "",
        "name": "青眼白龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/通常",
        "atkBar": true,
        "atk": 3000,
        "def": 2500,
        "arrowList": [],
        "description": "以高攻击力著称的传说之龙。任何对手都能粉碎,其破坏力不可估量。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "89631139",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC004"
    },
    {
        "language": "sc",
        "font": "",
        "name": "创世之预言者",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "魔法师族/效果",
        "atkBar": true,
        "atk": 1800,
        "def": 600,
        "arrowList": [],
        "description": "①:1回合1次,丢弃1张手卡,以自己墓地1只7星以上的怪兽为对象才能发动。那只怪兽加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "66337215",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC005"
    },
    {
        "language": "sc",
        "font": "",
        "name": "龙魂之城",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "continuous",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:「龙魂之城」在自己场上只能有1张表侧表示存在。\r\n②:1回合1次,从自己墓地把1只龙族怪兽除外,以自己场上1只表侧表示怪兽为对象才能发动。那只怪兽的攻击力直到回合结束时上升700。\r\n③:表侧表示的这张卡从场上送去墓地时,以除外的1只自己的龙族怪兽为对象才能发动。那只怪兽特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "13513663",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC006"
    },
    {
        "language": "sc",
        "font": "",
        "name": "创世龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 6,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/效果",
        "atkBar": true,
        "atk": 2200,
        "def": 1800,
        "arrowList": [],
        "description": "1回合1次,可以从手卡把1只龙族怪兽送去墓地,把自己墓地存在的1只龙族怪兽加入手卡。这张卡从场上送去墓地时,可以让自己墓地存在的龙族怪兽全部回到卡组。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "31038159",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC007"
    },
    {
        "language": "sc",
        "font": "",
        "name": "灼银之机龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "fire",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 9,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "机械族/同步/效果",
        "atkBar": true,
        "atk": 2700,
        "def": 1800,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n①:1回合1次,从自己的手卡·墓地以及自己场上的表侧表示怪兽之中把1只调整除外,以场上1张卡为对象才能发动。那张卡破坏。\r\n②:同调召唤的这张卡被效果破坏送去墓地的场合,以除外的1只自己的调整为对象才能发动。那只怪兽加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "66698383",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC008"
    },
    {
        "language": "sc",
        "font": "",
        "name": "传说的白石",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/协调/效果",
        "atkBar": true,
        "atk": 300,
        "def": 250,
        "arrowList": [],
        "description": "①:这张卡被送去墓地的场合发动。从卡组把1只「青眼白龙」加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "79814787",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC009"
    },
    {
        "language": "sc",
        "font": "",
        "name": "欧尼斯特",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "天使族/效果",
        "atkBar": true,
        "atk": 1100,
        "def": 1900,
        "arrowList": [],
        "description": "①:自己主要阶段才能发动。场上的表侧表示的这张卡回到手卡。\r\n②:自己的光属性怪兽进行战斗的从伤害步骤开始时到伤害计算前,把这张卡从手卡送去墓地才能发动。那只怪兽的攻击力直到回合结束时上升进行战斗的对方怪兽的攻击力数值。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "37742478",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC010"
    },
    {
        "language": "sc",
        "font": "",
        "name": "炎狱护卫龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "fire",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/通常/协调",
        "atkBar": true,
        "atk": 100,
        "def": 2000,
        "arrowList": [],
        "description": "能运用自如地操纵火焰的炎狱护卫战士。做出灼热防护罩把敌人的攻击反弹回去。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "21615956",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC011"
    },
    {
        "language": "sc",
        "font": "",
        "name": "冰结界之龙 光枪龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "water",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 6,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "海龙族/同步/效果",
        "atkBar": true,
        "atk": 2300,
        "def": 1400,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n这个卡名的效果1回合只能使用1次。\r\n①:把手卡任意数量丢弃去墓地,以丢弃数量的对方场上的卡为对象才能发动。那些卡回到手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "50321796",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC012"
    },
    {
        "language": "sc",
        "font": "",
        "name": "No.88 机关傀儡-命运狮子",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "xyz",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 8,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "机械族/超量/效果",
        "atkBar": true,
        "atk": 3200,
        "def": 2300,
        "arrowList": [],
        "description": "8星怪兽×3\r\n这张卡有3个命运指示物被放置时,自己决斗胜利。\r\n①:1回合1次,自己的魔法与陷阱区域没有卡存在的场合才能发动。这张卡1个超量素材取除,给这张卡放置1个命运指示物。这个效果发动的回合,自己不能进行战斗阶段。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "48995978",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC013"
    },
    {
        "language": "sc",
        "font": "",
        "name": "暴风龙防人",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/协调/效果",
        "atkBar": true,
        "atk": 500,
        "def": 200,
        "arrowList": [],
        "description": "自己的主要阶段时,手卡或者自己场上的这只怪兽可以当作装备卡使用给自己场上1只龙族的通常怪兽装备。这张卡当作装备卡使用而装备中的场合,装备怪兽向守备表示怪兽攻击时,若攻击力超过那个守备力,给与对方基本分那个数值的战斗伤害。此外,这张卡的装备怪兽被破坏的场合,作为代替把这张卡破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "14235211",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC014"
    },
    {
        "language": "sc",
        "font": "",
        "name": "念力控轮人",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "earth",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 3,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "念动力族/协调/效果",
        "atkBar": true,
        "atk": 600,
        "def": 0,
        "arrowList": [],
        "description": "这个卡名的①的方法的特殊召唤1回合只能有1次,②的效果1回合只能使用1次。\r\n①:自己场上有「念力控轮人」以外的3星怪兽存在的场合,这张卡可以从手卡守备表示特殊召唤。\r\n②:这张卡作为同调素材送去墓地的场合,以持有比用这张卡为同调素材的同调怪兽低的攻击力的场上1只怪兽为对象才能发动。那只怪兽破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "3233859",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC015"
    },
    {
        "language": "sc",
        "font": "",
        "name": "正义的同伴 海马侠",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 3,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "战士族/效果",
        "atkBar": true,
        "atk": 200,
        "def": 700,
        "arrowList": [],
        "description": "把这张卡解放才能发动。从手卡把1只「青眼白龙」特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "34627841",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC016"
    },
    {
        "language": "sc",
        "font": "",
        "name": "青眼精灵龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 9,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 2500,
        "def": 3000,
        "arrowList": [],
        "description": "调整+调整以外的「青眼」怪兽1只以上\r\n①:只要这张卡在怪兽区域存在,双方不能把2只以上的怪兽同时特殊召唤。\r\n②:1回合1次,墓地的卡的效果发动时才能发动。那个发动无效。\r\n③:自己·对方回合,把同调召唤的这张卡解放才能发动。从额外卡组把「青眼精灵龙」以外的1只龙族·光属性同调怪兽守备表示特殊召唤。这个效果特殊召唤的怪兽在这个回合的结束阶段破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "59822133",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC017"
    },
    {
        "language": "sc",
        "font": "",
        "name": "青色眼睛的少女",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "魔法师族/协调/效果",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "这个卡名的①②的效果1回合只能有1次使用其中任意1个。\r\n①:场上的表侧表示的这张卡成为效果的对象时才能发动。从自己的手卡·卡组·墓地选1只「青眼白龙」特殊召唤。\r\n②:这张卡被选择作为攻击对象时才能发动。那次攻击无效,这张卡的表示形式变更。那之后,可以从自己的手卡·卡组·墓地选1只「青眼白龙」特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "88241506",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC018"
    },
    {
        "language": "sc",
        "font": "",
        "name": "太古的白石",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/协调/效果",
        "atkBar": true,
        "atk": 600,
        "def": 500,
        "arrowList": [],
        "description": "这个卡名的②的效果1回合只能使用1次。\r\n①:这张卡被送去墓地的回合的结束阶段才能发动。从卡组把1只「青眼」怪兽特殊召唤。\r\n②:把墓地的这张卡除外,以自己墓地1只「青眼」怪兽为对象才能发动。那只怪兽加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "71039903",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC019"
    },
    {
        "language": "sc",
        "font": "",
        "name": "等级偷窃虫",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 1,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "昆虫族/效果",
        "atkBar": true,
        "atk": 600,
        "def": 0,
        "arrowList": [],
        "description": "①:这张卡只要在怪兽区域存在,不能为上级召唤以外而解放。\r\n②:这张卡在墓地存在的场合,以自己场上1只5星以上的怪兽为对象才能发动。那只怪兽的等级下降1星,这张卡从墓地特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "57421866",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC020"
    },
    {
        "language": "sc",
        "font": "",
        "name": "附锁链的回力镖",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:从以下效果选择1个或者两方才能把这张卡发动。\r\n●对方怪兽的攻击宣言时,以那1只攻击怪兽为对象才能发动。那只攻击怪兽变成守备表示。\r\n●以自己场上1只表侧表示怪兽为对象才能发动。这张卡当作攻击力上升500的装备卡使用给那只自己怪兽装备。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "37390589",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC021"
    },
    {
        "language": "sc",
        "font": "",
        "name": "银龙的轰咆",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "quick-play",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "这个卡名的卡在1回合只能发动1张。\r\n①:以自己墓地1只龙族通常怪兽为对象才能发动。那只龙族怪兽特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "87025064",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC022"
    },
    {
        "language": "sc",
        "font": "",
        "name": "幻影之龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/效果",
        "atkBar": true,
        "atk": 1600,
        "def": 600,
        "arrowList": [],
        "description": "①:只要这张卡在怪兽区域存在,对方在战斗阶段不能把陷阱卡发动。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "15960641",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC023"
    },
    {
        "language": "sc",
        "font": "",
        "name": "幻透翼同调龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "wind",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 7,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 2500,
        "def": 2000,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n①:1回合1次,这张卡以外的场上的5星以上的怪兽的效果发动时才能发动。那个发动无效并破坏。\r\n②:1回合1次,只以场上的5星以上的怪兽1只为对象的怪兽的效果发动时才能发动。那个发动无效并破坏。\r\n③:这张卡的效果破坏怪兽的场合,这张卡的攻击力直到回合结束时上升这张卡的效果破坏的怪兽的原本攻击力数值。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "82044279",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC024"
    },
    {
        "language": "sc",
        "font": "",
        "name": "死者苏生",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:以自己或对方的墓地1只怪兽为对象才能发动。那只怪兽在自己场上特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "83764718",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC025"
    },
    {
        "language": "sc",
        "font": "",
        "name": "马骨的对价",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:把效果怪兽以外的自己场上1只表侧表示怪兽送去墓地才能发动。自己从卡组抽2张。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "18756904",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC026"
    },
    {
        "language": "sc",
        "font": "",
        "name": "龙之灵庙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "这个卡名的卡在1回合只能发动1张。\r\n①:从卡组把1只龙族怪兽送去墓地。这个效果送去墓地的怪兽是龙族通常怪兽的场合,可以再从卡组把1只龙族怪兽送去墓地。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "41620959",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC027"
    },
    {
        "language": "sc",
        "font": "",
        "name": "魔族之链",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "continuous",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "以场上1只效果怪兽为对象才能把这张卡发动。\r\n①:只要这张卡在魔法与陷阱区域存在,作为对象的表侧表示怪兽不能攻击,效果无效化。作为对象的怪兽破坏时这张卡破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "50078509",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC028"
    },
    {
        "language": "sc",
        "font": "",
        "name": "龙之溪谷",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "field",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:1回合1次,可以丢弃1张手卡,从以下效果选择1个发动。\r\n●从卡组把1只4星以下的「龙骑兵团」怪兽加入手卡。\r\n●从卡组把1只龙族怪兽送去墓地。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "62265044",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC029"
    },
    {
        "language": "sc",
        "font": "",
        "name": "苍眼银龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 9,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 2500,
        "def": 3000,
        "arrowList": [],
        "description": "调整+调整以外的通常怪兽1只以上\r\n①:这张卡特殊召唤的场合发动。自己场上的全部龙族怪兽直到下个回合的结束时不会被效果破坏,双方直到下个回合的结束时不能把那些作为效果的对象。\r\n②:自己准备阶段,以自己墓地1只通常怪兽为对象才能发动。那只怪兽特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "40908371",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC030"
    },
    {
        "language": "sc",
        "font": "",
        "name": "星态龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 11,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 3200,
        "def": 2800,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n这张卡不用同调召唤不能特殊召唤。\r\n①:这张卡的同调召唤不会被无效化。\r\n②:在这张卡的同调召唤成功时双方不能把魔法·陷阱·怪兽的效果发动。\r\n③:这张卡攻击的场合,直到伤害步骤结束时不受其他卡的效果影响。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "41517789",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC031"
    },
    {
        "language": "sc",
        "font": "",
        "name": "星球改造",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:从卡组把1张场地魔法卡加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "73628505",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC032"
    },
    {
        "language": "sc",
        "font": "",
        "name": "紫翠玉龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/通常",
        "atkBar": true,
        "atk": 2000,
        "def": 100,
        "arrowList": [],
        "description": "拥有紫翠玉鳞的稀世珍龙。那美丽鳞片冠以古代帝王之名,被视为是神秘的象征。\r\n——它的获得者并未意识到已经抓住莫大的幸运。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "43096270",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC033"
    },
    {
        "language": "sc",
        "font": "",
        "name": "光辉天使",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "天使族/效果",
        "atkBar": true,
        "atk": 1400,
        "def": 800,
        "arrowList": [],
        "description": "这张卡被战斗破坏送去墓地时,可以从卡组把1只攻击力1500以下的光属性怪兽表侧攻击表示特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "95956346",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC034"
    },
    {
        "language": "sc",
        "font": "",
        "name": "灵魂交错",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "这张卡发动的回合,自己不能进行战斗阶段。\r\n①:以对方场上1只怪兽为对象才能发动。这个回合,自己把怪兽解放的场合,必须作为自己场上1只怪兽的代替而把作为对象的对方怪兽解放。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "68005187",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC035"
    },
    {
        "language": "sc",
        "font": "",
        "name": "毁灭之爆裂疾风弹",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "这张卡发动的回合,自己不能用「青眼白龙」攻击。\r\n①:自己场上有「青眼白龙」存在的场合才能发动。对方场上的怪兽全部破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "17655904",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC036"
    },
    {
        "language": "sc",
        "font": "",
        "name": "硬甲龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "earth",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/效果",
        "atkBar": true,
        "atk": 1500,
        "def": 800,
        "arrowList": [],
        "description": "①:这张卡可以把手卡1只8星以上的怪兽送去墓地,从手卡特殊召唤。\r\n②:把这张卡解放作召唤的7星以上的怪兽不会被效果破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "68473226",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC037"
    },
    {
        "language": "sc",
        "font": "",
        "name": "科技属 突击兵",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "earth",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 2,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "战士族/协调/效果",
        "atkBar": true,
        "atk": 800,
        "def": 0,
        "arrowList": [],
        "description": "①:只有对方场上才有怪兽存在的场合,这张卡可以从手卡特殊召唤。\r\n②:场上的这张卡被破坏送去墓地的回合的结束阶段才能发动。从卡组把「科技属 突击兵」以外的1只「科技属」怪兽加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "1315120",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC038"
    },
    {
        "language": "sc",
        "font": "",
        "name": "战线复活的代偿",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "equip",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "把自己场上1只通常怪兽送去墓地,选择自己或者对方的墓地1只怪兽才能发动。选择的怪兽在自己场上特殊召唤,把这张卡装备。这张卡从场上离开时,装备怪兽破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "78794994",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC039"
    },
    {
        "language": "sc",
        "font": "",
        "name": "抵价购物",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:从手卡丢弃1只8星怪兽才能发动。自己抽2张。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "38120068",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC040"
    },
    {
        "language": "sc",
        "font": "",
        "name": "帝王海马",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "海龙族/效果",
        "atkBar": true,
        "atk": 1700,
        "def": 1650,
        "arrowList": [],
        "description": "①:光属性怪兽上级召唤的场合,这张卡可以作为2只的数量解放。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "17444133",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC041"
    },
    {
        "language": "sc",
        "font": "",
        "name": "闪珖龙 星尘",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 2500,
        "def": 2000,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n1回合1次,选择自己场上表侧表示存在的1张卡才能发动。选择的卡在这个回合只有1次不会被战斗以及卡的效果破坏。这个效果在对方回合也能发动。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "83994433",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC042"
    },
    {
        "language": "sc",
        "font": "",
        "name": "闪珖龙 星尘",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "synchro",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/同步/效果",
        "atkBar": true,
        "atk": 2500,
        "def": 2000,
        "arrowList": [],
        "description": "调整+调整以外的怪兽1只以上\r\n1回合1次,选择自己场上表侧表示存在的1张卡才能发动。选择的卡在这个回合只有1次不会被战斗以及卡的效果破坏。这个效果在对方回合也能发动。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "83994433",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC043"
    },
    {
        "language": "sc",
        "font": "",
        "name": "青眼亚白龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/特殊召唤/效果",
        "atkBar": true,
        "atk": 3000,
        "def": 2500,
        "arrowList": [],
        "description": "这张卡不能通常召唤。把手卡1只「青眼白龙」给对方观看的场合可以特殊召唤。这个方法的「青眼亚白龙」的特殊召唤1回合只能有1次。\r\n①:这张卡的卡名只要在场上·墓地存在当作「青眼白龙」使用。\r\n②:1回合1次,以对方场上1只怪兽为对象才能发动(这个效果发动的回合,这张卡不能攻击)。那只怪兽破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "38517737",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC044"
    },
    {
        "language": "sc",
        "font": "",
        "name": "王者的看破",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "counter",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:自己场上有7星以上的通常怪兽存在的场合,可以把以下效果发动。\r\n●魔法·陷阱卡发动时才能发动。那个发动无效并破坏。\r\n●自己或者对方把怪兽召唤·反转召唤·特殊召唤之际才能发动。那个无效,那些怪兽破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "82382815",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC045"
    },
    {
        "language": "sc",
        "font": "",
        "name": "神龙 默示龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 4,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/效果",
        "atkBar": true,
        "atk": 1000,
        "def": 1500,
        "arrowList": [],
        "description": "1回合1次,丢弃1张手卡才能发动。选择自己墓地1只龙族怪兽加入手卡。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "20277376",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC046"
    },
    {
        "language": "sc",
        "font": "",
        "name": "调和的宝札",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:从手卡丢弃1只攻击力1000以下的龙族调整才能发动。自己从卡组抽2张。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "39701395",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC047"
    },
    {
        "language": "sc",
        "font": "",
        "name": "敌人操纵器",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "quick-play",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:可以从以下效果选择1个发动。\r\n●以对方场上1只表侧表示怪兽为对象才能发动。那只对方的表侧表示怪兽的表示形式变更。\r\n●把自己场上1只怪兽解放,以对方场上1只表侧表示怪兽为对象才能发动。那只表侧表示怪兽的控制权直到结束阶段得到。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "98045062",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC048"
    },
    {
        "language": "sc",
        "font": "",
        "name": "活死人的呼声",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "continuous",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:以自己墓地1只怪兽为对象才能把这张卡发动。那只怪兽攻击表示特殊召唤。这张卡从场上离开时那只怪兽破坏。那只怪兽破坏时这张卡破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "97077563",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC049"
    },
    {
        "language": "sc",
        "font": "",
        "name": "伤害电容器",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "trap",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "自己受到战斗伤害时,丢弃1张手卡才能发动。持有那个时候受到的伤害数值以下的攻击力的1只怪兽从卡组攻击表示特殊召唤。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "28378427",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC050"
    },
    {
        "language": "sc",
        "font": "",
        "name": "兔龙",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "light",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 8,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "龙族/通常",
        "atkBar": true,
        "atk": 2950,
        "def": 2900,
        "arrowList": [],
        "description": "雪原上栖息的龙类突然变异种。巨大的耳朵可分辨距离数千米远的声音,结合惊人跳跃力让盯上的猎物无处可逃。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "95788410",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC051"
    },
    {
        "language": "sc",
        "font": "",
        "name": "增殖的G",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "monster",
        "attribute": "earth",
        "icon": "",
        "image": "",
        "cardType": "effect",
        "pendulumType": "normal-pendulum",
        "level": 2,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "昆虫族/效果",
        "atkBar": true,
        "atk": 500,
        "def": 200,
        "arrowList": [],
        "description": "这个卡名的效果1回合只能使用1次。\r\n①:自己·对方回合,把这张卡从手卡送去墓地才能发动。这个回合中,以下效果适用。\r\n●每次对方把怪兽特殊召唤,自己抽1张。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "23434538",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC052"
    },
    {
        "language": "sc",
        "font": "",
        "name": "巨龙振翅",
        "color": "",
        "align": "",
        "gradient": false,
        "gradientColor1": "#999999",
        "gradientColor2": "#ffffff",
        "gradientPreset": "silver",
        "type": "spell",
        "attribute": "dark",
        "icon": "",
        "image": "",
        "cardType": "normal",
        "pendulumType": "normal-pendulum",
        "level": 0,
        "rank": 0,
        "pendulumScale": 0,
        "pendulumDescription": "",
        "monsterType": "",
        "atkBar": true,
        "atk": 0,
        "def": 0,
        "arrowList": [],
        "description": "①:选自己场上1只5星以上的龙族怪兽回到持有者手卡,场上的魔法·陷阱卡全部破坏。",
        "firstLineCompress": false,
        "descriptionAlign": false,
        "descriptionZoom": 1.0,
        "descriptionWeight": 0,
        "password": "28596933",
        "rare": "",
        "twentieth": false,
        "radius": true,
        "scale": 1.0,
        "package": "SD25-SC053"
    }
]
HenryFishYu commented 1 month ago

SD25-SC042_83994433

SD25-SC043_83994433

关闭了Dev模式下的,此时如果连续渲染两张一模一样的图,详见SC042和SC043,返回结果中有2个一样password的卡,此时第二张渲染出来的尺寸有误,渲染的x y坐标不为0 0而是-60 -60

kooriookami commented 1 month ago

我以前也遇到过连续导出的问题,试着在每次循环导出后加一个500ms的延迟。

HenryFishYu commented 1 month ago

这个看着像leaferjs的问题,当我连续导出不一样的图的时候没有问题,但是当连续导出相同的图的时候就会出问题,现象有点像cache导致的,因为哪怕不连续只要之前导出过相同password的图后面也会出现问题,目前使用服务端去重解决

kooriookami commented 1 month ago

可能是leafer的原因,我当初开发的时候遇到问题都会和leafer的开发者沟通,bug调试了挺久才达到一个平衡的位置。这个库差不多一年没太大更新了,最新的leafer版本可能又不太适配了。

HenryFishYu commented 1 month ago

好的谢谢了,其实我看到你也在leader的contributor列表里以为你知道问题,后端程序员前端只能用

kooriookami commented 1 month ago

刚刚更新了一下,leafer到最新版本了,也没改别的啥

HenryFishYu commented 1 month ago

晚点测试下试试

HenryFishYu commented 1 month ago

目前测试下来渲染重复的图没有这个issue了

kooriookami commented 1 month ago

还有一个解决方法,给图片的url后面加一个时间戳

HenryFishYu commented 1 month ago

这是为什么

kooriookami commented 1 month ago

这就是变相清除了缓存了,HTTP的GET方法如果每次的参数一样的话,会走缓存,图片加载就是GET,只要url变了就会重新加载了。

HenryFishYu commented 1 month ago

可是缓存的是cropped image,最终是导出图片的x,y起始坐标和长宽有问题,这个会有影响吗

kooriookami commented 1 month ago

我倒是没遇到过这个问题,或者给leafer提个issue

HenryFishYu commented 1 month ago

昨天更新之后这个问题消失了,应该是leafer新版本修了