Sha256: 22f423c4edcd61dc81f5da16f2d730e76c2bca39ec532582162b88a9297cfd68

Contents?: true

Size: 1.67 KB

Versions: 4

Compression:

Stored size: 1.67 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.NodeCode = mod.exports;
  }
})(typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : this, function (_exports) {
  "use strict";

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

  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; }

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

  var NodeCode = /*#__PURE__*/_createClass(function NodeCode(name, type) {
    var code = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

    _classCallCheck(this, NodeCode);

    this.name = name;
    this.type = type;
    this.code = code;
    Object.defineProperty(this, 'isNodeCode', {
      value: true
    });
  });

  var _default = NodeCode;
  _exports.default = _default;
});

Version data entries

4 entries across 4 versions & 1 rubygems

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