Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Sep 23 10:28

    Rich2 on master

    #124 Changes to PolygonLike met… (compare)

  • Sep 22 10:44

    Rich2 on master

    Comments on Square.apply. (compare)

  • Sep 21 20:47

    Rich2 on master

    #124. Added comment for Circle … (compare)

  • Sep 19 17:55

    Rich2 on master

    #155 More EarthBasicGui. (compare)

  • Sep 06 09:22

    Rich2 on master

    Added Sbt assembly back in. (compare)

  • Sep 04 15:22
    jxnu-liguobin starred Rich2/openstrat
  • Sep 03 19:30

    Rich2 on master

    Scala => 3.0.2. (compare)

  • Sep 03 13:26

    Rich2 on master

    ScalaJsDom => 1.2.0. (compare)

  • Sep 03 13:07

    Rich2 on master

    Created EarthAppJs. (compare)

  • Aug 19 07:13

    Rich2 on master

    Comments. #158 Fixed bug in CanvasJs. (compare)

  • Aug 11 00:24

    Rich2 on master

    #158 ShapeGenold now extends Da… (compare)

  • Aug 10 21:55

    Rich2 on master

    #158 Moved methods to DataDbl7s. (compare)

  • Aug 10 21:22

    Rich2 on master

    #158 found bug in IrrGui. (compare)

  • Aug 10 20:47

    Rich2 on master

    #158 toString override now in D… (compare)

  • Aug 10 20:24

    Rich2 on master

    #158 Signiture of dataMap metho… (compare)

  • Aug 10 15:19

    Rich2 on master

    #158 More preparations to chang… (compare)

  • Aug 10 15:12

    Rich2 on master

    #158 Preparing to change signit… (compare)

  • Aug 10 13:50

    Rich2 on master

    #158 Moved dataMap method to Da… (compare)

  • Aug 09 14:48

    Rich2 on master

    #158. (compare)

  • Aug 08 20:23

    Rich2 on master

    #158 Fixed bug in Latlong db1 a… (compare)

Rich
@Rich2
@mghildiy Hi there. It would be great to have someone with a Java background / perspective involved. Are you able to build the project OK and run the different examples / mini-apps? What platform do you work on Windows / Linux / Apple?
w0d
@w0d
@Rich2 hi, sorry not been around much but been having problems with my tablet which i use for my internet connection - hope to resove it soon
w0d
@w0d
@Rich hi
WRT#120 & Reactor.addBalls:Line51-2
canv.polyFill(Rect.fromBL(size-1, size-1, loc), Black) canv.circleFill(Circle(size/8, loc+((size/4) vv (size/4))), color)
any chance you could rewrite these lines to the developing api
cheers
Rich
@Rich2
@w0d Could you check that the loop in ReactorGui still works as before.
mghildiy
@mghildiy
@Rich2 , I am working on Windows 10.
w0d
@w0d
@mghildiy Hi there, if we can help in anyway feel free to ask here
mghildiy
@mghildiy
I ran sbt at project root, got this error
[error] server failed to start on local:sbt-server-ae79988dabf357ab37d4. java.io.IOException: Could not create lock for \.\pipe\sbt-server-ae79988dabf357ab37d4_lock, error 5
but Dev/reStart launched the program
mghildiy
@mghildiy
which part of code can I dive into directly?
Rich
@Rich2

@mghildiy I would suggest working on the examples in the Graphics/srcExs folder.

I've just updated the website documentation page. So copy the DevSettings.rson file from the Dev/Misc folder to the Dev/User folder. You will have to create the Dev/User folder yourself as its under git ignore. Then you can change the app / example that runs for:

~Dev/reStart

If you change the appStr in Dev/User/DevSettings.rson and save it then sbt will automatically relaunch the new specified example /app in the same way that sbt rebuilds when you make and save code changes.

Rich
@Rich2
@w0d I'm definitely swinging back to thinking the default method for specifying a circle should be by diameter not by radius.
Rich
@Rich2
Docs at richstrat.com have been updated.
agarwalBinay18
@agarwalBinay18
hi
How can I run project in Windows 10?
Rich
@Rich2

@agarwalBinay18 So you need to have a JDK version of Java installed. Jdk 11 is ideal but later versions should all work. Then install sbt. Clone the project to a location of your choice and then shift into the openstrat folder and run sbt. Then from the Sbt command prompt run:

~ Dev/reStart

That will compile and open a graphical application. If you make any changes to the source files it will recompile and run with your changes.

w0d
@w0d
@agarwalBinay18 let us know if you have any problems with the steps outlined above
agarwalBinay18
@agarwalBinay18
image.png
unable to write any command
Rich
@Rich2
@agarwalBinay18 I've run into the same weird problem on Windows 10. Sbt ran as normal using power-shell and the command prompt. You could run the commands in Sbt as normal, but when I ran Sbt in Git bash I got exactly the same problem as you. So as a temporary measure could try running Sbt form power-shell or the command prompt. I will try and investigate this problem further.
agarwalBinay18
@agarwalBinay18
image.png
I am getting this after compiling and running
Rich
@Rich2
@agarwalBinay18 OK so if you create a folder called User inside the Dev folder and then copy the DevSettings.rson file from Dev/Misc to Dev/User. Tou can then change the appstr at the top of the Dev/User/DevSettings.rson file it will change the app or example that Sbt runs.
The purpose of this is that the Dev/User folder is ignored by git, allowing each developer to change the app/example they are working on as many times as they want without worrying about the change getting staged, committed and pushed back to the upstream repository.
Rich
@Rich2
@agarwalBinay18 So I'm fairly certain I know what the problem is. The simple answer is that the project won't run using git bash but will work from the command prompt and Power Shell. My preferred development environment is IntelliJ IDEA. This is a powerful IDE for working in Scala and popular across the Scala community, however it does use a lot of system resources, so it may not be the ideal solution for working on lower powered devices. It works for openstrat under Windows. You can also use common editors with the Scala metals plugin. I've just tested this using the Visual Studio Code editor on Windows 10 and it works. But Scala-Metals should also work with Atom, Vim, Sublime, EMacs and even Eclipse.
Rich
@Rich2
@agarwalBinay18 So ignore this explanation, if it confuses. Myself and @w0d both work mainly in Linux, however I had used gitbash successfully on Windows 7 and Windows 10 with Openstrat previously. Openstrat can be currently output to JavaFx and to WebCanvas through Scala.js, although we're starting to add SVG as an output target. However a while back we moved from JDK 8 to JDK 11+. JavaFx was bundled as part of the Oracle JDK with Java 8. However from Java 11 it became a library dependency you can see it called in on line 70 of the openstrat.sbt file in the root folder of openstrat. This is a platform specific library dependency. So the library that is called in is different on Windows from Linux. I strongly expect that this is causing the problem when trying to run the project from Git bash.
mghildiy
@mghildiy
How to build the project?
following this
mghildiy
@mghildiy
ignore above
so what should be appStr value for running Graphics/srcExs examples
got it
mghildiy
@mghildiy
Any specific issue I can work upon?
Rich
@Rich2
@mghildiy So help on #124 would be great. Probably the best place to start is on the Shapes, filling in the missing classes, methods, implementations and implicit type class instances. Its generally best to make small changes and create a pull request, rather than making a lot of changes in one go and getting out of sync with the main master branch.
w0d
@w0d
@Rich2 have been looking at Ellipses & their platform implementations, it seems that if we can export to SVGPath + Transformation we could simplify the boundary between OpenStrat & the Platforms (web/javafx/svg - all accept that format)
im wondering what im missing in taking this approach - are we losing something that we would want to keep in OpenStrat?
Rich
@Rich2
@w0d There would be quite a performance hit from converting into SVG strings and then back again.
Rich
@Rich2
@w0d I've updated the 2 main webpages for the new SbtDir location. So they should work again.
w0d
@w0d
Finally! well I've made progress on the JavaFx tlCArcDraw3 & CArc and I believe the last bit that needs fixing will get taken care of when I switch back to using theAngle class. Dont use the javaFx8 documentation has been my learning point!
Rich
@Rich2
@w0d Good stuff I've updated the arc names.
w0d
@w0d
@Rich2 ive fixed the workflows except the tests - any chance you could have a look at why strat.geom.PersistGeomTest.Vec2Test
ostrat.geom.PersistGeomTest.Line2Test
ostrat.geom.PersistGeomTest.OtherTest
are failing - cheers
Rich
@Rich2
@w0d Should fontSize be a Double rather than an Int?
w0d
@w0d
@Rich2 yes
Rich
@Rich2
Done!
w0d
@w0d

@Rich2 Re: Ellipses & Javafx Tranformations on Canvas:

gc.rotate(xAxisRotationAngle)
gc.setLineWidth(ed.lineWidth)
gc.setStroke(toFxColor(ed.lineColour))
gc.strokeOval(ed.xCen - ed.shape.radius1, ed.yCen - ed.shape.radius0, ed.shape.diameter1, ed.shape.diameter0)
gc.rotate(-xAxisRotationAngle)

Im guessing you'll need to do a translation too - you can use gc.save & restore to simplify that a little

Rich
@Rich2
@w0d Thanks for that. I'm just trying to make the naming in EArc and Ellipse consistent, prior to implementing this.
Rich
@Rich2
@w0d Should Unshow be renamed to UnShowT and Persist be renamed to PersistT?
Rich
@Rich2
@/all DevApp now runs on JavaFx for Scala 3!
Rich
@Rich2
Important comment in #141.
Rich
@Rich2
@w0d Can we close #73?
w0d
@w0d
#73 closed & a pm for u