Quelle smilAnimateMotionValueLists.js
Sprache: JAVA
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set ts=2 sw=2 sts=2 et: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Lists of valid & invalid values for the various <animateMotion> attributes */ const gValidValues = [ "10 10", "10 10;", // Trailing semicolons are allowed "10 10; ", " 10 10em ", "1 2 ; 3,4", "1,2;3,4", "0 0", "0,0",
];
// paths must start with at least a valid "M" segment to be valid const gInvalidPath = ["M20in 20", "h30", "L50 50", "abc"];
// paths that at least start with a valid "M" segment are valid - the spec says // to parse everything up to the first invalid token const gValidPathWithErrors = ["M20 20em", "m0 0 L30,,30", "M10 10 L50 50 abc"];
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.