UNPKG

@quick-game/cli

Version:

Command line interface for rapid qg development

37 lines 1.48 kB
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import * as i18n from '../../core/i18n/i18n.js'; import * as UI from '../../ui/legacy/legacy.js'; let loadedAnimationModule; const UIStrings = { /** * @description Title for the 'Animations' tool in the bottom drawer */ animations: 'Animations', /** * @description Command for showing the 'Animations' tool in the bottom drawer */ showAnimations: 'Show Animations', }; const str_ = i18n.i18n.registerUIStrings('panels/animation/animation-meta.ts', UIStrings); const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_); async function loadAnimationModule() { if (!loadedAnimationModule) { loadedAnimationModule = await import('./animation.js'); } return loadedAnimationModule; } UI.ViewManager.registerViewExtension({ location: "drawer-view" /* UI.ViewManager.ViewLocationValues.DRAWER_VIEW */, id: 'animations', title: i18nLazyString(UIStrings.animations), commandPrompt: i18nLazyString(UIStrings.showAnimations), persistence: "closeable" /* UI.ViewManager.ViewPersistence.CLOSEABLE */, order: 0, async loadView() { const Animation = await loadAnimationModule(); return Animation.AnimationTimeline.AnimationTimeline.instance(); }, }); //# sourceMappingURL=animation-meta.js.map