Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wangmengyang
/
vnc-controlScreen
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c69c03f0
authored
Jun 05, 2024
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8841a27d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
vnc.js/server/node_modules/vnc-server/noVNC/core/display.js
+0
-2
vnc.js/server/node_modules/vnc-server/noVNC/core/rfb.js
+1
-0
vnc.js/server/node_modules/vnc-server/noVNC/index.html
+8
-1
No files found.
vnc.js/server/node_modules/vnc-server/noVNC/core/display.js
View file @
c69c03f0
...
...
@@ -41,7 +41,6 @@ export default class Display {
}
this
.
_targetCtx
=
this
.
_target
.
getContext
(
'2d'
);
// the visible canvas viewport (i.e. what actually gets seen)
this
.
_viewportLoc
=
{
'x'
:
0
,
'y'
:
0
,
'w'
:
this
.
_target
.
width
,
'h'
:
this
.
_target
.
height
};
...
...
@@ -136,7 +135,6 @@ export default class Display {
}
viewportChangeSize
(
width
,
height
)
{
if
(
!
this
.
_clipViewport
||
typeof
(
width
)
===
"undefined"
||
typeof
(
height
)
===
"undefined"
)
{
...
...
vnc.js/server/node_modules/vnc-server/noVNC/core/rfb.js
View file @
c69c03f0
...
...
@@ -1748,6 +1748,7 @@ export default class RFB extends EventTargetMixin {
// we're past the point where we could backtrack, so it's safe to call this
this
.
_setDesktopName
(
name
);
console
.
log
(
width
,
height
);
this
.
_resize
(
width
,
height
);
if
(
!
this
.
_viewOnly
)
{
this
.
_keyboard
.
grab
();
}
...
...
vnc.js/server/node_modules/vnc-server/noVNC/index.html
View file @
c69c03f0
...
...
@@ -14,11 +14,18 @@
Connect parameters are provided in query string:
http://example.com/?host=HOST&port=PORT&scale=true
-->
<title>
远程控制
123
</title>
<title>
远程控制
</title>
<meta
charset=
"utf-8"
>
<style>
/* 需要根据现场比例 写适配 */
canvas
{
max-width
:
100vw
;
max-height
:
55vw
;
min-width
:
100vw
;
min-height
:
55vw
;
background-color
:
transparent
;
}
#top_bar
{
display
:
none
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment