neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 3.73 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.TextGizmo = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function TextGizmo(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, _target = props._target, _editor = props._editor, _editIconPosition = props._editIconPosition, _editIconScale = props._editIconScale;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.TextGizmo", 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.RelayRef`1[FrooxEngine.TextRenderer]", name: "_target", id: typeof _target === "object" && "id" in _target ? _target === null || _target === void 0 ? void 0 : _target.id : undefined, value: typeof _target === "object" && "value" in _target ? _target === null || _target === void 0 ? void 0 : _target.value : _target, isRaw: typeof _target === "object" && "isRaw" in _target && _target.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.TextEditor]", name: "_editor", id: typeof _editor === "object" && "id" in _editor ? _editor === null || _editor === void 0 ? void 0 : _editor.id : undefined, value: typeof _editor === "object" && "value" in _editor ? _editor === null || _editor === void 0 ? void 0 : _editor.value : _editor, isRaw: typeof _editor === "object" && "isRaw" in _editor && _editor.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_editIconPosition", id: typeof _editIconPosition === "object" && "id" in _editIconPosition ? _editIconPosition === null || _editIconPosition === void 0 ? void 0 : _editIconPosition.id : undefined, value: typeof _editIconPosition === "object" && "value" in _editIconPosition ? _editIconPosition === null || _editIconPosition === void 0 ? void 0 : _editIconPosition.value : _editIconPosition, isRaw: typeof _editIconPosition === "object" && "isRaw" in _editIconPosition && _editIconPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_editIconScale", id: typeof _editIconScale === "object" && "id" in _editIconScale ? _editIconScale === null || _editIconScale === void 0 ? void 0 : _editIconScale.id : undefined, value: typeof _editIconScale === "object" && "value" in _editIconScale ? _editIconScale === null || _editIconScale === void 0 ? void 0 : _editIconScale.value : _editIconScale, isRaw: typeof _editIconScale === "object" && "isRaw" in _editIconScale && _editIconScale.isRaw ? true : undefined })] })));
}
exports.TextGizmo = TextGizmo;
;