Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Resize 3D Viewer #117

Merged
merged 2 commits into from
Jun 16, 2015
Merged

Added Resize 3D Viewer #117

merged 2 commits into from
Jun 16, 2015

Conversation

rbonghi
Copy link
Contributor

@rbonghi rbonghi commented Jun 16, 2015

Now you can resize the Viewer with a function resize(with, height):

example:

var viewer3D = new ROS3D.Viewer({
        divID: divName,
        width: window.innerWidth,
        height: window.innerHeight,
        antialias: true
    });

window.onresize = function(event) {
   viewer3D.resize(window.innerWidth, window.innerHeight);
};

resize

@rctoris
Copy link
Contributor

rctoris commented Jun 16, 2015

👍

Build seems to be failing over some mixed whitespace issues. https://travis-ci.org/RobotWebTools/ros3djs/builds/67052188#L164

@rbonghi
Copy link
Contributor Author

rbonghi commented Jun 16, 2015

Fixed 👍

rctoris added a commit that referenced this pull request Jun 16, 2015
@rctoris rctoris merged commit 8d864f0 into RobotWebTools:develop Jun 16, 2015
@rbonghi rbonghi deleted the patch-5 branch June 16, 2015 18:32
k-aguete pushed a commit to k-aguete/ros3djs that referenced this pull request Oct 21, 2022
[wip] TCP connections to ROS bridge for node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants