An example showing an isometric rendering in SVG, thanks to three.js.
The example is inspired by this post on using three.js to generate illustrations for scientific papers.
| /* eslint-disable no-var,no-console */ | |
| // detect unused CSS selectors | |
| (function() { | |
| var parsedRules = parseCssRules(); | |
| console.log('Parsed CSS rules:', parsedRules); | |
| detectDuplicateSelectors(parsedRules); | |
| var selectorsToTrack = getSelectorsToTrack(parsedRules); | |
| window.selectorStats = { unused: [], added: [], removed: [] }; | |
| console.log('Tracking style usage (inspect window.selectorStats for details)...'); |
| // Файл "tsconfig.json": | |
| // - устанавливает корневой каталог проекта TypeScript; | |
| // - выполняет настройку параметров компиляции; | |
| // - устанавливает файлы проекта. | |
| // Присутствие файла "tsconfig.json" в папке указывает TypeScript, что это корневая папка проекта. | |
| // Внутри "tsconfig.json" указываются настройки компилятора TypeScript и корневые файлы проекта. | |
| // Программа компилятора "tsc" ищет файл "tsconfig.json" сначала в папке, где она расположена, затем поднимается выше и ищет в родительских папках согласно их вложенности друг в друга. | |
| // Команда "tsc --project C:\path\to\my\project\folder" берет файл "tsconfig.json" из папки, расположенной по данному пути. | |
| // Файл "tsconfig.json" может быть полностью пустым, тогда компилятор скомпилирует все файлы с настройками заданными по умолчанию. | |
| // Опции компилятора, перечисленные в командной строке перезаписывают собой опции, заданные в файле "tsconfig.json". |
| ; Websocketclient by Netzvamp | |
| ; Version: 2016/01/08 | |
| DeclareModule WebsocketClient | |
| Declare OpenWebsocketConnection(URL.s) | |
| Declare SendTextFrame(connection, message.s) | |
| Declare ReceiveFrame(connection, *MsgBuffer) | |
| Declare SetSSLProxy(ProxyServer.s = "", ProxyPort.l = 8182) | |
| Enumeration |
| (function() { | |
| for (var ssi = 0; ssi < document.styleSheets.length; ssi++) { | |
| let rules; | |
| try { | |
| rules = document.styleSheets[ssi].cssRules || []; | |
| } catch (e) { | |
| rules = [] | |
| } | |
| var sheetHref = document.styleSheets[ssi].href || 'inline'; |