social-graphics-library
Advanced tools
Comparing version 1.5.4 to 1.5.5
@@ -1,6 +0,6 @@ | ||
import TemplateInjector from "./templateInjector"; | ||
import { TemplateInjector } from "./templateInjector"; | ||
/** | ||
* Generator | ||
*/ | ||
export default class Generator { | ||
export declare class Generator { | ||
/** | ||
@@ -7,0 +7,0 @@ * Runs generator |
/** | ||
* Image renderer | ||
*/ | ||
export default class ImageRenderer { | ||
export declare class ImageRenderer { | ||
/** | ||
@@ -6,0 +6,0 @@ * Renders image |
@@ -1,6 +0,6 @@ | ||
import ImportTemplate from "../model/importTemplate"; | ||
import { ImportTemplate } from "../model/importTemplate"; | ||
/** | ||
* Template injector | ||
*/ | ||
export default class TemplateInjector { | ||
export declare class TemplateInjector { | ||
/** | ||
@@ -7,0 +7,0 @@ * Inject list of template injector |
@@ -1,3 +0,3 @@ | ||
import Call from "./model/call"; | ||
import ImportTemplate from "./model/importTemplate"; | ||
import { Call } from "./model/call"; | ||
import { ImportTemplate } from "./model/importTemplate"; | ||
/** | ||
@@ -4,0 +4,0 @@ * Social graphics library |
@@ -1,2 +0,2 @@ | ||
export default interface Call { | ||
export interface Call { | ||
/** | ||
@@ -3,0 +3,0 @@ * Mode of call |
@@ -1,6 +0,6 @@ | ||
import Template from "./templateBase"; | ||
import { Template } from "./templateBase"; | ||
/** | ||
* Import template | ||
*/ | ||
export default interface ImportTemplate { | ||
export interface ImportTemplate { | ||
/** | ||
@@ -7,0 +7,0 @@ * call name of ImportTemplate |
@@ -1,2 +0,2 @@ | ||
export default interface Template { | ||
export interface Template { | ||
/** | ||
@@ -3,0 +3,0 @@ * Width of template |
{ | ||
"name": "social-graphics-library", | ||
"version": "1.5.4", | ||
"version": "1.5.5", | ||
"description": "A script for generating social media logos and banners", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -7,5 +7,5 @@ import { Elevate_Template } from "../template/elevate-title.template"; | ||
import { Youtube_Template } from "../template/youtube-title.template"; | ||
import ImageRenderer from "./imageRenderer"; | ||
import Template from "../model/templateBase"; | ||
import TemplateInjector from "./templateInjector"; | ||
import { ImageRenderer } from "./imageRenderer"; | ||
import { Template } from "../model/templateBase"; | ||
import { TemplateInjector } from "./templateInjector"; | ||
@@ -15,3 +15,3 @@ /** | ||
*/ | ||
export default class Generator { | ||
export class Generator { | ||
@@ -80,3 +80,3 @@ /** | ||
if (templateInjector!.call(mode) != null) { | ||
tempTemplate = <Template>templateInjector!.call(mode)!.template | ||
tempTemplate = templateInjector!.call(mode)!.template | ||
svgString = tempTemplate.template(teamName, playerName) | ||
@@ -83,0 +83,0 @@ width = tempTemplate.width |
@@ -6,3 +6,3 @@ import { False_Template } from "../template/false.template"; | ||
*/ | ||
export default class ImageRenderer { | ||
export class ImageRenderer { | ||
@@ -9,0 +9,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import ImportTemplate from "../model/importTemplate"; | ||
import { ImportTemplate } from "../model/importTemplate"; | ||
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
export default class TemplateInjector { | ||
export class TemplateInjector { | ||
@@ -9,0 +9,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
import Call from "./model/call"; | ||
import { Call } from "./model/call"; | ||
import { Info } from "./model/info"; | ||
import Generator from "./controller/generator"; | ||
import TemplateInjector from "./controller/templateInjector"; | ||
import ImportTemplate from "./model/importTemplate"; | ||
import { Generator } from "./controller/generator"; | ||
import { TemplateInjector } from "./controller/templateInjector"; | ||
import { ImportTemplate } from "./model/importTemplate"; | ||
@@ -13,3 +13,3 @@ /** | ||
//#region properties | ||
private templateInject | ||
private templateInject: TemplateInjector; | ||
//#endregion | ||
@@ -16,0 +16,0 @@ |
@@ -1,2 +0,2 @@ | ||
export default interface Call { | ||
export interface Call { | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,6 +0,6 @@ | ||
import Template from "./templateBase"; | ||
import { Template } from "./templateBase"; | ||
/** | ||
* Import template | ||
*/ | ||
export default interface ImportTemplate { | ||
export interface ImportTemplate { | ||
@@ -7,0 +7,0 @@ /** |
@@ -7,3 +7,3 @@ export class Info { | ||
*/ | ||
private readonly _version: string = "1.5.4" | ||
private readonly _version: string = "1.5.5" | ||
@@ -10,0 +10,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
export default interface Template { | ||
export interface Template { | ||
@@ -3,0 +3,0 @@ /** |
@@ -41,2 +41,3 @@ //#region setup | ||
global.Event = window.Event; | ||
global.self = this; | ||
//#endregion | ||
@@ -75,2 +76,2 @@ | ||
console.log("Tests done..."); | ||
console.log("Tests done..."); |
@@ -5,6 +5,6 @@ { | ||
// "incremental": true, /* Enable incremental compilation */ | ||
"target": "ESNEXT", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | ||
"target": "ES6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */ | ||
"module": "ES6", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */ | ||
// "lib": [], /* Specify library files to be included in the compilation. */ | ||
"allowJs": true, /* Allow javascript files to be compiled. */ | ||
"allowJs": false, /* Allow javascript files to be compiled. */ | ||
// "checkJs": true, /* Report errors in .js files. */ | ||
@@ -61,4 +61,4 @@ // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
/* Experimental Options */ | ||
"experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ | ||
"emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ | ||
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ | ||
@@ -65,0 +65,0 @@ /* Advanced Options */ |
const path = require('path'); | ||
module.exports = { | ||
mode: 'production', | ||
target: 'web', | ||
entry: './src/glc.ts', | ||
@@ -10,3 +11,2 @@ watch: false, | ||
output: { | ||
globalObject: 'this', | ||
path: path.join(__dirname, 'dist'), | ||
@@ -16,2 +16,3 @@ publicPath: '/dist/', | ||
libraryTarget: 'umd', | ||
umdNamedDefine: true, | ||
library: 'SocialGraphicsLibrary', | ||
@@ -39,2 +40,2 @@ libraryExport: 'default' | ||
devtool: 'inline-source-map', | ||
}; | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
5426727
1545