Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
1 Star 0 Fork 0

wf/three.js

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (4)
Tags (96)
master
dev
design-update
gh-pages
r104
r103
r102
r101
r100
r99
r98
r97
r96
r95
r94
r93
r92
r91
r90
r89
r88
r87
r86
r85
master
Branches (4)
Tags (96)
master
dev
design-update
gh-pages
r104
r103
r102
r101
r100
r99
r98
r97
r96
r95
r94
r93
r92
r91
r90
r89
r88
r87
r86
r85
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (4)
Tags (96)
master
dev
design-update
gh-pages
r104
r103
r102
r101
r100
r99
r98
r97
r96
r95
r94
r93
r92
r91
r90
r89
r88
r87
r86
r85
three.js
/
docs
/
index.html
three.js
/
docs
/
index.html
index.html 10.10 KB
Copy Edit Raw Blame History
sunag authored 2019年04月14日 00:14 +08:00 . update favicon path
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>three.js / documentation</title>
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<link type="text/css" rel="stylesheet" href="index.css">
<link rel="shortcut icon" href="../favicon.ico" />
</head>
<body>
<div id="panel" class="collapsed">
<h1><a href="http://threejs.org">three.js</a> / docs</h1>
<a id="expandButton" href="#">
<span></span>
<span></span>
<span></span>
</a>
<div class="filterBlock" >
<input type="text" id="filterInput" placeholder="Type to filter" autocorrect="off" autocapitalize="off" spellcheck="false">
<a href="#" id="clearFilterButton">x</a>
</div>
<div style="text-align:center">
<br />
<a href="javascript:setLanguage('en')">en</a> |
<a href="javascript:setLanguage('zh')">zh</a>
</div>
<div id="content"></div>
</div>
<iframe name="viewer"></iframe>
<script src="list.js"></script>
<script>
var hash = window.location.hash.substring( 1 );
// Localisation
var language = 'en';
if ( /^(api|manual)/.test( hash ) ) {
var hashLanguage = /^(api|manual)\/(en|zh)\//.exec( hash );
if ( hashLanguage === null ) {
// Route old non-localised api links
window.location.hash = hash.replace( /^(api|manual)/, '1ドル/en' );
} else {
language = hashLanguage[ 2 ];
}
}
//
function setLanguage( value ) {
language = value;
createNavigation();
updateFilter();
autoChangeUrlLanguage( language );
}
var panel = document.getElementById( 'panel' );
var content = document.getElementById( 'content' );
var clearFilterButton = document.getElementById( 'clearFilterButton' );
var expandButton = document.getElementById( 'expandButton' );
var filterInput = document.getElementById( 'filterInput' );
var iframe = document.querySelector( 'iframe' );
var pageProperties = {};
var titles = {};
var categoryElements = [];
var navigation;
// Functionality for hamburger button (on small devices)
expandButton.onclick = function ( event ) {
event.preventDefault();
panel.classList.toggle( 'collapsed' );
};
// Functionality for search/filter input field
filterInput.oninput = function ( event ) {
updateFilter();
};
// Functionality for filter clear button
clearFilterButton.onclick = function ( event ) {
event.preventDefault();
filterInput.value = '';
updateFilter();
};
// Activate content and title change on browser navigation
window.onpopstate = createNewIframe;
// Create the navigation panel and configure the iframe
createNavigation();
createNewIframe();
// Navigation Panel
function createLink( pageName, pageURL ) {
var link = document.createElement( 'a' );
link.href = pageURL + '.html';
link.textContent = pageName;
link.setAttribute( 'target', 'viewer' );
link.addEventListener( 'click', function ( event ) {
if ( event.button !== 0 || event.ctrlKey || event.altKey || event.metaKey ) return;
window.location.hash = pageURL;
panel.classList.add( 'collapsed' );
} );
return link;
}
function createNavigation() {
if ( navigation !== undefined ) {
content.removeChild( navigation );
}
// Create the navigation panel using data from list.js
navigation = document.createElement( 'div' );
content.appendChild( navigation );
var localList = list[ language ];
for ( var section in localList ) {
// Create sections
var categories = localList[ section ];
var sectionHead = document.createElement( 'h2' );
sectionHead.textContent = section;
navigation.appendChild( sectionHead );
for ( var category in categories ) {
// Create categories
var pages = categories[ category ];
var categoryContainer = document.createElement( 'div' );
navigation.appendChild( categoryContainer );
var categoryHead = document.createElement( 'h3' );
categoryHead.textContent = category;
categoryContainer.appendChild( categoryHead );
var categoryContent = document.createElement( 'ul' );
categoryContainer.appendChild( categoryContent );
for ( var pageName in pages ) {
// Create page links
var pageURL = pages[ pageName ];
// Localisation
var listElement = document.createElement( 'li' );
categoryContent.appendChild( listElement );
var linkElement = createLink( pageName, pageURL )
listElement.appendChild( linkElement );
// Gather the main properties for the current subpage
pageProperties[ pageName ] = {
section: section,
category: category,
pageURL: pageURL,
linkElement: linkElement
};
// Gather the document titles (used for easy access on browser navigation)
titles[ pageURL ] = pageName;
}
// Gather the category elements for easy access on filtering
categoryElements.push( categoryContent );
}
}
}
// Auto change language url. If a reader open a document in English, when he click "zh", the document he read will auto change into Chinese version
function autoChangeUrlLanguage( language ) {
var hash = location.hash;
if ( hash === '' ) return;
var docType = hash.substr( 0, hash.indexOf( '/' ) + 1 );
var docLink = hash.substr( hash.indexOf( '/' ) + 1 );
docLink = docLink.substr( docLink.indexOf( '/' ) );
location.href = docType + language + docLink;
}
// Filtering
function updateFilter() {
// (uncomment the following line and the "Query strings" section, if you want query strings):
// updateQueryString();
var regExp = new RegExp( filterInput.value, 'gi' );
for ( var pageName in pageProperties ) {
var linkElement = pageProperties[ pageName ].linkElement;
var categoryClassList = linkElement.parentElement.classList;
var filterResults = pageName.match( regExp );
if ( filterResults && filterResults.length > 0 ) {
// Accentuate matching characters
for ( var i = 0; i < filterResults.length; i++ ) {
var result = filterResults[ i ];
if ( result !== '' ) {
pageName = pageName.replace( result, '<b>' + result + '</b>' );
}
}
categoryClassList.remove( 'hidden' );
linkElement.innerHTML = pageName;
} else {
// Hide all non-matching page names
categoryClassList.add( 'hidden' );
}
}
displayFilteredPanel();
}
function displayFilteredPanel() {
// Show/hide categories depending on their content
// First check if at least one page in this category is not hidden
categoryElements.forEach( function ( category ) {
var pages = category.children;
var pagesLength = pages.length;
var sectionClassList = category.parentElement.classList;
var hideCategory = true;
for ( var i = 0; i < pagesLength; i ++ ) {
var pageClassList = pages[ i ].classList;
if ( ! pageClassList.contains( 'hidden' ) ) {
hideCategory = false;
}
}
// If and only if all page names are hidden, hide the whole category
if ( hideCategory ) {
sectionClassList.add( 'hidden' );
} else {
sectionClassList.remove( 'hidden' );
}
} );
}
// Routing
function setUrlFragment( pageName ) {
// Handle navigation from the subpages (iframes):
// First separate the memeber (if existing) from the page name,
// then identify the subpage's URL and set it as URL fragment (re-adding the member)
var splitPageName = decomposePageName( pageName, '.', '.' );
var currentProperties = pageProperties[ splitPageName[ 0 ] ];
if ( currentProperties ) {
window.location.hash = currentProperties.pageURL + splitPageName[ 1 ];
createNewIframe();
}
}
function createNewIframe() {
// Change the content displayed in the iframe
// First separate the member part of the fragment (if existing)
var hash = window.location.hash.substring( 1 );
var splitHash = decomposePageName( hash, '.', '#' );
// Creating a new Iframe instead of assigning a new src is
// a cross-browser solution to allow normal browser navigation;
// - only assigning a new src would result in two history states each time.
// Note: iframe.contentWindow.location.replace(hash) should work, too,
// but it doesn't work in Edge with links from the subpages!
var oldIframe;
var subtitle;
oldIframe = iframe;
iframe = oldIframe.cloneNode();
if(hash) {
iframe.src = splitHash[ 0 ] + '.html' + splitHash[ 1 ];
subtitle = titles[ splitHash[ 0 ] ] + splitHash[ 1 ] + ' - ';
} else {
iframe.src = '';
subtitle = '';
}
document.body.replaceChild( iframe, oldIframe );
document.title = subtitle + 'three.js docs';
}
function decomposePageName( pageName, oldDelimiter, newDelimiter ) {
// Helper function for separating the member (if existing) from the pageName
// For example: 'Geometry.morphTarget' can be converted to
// ['Geometry', '.morphTarget'] or ['Geometry', '#morphTarget']
// Note: According RFC 3986 no '#' allowed inside of an URL fragment!
var parts = [];
var dotIndex = pageName.indexOf( oldDelimiter );
if ( dotIndex !== -1 ) {
parts = pageName.split( oldDelimiter );
parts[ 1 ] = newDelimiter + parts[ 1 ];
} else {
parts[ 0 ] = pageName;
parts[ 1 ] = '';
}
return parts;
}
//
console.log([
' __ __',
' __/ __\\ / __\\__ ____ _____ _____',
'/ __/ /\\/ / /___\\/ ____\\/ _____\\/ _____\\',
'\\/_ __/ / _ / / __/ / __ / / __ /_ __ _____',
'/ / / / / / / / / / / / ___/ / ___/\\ _\\/ __\\/ _____\\',
'\\/__/ \\/__/\\/__/\\/__/ \\/_____/\\/_____/\\/__/ / / / ___/',
' / __/ / \\__ \\',
'\\/____/\\/_____/'
].join('\n'));
</script>
<!-- console sandbox -->
<script src="../build/three.min.js"></script>
</body>
</html>
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

Cancel

Releases

No release

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/ffgit/three.js.git
git@gitee.com:ffgit/three.js.git
ffgit
three.js
three.js
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /