UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

59 lines 1.66 kB
export class RadialText extends View<HTMLElement> { /** * * @param {number} share * @param {number} offset * @param {number} radius * @param {String|number} [fill] CSS color for the text * @param {boolean} [useShadow=true] * @param {boolean} [crop=true] If enabled - will crop the text to make sure it fits in the given section */ constructor({ share, offset, radius, fill, useShadow, crop }?: number); share: any; offset: any; radius: any; /** * When text is flipped, this is added to the radius to move text further away from origin * NOTE: this is a fudge factor and need to be adjusted in tandem with font size * @type {number} */ flipAlignmentOffset: number; /** * Setting this to true will automatically toggle flipY on and off based on the angle at which the text appears * @type {boolean} */ autoFlipY: boolean; /** * Text will be flipped up-side-down if set to true. If {@link #autoFlipY} is set to true, this parameter will be ignored and overridden * @type {boolean} */ flipY: boolean; /** * @readonly * @type {boolean} */ readonly useShadow: boolean; /** * * @type {boolean} */ crop: boolean; elements: { path: Element; textPath: Element; }; el: Element; /** * * @param {String|number} color */ setFill(color: string | number): void; /** * * @param {String} value */ setText(value: string): void; render(): void; } import View from "../../View.js"; //# sourceMappingURL=RadialText.d.ts.map