-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
15 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,11 @@ | |
* @file Gui | ||
* @author Alexander Rose <[email protected]> | ||
*/ | ||
var NGL = require('ngl'); | ||
var UI = require('./ui/ui.js').UI; | ||
var signals = require("./lib/signals.min.js"); | ||
|
||
// NOTE: This file is a modified version of the original file | ||
import * as NGL from 'ngl'; | ||
import { UI } from './ui/ui.js'; | ||
import signals from './lib/signals.min.js'; | ||
|
||
HTMLElement.prototype.getBoundingClientRect = (function () { | ||
// workaround for ie11 behavior with disconnected dom nodes | ||
|
@@ -139,7 +140,7 @@ NGL.Preferences.prototype = { | |
|
||
// Stage | ||
|
||
class StageWidget{ | ||
export class StageWidget{ | ||
constructor(view){ | ||
// view: NGLView of NGLModel | ||
var el | ||
|
@@ -268,7 +269,7 @@ class StageWidget{ | |
|
||
var w = ew - sw + 'px' | ||
|
||
stage.viewer.container.style.width = w | ||
stage.viewer.container.style.width = w | ||
stage.handleResize() | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters