UNPKG

neos-script

Version:

[neos-script-sample](https://github.com/rheniumNV/neos-script-sample)

23 lines (22 loc) 15.7 kB
"use strict"; 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.LightGizmo = void 0; var jsx_runtime_1 = require("neos-script/jsx-runtime"); var core_1 = require("../../core"); function LightGizmo(props) { var id = props.id, persistentId = props.persistentId, updateOrder = props.updateOrder, Enabled = props.Enabled, Active = props.Active, _target = props._target, _menu = props._menu, _enabledItem = props._enabledItem, _noShadowsItem = props._noShadowsItem, _hardShadowsItem = props._hardShadowsItem, _softShadowsItem = props._softShadowsItem, _pointItem = props._pointItem, _spotItem = props._spotItem, _directionalItem = props._directionalItem, _settingsItem = props._settingsItem, _menuColorDrives = props._menuColorDrives, _menuActive = props._menuActive, _pointIconActive = props._pointIconActive, _spotIconActive = props._spotIconActive, _directionalIconActive = props._directionalIconActive, _pointActive = props._pointActive, _spotActive = props._spotActive, _directionalActive = props._directionalActive, _pointGizmo = props._pointGizmo, _spotGizmo = props._spotGizmo, _dirGizmo = props._dirGizmo, _lightDialog = props._lightDialog, _iconMaterial = props._iconMaterial; return ((0, jsx_runtime_1.jsxs)(core_1.Component, __assign({ type: "FrooxEngine.LightGizmo", 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: "Active", id: typeof Active === "object" && "id" in Active ? Active === null || Active === void 0 ? void 0 : Active.id : undefined, value: typeof Active === "object" && "value" in Active ? Active === null || Active === void 0 ? void 0 : Active.value : Active, isRaw: typeof Active === "object" && "isRaw" in Active && Active.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.RelayRef`1[FrooxEngine.Light]", 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.NeosLogoMenuController]", name: "_menu", id: typeof _menu === "object" && "id" in _menu ? _menu === null || _menu === void 0 ? void 0 : _menu.id : undefined, value: typeof _menu === "object" && "value" in _menu ? _menu === null || _menu === void 0 ? void 0 : _menu.value : _menu, isRaw: typeof _menu === "object" && "isRaw" in _menu && _menu.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_enabledItem", id: typeof _enabledItem === "object" && "id" in _enabledItem ? _enabledItem === null || _enabledItem === void 0 ? void 0 : _enabledItem.id : undefined, value: typeof _enabledItem === "object" && "value" in _enabledItem ? _enabledItem === null || _enabledItem === void 0 ? void 0 : _enabledItem.value : _enabledItem, isRaw: typeof _enabledItem === "object" && "isRaw" in _enabledItem && _enabledItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_noShadowsItem", id: typeof _noShadowsItem === "object" && "id" in _noShadowsItem ? _noShadowsItem === null || _noShadowsItem === void 0 ? void 0 : _noShadowsItem.id : undefined, value: typeof _noShadowsItem === "object" && "value" in _noShadowsItem ? _noShadowsItem === null || _noShadowsItem === void 0 ? void 0 : _noShadowsItem.value : _noShadowsItem, isRaw: typeof _noShadowsItem === "object" && "isRaw" in _noShadowsItem && _noShadowsItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_hardShadowsItem", id: typeof _hardShadowsItem === "object" && "id" in _hardShadowsItem ? _hardShadowsItem === null || _hardShadowsItem === void 0 ? void 0 : _hardShadowsItem.id : undefined, value: typeof _hardShadowsItem === "object" && "value" in _hardShadowsItem ? _hardShadowsItem === null || _hardShadowsItem === void 0 ? void 0 : _hardShadowsItem.value : _hardShadowsItem, isRaw: typeof _hardShadowsItem === "object" && "isRaw" in _hardShadowsItem && _hardShadowsItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_softShadowsItem", id: typeof _softShadowsItem === "object" && "id" in _softShadowsItem ? _softShadowsItem === null || _softShadowsItem === void 0 ? void 0 : _softShadowsItem.id : undefined, value: typeof _softShadowsItem === "object" && "value" in _softShadowsItem ? _softShadowsItem === null || _softShadowsItem === void 0 ? void 0 : _softShadowsItem.value : _softShadowsItem, isRaw: typeof _softShadowsItem === "object" && "isRaw" in _softShadowsItem && _softShadowsItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_pointItem", id: typeof _pointItem === "object" && "id" in _pointItem ? _pointItem === null || _pointItem === void 0 ? void 0 : _pointItem.id : undefined, value: typeof _pointItem === "object" && "value" in _pointItem ? _pointItem === null || _pointItem === void 0 ? void 0 : _pointItem.value : _pointItem, isRaw: typeof _pointItem === "object" && "isRaw" in _pointItem && _pointItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_spotItem", id: typeof _spotItem === "object" && "id" in _spotItem ? _spotItem === null || _spotItem === void 0 ? void 0 : _spotItem.id : undefined, value: typeof _spotItem === "object" && "value" in _spotItem ? _spotItem === null || _spotItem === void 0 ? void 0 : _spotItem.value : _spotItem, isRaw: typeof _spotItem === "object" && "isRaw" in _spotItem && _spotItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_directionalItem", id: typeof _directionalItem === "object" && "id" in _directionalItem ? _directionalItem === null || _directionalItem === void 0 ? void 0 : _directionalItem.id : undefined, value: typeof _directionalItem === "object" && "value" in _directionalItem ? _directionalItem === null || _directionalItem === void 0 ? void 0 : _directionalItem.value : _directionalItem, isRaw: typeof _directionalItem === "object" && "isRaw" in _directionalItem && _directionalItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.NeosLogoMenuController+Item]", name: "_settingsItem", id: typeof _settingsItem === "object" && "id" in _settingsItem ? _settingsItem === null || _settingsItem === void 0 ? void 0 : _settingsItem.id : undefined, value: typeof _settingsItem === "object" && "value" in _settingsItem ? _settingsItem === null || _settingsItem === void 0 ? void 0 : _settingsItem.value : _settingsItem, isRaw: typeof _settingsItem === "object" && "isRaw" in _settingsItem && _settingsItem.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncList`1[FrooxEngine.FieldDrive`1[BaseX.color]]", name: "_menuColorDrives", id: typeof _menuColorDrives === "object" && "id" in _menuColorDrives ? _menuColorDrives === null || _menuColorDrives === void 0 ? void 0 : _menuColorDrives.id : undefined, value: typeof _menuColorDrives === "object" && "value" in _menuColorDrives ? _menuColorDrives === null || _menuColorDrives === void 0 ? void 0 : _menuColorDrives.value : _menuColorDrives, isRaw: typeof _menuColorDrives === "object" && "isRaw" in _menuColorDrives && _menuColorDrives.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_menuActive", id: typeof _menuActive === "object" && "id" in _menuActive ? _menuActive === null || _menuActive === void 0 ? void 0 : _menuActive.id : undefined, value: typeof _menuActive === "object" && "value" in _menuActive ? _menuActive === null || _menuActive === void 0 ? void 0 : _menuActive.value : _menuActive, isRaw: typeof _menuActive === "object" && "isRaw" in _menuActive && _menuActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_pointIconActive", id: typeof _pointIconActive === "object" && "id" in _pointIconActive ? _pointIconActive === null || _pointIconActive === void 0 ? void 0 : _pointIconActive.id : undefined, value: typeof _pointIconActive === "object" && "value" in _pointIconActive ? _pointIconActive === null || _pointIconActive === void 0 ? void 0 : _pointIconActive.value : _pointIconActive, isRaw: typeof _pointIconActive === "object" && "isRaw" in _pointIconActive && _pointIconActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_spotIconActive", id: typeof _spotIconActive === "object" && "id" in _spotIconActive ? _spotIconActive === null || _spotIconActive === void 0 ? void 0 : _spotIconActive.id : undefined, value: typeof _spotIconActive === "object" && "value" in _spotIconActive ? _spotIconActive === null || _spotIconActive === void 0 ? void 0 : _spotIconActive.value : _spotIconActive, isRaw: typeof _spotIconActive === "object" && "isRaw" in _spotIconActive && _spotIconActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_directionalIconActive", id: typeof _directionalIconActive === "object" && "id" in _directionalIconActive ? _directionalIconActive === null || _directionalIconActive === void 0 ? void 0 : _directionalIconActive.id : undefined, value: typeof _directionalIconActive === "object" && "value" in _directionalIconActive ? _directionalIconActive === null || _directionalIconActive === void 0 ? void 0 : _directionalIconActive.value : _directionalIconActive, isRaw: typeof _directionalIconActive === "object" && "isRaw" in _directionalIconActive && _directionalIconActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_pointActive", id: typeof _pointActive === "object" && "id" in _pointActive ? _pointActive === null || _pointActive === void 0 ? void 0 : _pointActive.id : undefined, value: typeof _pointActive === "object" && "value" in _pointActive ? _pointActive === null || _pointActive === void 0 ? void 0 : _pointActive.value : _pointActive, isRaw: typeof _pointActive === "object" && "isRaw" in _pointActive && _pointActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_spotActive", id: typeof _spotActive === "object" && "id" in _spotActive ? _spotActive === null || _spotActive === void 0 ? void 0 : _spotActive.id : undefined, value: typeof _spotActive === "object" && "value" in _spotActive ? _spotActive === null || _spotActive === void 0 ? void 0 : _spotActive.value : _spotActive, isRaw: typeof _spotActive === "object" && "isRaw" in _spotActive && _spotActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.FieldDrive`1[System.Boolean]", name: "_directionalActive", id: typeof _directionalActive === "object" && "id" in _directionalActive ? _directionalActive === null || _directionalActive === void 0 ? void 0 : _directionalActive.id : undefined, value: typeof _directionalActive === "object" && "value" in _directionalActive ? _directionalActive === null || _directionalActive === void 0 ? void 0 : _directionalActive.value : _directionalActive, isRaw: typeof _directionalActive === "object" && "isRaw" in _directionalActive && _directionalActive.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.SphereGizmo]", name: "_pointGizmo", id: typeof _pointGizmo === "object" && "id" in _pointGizmo ? _pointGizmo === null || _pointGizmo === void 0 ? void 0 : _pointGizmo.id : undefined, value: typeof _pointGizmo === "object" && "value" in _pointGizmo ? _pointGizmo === null || _pointGizmo === void 0 ? void 0 : _pointGizmo.value : _pointGizmo, isRaw: typeof _pointGizmo === "object" && "isRaw" in _pointGizmo && _pointGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.ConeGizmo]", name: "_spotGizmo", id: typeof _spotGizmo === "object" && "id" in _spotGizmo ? _spotGizmo === null || _spotGizmo === void 0 ? void 0 : _spotGizmo.id : undefined, value: typeof _spotGizmo === "object" && "value" in _spotGizmo ? _spotGizmo === null || _spotGizmo === void 0 ? void 0 : _spotGizmo.value : _spotGizmo, isRaw: typeof _spotGizmo === "object" && "isRaw" in _spotGizmo && _spotGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SyncRef`1[FrooxEngine.VectorGizmo]", name: "_dirGizmo", id: typeof _dirGizmo === "object" && "id" in _dirGizmo ? _dirGizmo === null || _dirGizmo === void 0 ? void 0 : _dirGizmo.id : undefined, value: typeof _dirGizmo === "object" && "value" in _dirGizmo ? _dirGizmo === null || _dirGizmo === void 0 ? void 0 : _dirGizmo.value : _dirGizmo, isRaw: typeof _dirGizmo === "object" && "isRaw" in _dirGizmo && _dirGizmo.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.SlotCleanupRef`1[FrooxEngine.LightDialog]", name: "_lightDialog", id: typeof _lightDialog === "object" && "id" in _lightDialog ? _lightDialog === null || _lightDialog === void 0 ? void 0 : _lightDialog.id : undefined, value: typeof _lightDialog === "object" && "value" in _lightDialog ? _lightDialog === null || _lightDialog === void 0 ? void 0 : _lightDialog.value : _lightDialog, isRaw: typeof _lightDialog === "object" && "isRaw" in _lightDialog && _lightDialog.isRaw ? true : undefined }), (0, jsx_runtime_1.jsx)(core_1.Member, { type: "FrooxEngine.DriveRef`1[FrooxEngine.OverlayFresnelMaterial]", name: "_iconMaterial", id: typeof _iconMaterial === "object" && "id" in _iconMaterial ? _iconMaterial === null || _iconMaterial === void 0 ? void 0 : _iconMaterial.id : undefined, value: typeof _iconMaterial === "object" && "value" in _iconMaterial ? _iconMaterial === null || _iconMaterial === void 0 ? void 0 : _iconMaterial.value : _iconMaterial, isRaw: typeof _iconMaterial === "object" && "isRaw" in _iconMaterial && _iconMaterial.isRaw ? true : undefined })] }))); } exports.LightGizmo = LightGizmo; ;