- 13 Sep, 2011 1 commit
-
-
Joel Martin authored
Part of mobile device support: https://github.com/kanaka/noVNC/issues/48 The Display object is redefined as a larger display region with an equal or smaller visible viewport. The size of the full display region is set/changed using resize(). The viewport is set/changed using viewportChange(). All exposed routines that draw on the display now take coordinates that are absolute (relative to the full display region). For example, the result of fillRect(100, 100, 10, 10, [255,0,0]) will appear in the canvas at (0,0) if the viewport is set to (100,100). Details: - Move the generic part of the viewport code from tests/viewport.html into include/display. - Add two new routines to the Display interface: - viewportChange(deltaX, deltaY, width, height) - This adjusts the position of the visible viewport and/or the size of the viewport. - deltaX and deltaY specify how the position of the viewport should be shifted. The position of the viewport is clamped to the full region size (i.e. cannot outside the display region). - The clean and dirty regions of the display are updated based on calls to this routine. For example, if the viewport width is increased, then there is now a dirty box on the right side of the viewport. Another example, if the viewport is shifted down and to the left over the display region, there are now two dirty boxes: one on the left side and one on the bottom of the viewport. - getCleanDirtyReset() - This returns an object with the clean box and a list of dirty boxes (that need to be redrawn). {'cleanBox': {'x': x, 'y': y, 'w': w, 'h': h}, 'dirtyBoxes': [{'x': x, 'y': y, 'w': w, 'h': h}, ...] } - The coordinates in the clean and dirty boxes are absolute coordinates (relative to the full display region) but they are clipped to the visible viewport. - Calling this function also resets the clean rectangle to be the whole viewport (i.e. nothing visible needs to be redrawn dirty) so the caller of this routine is responsible for redrawing any
-
- 10 Sep, 2011 1 commit
-
-
Joel Martin authored
Pull from websockify 1c39c7f1f001.
-
- 06 Sep, 2011 1 commit
-
-
Joel Martin authored
-
- 31 Aug, 2011 3 commits
-
-
Joel Martin authored
Pull from websockify 6e26306.
-
Joel Martin authored
Pull from websockify ada02f2.
-
Joel Martin authored
Pull from websockify 0da91c7.
-
- 24 Aug, 2011 1 commit
-
-
Joel Martin authored
Pull 86af0b614d and 7b496ce5b from websockify. Fix HyBi support on 64-bit systems. https://github.com/kanaka/noVNC/issues/76 - cleanup/update TODO. - remove explicit check for ctypes module for HyBi. Clarify that we support HyBi 07-10. HyBi 07 reports version 7 in the handshake. HyBi 08-10 report version 8 in the handshake. Remove version 9 since that is not yet actually defined.
-
- 22 Aug, 2011 1 commit
-
-
Joel Martin authored
Tested on iOS (iPhone and iPad). The viewport is correctly clipped to the screen/browser size and resizing works correctly. This uses the CSS3 Flexible Box Layout model.
-
- 10 Aug, 2011 1 commit
-
-
Joel Martin authored
https://github.com/kanaka/noVNC/issues/72 Pull from websockify 2e00f9643.
-
- 04 Aug, 2011 1 commit
-
-
Joel Martin authored
-
- 03 Aug, 2011 1 commit
-
-
Joel Martin authored
Tested with an iPad 2. This example shows a 400x200 viewport of an 800x400 display. It tries to be intelligent about how much it redraws. It copies what it can, and then when the user releases the mouse, it redraws the "dirty" areas that were newly revealed.
-
- 02 Aug, 2011 1 commit
-
-
Joel Martin authored
Pull 475cfae from websockify. In Firefox 7 Mozilla has added Websockets support but prefixed the constructor with "Moz".
-
- 24 Jul, 2011 1 commit
-
-
Joel Martin authored
First crack at supporting touch screen for devices like Android and iOS tablets. Part of https://github.com/kanaka/noVNC/issues/48. This change detects touch screen support and uses the touchstart, touchmove, touchend events in place of the normal mouse events. In order to support middle and right mouse clicks, if the device is a touch device, then three toggle buttons are added to the UI representing the left, middle and right mouse buttons. These select which mouse button will be sent when the screen is touched. All the buttons can be toggled off, in which case then the touch events only move the mouse cursor rather than sending a mouse down and mouse up for touchstart and touchend events respectively. This allows fairly full control with the mouse on touch screens.
-
- 14 Jul, 2011 1 commit
-
-
Joel Martin authored
noVNC version 0.1 Add debian packaging directory loosely based on http://trac.zentyal.org/browser/trunk/extra/novnc/debian Show web root directory on startup (pulled from websockify f1c8223). Lintian fixups: - Some license text clarifications. - remove executable permission on utils/launch.sh and include/web-socket-js/web_socket.js - Add executable permission to utils/launch.sh
-
- 13 Jul, 2011 2 commits
-
-
Joel Martin authored
-
Joel Martin authored
-
- 09 Jul, 2011 1 commit
-
-
Joel Martin authored
Pull websockify 46e2fbe. WebSocketServer.socket() is a static method takes a host and port and an optional connect parameter. If connect is not set then it returns a socket listening on host and port. If connect is set then a connection will be made host and port and the socket returned. This has IPv6 support like the addrinfo method it replaces. Also, prefer IPv4 resolutions if they are in the list. This can be overriden to prefer IPv6 resolutions for the same host using the optional prefer_ipv6 parameter.
-
- 07 Jul, 2011 2 commits
-
-
Joel Martin authored
Pull 7ae8711 from websockify.
-
Joel Martin authored
Pull from websockify 247b74950d.
-
- 06 Jul, 2011 1 commit
-
-
Joel Martin authored
This addresses issue #65: https://github.com/kanaka/noVNC/issues/65 When tightPNG encoded rects were received, any fill types were immediately drawn to the canvas while images (PNG, JPEGs) were queued for loading. This can cause screen corruption when things are changing rapidly due to the misordering of fills vs images. Also, remove the onload setting in each image on the queue and instead decrease the tight image queue scanning interval (to 40ms or 25 scans per second).
-
- 01 Jul, 2011 1 commit
-
-
Joel Martin authored
For debugging issue #70: https://github.com/kanaka/noVNC/issues/70
-
- 28 Jun, 2011 3 commits
-
-
Joel Martin authored
Part of https://github.com/kanaka/noVNC/issues/69 Pull from websockify b590289de5.
-
Joel Martin authored
-
Joel Martin authored
Issue https://github.com/kanaka/noVNC/issues/69 Thanks https://github.com/EdSchouten for the catch. Import from websockify 9a2b50d8.
-
- 27 Jun, 2011 2 commits
-
-
Joel Martin authored
Add support for setting the WebSocket URI path.
-
Ed Schouten authored
This change allows one to implement a single WebSockets proxy, which multiplexes connections to different hosts.
-
- 26 Jun, 2011 5 commits
-
-
Joel Martin authored
-
Joel Martin authored
Just have a list here without all the links.
-
Joel Martin authored
Pull websockify 7f487fdbd. The reocrd parameter will turn on recording of all messages sent to and from the client. The record parameter is a file prefix. The full file-name will be the prefix with an extension '.HANDLER_ID' based on the handler ID.
-
Joel Martin authored
- Update test mode calls to work with separate websock module. - Pull in include/websock.js update 7f487fdbd from websockify.
-
Anthony Young authored
-
- 13 Jun, 2011 3 commits
-
-
Joel Martin authored
-
Joel Martin authored
-
Joel Martin authored
Broadway uses noVNC keyboard/input handling. Link to it.
-
- 19 May, 2011 2 commits
-
-
Joel Martin authored
Fixed minor typo in util/launch.sh informational output (s/to to/to/)
-
Sam Mussmann authored
s/to to/to/
-
- 12 May, 2011 2 commits
-
-
Joel Martin authored
-
Joel Martin authored
Including HyBi-07 support and refactor of send/recv.
-
- 11 May, 2011 2 commits
-
-
Joel Martin authored
- Add conf_defaults which accepts an array of configuration attributes. - Split out user configuration defaults from the actual configuration object. - Add mode field and enforce read-only, write-once, read-write modes.
-
Joel Martin authored
API changes: - include/canvas.js renamed to include/display.js - Display.rescale() method removed from API. Use Display.set_scale() instead. - Make logo configuration attribute of Display and display it when clear() is called if it is set. API deprecations: - use RFB onUpdateState instead of updateState. - use RFB onClipboard instead of clipboardReceive. See https://github.com/kanaka/noVNC/wiki/ModuleAPI for detailed noVNC modules and API description. Expand and normalize the event/callback interfaces. Standize on "onEventName" form for callbacks. Callback Renames: - RFB updateState -> onUpdateState - RFB clipboardReceive -> onClipboard - Keyboard keyPress -> onKeyPress - Mouse mouseButton -> onMouseButton - Mouse mouseMove -> onMouseMove Callback Additions: - RFB onPasswordRequired - RFB onBell - RFB onFBUReceive - RFB onFBUComplete Other: - Add array type support to Util.conf_default() - Removed a bunch of routines from the Display API that were just used internally and not actually by noVNC: flush, setFillColor, imageDataGet, imageDataCreate, rgbxImageData, rgbxImageFill, cmapImageData, cmapImageFill. - More keyboard/mouse logging when debug turned on. - Some JSLinting
-