Git Product home page Git Product logo

speckleui's People

Contributors

didimitrie avatar teocomi avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

speckleui's Issues

Downgrade Target Framework for Microstation compatibility

Hi @didimitrie and @teocomi ,

We are writing a Microstation plugin (will hopefully be open sourced once it reached MVP) and have encountered a problem: Microstation supports dotNet 4.6.1 and will not be adding support for later versions...

Two questions:

  1. Do you have any overaching concerns with downgrading the target framework?
  2. Do you have any suggestions about how the downgrade could be tested? The solution builds with dotNet 4.6.1, is that enough?

Check if browser is initialised

Specifically, add a Browser.IsIntialized check in:

public void NotifyUi( string eventName, dynamic eventInfo )
{
var script = string.Format( "window.EventBus.$emit('{0}', {1})", eventName, JsonConvert.SerializeObject( eventInfo ) );
Browser.GetMainFrame().EvaluateScriptAsync( script );
}

and

public void DispatchStoreActionUi( string storeActionName, string args = null )
{
var script = string.Format( "window.Store.dispatch('{0}', '{1}')", storeActionName, args );
Browser.GetMainFrame().EvaluateScriptAsync( script );
}

Cef v71.0.2 vs Revit Cef Sharp (v.57)

Trawled from MSTeams:

[09/01 05:56] Nic Burgers
I was trying to launch the SpeckleUiWindow from within the ETABS plugin code and kept finding that the window appeared but there was no content. There were no calls at all to to the SpeckleUiApp at localhost:8080

Yamin and I spent several hours trying to work out what was going on and although we didn't definitively work out the issue, we followed our noses after reading a CefSharp exception pointing us to cefsharp/CefSharp#1714
Feature Request - Add AnyCPU Support · Issue #1714 · cefsharp/CefSharpDoing some research on another topic I believe I've come up with a method of making AnyCPU a reality without introducing maintainable code to the framework. With 60a1e61 it's now po...github.com​[09/01 05:59] Nic Burgers

I saw that this issue seemed to have been fixed in a newer version (the one you have points to version 57). We found other issues when we tried to link the most recent stable version, but version 71.0.2 works well and only needs a couple of one-liner changes

ping @nic-burgers-arup - let's take the discussion further here :)

Summary: is how do we make it possible to build the UiBase with two cef sharp versions - one latest, that we can use in Rhino, ETABS, etc. - and v.57, which we need to stick to because of Revit.

Nuget Package

@teocomi can guide the stupid @didimitrie to make a cool nuget package out of this, for easier and smoother implementation.
We have the required info, need to actually do it

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.