Created
March 27, 2019 23:40
-
-
Save idkiller/61d0540863c6f8c8b0f1efd9b0e5fece to your computer and use it in GitHub Desktop.
Revisions
-
idkiller created this gist
Mar 27, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,622 @@ yarn run v1.15.2 $ vue-cli-service electron:build INFO Bundling render process: Starting type checking and linting service... Using 1 worker with 2048MB memory limit ERROR Failed to compile with 50 errors08:42:22 error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 137:5 Member 'Blur' implicitly has an 'any' type. 135 | 136 | export const Filters: { > 137 | Blur; | ^ 138 | Brighten; 139 | Contrast; 140 | Emboss; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 138:5 Member 'Brighten' implicitly has an 'any' type. 136 | export const Filters: { 137 | Blur; > 138 | Brighten; | ^ 139 | Contrast; 140 | Emboss; 141 | Enhance; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 139:5 Member 'Contrast' implicitly has an 'any' type. 137 | Blur; 138 | Brighten; > 139 | Contrast; | ^ 140 | Emboss; 141 | Enhance; 142 | Grayscale; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 140:5 Member 'Emboss' implicitly has an 'any' type. 138 | Brighten; 139 | Contrast; > 140 | Emboss; | ^ 141 | Enhance; 142 | Grayscale; 143 | HSL; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 141:5 Member 'Enhance' implicitly has an 'any' type. 139 | Contrast; 140 | Emboss; > 141 | Enhance; | ^ 142 | Grayscale; 143 | HSL; 144 | HSV; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 142:5 Member 'Grayscale' implicitly has an 'any' type. 140 | Emboss; 141 | Enhance; > 142 | Grayscale; | ^ 143 | HSL; 144 | HSV; 145 | Invert; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 143:5 Member 'HSL' implicitly has an 'any' type. 141 | Enhance; 142 | Grayscale; > 143 | HSL; | ^ 144 | HSV; 145 | Invert; 146 | Kaleidoscope; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 144:5 Member 'HSV' implicitly has an 'any' type. 142 | Grayscale; 143 | HSL; > 144 | HSV; | ^ 145 | Invert; 146 | Kaleidoscope; 147 | Mask; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 145:5 Member 'Invert' implicitly has an 'any' type. 143 | HSL; 144 | HSV; > 145 | Invert; | ^ 146 | Kaleidoscope; 147 | Mask; 148 | Noise; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 146:5 Member 'Kaleidoscope' implicitly has an 'any' type. 144 | HSV; 145 | Invert; > 146 | Kaleidoscope; | ^ 147 | Mask; 148 | Noise; 149 | Pixelate; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 147:5 Member 'Mask' implicitly has an 'any' type. 145 | Invert; 146 | Kaleidoscope; > 147 | Mask; | ^ 148 | Noise; 149 | Pixelate; 150 | Posterize; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 148:5 Member 'Noise' implicitly has an 'any' type. 146 | Kaleidoscope; 147 | Mask; > 148 | Noise; | ^ 149 | Pixelate; 150 | Posterize; 151 | RGB; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 149:5 Member 'Pixelate' implicitly has an 'any' type. 147 | Mask; 148 | Noise; > 149 | Pixelate; | ^ 150 | Posterize; 151 | RGB; 152 | RGBA; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 150:5 Member 'Posterize' implicitly has an 'any' type. 148 | Noise; 149 | Pixelate; > 150 | Posterize; | ^ 151 | RGB; 152 | RGBA; 153 | Sepia; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 151:5 Member 'RGB' implicitly has an 'any' type. 149 | Pixelate; 150 | Posterize; > 151 | RGB; | ^ 152 | RGBA; 153 | Sepia; 154 | Solarize; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 152:5 Member 'RGBA' implicitly has an 'any' type. 150 | Posterize; 151 | RGB; > 152 | RGBA; | ^ 153 | Sepia; 154 | Solarize; 155 | Threshold; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 153:5 Member 'Sepia' implicitly has an 'any' type. 151 | RGB; 152 | RGBA; > 153 | Sepia; | ^ 154 | Solarize; 155 | Threshold; 156 | }; error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 154:5 Member 'Solarize' implicitly has an 'any' type. 152 | RGBA; 153 | Sepia; > 154 | Solarize; | ^ 155 | Threshold; 156 | }; 157 | } error in /blarblar/node_modules/konva/types/index-types.d.ts ERROR in /blarblar/node_modules/konva/types/index-types.d.ts 155:5 Member 'Threshold' implicitly has an 'any' type. 153 | Sepia; 154 | Solarize; > 155 | Threshold; | ^ 156 | }; 157 | } 158 | error in /blarblar/node_modules/konva/types/Stage.d.ts ERROR in /blarblar/node_modules/konva/types/Stage.d.ts 21:5 Property 'children' in type 'Stage' is not assignable to the same property in base type 'Container'. Type 'Collection<BaseLayer>' is not assignable to type 'Collection<Node<NodeConfig>>'. Types of property 'push' are incompatible. Type '(item: BaseLayer) => void' is not assignable to type '(item: Node<NodeConfig>) => void'. Types of parameters 'item' and 'item' are incompatible. Type 'Node<NodeConfig>' is missing the following properties from type 'BaseLayer': canvas, hitCanvas, _waitingForDraw, createPNGStream, and 32 more. 19 | dblTimeout: any; 20 | tapStartShape: Shape; > 21 | children: Collection<BaseLayer>; | ^ 22 | constructor(config: StageConfig); 23 | _validateAdd(child: any): void; 24 | _checkVisibility(): void; error in /blarblar/node_modules/konva/types/Stage.d.ts ERROR in /blarblar/node_modules/konva/types/Stage.d.ts 21:26 Type 'BaseLayer' does not satisfy the constraint 'Node<NodeConfig>'. 19 | dblTimeout: any; 20 | tapStartShape: Shape; > 21 | children: Collection<BaseLayer>; | ^ 22 | constructor(config: StageConfig); 23 | _validateAdd(child: any): void; 24 | _checkVisibility(): void; error in /blarblar/src/CanvasManager.ts ERROR in /blarblar/src/CanvasManager.ts 120:15 Type 'Rect' is not assignable to type 'Shape<ShapeConfig>'. Types of property 'draggable' are incompatible. Type 'GetSet<boolean, Rect>' is not assignable to type 'GetSet<boolean, Shape<ShapeConfig>>'. The 'this' types of each signature are incompatible. Type 'Shape<ShapeConfig>' is not assignable to type 'Rect'. 118 | }); 119 | > 120 | const foo: Konva.Shape = new Konva.Rect(); | ^ 121 | console.log(foo); 122 | 123 | error in /blarblar/src/commands/BringForwardCommand.ts ERROR in /blarblar/src/commands/BringForwardCommand.ts 34:14 An expression of type 'void' cannot be tested for truthiness 32 | } 33 | canvasManager.focus(); > 34 | if (!canvasManager.bringForward(this.selects)) { | ^ 35 | throw new Error('No movement'); 36 | } 37 | } error in /blarblar/src/commands/BringToFrontCommand.ts ERROR in /blarblar/src/commands/BringToFrontCommand.ts 36:14 An expression of type 'void' cannot be tested for truthiness 34 | } 35 | canvasManager.focus(); > 36 | if (!canvasManager.bringToFront(this.selects)) { | ^ 37 | throw new Error('No movement'); 38 | } 39 | } error in /blarblar/src/commands/CreateObjectCommand.ts ERROR in /blarblar/src/commands/CreateObjectCommand.ts 35:30 Property 'discardActiveObject' does not exist on type 'Stage'. 33 | // discard default activeObject and set again it. 34 | // because this prevent illegal property getting like angle or left, top > 35 | canvasManager.canvas.discardActiveObject(); | ^ 36 | canvasManager.canvas.setActiveObject(this.control.canvasObject); 37 | canvasManager.canvas.requestRenderAll(); 38 | } error in /blarblar/src/commands/CreateObjectCommand.ts ERROR in /blarblar/src/commands/CreateObjectCommand.ts 36:30 Property 'setActiveObject' does not exist on type 'Stage'. 34 | // because this prevent illegal property getting like angle or left, top 35 | canvasManager.canvas.discardActiveObject(); > 36 | canvasManager.canvas.setActiveObject(this.control.canvasObject); | ^ 37 | canvasManager.canvas.requestRenderAll(); 38 | } 39 | error in /blarblar/src/commands/CreateObjectCommand.ts ERROR in /blarblar/src/commands/CreateObjectCommand.ts 37:30 Property 'requestRenderAll' does not exist on type 'Stage'. 35 | canvasManager.canvas.discardActiveObject(); 36 | canvasManager.canvas.setActiveObject(this.control.canvasObject); > 37 | canvasManager.canvas.requestRenderAll(); | ^ 38 | } 39 | 40 | async undo() { error in /blarblar/src/commands/CreateObjectCommand.ts ERROR in /blarblar/src/commands/CreateObjectCommand.ts 43:34 Property 'requestRenderAll' does not exist on type 'Stage'. 41 | if (this.control) { 42 | canvasManager.removeControl(this.control); > 43 | canvasManager.canvas.requestRenderAll(); | ^ 44 | } 45 | } 46 | error in /blarblar/src/commands/CreateObjectCommand.ts ERROR in /blarblar/src/commands/CreateObjectCommand.ts 50:34 Property 'requestRenderAll' does not exist on type 'Stage'. 48 | if (this.control) { 49 | canvasManager.addControl(this.control); > 50 | canvasManager.canvas.requestRenderAll(); | ^ 51 | } 52 | } 53 | error in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts ERROR in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts 29:30 Property 'discardActiveObject' does not exist on type 'Stage'. 27 | canvasManager.removeControl(obj); 28 | } > 29 | canvasManager.canvas.discardActiveObject(); | ^ 30 | } 31 | 32 | async undo() { error in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts ERROR in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts 36:30 Property 'discardActiveObject' does not exist on type 'Stage'. 34 | canvasManager.addControl(obj); 35 | } > 36 | canvasManager.canvas.discardActiveObject(); | ^ 37 | } 38 | 39 | async redo() { error in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts ERROR in /blarblar/src/commands/DeleteSelectedObjectsCommand.ts 43:30 Property 'discardActiveObject' does not exist on type 'Stage'. 41 | canvasManager.removeControl(obj); 42 | } > 43 | canvasManager.canvas.discardActiveObject(); | ^ 44 | } 45 | 46 | dispose() { error in /blarblar/src/commands/ObjectModifiedCommand.ts ERROR in /blarblar/src/commands/ObjectModifiedCommand.ts 63:30 Property 'requestRenderAll' does not exist on type 'Stage'. 61 | control.setLayoutData(infos.from); 62 | } > 63 | canvasManager.canvas.requestRenderAll(); | ^ 64 | ObjectModifiedCommand.cmdInitialize(); 65 | } 66 | error in /blarblar/src/commands/ObjectModifiedCommand.ts ERROR in /blarblar/src/commands/ObjectModifiedCommand.ts 73:30 Property 'requestRenderAll' does not exist on type 'Stage'. 71 | } 72 | } > 73 | canvasManager.canvas.requestRenderAll(); | ^ 74 | ObjectModifiedCommand.cmdInitialize(); 75 | } 76 | error in /blarblar/src/commands/PropertyChangedCommand.ts ERROR in /blarblar/src/commands/PropertyChangedCommand.ts 32:30 Property 'requestRenderAll' does not exist on type 'Stage'. 30 | async execute() { 31 | this.setter(this.value); > 32 | canvasManager.canvas.requestRenderAll(); | ^ 33 | } 34 | 35 | async undo() { error in /blarblar/src/commands/PropertyChangedCommand.ts ERROR in /blarblar/src/commands/PropertyChangedCommand.ts 37:30 Property 'requestRenderAll' does not exist on type 'Stage'. 35 | async undo() { 36 | this.setter(this.oldValue); > 37 | canvasManager.canvas.requestRenderAll(); | ^ 38 | } 39 | 40 | async redo() { error in /blarblar/src/commands/SendBackwardsCommand.ts ERROR in /blarblar/src/commands/SendBackwardsCommand.ts 33:14 An expression of type 'void' cannot be tested for truthiness 31 | } 32 | canvasManager.focus(); > 33 | if (!canvasManager.sendBackward(this.selects)) { | ^ 34 | throw new Error('No movement'); 35 | } 36 | } error in /blarblar/src/commands/SendToBackCommand.ts ERROR in /blarblar/src/commands/SendToBackCommand.ts 35:14 An expression of type 'void' cannot be tested for truthiness 33 | } 34 | canvasManager.focus(); > 35 | if (!canvasManager.sendToBack(this.selects)) { | ^ 36 | throw new Error('No movement'); 37 | } 38 | } error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 29:40 Property 'getZoom' does not exist on type 'Stage'. 27 | 28 | async execute() { > 29 | const z = canvasManager.canvas.getZoom(); | ^ 30 | const rz = Math.round((z + this.zoom) * 100) / 100; 31 | if (rz > 2.0) { 32 | throw new Error('too much zoom in'); error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 36:30 Property 'setZoom' does not exist on type 'Stage'. 34 | throw new Error('too much zoom out'); 35 | } > 36 | canvasManager.canvas.setZoom(rz); | ^ 37 | canvasManager.panToCenter(); 38 | canvasManager.canvas.requestRenderAll(); 39 | store.state.zoom = rz; error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 38:30 Property 'requestRenderAll' does not exist on type 'Stage'. 36 | canvasManager.canvas.setZoom(rz); 37 | canvasManager.panToCenter(); > 38 | canvasManager.canvas.requestRenderAll(); | ^ 39 | store.state.zoom = rz; 40 | } 41 | error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 43:40 Property 'getZoom' does not exist on type 'Stage'. 41 | 42 | async undo() { > 43 | const z = canvasManager.canvas.getZoom(); | ^ 44 | const rz = Math.round((z - this.zoom) * 100) / 100; 45 | canvasManager.canvas.setZoom(rz); 46 | canvasManager.panToCenter(); error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 45:30 Property 'setZoom' does not exist on type 'Stage'. 43 | const z = canvasManager.canvas.getZoom(); 44 | const rz = Math.round((z - this.zoom) * 100) / 100; > 45 | canvasManager.canvas.setZoom(rz); | ^ 46 | canvasManager.panToCenter(); 47 | canvasManager.canvas.requestRenderAll(); 48 | store.state.zoom = rz; error in /blarblar/src/commands/ZoomCommand.ts ERROR in /blarblar/src/commands/ZoomCommand.ts 47:30 Property 'requestRenderAll' does not exist on type 'Stage'. 45 | canvasManager.canvas.setZoom(rz); 46 | canvasManager.panToCenter(); > 47 | canvasManager.canvas.requestRenderAll(); | ^ 48 | store.state.zoom = rz; 49 | } 50 | error in /blarblar/src/controls/DigitalClockControlDescriptor.ts ERROR in /blarblar/src/controls/DigitalClockControlDescriptor.ts 71:68 Argument of type 'Text' is not assignable to parameter of type 'Node<NodeConfig>'. 69 | const id = canvasManager.getNewObjectName('DigitalClock'); 70 | > 71 | const clockControl = new DigitalClockControl(id, this, clockObj); | ^ 72 | 73 | resolve(clockControl); 74 | }); error in /blarblar/src/controls/LottieControlDescriptor.ts ERROR in /blarblar/src/controls/LottieControlDescriptor.ts 55:69 Argument of type 'LottieImage' is not assignable to parameter of type 'Node<NodeConfig>'. Type 'LottieImage' is missing the following properties from type 'Node<NodeConfig>': _id, eventListeners, attrs, index, and 161 more. 53 | return LottieImage.fromURL(fileSrc).then((lottie) => { 54 | return new ResourceControl( > 55 | canvasManager.getNewObjectName('Lottie'), this, lottie, fileSrc); | ^ 56 | }); 57 | } else { 58 | throw new Error('LottieControl need resource url on creation'); error in /blarblar/src/controls/PropertyDescriptor.ts ERROR in /blarblar/src/controls/PropertyDescriptor.ts 20:25 Cannot find namespace 'fabric'. 18 | name: string; 19 | event?: string[]; > 20 | get: (canvasObject: fabric.Object) => string | number; | ^ 21 | set: (canvasObject: fabric.Object, value: string | number) => void; 22 | } 23 | error in /blarblar/src/controls/PropertyDescriptor.ts ERROR in /blarblar/src/controls/PropertyDescriptor.ts 21:25 Cannot find namespace 'fabric'. 19 | event?: string[]; 20 | get: (canvasObject: fabric.Object) => string | number; > 21 | set: (canvasObject: fabric.Object, value: string | number) => void; | ^ 22 | } 23 | error in /blarblar/src/controls/TextControlDescriptor.ts ERROR in /blarblar/src/controls/TextControlDescriptor.ts 57:42 Argument of type 'Text' is not assignable to parameter of type 'Node<NodeConfig>'. Types of property 'setZIndex' are incompatible. Type '(zIndex: any) => false | Text' is not assignable to type '(zIndex: any) => false | Node<NodeConfig>'. Type 'false | Text' is not assignable to type 'false | Node<NodeConfig>'. Type 'Text' is not assignable to type 'false | Node<NodeConfig>'. 55 | const txtObj = new Konva.Text(); 56 | const id = canvasManager.getNewObjectName('Text'); > 57 | return new TextControl(id, this, txtObj); | ^ 58 | } 59 | } 60 | error in /blarblar/src/Ruler.ts ERROR in /blarblar/src/Ruler.ts 7:15 Type 'Rect' is not assignable to type 'Shape<ShapeConfig>'. 5 | super(config); 6 | > 7 | const foobar: Konva.Shape = new Konva.Rect(); | ^ 8 | 9 | console.log(foobar); 10 | } Done in 8.03s. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,45 @@ { "name": "lightware-designer", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build", "lint": "vue-cli-service lint", "electron:build": "vue-cli-service electron:build", "electron:serve": "vue-cli-service electron:serve", "postinstall": "electron-builder install-app-deps" }, "dependencies": { "@mdi/font": "^3.2.89", "bodymovin": "^4.13.0", "konva": "^3.2.3", "roboto-fontface": "*", "splitpanes": "^1.13.0", "vkbeautify": "^0.99.3", "vue": "^2.5.17", "vue-class-component": "^6.0.0", "vue-property-decorator": "^7.2.0", "vuex": "^3.0.1", "vuex-class": "^0.3.1", "xmlbuilder": "^10.1.1" }, "devDependencies": { "@mdi/font": "^3.2.89", "@types/lodash": "^4.14.122", "@types/node": "^10.12.18", "@types/vkbeautify": "^0.99.2", "@types/xmlbuilder": "^0.0.34", "@vue/cli-plugin-babel": "^3.1.1", "@vue/cli-plugin-typescript": "^3.1.1", "@vue/cli-service": "^3.1.4", "electron": "^2.0.0", "resize-observer-polyfill": "^1.5.1", "stylus": "^0.54.5", "stylus-loader": "^3.0.1", "typescript": "^3.3.1", "vue-cli-plugin-electron-builder": "^1.0.0-rc.9", "vue-template-compiler": "^2.5.17" }, "main": "background.js" } This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,42 @@ { "compilerOptions": { "target": "esnext", "module": "esnext", "strict": true, "jsx": "preserve", "importHelpers": true, "moduleResolution": "node", "experimentalDecorators": true, "esModuleInterop": true, "allowSyntheticDefaultImports": true, "allowJs": true, "sourceMap": true, "baseUrl": ".", "types": [ "webpack-env" ], "paths": { "@/*": [ "src/*" ] }, "lib": [ "esnext", "dom", "dom.iterable", "scripthost" ] }, "include": [ "types/**/*.ts", "src/**/*.ts", "src/**/*.tsx", "src/**/*.vue", "tests/**/*.ts", "tests/**/*.tsx", "node_modules/vuetify/types" ], "exclude": [ "node_modules/^(?!vuetify/types).*$" ] }