Skip to content

pantoken / plugins/pantoken/logos/src / getLogoSvg

함수: getLogoSvg()

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

베타

로고의 원시 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");