/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { LocalizationHelper } = require("resource://devtools/shared/l10n.js"); const L10N = new LocalizationHelper( "devtools/client/locales/animationinspector.properties"
); const INSPECTOR_L10N = new LocalizationHelper( "devtools/client/locales/inspector.properties"
);
/** *Getaformattedtitleforthisanimation.Thiswillbeeither: *"%S","%S:CSSTransition","%S:CSSAnimation", *"%S:ScriptAnimation",or"ScriptAnimation",depending *iftheserverprovidesthetype,whattypeitisandiftheanimation *hasaname. * *@param{object}state
*/ function getFormattedTitle(state) { // Older servers don't send a type, and only know about // CSSAnimations and CSSTransitions, so it's safe to use // just the name. if (!state.type) { return state.name;
}
// Script-generated animations may not have a name. if (state.type === "scriptanimation" && !state.name) { return L10N.getStr("timeline.scriptanimation.unnamedLabel");
}
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.