Giter Site home page Giter Site logo

Comments (3)

davidjgraph avatar davidjgraph commented on May 22, 2024 1

Run using the dev=1 URL parameter and the non-minified version of the code will be used. Note that you will need to map

document.location.protocol + '//devhost.jgraph.com/mxgraph2'

to the mxGraph project. We have mxGraph locallly, but I guess mapping it to Github should also work.

If you want things like handles, then yes, you'll need to implement in JS. You can follow the basic idea for the sidebar code, as you've seen. The build.xml does need to be updated, currently, for new additions. We probably should just wildcard that if the minifier allows it.

The other place stencils are referenced is in com.mxgraph.online.EmbedServlet2.initLibraries, which is the embed server-side code. If you're using embedding, you could override the class and add another init that calls this one.

from drawio.

alderg avatar alderg commented on May 22, 2024 1

See also: https://github.com/jgraph/mxgraph/blob/master/javascript/examples/grapheditor/www/js/Shapes.js

from drawio.

jdittrich avatar jdittrich commented on May 22, 2024

Thanks, I’ll go with that!
If you paste it to the wiki it would be great since it would be easy to find for others (and me to refind it, too 😃 )

from drawio.

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.