UNPKG

@quick-game/cli

Version:

Command line interface for rapid qg development

30 lines 949 B
// Copyright (c) 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. /* * src for image is relative url for image location. * @example icon * [ * 'feedbackIcon', * { * src: 'Images/review.svg', * isIcon: true, * width: '20px', * height: '20px', * color: 'var(--icon-disabled)', * }, * ] * */ // NOTE: This is only exported for tests, and it should not be // imported in any component, instead add image data in map and // use getMarkdownImage to get the appropriate image data. export const markdownImages = new Map([]); export const getMarkdownImage = (key) => { const image = markdownImages.get(key); if (!image) { throw new Error(`Markdown image with key '${key}' is not available, please check MarkdownImagesMap.ts`); } return image; }; //# sourceMappingURL=MarkdownImagesMap.js.map