neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 9.79 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.LabelContentDriver = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function LabelContentDriver(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, AutoUpdate = props.AutoUpdate, Padding = props.Padding, BaseWidth = props.BaseWidth, ContentOrientSpace = props.ContentOrientSpace, OrientAtLocalUser = props.OrientAtLocalUser, _contentRoot = props._contentRoot, _targetPoint = props._targetPoint, _contentRotation = props._contentRotation, _contentRotationDrive = props._contentRotationDrive, _labelPosition = props._labelPosition, _labelWidth = props._labelWidth, _lineWidth = props._lineWidth, _labelRotation = props._labelRotation, _pointPosition = props._pointPosition;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LabelContentDriver", 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.Sync`1[System.Boolean]", name: "AutoUpdate", id: typeof AutoUpdate === "object" && "id" in AutoUpdate ? AutoUpdate === null || AutoUpdate === void 0 ? void 0 : AutoUpdate.id : undefined, value: typeof AutoUpdate === "object" && "value" in AutoUpdate ? AutoUpdate === null || AutoUpdate === void 0 ? void 0 : AutoUpdate.value : AutoUpdate, isRaw: typeof AutoUpdate === "object" && "isRaw" in AutoUpdate && AutoUpdate.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float2]", name: "Padding", id: typeof Padding === "object" && "id" in Padding ? Padding === null || Padding === void 0 ? void 0 : Padding.id : undefined, value: typeof Padding === "object" && "value" in Padding ? Padding === null || Padding === void 0 ? void 0 : Padding.value : Padding, isRaw: typeof Padding === "object" && "isRaw" in Padding && Padding.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "BaseWidth", id: typeof BaseWidth === "object" && "id" in BaseWidth ? BaseWidth === null || BaseWidth === void 0 ? void 0 : BaseWidth.id : undefined, value: typeof BaseWidth === "object" && "value" in BaseWidth ? BaseWidth === null || BaseWidth === void 0 ? void 0 : BaseWidth.value : BaseWidth, isRaw: typeof BaseWidth === "object" && "isRaw" in BaseWidth && BaseWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RootSpace", name: "ContentOrientSpace", id: typeof ContentOrientSpace === "object" && "id" in ContentOrientSpace ? ContentOrientSpace === null || ContentOrientSpace === void 0 ? void 0 : ContentOrientSpace.id : undefined, value: typeof ContentOrientSpace === "object" && "value" in ContentOrientSpace ? ContentOrientSpace === null || ContentOrientSpace === void 0 ? void 0 : ContentOrientSpace.value : ContentOrientSpace, isRaw: typeof ContentOrientSpace === "object" && "isRaw" in ContentOrientSpace && ContentOrientSpace.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "OrientAtLocalUser", id: typeof OrientAtLocalUser === "object" && "id" in OrientAtLocalUser ? OrientAtLocalUser === null || OrientAtLocalUser === void 0 ? void 0 : OrientAtLocalUser.id : undefined, value: typeof OrientAtLocalUser === "object" && "value" in OrientAtLocalUser ? OrientAtLocalUser === null || OrientAtLocalUser === void 0 ? void 0 : OrientAtLocalUser.value : OrientAtLocalUser, isRaw: typeof OrientAtLocalUser === "object" && "isRaw" in OrientAtLocalUser && OrientAtLocalUser.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_contentRoot", id: typeof _contentRoot === "object" && "id" in _contentRoot ? _contentRoot === null || _contentRoot === void 0 ? void 0 : _contentRoot.id : undefined, value: typeof _contentRoot === "object" && "value" in _contentRoot ? _contentRoot === null || _contentRoot === void 0 ? void 0 : _contentRoot.value : _contentRoot, isRaw: typeof _contentRoot === "object" && "isRaw" in _contentRoot && _contentRoot.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "_targetPoint", id: typeof _targetPoint === "object" && "id" in _targetPoint ? _targetPoint === null || _targetPoint === void 0 ? void 0 : _targetPoint.id : undefined, value: typeof _targetPoint === "object" && "value" in _targetPoint ? _targetPoint === null || _targetPoint === void 0 ? void 0 : _targetPoint.value : _targetPoint, isRaw: typeof _targetPoint === "object" && "isRaw" in _targetPoint && _targetPoint.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.floatQ]", name: "_contentRotation", id: typeof _contentRotation === "object" && "id" in _contentRotation ? _contentRotation === null || _contentRotation === void 0 ? void 0 : _contentRotation.id : undefined, value: typeof _contentRotation === "object" && "value" in _contentRotation ? _contentRotation === null || _contentRotation === void 0 ? void 0 : _contentRotation.value : _contentRotation, isRaw: typeof _contentRotation === "object" && "isRaw" in _contentRotation && _contentRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_contentRotationDrive", id: typeof _contentRotationDrive === "object" && "id" in _contentRotationDrive ? _contentRotationDrive === null || _contentRotationDrive === void 0 ? void 0 : _contentRotationDrive.id : undefined, value: typeof _contentRotationDrive === "object" && "value" in _contentRotationDrive ? _contentRotationDrive === null || _contentRotationDrive === void 0 ? void 0 : _contentRotationDrive.value : _contentRotationDrive, isRaw: typeof _contentRotationDrive === "object" && "isRaw" in _contentRotationDrive && _contentRotationDrive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_labelPosition", id: typeof _labelPosition === "object" && "id" in _labelPosition ? _labelPosition === null || _labelPosition === void 0 ? void 0 : _labelPosition.id : undefined, value: typeof _labelPosition === "object" && "value" in _labelPosition ? _labelPosition === null || _labelPosition === void 0 ? void 0 : _labelPosition.value : _labelPosition, isRaw: typeof _labelPosition === "object" && "isRaw" in _labelPosition && _labelPosition.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_labelWidth", id: typeof _labelWidth === "object" && "id" in _labelWidth ? _labelWidth === null || _labelWidth === void 0 ? void 0 : _labelWidth.id : undefined, value: typeof _labelWidth === "object" && "value" in _labelWidth ? _labelWidth === null || _labelWidth === void 0 ? void 0 : _labelWidth.value : _labelWidth, isRaw: typeof _labelWidth === "object" && "isRaw" in _labelWidth && _labelWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Single]", name: "_lineWidth", id: typeof _lineWidth === "object" && "id" in _lineWidth ? _lineWidth === null || _lineWidth === void 0 ? void 0 : _lineWidth.id : undefined, value: typeof _lineWidth === "object" && "value" in _lineWidth ? _lineWidth === null || _lineWidth === void 0 ? void 0 : _lineWidth.value : _lineWidth, isRaw: typeof _lineWidth === "object" && "isRaw" in _lineWidth && _lineWidth.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.floatQ]", name: "_labelRotation", id: typeof _labelRotation === "object" && "id" in _labelRotation ? _labelRotation === null || _labelRotation === void 0 ? void 0 : _labelRotation.id : undefined, value: typeof _labelRotation === "object" && "value" in _labelRotation ? _labelRotation === null || _labelRotation === void 0 ? void 0 : _labelRotation.value : _labelRotation, isRaw: typeof _labelRotation === "object" && "isRaw" in _labelRotation && _labelRotation.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_pointPosition", id: typeof _pointPosition === "object" && "id" in _pointPosition ? _pointPosition === null || _pointPosition === void 0 ? void 0 : _pointPosition.id : undefined, value: typeof _pointPosition === "object" && "value" in _pointPosition ? _pointPosition === null || _pointPosition === void 0 ? void 0 : _pointPosition.value : _pointPosition, isRaw: typeof _pointPosition === "object" && "isRaw" in _pointPosition && _pointPosition.isRaw ? true : undefined })] })));
}
exports.LabelContentDriver = LabelContentDriver;
;