Sha256: b7812cdcfacf5f982561861bd407c0caef8375c9f8d9d1dc167326df6413d130

Contents?: true

Size: 1.9 KB

Versions: 4

Compression:

Stored size: 1.9 KB

Contents

(function (global, factory) {
  if (typeof define === "function" && define.amd) {
    define(["exports"], factory);
  } else if (typeof exports !== "undefined") {
    factory(exports);
  } else {
    var mod = {
      exports: {}
    };
    factory(mod.exports);
    global.NodeUniform = mod.exports;
  }
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
  "use strict";

  Object.defineProperty(_exports, "__esModule", {
    value: true
  });
  _exports.NodeUniform = void 0;

  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }

  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }

  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }

  var NodeUniform = /*#__PURE__*/function () {
    function NodeUniform() {
      var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

      _classCallCheck(this, NodeUniform);

      this.name = params.name;
      this.type = params.type;
      this.node = params.node;
      this.needsUpdate = params.needsUpdate;
    }

    _createClass(NodeUniform, [{
      key: "value",
      get: function get() {
        return this.node.value;
      },
      set: function set(val) {
        this.node.value = val;
      }
    }]);

    return NodeUniform;
  }();

  _exports.NodeUniform = NodeUniform;
});

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
opal-js_wrap-three-0.1.5 lib-opal/js_wrap/three/nodes/core/NodeUniform.js
opal-js_wrap-three-0.1.4 lib-opal/js_wrap/three/nodes/core/NodeUniform.js
opal-js_wrap-three-0.1.3 lib-opal/js_wrap/three/nodes/core/NodeUniform.js
opal-js_wrap-three-0.1.2 lib-opal/js_wrap/three/nodes/core/NodeUniform.js