Spaces:
Running on Zero
Running on Zero
Validate composable vector animation
Browse files46 unmodified lines47484950515265 unmodified lines11811912012112212346 unmodified linesTIMING = {"attributeName", "values", "from", "to", "by", "dur", "begin","repeatCount", "fill", "calcMode", "keyTimes", "keySplines",}ANIMATIONS = {"animate": TIMING,65 unmodified linesraise SVGError("μ λλ©μ΄μ λ°λ³΅ νμλ₯Ό νμΈν΄ μ£ΌμΈμ.")if element.get("fill", "remove") not in {"freeze", "remove"}:raise SVGError("μ λλ©μ΄μ μ’ λ£ μνλ₯Ό νμΈν΄ μ£ΌμΈμ.")value_attrs = {"values", "from", "to", "by"}if kind == "animateMotion":value_attrs.add("path")46 unmodified lines4748495051525365 unmodified lines11912012112212312412512612712812913046 unmodified linesTIMING = {"attributeName", "values", "from", "to", "by", "dur", "begin","repeatCount", "fill", "calcMode", "keyTimes", "keySplines","additive", "accumulate", "attributeType",}ANIMATIONS = {"animate": TIMING,65 unmodified linesraise SVGError("μ λλ©μ΄μ λ°λ³΅ νμλ₯Ό νμΈν΄ μ£ΌμΈμ.")if element.get("fill", "remove") not in {"freeze", "remove"}:raise SVGError("μ λλ©μ΄μ μ’ λ£ μνλ₯Ό νμΈν΄ μ£ΌμΈμ.")if element.get("additive", "replace") not in {"replace", "sum"}:raise SVGError("μ§μνμ§ μλ μ λλ©μ΄μ ν©μ± λ°©μμ λλ€.")if element.get("accumulate", "none") not in {"none", "sum"}:raise SVGError("μ§μνμ§ μλ μ λλ©μ΄μ λμ λ°©μμ λλ€.")if element.get("attributeType", "auto") not in {"auto", "XML"}:raise SVGError("SVG XML μμ±μ μ μ©λλ μ λλ©μ΄μ μ΄ νμν©λλ€.")value_attrs = {"values", "from", "to", "by"}if kind == "animateMotion":value_attrs.add("path")
validator.py+7