summaryrefslogtreecommitdiff
path: root/assets/javascripts/mx/primitives/mx.iframe.js
blob: 76ce6031a9c608c650ecdb0289c56ae593187f6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
MX.Iframe = MX.Object3D.extend({
  init: function (ops) {

    var layer = this.layer = new MX.Object3D()
    layer.width = ops.width
    layer.height = ops.height

//     this.add(layer)
		this.width = ops.width
		this.height = ops.height

		this.el.innerHTML = "<iframe src='" + ops.texture[i] + "' width='100%' height='100%' style='pointer-events: none;'>"

    this.dirty = true
    this.updateChildren = true
    this.update()
  }

})