import React from "react"; import clsx from "clsx"; import { icons } from "../../icons"; import { Callout } from "@gland/react/popover"; import { BtnTip } from "./widget"; import { toolClasses as classes } from "../style"; import { preventDefault } from "@gland/function/preventDefault"; import { ToolAttr } from "../utils"; export function EffectFont(props: { attr: ToolAttr }) { const [show, setShow] = React.useState(false); const attr = React.useRef({} as { root }).current; const tip = props.attr.lang.tip; return (
(attr.root = r)} onClick={() => { setShow(!show); }} >
); } let effectList = [ "none", "gl-ed-feffect-3d", "gl-ed-feffect-nyy", "gl-ed-feffect-lhd", "gl-ed-feffect-tb", "gl-ed-feffect-fd", "gl-ed-feffect-mb", "gl-ed-feffect-ck", "gl-ed-feffect-bs3d", "gl-ed-feffect-mh", "gl-ed-feffect-gsmh", "gl-ed-feffect-mbxt", "gl-ed-feffect-blx", "gl-ed-feffect-lg", ]; function FontEffectSelect(props) { const curValue = props.getCurValue(); const lang = props.lang; return (
{effectList.map(function (item, index) { const value = item === "none" ? null : item; return (
{ props.onChange && props.onChange(value); }} > {lang.fontEffect[item]}
); })}
); }