Code Monkey home page Code Monkey logo

Comments (6)

RickonChen avatar RickonChen commented on May 30, 2024 2

Hi @hakkurishian , the project is being upgraded with the newest version of angular, rxjs, etc. It should be completed before this sunday. Thanks.

from feedback.

RickonChen avatar RickonChen commented on May 30, 2024 1

Hi gordonmckenzie
Thanks for your attention. I will take some time to review your advice and code. If there is no issue i will update the code asap. BTW, it is better if you can make pull request so that I could try your code directly. Thanks again!

from feedback.

RickonChen avatar RickonChen commented on May 30, 2024 1

The project has been upgraded as advice of @gordonmckenzie . It could be running without issue. I will publish newest package to npm later. Thanks.

from feedback.

gordonmckenzie avatar gordonmckenzie commented on May 30, 2024

Further to the above, there is an issue regarding the final merge of the screenshotCanvas and the mergedCanvas. It might not be the prettiest solution, but I managed to get this to work using the following modification within feedback.dialog.component.ts: -

public mergeCanvas() { this.showToolbar = false; this.detector.detectChanges(); this.appendScreenshot(); let mergedCanvas = document.createElement('canvas'); let x; let y; let ctx = mergedCanvas.getContext('2d'); if (ctx === null) { return; } x = mergedCanvas.width; y = mergedCanvas.height; mergedCanvas.width = this.screenshotCanvas.width; mergedCanvas.height = this.screenshotCanvas.height; ctx.drawImage(this.screenshotCanvas, 0, 0); ctx.drawImage(this.drawCanvas, 0, 0); this.feedback.screenshot = mergedCanvas.toDataURL('image/png'); mergedCanvas.width = x; mergedCanvas.height = y; ctx.clearRect(0, 0, mergedCanvas.width, mergedCanvas.height); ctx.drawImage(this.screenshotCanvas, 0, 0, 360, 200); ctx.drawImage(this.drawCanvas, 0, 0, 360, 200); this.feedbackService.setCanvas(mergedCanvas); }

from feedback.

hakkurishian avatar hakkurishian commented on May 30, 2024

Hi gordonmckenzie
Thanks for your attention. I will take some time to review your advice and code. If there is no issue i will update the code asap. BTW, it is better if you can make pull request so that I could try your code directly. Thanks again!

@RickonChen did you manage to look into it? I'm planning to use this great module in my app using Angular 6.0. In case you didn't have the time yet and won't be able to integrate it in the latest version I'd try to implement @gordonmckenzie 's changes in a pull request.

from feedback.

RickonChen avatar RickonChen commented on May 30, 2024

The ng-feedback has been uploaded to npm and find no issue after testing.
https://www.npmjs.com/package/ng-feedback

from feedback.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.