Code Monkey home page Code Monkey logo

Comments (11)

nikku avatar nikku commented on June 2, 2024

I can reproduce your issue. Despite dedicated handling for it the marker is always shown.

I presume this is due to a bug in our model import.

from bpmn-js.

nikku avatar nikku commented on June 2, 2024

Changing this to a bug report, as it is against the intended, and implemented behavior. We aim to empower the user.

from bpmn-js.

nikku avatar nikku commented on June 2, 2024

I presume this is due to a bug in our model import.

Never mind this. We actually (unnecessarily) force isMarkerVisible=true during modeling.

Happy to take a contribution that fixes it in the ElementFactory + adds test coverage.

from bpmn-js.

sombrek avatar sombrek commented on June 2, 2024

@barmac Today I noticed that this doesn't work in the latest release, even though my contribution is included. Seems we both forgot to check the diagram after the final changes.

It looks like the simplification is the cause of this, see

} else {
di.isMarkerVisible = true;
}

The original code makes rendering work.

    } else {
      attrs = applyAttribute(di, attrs, 'isMarkerVisible');
      if (di.isMarkerVisible === undefined) {
        di.isMarkerVisible = true;
      }
    }

What is the best way forward to fix this?

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

Thanks for sharing, I will look into this.

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

Does it really not work though? I experimented with the following context pad code:

        'append.gateway': appendAction(
          'bpmn:ExclusiveGateway',
          'bpmn-icon-gateway-none',
          translate('Append gateway')
        ),
        'append.gateway1': appendAction(
          'bpmn:ExclusiveGateway',
          'bpmn-icon-gateway-none',
          translate('Append gateway'),
          { isMarkerVisible: undefined }
        ),

which allowed to create both types of gateway:

Screen.Recording.2024-01-29.at.17.25.18.mov

from bpmn-js.

sombrek avatar sombrek commented on June 2, 2024

@barmac Thanks for getting back to this.

My expectation is that the marker is hidden for existing gateways that have isMarkerVisible=false. This doesn't work when I open an existing model, see test/fixtures/bpmn/draw/xor.bpmn in bpmn.io

I guess the same will happen to your model once you save and re-open it.

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

In the test on main it looks OK though:

image

I will make sure that the demo.bpmn.io is up to date so that we can verify outside of local environment.

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

OK I can reproduce it with the current version of bpmn-js.

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

I guess the same will happen to your model once you save and re-open it.

So the isMarkerVisible is overridden once the XML is exported.

from bpmn-js.

barmac avatar barmac commented on June 2, 2024

Closed via #2102

from bpmn-js.

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.