neos-script
Version:
[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)
23 lines (22 loc) • 3.91 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.SnapLine = void 0;
var jsx_runtime_1 = require("neos-script/jsx-runtime");
var core_1 = require("../../../core");
function SnapLine(props) {
var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Point0 = props.Point0, Point1 = props.Point1, Anchor0 = props.Anchor0, Anchor1 = props.Anchor1, SnapParent = props.SnapParent;
return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.SnapLine", 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[BaseX.float3]", name: "Point0", id: typeof Point0 === "object" && "id" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.id : undefined, value: typeof Point0 === "object" && "value" in Point0 ? Point0 === null || Point0 === void 0 ? void 0 : Point0.value : Point0, isRaw: typeof Point0 === "object" && "isRaw" in Point0 && Point0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.Sync`1[BaseX.float3]", name: "Point1", id: typeof Point1 === "object" && "id" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.id : undefined, value: typeof Point1 === "object" && "value" in Point1 ? Point1 === null || Point1 === void 0 ? void 0 : Point1.value : Point1, isRaw: typeof Point1 === "object" && "isRaw" in Point1 && Point1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "Anchor0", id: typeof Anchor0 === "object" && "id" in Anchor0 ? Anchor0 === null || Anchor0 === void 0 ? void 0 : Anchor0.id : undefined, value: typeof Anchor0 === "object" && "value" in Anchor0 ? Anchor0 === null || Anchor0 === void 0 ? void 0 : Anchor0.value : Anchor0, isRaw: typeof Anchor0 === "object" && "isRaw" in Anchor0 && Anchor0.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "Anchor1", id: typeof Anchor1 === "object" && "id" in Anchor1 ? Anchor1 === null || Anchor1 === void 0 ? void 0 : Anchor1.id : undefined, value: typeof Anchor1 === "object" && "value" in Anchor1 ? Anchor1 === null || Anchor1 === void 0 ? void 0 : Anchor1.value : Anchor1, isRaw: typeof Anchor1 === "object" && "isRaw" in Anchor1 && Anchor1.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.Slot]", name: "SnapParent", id: typeof SnapParent === "object" && "id" in SnapParent ? SnapParent === null || SnapParent === void 0 ? void 0 : SnapParent.id : undefined, value: typeof SnapParent === "object" && "value" in SnapParent ? SnapParent === null || SnapParent === void 0 ? void 0 : SnapParent.value : SnapParent, isRaw: typeof SnapParent === "object" && "isRaw" in SnapParent && SnapParent.isRaw ? true : undefined })] })));
}
exports.SnapLine = SnapLine;
;