Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

函式: getLogoSvg()

getLogoSvg(product, layout?, colorMode?, lang?): string | undefined

Beta(測試)

取得標誌的原始 SVG。

參數

product

Product

產品。

layout?

LogoLayout = "horizontal"

版面配置(預設 "horizontal")。

colorMode?

LogoColorMode = "full-color"

色彩處理(預設 "full-color")。

lang?

LogoLang

本地化字樣的語言(如需翻譯版本時使用)。

回傳

string | undefined

SVG 字串;若該組合不存在,則為 undefined

範例

取得預設的水平全色 Canvas 標誌

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const svg = getLogoSvg("canvas");

選擇特定的版面配置與配色處理

ts
import { getLogoSvg } from "@pantoken/plugin-logos";

const reversed = getLogoSvg("instructure", "stacked", "reversed");