Git Product home page Git Product logo

Comments (16)

nedimm avatar nedimm commented on May 28, 2024 1

thank you very much Kristoffer!!
That works great. If I can help you in the future in any way please conntact me. My email is as my family name (at) gmail.com
Thanks once again and good night!

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

I will get back to you tomorrow once I'm back from vacation. 😊

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

Thank you for the fast reply Krostoffer!
I solved the problem. In a new Blazor app it works perfectly. In an "older" existing project I had to checkout Blazor.ContextMenu and reference it as a project in your library and now it works. Thank you for the great software !!!
Best Regards,
Nedim.

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

Cool that it was solved. 😊 If there is any changes to the README that could have made this process easier for you then feel free to make some pointers. 🙌

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

Sure, I have just started using it.
I will try to extend it in my fork and implement support for adding elements on left mouse button click in a separate toolbar (the functionality that we get from context menu at the moment).

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

I have made an example of extension-by-wrapping for the component in this repository which customizes the behaviour of the editor to make a general graph editor. https://github.com/KristofferStrube/Blazor.GraphEditor

I think an approach like that would be better than forking the repository since you will be able to get the benefits of any future improvements or features I create. A feature that I think will improve the performance a lot is virtualization which is described in issue #15 .

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

ok, I did not quite understand what do you mean. I just need the SVGEditor in one of pages. I can not see how should I use GraphEditor or how should I wrap the SVGEditor in order to be able to get future updates.

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

You mentioned that you have forked the project, which means that you will have to manually re-merge my repository into your repository to keep getting new updates.
The alternative is to use the NuGet package that is available for the SVGEditor and then add custom elements to the SVGEditor's SupportedElements parameter to add any custom functionality.

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

ok thank you, I will try to do that. the problem is that I could not integrate the SVGEditor as nuget in my project because the service blazorContextMenu from the BlazorContextMenu project was not resolvable. I had to checkout BlazorContextMenu, recreate it and add it as a project reference to your checked-out project. Tried for hours all other approaches, it just did not work. With a fresh Blazor app I had not problems.

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

unfortunatelly I am having no success working with the library. I have probably problems because of MudBlazor. I can for example create shapes but not resize because all anchor points appear black instead of hollow/white in a normal Blazor app and in your example. I can also not edit text once it has been added, but only in MudBlazor in your example app it works perfectly.
Any idea? Do I have to change some setting in order to make it editable?
Thanx.

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

I have just created a fresh MudBlazor application with using only nuget package for SVGEditor.
Unfortunatelly I can confirm that the library at this point does not work with MudBlazor:
https://imgur.com/jRDx71G
ColorPicker gets open without selected objects, SVG objects can not be resized or modified.
I can send you source code if you like. If you provide me instructions where to look and what to fix I will be glad to do that right now.
Your project is very important at the moment for all of us and I would be glad if I can help in any way.

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

I would to love to help you debug if you will share the source code. It looks as though you are missing to add some CSS.

from blazor.svgeditor.

nedimm avatar nedimm commented on May 28, 2024

that would be more than great :D
here is the code:
https://github.com/nedimm/SvgEditorMudBlazor
thanks for taking the time!!

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

I will check it out later today when I get off work.

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

Hey @nedimm, I found the problem.

You need to add the CSS file for the compiled Scoped CSS of your project, which also includes the scoped styles of my library. To fix that, you need to add the following StyleSheet link in your index.html file:

<link href="SVGEditorMudBlazor.styles.css" rel="stylesheet" />

And I also found that the manual inclusion of the ColorPicker JS file is no longer needed so you can remove this:

<script src="_content/BlazorColorPicker/colorpicker.js"></script>

I have updated the README accordingly with these details.

from blazor.svgeditor.

KristofferStrube avatar KristofferStrube commented on May 28, 2024

Nice. I would love to follow your progress in using the library. You can contact me on x.com (Twitter), Mastodon, or at i (at) kristoffer-strube.dk if you have any questions.

from blazor.svgeditor.

Related Issues (20)

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.