neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 11.9 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.Canvas = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../core");
function Canvas(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Size = props.Size, EditModeOnly = props.EditModeOnly, AcceptRemoteTouch = props.AcceptRemoteTouch, AcceptPhysicalTouch = props.AcceptPhysicalTouch, AcceptExistingTouch = props.AcceptExistingTouch, HighPriorityIntegration = props.HighPriorityIntegration, IgnoreTouchesFromBehind = props.IgnoreTouchesFromBehind, BlockAllInteractions = props.BlockAllInteractions, LaserPassThrough = props.LaserPassThrough, PixelScale = props.PixelScale, UnitScale = props.UnitScale, _rootRect = props._rootRect, Collider = props.Collider, _colliderSize = props._colliderSize, _colliderOffset = props._colliderOffset, StartingOffset = props.StartingOffset, StartingMaskDepth = props.StartingMaskDepth;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.UIX.Canvas", id: id, persistentId: persistentId, updateOrder: updateOrder, version: 1 }, { 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[BaseX.float2]", name: "Size", id: typeof Size === "object" && "id" in Size ? Size === null || Size === void 0 ? void 0 : Size.id : undefined, value: typeof Size === "object" && "value" in Size ? Size === null || Size === void 0 ? void 0 : Size.value : Size, isRaw: typeof Size === "object" && "isRaw" in Size && Size.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "EditModeOnly", id: typeof EditModeOnly === "object" && "id" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.id : undefined, value: typeof EditModeOnly === "object" && "value" in EditModeOnly ? EditModeOnly === null || EditModeOnly === void 0 ? void 0 : EditModeOnly.value : EditModeOnly, isRaw: typeof EditModeOnly === "object" && "isRaw" in EditModeOnly && EditModeOnly.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptRemoteTouch", id: typeof AcceptRemoteTouch === "object" && "id" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.id : undefined, value: typeof AcceptRemoteTouch === "object" && "value" in AcceptRemoteTouch ? AcceptRemoteTouch === null || AcceptRemoteTouch === void 0 ? void 0 : AcceptRemoteTouch.value : AcceptRemoteTouch, isRaw: typeof AcceptRemoteTouch === "object" && "isRaw" in AcceptRemoteTouch && AcceptRemoteTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptPhysicalTouch", id: typeof AcceptPhysicalTouch === "object" && "id" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.id : undefined, value: typeof AcceptPhysicalTouch === "object" && "value" in AcceptPhysicalTouch ? AcceptPhysicalTouch === null || AcceptPhysicalTouch === void 0 ? void 0 : AcceptPhysicalTouch.value : AcceptPhysicalTouch, isRaw: typeof AcceptPhysicalTouch === "object" && "isRaw" in AcceptPhysicalTouch && AcceptPhysicalTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "AcceptExistingTouch", id: typeof AcceptExistingTouch === "object" && "id" in AcceptExistingTouch ? AcceptExistingTouch === null || AcceptExistingTouch === void 0 ? void 0 : AcceptExistingTouch.id : undefined, value: typeof AcceptExistingTouch === "object" && "value" in AcceptExistingTouch ? AcceptExistingTouch === null || AcceptExistingTouch === void 0 ? void 0 : AcceptExistingTouch.value : AcceptExistingTouch, isRaw: typeof AcceptExistingTouch === "object" && "isRaw" in AcceptExistingTouch && AcceptExistingTouch.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "HighPriorityIntegration", id: typeof HighPriorityIntegration === "object" && "id" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.id : undefined, value: typeof HighPriorityIntegration === "object" && "value" in HighPriorityIntegration ? HighPriorityIntegration === null || HighPriorityIntegration === void 0 ? void 0 : HighPriorityIntegration.value : HighPriorityIntegration, isRaw: typeof HighPriorityIntegration === "object" && "isRaw" in HighPriorityIntegration && HighPriorityIntegration.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "IgnoreTouchesFromBehind", id: typeof IgnoreTouchesFromBehind === "object" && "id" in IgnoreTouchesFromBehind ? IgnoreTouchesFromBehind === null || IgnoreTouchesFromBehind === void 0 ? void 0 : IgnoreTouchesFromBehind.id : undefined, value: typeof IgnoreTouchesFromBehind === "object" && "value" in IgnoreTouchesFromBehind ? IgnoreTouchesFromBehind === null || IgnoreTouchesFromBehind === void 0 ? void 0 : IgnoreTouchesFromBehind.value : IgnoreTouchesFromBehind, isRaw: typeof IgnoreTouchesFromBehind === "object" && "isRaw" in IgnoreTouchesFromBehind && IgnoreTouchesFromBehind.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "BlockAllInteractions", id: typeof BlockAllInteractions === "object" && "id" in BlockAllInteractions ? BlockAllInteractions === null || BlockAllInteractions === void 0 ? void 0 : BlockAllInteractions.id : undefined, value: typeof BlockAllInteractions === "object" && "value" in BlockAllInteractions ? BlockAllInteractions === null || BlockAllInteractions === void 0 ? void 0 : BlockAllInteractions.value : BlockAllInteractions, isRaw: typeof BlockAllInteractions === "object" && "isRaw" in BlockAllInteractions && BlockAllInteractions.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Boolean]", name: "LaserPassThrough", id: typeof LaserPassThrough === "object" && "id" in LaserPassThrough ? LaserPassThrough === null || LaserPassThrough === void 0 ? void 0 : LaserPassThrough.id : undefined, value: typeof LaserPassThrough === "object" && "value" in LaserPassThrough ? LaserPassThrough === null || LaserPassThrough === void 0 ? void 0 : LaserPassThrough.value : LaserPassThrough, isRaw: typeof LaserPassThrough === "object" && "isRaw" in LaserPassThrough && LaserPassThrough.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "PixelScale", id: typeof PixelScale === "object" && "id" in PixelScale ? PixelScale === null || PixelScale === void 0 ? void 0 : PixelScale.id : undefined, value: typeof PixelScale === "object" && "value" in PixelScale ? PixelScale === null || PixelScale === void 0 ? void 0 : PixelScale.value : PixelScale, isRaw: typeof PixelScale === "object" && "isRaw" in PixelScale && PixelScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Single]", name: "UnitScale", id: typeof UnitScale === "object" && "id" in UnitScale ? UnitScale === null || UnitScale === void 0 ? void 0 : UnitScale.id : undefined, value: typeof UnitScale === "object" && "value" in UnitScale ? UnitScale === null || UnitScale === void 0 ? void 0 : UnitScale.value : UnitScale, isRaw: typeof UnitScale === "object" && "isRaw" in UnitScale && UnitScale.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.UIX.RectTransform]", name: "_rootRect", id: typeof _rootRect === "object" && "id" in _rootRect ? _rootRect === null || _rootRect === void 0 ? void 0 : _rootRect.id : undefined, value: typeof _rootRect === "object" && "value" in _rootRect ? _rootRect === null || _rootRect === void 0 ? void 0 : _rootRect.value : _rootRect, isRaw: typeof _rootRect === "object" && "isRaw" in _rootRect && _rootRect.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.BoxCollider]", name: "Collider", id: typeof Collider === "object" && "id" in Collider ? Collider === null || Collider === void 0 ? void 0 : Collider.id : undefined, value: typeof Collider === "object" && "value" in Collider ? Collider === null || Collider === void 0 ? void 0 : Collider.value : Collider, isRaw: typeof Collider === "object" && "isRaw" in Collider && Collider.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_colliderSize", id: typeof _colliderSize === "object" && "id" in _colliderSize ? _colliderSize === null || _colliderSize === void 0 ? void 0 : _colliderSize.id : undefined, value: typeof _colliderSize === "object" && "value" in _colliderSize ? _colliderSize === null || _colliderSize === void 0 ? void 0 : _colliderSize.value : _colliderSize, isRaw: typeof _colliderSize === "object" && "isRaw" in _colliderSize && _colliderSize.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[BaseX.float3]", name: "_colliderOffset", id: typeof _colliderOffset === "object" && "id" in _colliderOffset ? _colliderOffset === null || _colliderOffset === void 0 ? void 0 : _colliderOffset.id : undefined, value: typeof _colliderOffset === "object" && "value" in _colliderOffset ? _colliderOffset === null || _colliderOffset === void 0 ? void 0 : _colliderOffset.value : _colliderOffset, isRaw: typeof _colliderOffset === "object" && "isRaw" in _colliderOffset && _colliderOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "StartingOffset", id: typeof StartingOffset === "object" && "id" in StartingOffset ? StartingOffset === null || StartingOffset === void 0 ? void 0 : StartingOffset.id : undefined, value: typeof StartingOffset === "object" && "value" in StartingOffset ? StartingOffset === null || StartingOffset === void 0 ? void 0 : StartingOffset.value : StartingOffset, isRaw: typeof StartingOffset === "object" && "isRaw" in StartingOffset && StartingOffset.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[System.Int32]", name: "StartingMaskDepth", id: typeof StartingMaskDepth === "object" && "id" in StartingMaskDepth ? StartingMaskDepth === null || StartingMaskDepth === void 0 ? void 0 : StartingMaskDepth.id : undefined, value: typeof StartingMaskDepth === "object" && "value" in StartingMaskDepth ? StartingMaskDepth === null || StartingMaskDepth === void 0 ? void 0 : StartingMaskDepth.value : StartingMaskDepth, isRaw: typeof StartingMaskDepth === "object" && "isRaw" in StartingMaskDepth && StartingMaskDepth.isRaw ? true : undefined })] })));
}
exports.Canvas = Canvas;
;