neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 4.22 kB
JavaScript
;
var __assign = (this && this.__assign) || function () {
__assign = Object.assign || function(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.SlotGizmoButton = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function SlotGizmoButton(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _worker = props._worker, _callback = props._callback, _gizmo = props._gizmo, _highlighted = props._highlighted, _buttonMaterial = props._buttonMaterial;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SlotGizmoButton", id: id, persistentId: persistentId, updateOrder: updateOrder }, { children: [(0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "Enabled", id: typeof Enabled === "object" && "id" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.id : undefined, value: typeof Enabled === "object" && "value" in Enabled ? Enabled === null || Enabled === void 0 ? void 0 : Enabled.value : Enabled !== null && Enabled !== void 0 ? Enabled : true, isRaw: typeof Enabled === "object" && "isRaw" in Enabled && Enabled.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Worker]", name: "_worker", id: typeof _worker === "object" && "id" in _worker ? _worker === null || _worker === void 0 ? void 0 : _worker.id : undefined, value: typeof _worker === "object" && "value" in _worker ? _worker === null || _worker === void 0 ? void 0 : _worker.value : _worker, isRaw: typeof _worker === "object" && "isRaw" in _worker && _worker.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncDelegate`1[System.Action]", name: "_callback", id: typeof _callback === "object" && "id" in _callback ? _callback === null || _callback === void 0 ? void 0 : _callback.id : undefined, value: typeof _callback === "object" && "value" in _callback ? _callback === null || _callback === void 0 ? void 0 : _callback.value : _callback, isRaw: typeof _callback === "object" && "isRaw" in _callback && _callback.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.SlotGizmo]", name: "_gizmo", id: typeof _gizmo === "object" && "id" in _gizmo ? _gizmo === null || _gizmo === void 0 ? void 0 : _gizmo.id : undefined, value: typeof _gizmo === "object" && "value" in _gizmo ? _gizmo === null || _gizmo === void 0 ? void 0 : _gizmo.value : _gizmo, isRaw: typeof _gizmo === "object" && "isRaw" in _gizmo && _gizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "_highlighted-ID", id: typeof _highlighted === "object" && "id" in _highlighted ? _highlighted === null || _highlighted === void 0 ? void 0 : _highlighted.id : undefined, value: typeof _highlighted === "object" && "value" in _highlighted ? _highlighted === null || _highlighted === void 0 ? void 0 : _highlighted.value : _highlighted, readOnly: true, isRaw: typeof _highlighted === "object" && "isRaw" in _highlighted && _highlighted.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.FresnelMaterial]", name: "_buttonMaterial", id: typeof _buttonMaterial === "object" && "id" in _buttonMaterial ? _buttonMaterial === null || _buttonMaterial === void 0 ? void 0 : _buttonMaterial.id : undefined, value: typeof _buttonMaterial === "object" && "value" in _buttonMaterial ? _buttonMaterial === null || _buttonMaterial === void 0 ? void 0 : _buttonMaterial.value : _buttonMaterial, isRaw: typeof _buttonMaterial === "object" && "isRaw" in _buttonMaterial && _buttonMaterial.isRaw ? true : undefined })] })));
}
exports.SlotGizmoButton = SlotGizmoButton;
;