andreasplesch / x_ite_dom

link x_ite to the DOM
http://andreasplesch.github.io/x_ite_dom/index.xhtml
MIT License
6 stars 0 forks source link

Integrating x_ite_dom into X_ITE #40

Open create3000 opened 1 year ago

create3000 commented 1 year ago

Hello Andreas,

I have integrated x_ite_dom directly into X_ITE now, because it is much easier to maintain this file this way, and there is now no more need to include and extra file. I have already fixed some new issues, like #38, and also fixed dispose of nodes in X_ITE, which was broken. Also some things in the parser have changed since start of this project, and the new preferred element is \<x3d-canvas>. It also solves the problem if a x3d-canvas element is created programmatically via X3D.createBrowser and added later to the HTML document.

I would very appreciate it if you would continue to maintain the file, and also continue to add ideas to it.

DOMIntegration.js is now located here https://github.com/create3000/x_ite/blob/main/src/x_ite/Browser/DOMIntegration.js.

jamesleesaunders commented 1 year ago

Thanks for fixing #38 and I am excited to hear x_ite_x3dom is now being integrated into x_ite as standard. I will give this a test with d3-x3d.

create3000 commented 1 year ago

@jamesleesaunders Nice to hear from you, but notice, I will release the new version with these critical fixes first in 3 or 4 days. Wanted to inform Andreas first. Have you noticed that the element is now \<x3d-canvas> (with dash, and lowercase), and there is no need to include the CSS anymore :).

Minimal example can be found already at https://create3000.github.io/x_ite/DOM-Integration.html#example.

create3000 commented 1 year ago

@jamesleesaunders if you are impatient then you can test the alpha version from https://create3000.github.io/code/x_ite/alpha/x_ite.min.js (or without '.min').

jamesleesaunders commented 1 year ago

@create3000 Thanks! I have given all the charts on d3-x3d a run though with the alpha version and they all appear to be running fine :-) I have also swapped all examples and docs to x3d-canvas.

It may be a little premature, but I have published all examples to use the alpha version: https://github.com/jamesleesaunders/d3-x3d#examples I will update them again when it is released as dist.

I will also take a look over #38 to see if this is now fixed.

create3000 commented 1 year ago

@jamesleesaunders a new version is now published, and you can now use 'latest' to refer to x_ite. I also have tested https://github.com/andreasplesch/x_ite_dom/issues/38 and it should now be fixed.

jamesleesaunders commented 1 year ago

Great! I have flipped over to latest. I have also addresses complains from non-standard 'ENVIRONMENT' element (non standard from x3dom).

I am seeing a couple of new warnings from x-ite which I don't think were there on previous versions:

Texturing3D.js:13 Invalid asm.js: Invalid member of stdlib
Texturing3D.js:49 Invalid asm.js: Invalid member of stdlib

See console: https://raw.githack.com/jamesleesaunders/d3-x3d/master/examples/X_ITE/chart/AreaChartMultiSeries.html

Welcome to X_ITE X3D Browser 8.0.0:
   Current Graphics Renderer
      Name: Google Inc. (Apple) ANGLE (Apple, Apple M1 Pro, OpenGL 4.1)
      WebGL version: WebGL 2.0 (OpenGL ES 3.0 Chromium)
      Shading language: WebGL GLSL ES 3.00 (OpenGL ES GLSL ES 3.0 Chromium)
andreasplesch commented 1 year ago

Apologies for delayed response. I fully support integrating x_ite_dom into X_ITE. Let me add a note to the repo.

I will be happy to support the integration albeit sometimes slowly. With the easier access, support for html rather than xhtml may become more relevant. As far as I remember, html should already work well with the support in x_ite. The main tag to test would be probably <script>.

Thanks for doing this, Andreas