@canvacord/emoji-parser
Advanced tools
Comparing version 1.0.0 to 1.0.1
import { CanvasRenderingContext2D } from "canvas"; | ||
import { Util } from "./Util"; | ||
import { Util, ParsedChunks } from "./Util"; | ||
export interface MeasureTextData { | ||
@@ -21,2 +21,2 @@ width: number; | ||
export declare function strokeTextWithTwemoji(context: CanvasRenderingContext2D, text: string, x: number, y: number, options?: DrawTextWithEmojiParams): Promise<void>; | ||
export { CanvacordEmojiParser, Util }; | ||
export { CanvacordEmojiParser, Util, ParsedChunks }; |
@@ -8,3 +8,3 @@ "use strict"; | ||
constructor() { | ||
throw new Error(`The ${this.constructor.name} may not be instantiated!`); | ||
throw new Error(`The ${this.constructor.name} class may not be instantiated!`); | ||
} | ||
@@ -11,0 +11,0 @@ static async drawTextWithEmoji(context, fillType, text, x, y, options) { |
@@ -11,3 +11,3 @@ "use strict"; | ||
constructor() { | ||
throw new Error(`The ${this.constructor.name} may not be instantiated!`); | ||
throw new Error(`The ${this.constructor.name} class may not be instantiated!`); | ||
} | ||
@@ -14,0 +14,0 @@ static parseDiscordEmojis(textEntities) { |
{ | ||
"name": "@canvacord/emoji-parser", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Emoji parser for canvacord.", | ||
"main": "build/index.js", | ||
"types": "build/index.d.ts", | ||
"scripts": { | ||
@@ -7,0 +8,0 @@ "build": "tsc", |
import { CanvasRenderingContext2D } from "canvas"; | ||
import { Util } from "./Util"; | ||
import { Util, ParsedChunks } from "./Util"; | ||
@@ -18,3 +18,3 @@ export interface MeasureTextData { | ||
constructor() { | ||
throw new Error(`The ${this.constructor.name} may not be instantiated!`); | ||
throw new Error(`The ${this.constructor.name} class may not be instantiated!`); | ||
} | ||
@@ -128,2 +128,2 @@ | ||
export { CanvacordEmojiParser, Util }; | ||
export { CanvacordEmojiParser, Util, ParsedChunks }; |
@@ -13,3 +13,3 @@ import { parse } from "twemoji-parser"; | ||
constructor() { | ||
throw new Error(`The ${this.constructor.name} may not be instantiated!`); | ||
throw new Error(`The ${this.constructor.name} class may not be instantiated!`); | ||
} | ||
@@ -16,0 +16,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20560