iobroker.mywebui 1.76.0 → 1.78.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/default-controls/controls/gauges/setpoint-gauge.control +1 -0
- package/dist/backend/3d-editor-integration.js +1 -1
- package/dist/backend/ImportmapCreator.js +1 -1
- package/dist/backend/UploadHelper.js +1 -1
- package/dist/backend/main.js +1 -1
- package/io-package.json +1 -1
- package/package.json +1 -1
- package/www/3d-editor/js/Animation.js +1 -1
- package/www/3d-editor/js/AnimationResizer.js +1 -1
- package/www/3d-editor/js/Command.js +1 -1
- package/www/3d-editor/js/Config.js +1 -1
- package/www/3d-editor/js/Editor.js +1 -1
- package/www/3d-editor/js/EditorControls.js +1 -1
- package/www/3d-editor/js/GLTFImportDialog.js +1 -1
- package/www/3d-editor/js/History.js +1 -1
- package/www/3d-editor/js/Loader.js +1 -1
- package/www/3d-editor/js/LoaderUtils.js +1 -1
- package/www/3d-editor/js/Menubar.Add.js +1 -1
- package/www/3d-editor/js/Menubar.Edit.js +1 -1
- package/www/3d-editor/js/Menubar.File.js +1 -1
- package/www/3d-editor/js/Menubar.Help.js +1 -1
- package/www/3d-editor/js/Menubar.Render.js +1 -1
- package/www/3d-editor/js/Menubar.Status.js +1 -1
- package/www/3d-editor/js/Menubar.View.js +1 -1
- package/www/3d-editor/js/Menubar.js +1 -1
- package/www/3d-editor/js/Player.js +1 -1
- package/www/3d-editor/js/Resizer.js +1 -1
- package/www/3d-editor/js/Script.js +1 -1
- package/www/3d-editor/js/Selector.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.BoxGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.BufferGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CapsuleGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CircleGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.CylinderGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.DodecahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.ExtrudeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.IcosahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.LatheGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.Modifiers.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.OctahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.PlaneGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.RingGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.ShapeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.SphereGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TetrahedronGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TextGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TorusGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TorusKnotGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.TubeGeometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Geometry.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.BooleanProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.ColorProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.ConstantProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.MapProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.NumberProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.Program.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.RangeValueProperty.js +1 -1
- package/www/3d-editor/js/Sidebar.Material.js +1 -1
- package/www/3d-editor/js/Sidebar.Object.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.App.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Materials.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Renderer.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.Resources.js +1 -1
- package/www/3d-editor/js/Sidebar.Project.js +1 -1
- package/www/3d-editor/js/Sidebar.Properties.js +1 -1
- package/www/3d-editor/js/Sidebar.Scene.js +1 -1
- package/www/3d-editor/js/Sidebar.Script.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.History.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.Shortcuts.js +1 -1
- package/www/3d-editor/js/Sidebar.Settings.js +1 -1
- package/www/3d-editor/js/Sidebar.js +1 -1
- package/www/3d-editor/js/Storage.js +1 -1
- package/www/3d-editor/js/Strings.js +1 -1
- package/www/3d-editor/js/TextureParametersDialog.js +1 -1
- package/www/3d-editor/js/Toolbar.js +1 -1
- package/www/3d-editor/js/Viewport.Controls.js +1 -1
- package/www/3d-editor/js/Viewport.Info.js +1 -1
- package/www/3d-editor/js/Viewport.Pathtracer.js +1 -1
- package/www/3d-editor/js/Viewport.ViewHelper.js +1 -1
- package/www/3d-editor/js/Viewport.XR.js +1 -1
- package/www/3d-editor/js/Viewport.js +1 -1
- package/www/3d-editor/js/commands/AddObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/AddScriptCommand.js +1 -1
- package/www/3d-editor/js/commands/Commands.js +1 -1
- package/www/3d-editor/js/commands/MoveObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/MultiCmdsCommand.js +1 -1
- package/www/3d-editor/js/commands/RemoveObjectCommand.js +1 -1
- package/www/3d-editor/js/commands/RemoveScriptCommand.js +1 -1
- package/www/3d-editor/js/commands/SetColorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetGeometryCommand.js +1 -1
- package/www/3d-editor/js/commands/SetGeometryValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialColorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialMapCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialRangeCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetMaterialVectorCommand.js +1 -1
- package/www/3d-editor/js/commands/SetPositionCommand.js +1 -1
- package/www/3d-editor/js/commands/SetRotationCommand.js +1 -1
- package/www/3d-editor/js/commands/SetScaleCommand.js +1 -1
- package/www/3d-editor/js/commands/SetSceneCommand.js +1 -1
- package/www/3d-editor/js/commands/SetScriptValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetShadowValueCommand.js +1 -1
- package/www/3d-editor/js/commands/SetTextureParametersCommand.js +1 -1
- package/www/3d-editor/js/commands/SetUuidCommand.js +1 -1
- package/www/3d-editor/js/commands/SetValueCommand.js +1 -1
- package/www/dist/frontend/bundle/chunk-3C6XC7RW.js +1 -1
- package/www/dist/frontend/bundle/chunk-3WGNLIWJ.js +3 -3
- package/www/dist/frontend/bundle/chunk-3YK3Y2SJ.js +1 -1
- package/www/dist/frontend/bundle/chunk-43HEBO5G.js +2 -2
- package/www/dist/frontend/bundle/chunk-5MUGMRXU.js +1 -1
- package/www/dist/frontend/bundle/chunk-5UBRCTRX.js +3 -3
- package/www/dist/frontend/bundle/chunk-65A3PNMG.js +1 -1
- package/www/dist/frontend/bundle/chunk-7CWDQGAG.js +3 -3
- package/www/dist/frontend/bundle/chunk-7PT7IGUJ.js +3 -3
- package/www/dist/frontend/bundle/chunk-AI5PDLDE.js +2 -2
- package/www/dist/frontend/bundle/chunk-AWKVUUKN.js +3 -3
- package/www/dist/frontend/bundle/chunk-B6NXWGSB.js +1 -1
- package/www/dist/frontend/bundle/chunk-BHSHNRXW.js +1 -1
- package/www/dist/frontend/bundle/chunk-BVONDEOL.js +3 -3
- package/www/dist/frontend/bundle/chunk-CHDKROX5.js +3 -3
- package/www/dist/frontend/bundle/chunk-DNCD2F6X.js +3 -3
- package/www/dist/frontend/bundle/chunk-FHF6DL5U.js +1 -1
- package/www/dist/frontend/bundle/chunk-FO56TEZH.js +3 -3
- package/www/dist/frontend/bundle/chunk-FSRRPQMX.js +3 -3
- package/www/dist/frontend/bundle/chunk-GLQNGCFL.js +1 -1
- package/www/dist/frontend/bundle/chunk-JBDSDK2C.js +3 -3
- package/www/dist/frontend/bundle/chunk-JSC66ZLQ.js +1 -1
- package/www/dist/frontend/bundle/chunk-K6IV7LKW.js +1 -1
- package/www/dist/frontend/bundle/chunk-KY73TL6O.js +2 -2
- package/www/dist/frontend/bundle/chunk-M6VVTDVX.js +3 -3
- package/www/dist/frontend/bundle/chunk-MECWXZRN.js +1 -1
- package/www/dist/frontend/bundle/chunk-N2YIZTB2.js +1 -1
- package/www/dist/frontend/bundle/chunk-NQ7L7KNT.js +3 -3
- package/www/dist/frontend/bundle/chunk-P7EOR36H.js +1 -1
- package/www/dist/frontend/bundle/chunk-PJYK24KZ.js +1 -1
- package/www/dist/frontend/bundle/chunk-PYLAW6UA.js +3 -3
- package/www/dist/frontend/bundle/chunk-QJJGP23I.js +1 -1
- package/www/dist/frontend/bundle/chunk-QV4IBWXA.js +1 -1
- package/www/dist/frontend/bundle/chunk-R6IQDPAP.js +3 -3
- package/www/dist/frontend/bundle/chunk-RTTBZOQU.js +3 -3
- package/www/dist/frontend/bundle/chunk-S4TLNW5D.js +1 -1
- package/www/dist/frontend/bundle/chunk-SE6N4ZEN.js +1 -1
- package/www/dist/frontend/bundle/chunk-SQHXO2IT.js +3 -3
- package/www/dist/frontend/bundle/chunk-T4AIQBBH.js +3 -3
- package/www/dist/frontend/bundle/chunk-U5Q332OH.js +1 -1
- package/www/dist/frontend/bundle/chunk-UIP324PP.js +1 -1
- package/www/dist/frontend/bundle/chunk-V27IRYSL.js +1 -1
- package/www/dist/frontend/bundle/chunk-V4C5FGJL.js +2 -2
- package/www/dist/frontend/bundle/chunk-WED7CGWA.js +2 -2
- package/www/dist/frontend/bundle/chunk-WQ5H5LTG.js +3 -3
- package/www/dist/frontend/bundle/chunk-WU54NCEU.js +1 -1
- package/www/dist/frontend/bundle/chunk-XFO5FUCN.js +1 -1
- package/www/dist/frontend/bundle/chunk-XWAQ2BWM.js +3 -3
- package/www/dist/frontend/bundle/chunk-YTQCHNRQ.js +3 -3
- package/www/dist/frontend/bundle/chunk-YUSK4FN3.js +3 -3
- package/www/dist/frontend/bundle/chunk-Z34BSG5O.js +3 -3
- package/www/dist/frontend/bundle/common/IobrokerHandler.js +1 -1
- package/www/dist/frontend/bundle/runtime/CustomControls.js +1 -1
- package/www/dist/frontend/bundle/runtime/ScreenViewer.js +1 -1
- package/www/dist/frontend/bundle/runtime/controls.js +4 -4
- package/www/dist/frontend/bundle/runtime/init.js +2 -2
- package/www/dist/frontend/common/Common.globals.js +1 -1
- package/www/dist/frontend/common/IobrokerHandler.js +1 -1
- package/www/dist/frontend/common/Runtime.js +1 -1
- package/www/dist/frontend/config/CommandHandling.js +1 -1
- package/www/dist/frontend/config/ConfigureWebcomponentDesigner.js +1 -1
- package/www/dist/frontend/config/DockHelper.js +1 -1
- package/www/dist/frontend/config/IobrokerWebui3DDriveEngine.js +1 -1
- package/www/dist/frontend/config/IobrokerWebui3DScreenEditor.js +3 -3
- package/www/dist/frontend/config/IobrokerWebui3DScreenPropertiesPanel.js +3 -3
- package/www/dist/frontend/config/IobrokerWebui3DScreenViewer.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiAppShell.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiBindingsEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiConfirmationWrapper.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiControlPropertiesEditor.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiDynamicPropsEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiEventAssignment.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiIconsView.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiMonacoEditor.js +2 -2
- package/www/dist/frontend/config/IobrokerWebuiPropertyGrid.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiScreenEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiScreensView.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiSignalPropertyEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiSolutionExplorer.js +3 -3
- package/www/dist/frontend/config/IobrokerWebuiTranslationEditor.js +1 -1
- package/www/dist/frontend/config/IobrokerWebuiWidgetGallery.js +3 -3
- package/www/dist/frontend/helper/DialogHelper.js +2 -2
- package/www/dist/frontend/helper/EsprimaHelper.js +1 -1
- package/www/dist/frontend/helper/Helper.js +1 -1
- package/www/dist/frontend/helper/LayoutHelper.js +1 -1
- package/www/dist/frontend/helper/XmlHelper.js +1 -1
- package/www/dist/frontend/helper/ZipHelper.js +1 -1
- package/www/dist/frontend/runtime/AnimationService.js +1 -1
- package/www/dist/frontend/runtime/CustomControls.js +1 -1
- package/www/dist/frontend/runtime/DynamicElementProperties.js +1 -1
- package/www/dist/frontend/runtime/HabPanelLikeMenu.js +3 -3
- package/www/dist/frontend/runtime/NavigationShell.js +1 -1
- package/www/dist/frontend/runtime/ScreenViewer.js +3 -3
- package/www/dist/frontend/runtime/TranslateableText.js +2 -2
- package/www/dist/frontend/runtime/VisibilityService.js +1 -1
- package/www/dist/frontend/runtime/controls.js +1 -1
- package/www/dist/frontend/runtime/init.js +1 -1
- package/www/dist/frontend/scripting/IobrokerWebuiScriptSystem.js +1 -1
- package/www/dist/frontend/scripting/blockly/OpenScreen.js +1 -1
- package/www/dist/frontend/scripting/blockly/webuiBlocklyToolbox.js +1 -1
- package/www/dist/frontend/services/DynamicPropertiesHelper.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableLocalObjectsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectDragDropService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectsForPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiBindableObjectsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiConfigButtonProvider.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCopyPasteService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCustomControlEventsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiCustomElementContextMenu.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiDemoProviderService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiDynamicPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiEventsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiExternalDragDropService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiLitPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiPropertyGroupsService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiRefactorService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiScreenContextMenu.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiSpecialPropertiesService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiSpectrumEditorService.js +1 -1
- package/www/dist/frontend/services/IobrokerWebuiVisibilityPropertiesService.js +1 -1
- package/www/dist/frontend/services/LayoutComponentsPropertiesService.js +1 -1
- package/www/dist/frontend/widgets/OrthoFlowLineTool.js +1 -1
- package/www/dist/frontend/widgets/customElementsObserver.js +1 -1
- package/www/dist/frontend/widgets/importWidgetFiles.js +1 -1
- package/www/dist/frontend/widgets/importWidgetFilesRuntime.js +1 -1
- package/www/dist/frontend/widgets/layout-components.js +1 -1
- package/www/dist/frontend/widgets/layout-placement-services.js +1 -1
- package/www/dist/frontend/widgets/testElement.js +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(
|
|
1
|
+
(function(c,d){const p=b,e=c();while(!![]){try{const f=-parseInt(p(0xb8))/0x1*(parseInt(p(0xb5))/0x2)+-parseInt(p(0xa6))/0x3+parseInt(p(0xab))/0x4+-parseInt(p(0xae))/0x5*(-parseInt(p(0xb6))/0x6)+-parseInt(p(0xb1))/0x7+parseInt(p(0x9c))/0x8*(-parseInt(p(0xa8))/0x9)+parseInt(p(0xba))/0xa*(parseInt(p(0xac))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x222ba));import{Box3,Vector3}from'three';import{clone}from'three/addons/utils/SkeletonUtils.js';function b(c,d){c=c-0x9b;const e=a();let f=e[c];return f;}import{UIPanel,UIRow,UIHorizontalRule,UIText}from'./libs/ui.js';import{AddObjectCommand}from'./commands/AddObjectCommand.js';import{MultiCmdsCommand}from'./commands/MultiCmdsCommand.js';import{RemoveObjectCommand}from'./commands/RemoveObjectCommand.js';import{SetPositionCommand}from'./commands/SetPositionCommand.js';function MenubarEdit(c){const q=b,d=c['strings'],e=new UIPanel();e[q(0x9d)]('menu');const f=new UIPanel();f[q(0x9d)]('title'),f[q(0x9b)](d['getKey'](q(0xa5))),e[q(0xb2)](f);const g=new UIPanel();g['setClass'](q(0xa1)),e['add'](g);const h=new UIRow();h['setClass'](q(0xb3)),h['setTextContent'](d['getKey']('menubar/edit/undo')),h['add'](new UIText(q(0x9f))['setClass']('key')),h[q(0xa9)](function(){const r=q;c[r(0xad)]();}),g[q(0xb2)](h);const i=new UIRow();i['setClass'](q(0xb3)),i[q(0x9b)](d[q(0xaa)]('menubar/edit/redo')),i[q(0xb2)](new UIText(q(0xb9))[q(0x9d)]('key')),i[q(0xa9)](function(){const s=q;c[s(0xb0)]();}),g[q(0xb2)](i);function j(){const t=q,l=c['history'];h['setClass']('option'),i[t(0x9d)](t(0xb3)),l[t(0xa0)]['length']==0x0&&h[t(0x9d)](t(0xb7)),l['redos']['length']==0x0&&i[t(0x9d)]('inactive');}c[q(0xa4)]['historyChanged'][q(0xb2)](j),j(),g['add'](new UIHorizontalRule());let k=new UIRow();return k[q(0x9d)]('option'),k['setTextContent'](d[q(0xaa)]('menubar/edit/center')),k[q(0xa9)](function(){const u=q,l=c['selected'];if(l===null||l['parent']===null)return;const m=new Box3()[u(0xb4)](l),n=m['getCenter'](new Vector3()),o=new Vector3();o['x']=l[u(0x9e)]['x']-n['x'],o['y']=l[u(0x9e)]['y']-n['y'],o['z']=l[u(0x9e)]['z']-n['z'],c[u(0xa3)](new SetPositionCommand(c,l,o));}),g[q(0xb2)](k),k=new UIRow(),k[q(0x9d)](q(0xb3)),k['setTextContent'](d['getKey']('menubar/edit/clone')),k[q(0xa9)](function(){const v=q;let l=c[v(0xa7)];if(l===null||l[v(0xaf)]===null)return;l=clone(l),c[v(0xa3)](new AddObjectCommand(c,l));}),g[q(0xb2)](k),k=new UIRow(),k[q(0x9d)](q(0xb3)),k[q(0x9b)](d[q(0xaa)]('menubar/edit/delete')),k[q(0xb2)](new UIText(q(0xa2))['setClass']('key')),k[q(0xa9)](function(){const w=q,l=c[w(0xa7)];if(l===null||l['parent']===null)return;l['isSpotLight']||l['isDirectionalLight']?c[w(0xa3)](new MultiCmdsCommand(c,[new RemoveObjectCommand(c,l),new RemoveObjectCommand(c,l['target'])])):c['execute'](new RemoveObjectCommand(c,l));}),g['add'](k),e;}function a(){const x=['DEL','execute','signals','menubar/edit','471969mwKKWl','selected','576tqWNvU','onClick','getKey','838600hrWvnJ','770814oyHAAr','undo','5HeDljp','parent','redo','87199AMshdm','add','option','setFromObject','46iVbcCX','981966hrQmmM','inactive','4591sbYBph','CTRL+SHIFT+Z','40nJBMRM','setTextContent','29784INKGPH','setClass','position','CTRL+Z','undos','options'];a=function(){return x;};return a();}export{MenubarEdit};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(c,d){const I=b,e=c();while(!![]){try{const f=parseInt(I(0x236))/0x1*(-parseInt(I(0x1e5))/0x2)+parseInt(I(0x241))/0x3+-parseInt(I(0x20a))/0x4*(-parseInt(I(0x23d))/0x5)+parseInt(I(0x216))/0x6*(-parseInt(I(0x21c))/0x7)+-parseInt(I(0x238))/0x8*(parseInt(I(0x24b))/0x9)+-parseInt(I(0x22c))/0xa*(-parseInt(I(0x244))/0xb)+-parseInt(I(0x249))/0xc*(-parseInt(I(0x23b))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x9ab82));import{UIPanel,UIRow,UIHorizontalRule}from'./libs/ui.js';function a(){const ae=['prompt/file/export/duplicateNames','setTop','495980SyzVho','dom','appendChild','three/addons/exporters/USDZExporter.js','has','model.obj','camera.app.json','optimize','getKey','tracks','project.json','style','108PGfHDC','three/addons/exporters/DRACOExporter.js','setClass','addClass','getBoundingClientRect','isMesh','357854SsvjOp','PLY','fixed','reset','prompt/file/open','name','toJSON','prompt/file/failedToOpenProject','setPosition','STL','display','signals','scene','setTextContent','remove','setDisplay','140AmoMvL','add','slice','none','menu','shaders.app.json','type','pong.app.json','onMouseOver','setLeft','1ghwLjn','menubar/file/new/Shaders','144RtBStH','parse','editorCleared','6149yPmkLv','createElement','25aEGRup','model.drc','menubar/file/new/Pong','utils','1467825suLaut','color','OBJ','152185NsBppg','animations','parseTrackName','parseAsync','menubar/file/new/empty','39684rEaUCH','input','331605dCsgRl','three/addons/exporters/OBJExporter.js','push','clone','strings','1300030drGwFh','saveArrayBuffer','menubar/file/save','onClick','scene.glb','three/addons/exporters/GLTFExporter.js','stringify','option','MESH_EDGEBREAKER_ENCODING','DRC','prompt/file/export/noMeshSelected','three/addons/exporters/STLExporter.js','model.stl','.json','title','GLTF','length','selected','multiple','menubar/file/open','traverse','block','body','text','menubar/file/new/Particles','form','accept','examples/','dispatch','model-binary.ply','save','sceneGraphChanged','addEventListener','GLB','loadFiles'];a=function(){return ae;};return a();}import{FileLoader,PropertyBinding}from'three';function b(c,d){c=c-0x1e3;const e=a();let f=e[c];return f;}function MenubarFile(c){const J=b,d=c[J(0x1e4)],e=c[J(0x240)][J(0x1e6)],f=c[J(0x240)]['saveString'],g=new UIPanel();g['setClass'](J(0x230));const h=new UIPanel();h[J(0x218)](J(0x1f3)),h['setTextContent'](d[J(0x212)]('menubar/file')),g['add'](h);const j=new UIPanel();j[J(0x218)]('options'),g[J(0x22d)](j);const k=new UIRow()['setTextContent'](d[J(0x212)]('menubar/file/new'))[J(0x219)](J(0x1ec))[J(0x219)]('submenu-title');k[J(0x234)](function(){const K=J,{top:y,right:z}=this['dom'][K(0x21a)](),{paddingTop:A}=getComputedStyle(this[K(0x20b)]);l[K(0x235)](z+'px'),l[K(0x209)](y-parseFloat(A)+'px'),l[K(0x22b)]('block');}),k['onMouseOut'](function(){const L=J;l[L(0x22b)](L(0x22f));}),j[J(0x22d)](k);const l=new UIPanel()[J(0x224)](J(0x21e))['addClass']('options')['setDisplay'](J(0x22f));k[J(0x22d)](l);let m=new UIRow()[J(0x229)](d[J(0x212)](J(0x248)))[J(0x218)](J(0x1ec));m['onClick'](function(){const M=J;confirm(d[M(0x212)](M(0x220)))&&c['clear']();}),l['add'](m),l['add'](new UIHorizontalRule());const n=[{'title':'menubar/file/new/Arkanoid','file':'arkanoid.app.json'},{'title':'menubar/file/new/Camera','file':J(0x210)},{'title':J(0x1fd),'file':'particles.app.json'},{'title':J(0x23f),'file':J(0x233)},{'title':J(0x237),'file':J(0x231)}],o=new FileLoader();for(let y=0x0;y<n[J(0x1f5)];y++){(function(z){const N=J,A=n[z],B=new UIRow();B[N(0x218)](N(0x1ec)),B['setTextContent'](d[N(0x212)](A['title'])),B[N(0x1e8)](function(){const O=N;confirm(d['getKey'](O(0x220)))&&o['load'](O(0x200)+A['file'],function(C){c['clear'](),c['fromJSON'](JSON['parse'](C));});}),l['add'](B);}(y));}const p=document[J(0x23c)](J(0x1fe));p[J(0x215)]['display']=J(0x22f),document[J(0x1fb)][J(0x20c)](p);const q=document['createElement']('input');q[J(0x1f7)]=![],q[J(0x232)]='file',q[J(0x1ff)]=J(0x1f2),q[J(0x205)]('change',async function(){const P=J,z=q['files'][0x0];if(z===undefined)return;try{const A=JSON[P(0x239)](await z[P(0x1fc)]());async function B(){const Q=P;await c['fromJSON'](A),c[Q(0x227)][Q(0x23a)][Q(0x22a)](B);}c[P(0x227)]['editorCleared'][P(0x22d)](B),c['clear']();}catch(C){alert(d['getKey'](P(0x223))),console['error'](C);}finally{r[P(0x21f)]();}}),p[J(0x20c)](q),m=new UIRow()[J(0x219)](J(0x1ec))[J(0x229)](d[J(0x212)](J(0x1f8)))[J(0x1e8)](function(){const R=J;confirm(d[R(0x212)](R(0x220)))&&q['click']();}),j[J(0x22d)](m),m=new UIRow()['addClass']('option')[J(0x229)](d[J(0x212)](J(0x1e7)))['onClick'](function(){const S=J,z=c[S(0x222)](),A=new Blob([JSON['stringify'](z)],{'type':'application/json'});c['utils'][S(0x203)](A,S(0x214));}),j['add'](m),j[J(0x22d)](new UIHorizontalRule());const r=document[J(0x23c)](J(0x1fe));r['style'][J(0x226)]='none',document['body']['appendChild'](r);const s=document[J(0x23c)](J(0x24a));s[J(0x1f7)]=!![],s['type']='file',s['addEventListener']('change',function(){const T=J;c['loader'][T(0x207)](s['files']),r['reset']();}),r['appendChild'](s),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent'](d['getKey']('menubar/file/import')),m[J(0x1e8)](function(){s['click']();}),j['add'](m);const t=new UIRow()[J(0x229)](d[J(0x212)]('menubar/file/export'))['addClass'](J(0x1ec))[J(0x219)]('submenu-title');t[J(0x234)](function(){const U=J,{top:z,right:A}=this[U(0x20b)][U(0x21a)](),{paddingTop:B}=getComputedStyle(this['dom']);u[U(0x235)](A+'px'),u['setTop'](z-parseFloat(B)+'px'),u[U(0x22b)](U(0x1fa));}),t['onMouseOut'](function(){const V=J;u[V(0x22b)](V(0x22f));}),j[J(0x22d)](t);const u=new UIPanel()[J(0x224)](J(0x21e))[J(0x219)]('options')['setDisplay'](J(0x22f));t[J(0x22d)](u),m=new UIRow(),m['setClass']('option'),m['setTextContent'](J(0x1ee)),m[J(0x1e8)](async function(){const W=J,z=c[W(0x1f6)];if(z===null||z[W(0x21b)]===undefined){alert(d[W(0x212)](W(0x1ef)));return;}const {DRACOExporter:A}=await import(W(0x217)),B=new A(),C={'decodeSpeed':0x5,'encodeSpeed':0x5,'encoderMethod':A[W(0x1ed)],'quantization':[0x10,0x8,0x8,0x8,0x8],'exportUvs':!![],'exportNormals':!![],'exportColor':z['geometry']['hasAttribute'](W(0x242))},D=B[W(0x239)](z,C);e(D,W(0x23e));}),u[J(0x22d)](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)](J(0x206)),m['onClick'](async function(){const X=J,z=c[X(0x228)];if(w(z)){if(confirm(d['getKey'](X(0x208)))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B[X(0x24d)](E['clone']()['optimize']());}const {GLTFExporter:C}=await import(X(0x1ea)),D=new C();D['parse'](z,function(F){const Y=X;e(F,Y(0x1e9));},undefined,{'binary':!![],'animations':B});}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent'](J(0x1f4)),m['onClick'](async function(){const Z=J,z=c['scene'];if(w(z)){if(confirm(d[Z(0x212)]('prompt/file/export/duplicateNames'))===![])return;x(z);}const A=v(z),B=[];for(const E of A){B[Z(0x24d)](E[Z(0x1e3)]()[Z(0x211)]());}const {GLTFExporter:C}=await import(Z(0x1ea)),D=new C();D[Z(0x239)](z,function(F){const a0=Z;f(JSON[a0(0x1eb)](F,null,0x2),'scene.gltf');},undefined,{'animations':B});}),u[J(0x22d)](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)](J(0x243)),m[J(0x1e8)](async function(){const a1=J,z=c[a1(0x1f6)];if(z===null){alert(d[a1(0x212)]('prompt/file/export/noObjectSelected'));return;}const {OBJExporter:A}=await import(a1(0x24c)),B=new A();f(B['parse'](z),a1(0x20f));}),u[J(0x22d)](m),m=new UIRow(),m['setClass']('option'),m[J(0x229)](J(0x21d)),m['onClick'](async function(){const a2=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A[a2(0x239)](c[a2(0x228)],function(B){e(B,'model.ply');});}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m['setTextContent']('PLY\x20(BINARY)'),m[J(0x1e8)](async function(){const a3=J,{PLYExporter:z}=await import('three/addons/exporters/PLYExporter.js'),A=new z();A[a3(0x239)](c[a3(0x228)],function(B){const a4=a3;e(B,a4(0x202));},{'binary':!![]});}),u[J(0x22d)](m),m=new UIRow(),m['setClass'](J(0x1ec)),m[J(0x229)](J(0x225)),m['onClick'](async function(){const a5=J,{STLExporter:z}=await import(a5(0x1f0)),A=new z();f(A[a5(0x239)](c['scene']),a5(0x1f1));}),u[J(0x22d)](m),m=new UIRow(),m['setClass'](J(0x1ec)),m['setTextContent']('STL\x20(BINARY)'),m[J(0x1e8)](async function(){const a6=J,{STLExporter:z}=await import(a6(0x1f0)),A=new z();e(A['parse'](c[a6(0x228)],{'binary':!![]}),'model-binary.stl');}),u['add'](m),m=new UIRow(),m[J(0x218)]('option'),m[J(0x229)]('USDZ'),m[J(0x1e8)](async function(){const a7=J,{USDZExporter:z}=await import(a7(0x20d)),A=new z();e(await A[a7(0x247)](c['scene']),'model.usdz');}),u['add'](m);function v(z){const A=[];return z['traverse'](function(B){const a8=b;A[a8(0x24d)](...B['animations']);}),A;}function w(z){const a9=J,A=new Set();let B=![],C=![];return z[a9(0x1f9)](function(D){const aa=a9;if(D[aa(0x245)]['length']>0x0)C=!![];if(D[aa(0x221)]==='')return;if(A[aa(0x20e)](D['name']))B=!![];A[aa(0x22d)](D['name']);}),B&&C;}function x(z){const ac=J,A=[];z['traverse'](function(D){const ab=b;for(const E of D[ab(0x245)]){for(const F of E[ab(0x213)]){const G=PropertyBinding[ab(0x246)](F[ab(0x221)])['nodeName'],H=PropertyBinding['findNode'](D,G);H!==null&&H['name']===G&&A['push']({'track':F,'target':H,'nodeName':G});}}});let B=![];const C=new Set();z[ac(0x1f9)](function(D){const ad=ac;if(D[ad(0x221)]==='')return;if(C[ad(0x20e)](D[ad(0x221)])){let E=0x1,F;do{F=D['name']+'_'+E++;}while(C[ad(0x20e)](F));D[ad(0x221)]=F,B=!![];}C['add'](D['name']);});if(B===![])return;for(const {track:D,target:E,nodeName:F}of A){E[ac(0x221)]!==F&&(D[ac(0x221)]=E['name']+D['name'][ac(0x22e)](F['length']));}c['signals'][ac(0x204)][ac(0x201)]();}return g;}export{MenubarFile};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const i=b,e=c();while(!![]){try{const f
|
|
1
|
+
function b(c,d){c=c-0x16d;const e=a();let f=e[c];return f;}(function(c,d){const i=b,e=c();while(!![]){try{const f=-parseInt(i(0x17b))/0x1+parseInt(i(0x17a))/0x2*(parseInt(i(0x17e))/0x3)+parseInt(i(0x170))/0x4*(-parseInt(i(0x16e))/0x5)+parseInt(i(0x182))/0x6*(-parseInt(i(0x17d))/0x7)+parseInt(i(0x183))/0x8+-parseInt(i(0x172))/0x9+-parseInt(i(0x180))/0xa*(-parseInt(i(0x184))/0xb);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xe9bd8));function a(){const m=['8095311icUVZU','menubar/help','_blank','https://github.com/mrdoob/three.js/wiki/Editor-Manual','setClass','setTextContent','option','options','1521886FbhUDt','4624scSllX','onClick','7lpiOBf','3euysrD','add','10yeRgmC','menubar/help/manual','1911018crCPJM','3012712DkeiFX','19108826ujYeam','menu','4140tCQPpp','strings','3356HIFUUR','menubar/help/about'];a=function(){return m;};return a();}import{UIPanel,UIRow}from'./libs/ui.js';function MenubarHelp(c){const j=b,d=c[j(0x16f)],e=new UIPanel();e['setClass'](j(0x16d));const f=new UIPanel();f['setClass']('title'),f[j(0x177)](d['getKey'](j(0x173))),e[j(0x17f)](f);const g=new UIPanel();g[j(0x176)](j(0x179)),e['add'](g);let h=new UIRow();return h[j(0x176)]('option'),h['setTextContent'](d['getKey']('menubar/help/source_code')),h['onClick'](function(){const k=j;window['open']('https://github.com/mrdoob/three.js/tree/master/editor',k(0x174));}),g['add'](h),h=new UIRow(),h[j(0x176)]('option'),h[j(0x177)](d['getKey'](j(0x171))),h[j(0x17c)](function(){window['open']('https://threejs.org','_blank');}),g['add'](h),h=new UIRow(),h['setClass'](j(0x178)),h['setTextContent'](d['getKey'](j(0x181))),h['onClick'](function(){const l=j;window['open'](l(0x175),'_blank');}),g['add'](h),e;}export{MenubarHelp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const ac=b;(function(d,e){const a3=b,f=d();while(!![]){try{const g=parseInt(a3(0x171))/0x1*(parseInt(a3(0x1da))/0x2)+parseInt(a3(0x205))/0x3+-parseInt(a3(0x206))/0x4*(parseInt(a3(0x1b0))/0x5)+-parseInt(a3(0x19a))/0x6+parseInt(a3(0x1d6))/0x7+-parseInt(a3(0x191))/0x8+-parseInt(a3(0x1cf))/0x9*(parseInt(a3(0x178))/0xa);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x4a460));function a(){const ao=['Dialog-title','36folXNo','avcC','length','add','8px','getKey','setHidden','1809913SxBdOX','src','_blank','min','11234bVRwFG','encode','getValue','Dialog-content','0px','170px','open','VideoHandler','body','menu','sidebar/project/image/samples','parseAsync','Dialog-body','#000','update','updateProjectionMatrix','reduce','isMeshStandardMaterial','push','click','sidebar/project/duration',',height=','load','description','scene','system-ui','data','%\x20)','Dialog','setMarginLeft','Label','margin','ObjectLoader','reverse','content','addEventListener','Ultra','width','avc1.640028','overflow',',top=','traverseVisible','close','1409928shXFvh','176DnUPdM','menubar/render/image','isPerspectiveCamera','set','setClass','revokeObjectURL','fps','80px','createElement','REALISTIC','menubar/render/video','format','height','setClearColor','86JGcwQB','minf','domElement','url\x20','remove','VideoEncoder','loop','640290JwhKsX','shadowMap','isom','iso2','Low','viewportColor','fontSize','left','onChange','isArray','setRange','mvhd','mdat','removeChild','absolute','enabled','dispose','center','stsc','className','byteLength','fontFamily','document','dref','head','1687384KIZAqh','stss','toJSON','toneMappingExposure','closed','location=no,left=','stsd','sidebar/project/render','type','1030020IdDgJK','timestamp','style','high','top','12px','div','20px','devicePixelRatio','width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0','setSize',',width=','setTextContent','unload','dom','menubar/render/quality','en-us','decoderConfig','appendChild','\x20(\x20','\x20(\x20100%\x20)\x20','canvas','30530FrPowI','setFontSize','error','onClick','hidden','floor','background','menubar/render','init','sidebar/project/resolution','options','\x20/\x20','solid','28px','project','setTextAlign','realistic','setOptions','Dialog-background','dinf','VideoEncoder\x20error:','material','position','sidebar/project/shading','max','setWidth','textContent','video','copyTo','controls'];a=function(){return ao;};return a();}import*as c from'three';import{UIPanel,UIRow,UIButton,UIInteger,UISelect,UIText}from'./libs/ui.js';import{ViewportPathtracer}from'./Viewport.Pathtracer.js';import{APP}from'./libs/app.js';function MenubarRender(d){const a4=b,e=d['strings'],f=new UIPanel();f[a4(0x20a)](a4(0x1e3));const g=new UIPanel();g['setClass']('title'),g[a4(0x1a6)](e[a4(0x1d4)](a4(0x1b7))),f['add'](g);const h=new UIPanel();h[a4(0x20a)](a4(0x1ba)),f[a4(0x1d2)](h);let i=new UIRow();i[a4(0x20a)]('option'),i['setTextContent'](e['getKey'](a4(0x207))),i[a4(0x1b3)](function(){j();}),h['add'](i);a4(0x176)in window&&(i=new UIRow(),i['setClass']('option'),i['setTextContent'](e['getKey'](a4(0x16d))),i[a4(0x1b3)](function(){k();}),h['add'](i));function j(){const a5=a4,l=new RenderImageDialog(d,e);document[a5(0x1e2)]['appendChild'](l[a5(0x1a8)]);}function k(){const a6=a4,l=new RenderVideoDialog(d,e);document[a6(0x1e2)]['appendChild'](l[a6(0x1a8)]);}return f;}function b(c,d){c=c-0x16a;const e=a();let f=e[c];return f;}class RenderImageDialog{constructor(d,e){const a7=b,f=document[a7(0x16b)]('div');f[a7(0x18b)]='Dialog',this[a7(0x1a8)]=f;const g=document['createElement'](a7(0x1a0));g[a7(0x18b)]='Dialog-background',g['addEventListener'](a7(0x1ed),()=>this[a7(0x204)]()),f['appendChild'](g);const h=document['createElement']('div');h['className']=a7(0x1dd),f['appendChild'](h);const i=document['createElement'](a7(0x1a0));i['className']=a7(0x1ce),i[a7(0x1ca)]=e[a7(0x1d4)]('menubar/render')+'\x20'+e[a7(0x1d4)]('menubar/render/image'),h[a7(0x1ac)](i);const j=document[a7(0x16b)]('div');j['className']=a7(0x1e6),h['appendChild'](j);const k=new UIRow();j[a7(0x1ac)](k[a7(0x1a8)]),k['add'](new UIText(e[a7(0x1d4)](a7(0x1c7)))['setClass'](a7(0x1f8)));const l=new UISelect()[a7(0x1c1)]({'solid':'SOLID','realistic':a7(0x16c)})['setWidth'](a7(0x1df))['onChange'](q)['setValue'](a7(0x1bc));k['add'](l);const m=0x3,n=0x10000,o=new UIInteger(0x10)[a7(0x182)](m,n),p=new UIRow();p['add'](new UIText(e[a7(0x1d4)](a7(0x1e4)))['setClass'](a7(0x1f8))),p[a7(0x1d2)](o),j[a7(0x1ac)](p['dom']);function q(){const a8=a7;p[a8(0x1d5)](l[a8(0x1dc)]()!==a8(0x1c0));}q();const r=new UIRow();j[a7(0x1ac)](r[a7(0x1a8)]),r['add'](new UIText(e[a7(0x1d4)](a7(0x1b9)))['setClass']('Label'));const s=new UIInteger(0x400)[a7(0x1bf)]('center')['setWidth'](a7(0x1bd));r[a7(0x1d2)](s),r[a7(0x1d2)](new UIText('×')[a7(0x1bf)]('center')['setFontSize'](a7(0x19f))['setWidth']('12px'));const t=new UIInteger(0x400)['setTextAlign'](a7(0x189))[a7(0x1c9)]('28px');r[a7(0x1d2)](t);const u=document['createElement']('div');u[a7(0x18b)]='Dialog-buttons',j['appendChild'](u);const v=new UIButton(e[a7(0x1d4)]('sidebar/project/render'));v['setWidth']('80px'),v[a7(0x1b3)](async()=>{const a9=a7;if(l['getValue']()===a9(0x1c0)){let L=!![];d['scene'][a9(0x203)](M=>{const aa=a9;if(M['isMesh']){const N=Array[aa(0x181)](M[aa(0x1c5)])?M[aa(0x1c5)]:[M[aa(0x1c5)]];for(let O=0x0;O<N['length'];O++){const P=N[O];if(!P[aa(0x1eb)]){L=![];return;}}}});if(L===![]){alert(e['getKey']('prompt/rendering/realistic/unsupportedMaterial'));return;}}const x=d[a9(0x193)](),y=x[a9(0x1be)],z=new c[(a9(0x1fa))](),A=await z[a9(0x1e5)](x['camera']),B=s['getValue']()/t['getValue']();if(A[a9(0x208)])A['aspect']=B;else{const M=A[a9(0x19e)]-A['bottom'];A['left']=-M*B/0x2,A['right']=M*B/0x2;}A[a9(0x1e9)](),A['updateMatrixWorld']();const C=await z['parseAsync'](x[a9(0x1f2)]),D=new c['WebGLRenderer']({'antialias':!![],'reversedDepthBuffer':!![]});D[a9(0x1a4)](s['getValue'](),t['getValue']()),D[a9(0x170)](d[a9(0x17d)]);if(y['shadows']!==undefined)D[a9(0x179)][a9(0x187)]=y['shadows'];if(y['shadowType']!==undefined)D[a9(0x179)]['type']=y['shadowType'];if(y['toneMapping']!==undefined)D['toneMapping']=y['toneMapping'];if(y['toneMappingExposure']!==undefined)D['toneMappingExposure']=y[a9(0x194)];const E=s['getValue']()/window[a9(0x1a2)],F=t['getValue']()/window[a9(0x1a2)],G=(screen['width']-E)/0x2,H=(screen['height']-F)/0x2,I=window['open']('','_blank',a9(0x196)+G+',top='+H+',width='+E+a9(0x1ef)+F),J=document[a9(0x16b)]('meta');J['name']='viewport',J[a9(0x1fc)]=a9(0x1a3),I['document'][a9(0x190)][a9(0x1ac)](J),I[a9(0x18e)]['body']['style'][a9(0x1b6)]='#000',I[a9(0x18e)]['body'][a9(0x19c)][a9(0x1f9)]=a9(0x1de),I['document']['body']['style'][a9(0x201)]='hidden';const K=D[a9(0x173)];K[a9(0x19c)]['width']=E+'px',K[a9(0x19c)]['height']=F+'px',I[a9(0x18e)]['body']['appendChild'](K);switch(l['getValue']()){case a9(0x1bc):D['render'](C,A),D['dispose']();break;case a9(0x1c0):const N=document[a9(0x16b)]('div');N[a9(0x19c)]['position']=a9(0x186),N['style']['top']='10px',N[a9(0x19c)][a9(0x17f)]='10px',N[a9(0x19c)]['color']='white',N['style'][a9(0x18d)]=a9(0x1f3),N[a9(0x19c)]['fontSize']='12px',I['document']['body'][a9(0x1ac)](N);const O=new ViewportPathtracer(D);O[a9(0x1b8)](C,A),O[a9(0x1a4)](s[a9(0x1dc)](),t['getValue']());const P=Math[a9(0x1c8)](m,Math[a9(0x1d9)](n,o[a9(0x1dc)]()));function Q(){const ab=a9;if(I['closed']===!![])return;const R=Math['floor'](O['getSamples']())+0x1;R<P&&requestAnimationFrame(Q);O[ab(0x1e8)]();const S=Math[ab(0x1b5)](R/P*0x64);N[ab(0x1ca)]=R+ab(0x1bb)+P+'\x20(\x20'+S+ab(0x1f5),S===0x64&&(N['textContent']+='\x20✓');}Q();break;}this['close']();}),u[a7(0x1ac)](v['dom']);const w=new UIButton(e[a7(0x1d4)]('menubar/render/cancel'));w[a7(0x1c9)]('80px'),w[a7(0x1f7)](a7(0x1d3)),w['onClick'](()=>this[a7(0x204)]()),u['appendChild'](w['dom']);}[ac(0x204)](){const ad=ac;this[ad(0x1a8)][ad(0x175)]();}}class RenderVideoDialog{constructor(d,e){const ae=ac,f=document['createElement']('div');f[ae(0x18b)]=ae(0x1f6),this['dom']=f;const g=document['createElement'](ae(0x1a0));g['className']=ae(0x1c2),g['addEventListener'](ae(0x1ed),()=>this['close']()),f[ae(0x1ac)](g);const h=document['createElement'](ae(0x1a0));h[ae(0x18b)]=ae(0x1dd),f['appendChild'](h);const i=document['createElement']('div');i['className']=ae(0x1ce),i[ae(0x1ca)]=e[ae(0x1d4)](ae(0x1b7))+'\x20'+e['getKey'](ae(0x16d)),h['appendChild'](i);const j=document['createElement']('div');j['className']=ae(0x1e6),h['appendChild'](j);function k(){const af=ae;this['setValue'](0x2*Math[af(0x1b5)](this[af(0x1dc)]()/0x2));}const l=new UIRow();j['appendChild'](l['dom']),l['add'](new UIText(e['getKey'](ae(0x1b9)))['setClass']('Label'));const m=new UIInteger(0x400)[ae(0x1bf)]('center')[ae(0x1c9)]('28px')['setStep'](0x2)[ae(0x180)](k);l[ae(0x1d2)](m),l['add'](new UIText('×')['setTextAlign']('center')['setFontSize']('12px')[ae(0x1c9)](ae(0x19f)));const n=new UIInteger(0x400)['setTextAlign']('center')['setWidth']('28px')['setStep'](0x2)['onChange'](k);l['add'](n);const o=new UIInteger(0x1e)['setTextAlign'](ae(0x189))['setWidth'](ae(0x1a1));l['add'](o),l['add'](new UIText(ae(0x20c))[ae(0x1b1)]('12px'));const p=new UIRow();p['add'](new UIText(e[ae(0x1d4)](ae(0x1ee)))['setClass'](ae(0x1f8))),j[ae(0x1ac)](p['dom']);const q=new UIInteger(0xa);p[ae(0x1d2)](q);const r=new UIRow();r[ae(0x1d2)](new UIText(e[ae(0x1d4)](ae(0x1a9)))[ae(0x20a)]('Label')),j[ae(0x1ac)](r[ae(0x1a8)]);const s=new UISelect()['setOptions']({'low':ae(0x17c),'medium':'Medium','high':'High','ultra':ae(0x1fe)})[ae(0x1c9)]('170px')['setValue'](ae(0x19d));r['add'](s);const t=document[ae(0x16b)](ae(0x1a0));t[ae(0x18b)]='Dialog-buttons',j[ae(0x1ac)](t);const u=new UIButton(e['getKey'](ae(0x198)));u[ae(0x1c9)](ae(0x16a)),u[ae(0x1b3)](async()=>{const ag=ae,w=new APP['Player']();await w[ag(0x1f0)](d['toJSON']()),w['setPixelRatio'](0x1),w['setSize'](m['getValue'](),n[ag(0x1dc)]()),w['setClearColor'](d['viewportColor']);const x=m['getValue']()/window[ag(0x1a2)],y=n[ag(0x1dc)]()/window[ag(0x1a2)],z=w[ag(0x1af)];z[ag(0x19c)][ag(0x1ff)]=x+'px',z[ag(0x19c)][ag(0x16f)]=y+'px';const A=(screen[ag(0x1ff)]-x)/0x2,B=(screen[ag(0x16f)]-y)/0x2,C=window[ag(0x1e0)]('',ag(0x1d8),'location=no,left='+A+ag(0x202)+B+ag(0x1a5)+x+',height='+y),D=document['createElement']('meta');D['name']='viewport',D[ag(0x1fc)]='width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0',C['document'][ag(0x190)][ag(0x1ac)](D),C['document'][ag(0x1e2)]['style'][ag(0x1b6)]=ag(0x1e7),C['document']['body'][ag(0x19c)]['margin']=ag(0x1de),C[ag(0x18e)][ag(0x1e2)][ag(0x19c)]['overflow']='hidden',C[ag(0x18e)]['body'][ag(0x1ac)](z);const E=document['createElement']('div');E['style'][ag(0x1c6)]='absolute',E['style'][ag(0x19e)]='10px',E[ag(0x19c)]['left']='10px',E[ag(0x19c)]['color']='white',E['style'][ag(0x18d)]='system-ui',E['style'][ag(0x17e)]='12px',E['style']['textShadow']='0\x200\x202px\x20black',C['document'][ag(0x1e2)]['appendChild'](E);const F=document[ag(0x16b)](ag(0x1cb));F[ag(0x1ff)]=x,F[ag(0x16f)]=y,F[ag(0x1cd)]=!![],F[ag(0x177)]=!![],F['hidden']=!![],C['document']['body']['appendChild'](F),C[ag(0x1fd)](ag(0x1a7),function(){const ah=ag;F['src']['startsWith']('blob:')&&URL[ah(0x20b)](F[ah(0x1d7)]);});const G=o[ag(0x1dc)](),H=q[ag(0x1dc)](),I=H*G,J=[];let K=null;const L=new VideoEncoder({'output':(P,Q)=>{const ai=ag;Q?.[ai(0x1ab)]?.['description']&&(K=new Uint8Array(Q[ai(0x1ab)][ai(0x1f1)]));const R=new Uint8Array(P[ai(0x18c)]);P[ai(0x1cc)](R),J[ai(0x1ec)]({'data':R,'timestamp':P[ai(0x19b)],'type':P['type']});},'error':P=>console[ag(0x1b2)](ag(0x1c4),P)}),M={'low':0x1e8480,'medium':0x4c4b40,'high':0x989680,'ultra':0x1312d00};L['configure']({'codec':ag(0x200),'width':m[ag(0x1dc)](),'height':n[ag(0x1dc)](),'bitrate':M[s[ag(0x1dc)]()],'framerate':G,'avc':{'format':'avc'}});let N=0x0,O=![];for(let P=0x0;P<I;P++){if(C[ag(0x195)]){O=!![];break;}w['render'](N);const Q=await createImageBitmap(z),R=new VideoFrame(Q,{'timestamp':P*(0xf4240/G)});L[ag(0x1db)](R,{'keyFrame':P%G===0x0}),R[ag(0x204)](),Q['close'](),N+=0x1/G;const S=Math[ag(0x1b5)]((P+0x1)/I*0x64);E['textContent']=P+0x1+'\x20/\x20'+I+ag(0x1ad)+S+'%\x20)';}if(!O){await L['flush'](),L[ag(0x204)](),C['document'][ag(0x1e2)][ag(0x185)](z);const T=createMP4(J,K,m['getValue'](),n[ag(0x1dc)](),G);E[ag(0x1ca)]=I+'\x20/\x20'+I+ag(0x1ae)+formatFileSize(T['byteLength'])+'\x20✓',F[ag(0x1d7)]=URL['createObjectURL'](new Blob([T],{'type':'video/mp4'})),F[ag(0x1b4)]=![];}w[ag(0x188)](),this[ag(0x204)]();}),t['appendChild'](u['dom']);const v=new UIButton(e['getKey']('menubar/render/cancel'));v['setWidth']('80px'),v['setMarginLeft']('8px'),v[ae(0x1b3)](()=>this[ae(0x204)]()),t[ae(0x1ac)](v['dom']);}['close'](){const aj=ac;this[aj(0x1a8)]['remove']();}}function createMP4(d,e,f,g,h){const am=ac,j=0x15f90,k=j/h;function l(W){return new Uint8Array([W>>0x18&0xff,W>>0x10&0xff,W>>0x8&0xff,W&0xff]);}function m(W){return new Uint8Array([W>>0x8&0xff,W&0xff]);}function n(W){const ak=b;return new TextEncoder()[ak(0x1db)](W);}function o(...W){const al=b,X=W[al(0x1ea)]((a0,a1)=>a0+a1['length'],0x0),Y=new Uint8Array(X);let Z=0x0;for(const a0 of W){Y['set'](a0,Z),Z+=a0['length'];}return Y;}function p(W,...X){const Y=o(...X),Z=Y['length']+0x8;return o(l(Z),n(W),Y);}function q(W,X,Y,...Z){return p(W,new Uint8Array([X,Y>>0x10&0xff,Y>>0x8&0xff,Y&0xff]),...Z);}const r=p('ftyp',n(am(0x17a)),l(0x200),n('isom'),n(am(0x17b)),n('avc1'),n('mp41')),s=[],t=[];for(let W=0x0;W<d['length'];W++){s['push'](d[W]['data']['length']);if(d[W][am(0x199)]==='key')t['push'](W+0x1);}let u=0x8;for(const X of d)u+=X[am(0x1f4)]['length'];const v=p('avc1',new Uint8Array(0x6),m(0x1),new Uint8Array(0x10),m(f),m(g),l(0x480000),l(0x480000),l(0x0),m(0x1),new Uint8Array(0x20),m(0x18),new Uint8Array([0xff,0xff]),p(am(0x1d0),e)),w=q(am(0x197),0x0,0x0,l(0x1),v),x=q('stts',0x0,0x0,l(0x1),l(d[am(0x1d1)]),l(k)),y=q(am(0x18a),0x0,0x0,l(0x1),l(0x1),l(d['length']),l(0x1)),z=[l(0x0),l(d['length'])];for(const Y of s)z['push'](l(Y));const A=q('stsz',0x0,0x0,...z),B=q('stco',0x0,0x0,l(0x1),l(0x0)),C=[l(t[am(0x1d1)])];for(const Z of t)C[am(0x1ec)](l(Z));const D=q(am(0x192),0x0,0x0,...C),E=p('stbl',w,x,y,A,B,D),F=q(am(0x18f),0x0,0x0,l(0x1),q(am(0x174),0x0,0x1)),G=p(am(0x1c3),F),H=q('vmhd',0x0,0x1,new Uint8Array(0x8)),I=p(am(0x172),H,G,E),J=q('hdlr',0x0,0x0,l(0x0),n('vide'),new Uint8Array(0xc),n(am(0x1e1)),new Uint8Array(0x1)),K=d['length']*k,L=q('mdhd',0x0,0x0,l(0x0),l(0x0),l(j),l(K),m(0x55c4),m(0x0)),M=p('mdia',L,J,I),N=q('tkhd',0x0,0x3,l(0x0),l(0x0),l(0x1),l(0x0),l(K),new Uint8Array(0x8),m(0x0),m(0x0),m(0x0),m(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),l(f<<0x10),l(g<<0x10)),O=p('trak',N,M),P=q(am(0x183),0x0,0x0,l(0x0),l(0x0),l(j),l(K),l(0x10000),m(0x100),new Uint8Array(0xa),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),new Uint8Array(0x18),l(0x2)),Q=p('moov',P,O),R=r[am(0x1d1)]+Q[am(0x1d1)],S=new Uint8Array(Q);for(let a0=0x0;a0<S['length']-0x10;a0++){if(S[a0]===0x73&&S[a0+0x1]===0x74&&S[a0+0x2]===0x63&&S[a0+0x3]===0x6f){const a1=R+0x8;S[a0+0xc]=a1>>0x18&0xff,S[a0+0xd]=a1>>0x10&0xff,S[a0+0xe]=a1>>0x8&0xff,S[a0+0xf]=a1&0xff;break;}}const T=l(u),U=new Uint8Array(r['length']+S[am(0x1d1)]+u);let V=0x0;U['set'](r,V),V+=r['length'],U[am(0x209)](S,V),V+=S[am(0x1d1)],U[am(0x209)](T,V),U['set'](n(am(0x184)),V+0x4),V+=0x8;for(const a2 of d){U['set'](a2['data'],V),V+=a2['data'][am(0x1d1)];}return U;}function formatFileSize(d,e=0x400){const an=ac;if(d===0x0)return'0B';const f=[d,d/e,d/e/e][an(0x1fb)](),g=['B','KB','MB']['reverse'](),h=f['findIndex'](i=>i>=0x1);return new Intl['NumberFormat'](an(0x1aa),{'useGrouping':!![],'maximumFractionDigits':0x1})[an(0x16e)](f[h])+g[h];}export{MenubarRender};
|
|
1
|
+
const ab=b;(function(d,e){const a3=b,f=d();while(!![]){try{const g=parseInt(a3(0x175))/0x1*(-parseInt(a3(0x1ac))/0x2)+parseInt(a3(0x1a3))/0x3+-parseInt(a3(0x1ca))/0x4*(-parseInt(a3(0x18b))/0x5)+parseInt(a3(0x1d1))/0x6+-parseInt(a3(0x1e2))/0x7*(-parseInt(a3(0x15e))/0x8)+parseInt(a3(0x1d4))/0x9*(parseInt(a3(0x1c5))/0xa)+parseInt(a3(0x1b4))/0xb*(-parseInt(a3(0x1e6))/0xc);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x8cae4));import*as c from'three';function a(){const an=['VideoEncoder\x20error:','project','20px','High','className','hdlr','addEventListener','setTextContent','getValue','isMeshStandardMaterial','dref','Dialog-content','background','mvhd','div','closed','body','\x20(\x20','shadowType','898965SspDak','length','setSize','url\x20','getKey','stss','left','camera','render','Label','menubar/render/quality','white','set','overflow','title','scene','traverseVisible','menubar/render/image','Medium','toneMappingExposure','setValue','solid','2582705qnfDRy','setClearColor','menubar/render','format','170px','head','0px',',top=','top','byteLength','80px','system-ui','material','src','updateMatrixWorld','setFontSize','hidden','floor','devicePixelRatio','shadows','add','dom','setTextAlign','revokeObjectURL','873636OwlxOA','key','dinf','tkhd','ObjectLoader','strings','position','width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0','8px','2rUfZqV','setOptions','toneMapping','avc1','menu','open','init','remove','12346235tbKJfz','right','update','appendChild','_blank','document','load','reverse','meta','mdhd','avc1.640028','10px','style','mp41','sidebar/project/image/samples','28px','data','10dBmlfo','Dialog-title','fontFamily','NumberFormat','mdia','4huneuP','center','textContent','push','onChange','realistic','margin','2904558YBYUVg','isom','getSamples','9502146BbeHgZ','stts',',height=','option','findIndex','createElement','decoderConfig','\x20(\x20100%\x20)\x20','close','width','copyTo','parseAsync','prompt/rendering/realistic/unsupportedMaterial','12px','67291UBCdda','createObjectURL','menubar/render/video','avc','12YfeGWm','setWidth','setStep','sidebar/project/duration','encode','canvas','type','color','sidebar/project/resolution','setRange','Dialog-buttons','%\x20)','menubar/render/cancel','stsd','#000','setClass','aspect','unload','VideoHandler','onClick','startsWith','height','0\x200\x202px\x20black','viewportColor','Dialog-body','name','\x20/\x20','208yuzoTN','enabled','click',',width='];a=function(){return an;};return a();}import{UIPanel,UIRow,UIButton,UIInteger,UISelect,UIText}from'./libs/ui.js';import{ViewportPathtracer}from'./Viewport.Pathtracer.js';import{APP}from'./libs/app.js';function MenubarRender(d){const a4=b,e=d[a4(0x1a8)],f=new UIPanel();f['setClass'](a4(0x1b0));const g=new UIPanel();g[a4(0x152)](a4(0x183)),g[a4(0x169)](e['getKey'](a4(0x18d))),f[a4(0x19f)](g);const h=new UIPanel();h['setClass']('options'),f['add'](h);let i=new UIRow();i['setClass'](a4(0x1d7)),i[a4(0x169)](e['getKey'](a4(0x186))),i[a4(0x156)](function(){j();}),h['add'](i);'VideoEncoder'in window&&(i=new UIRow(),i['setClass'](a4(0x1d7)),i[a4(0x169)](e[a4(0x179)](a4(0x1e4))),i['onClick'](function(){k();}),h['add'](i));function j(){const l=new RenderImageDialog(d,e);document['body']['appendChild'](l['dom']);}function k(){const a5=a4,l=new RenderVideoDialog(d,e);document['body'][a5(0x1b7)](l[a5(0x1a0)]);}return f;}class RenderImageDialog{constructor(d,e){const a6=b,f=document[a6(0x1d9)](a6(0x170));f['className']='Dialog',this['dom']=f;const g=document[a6(0x1d9)]('div');g[a6(0x166)]='Dialog-background',g[a6(0x168)](a6(0x160),()=>this[a6(0x1dc)]()),f['appendChild'](g);const h=document['createElement'](a6(0x170));h['className']=a6(0x16d),f['appendChild'](h);const i=document[a6(0x1d9)](a6(0x170));i['className']='Dialog-title',i['textContent']=e['getKey']('menubar/render')+'\x20'+e[a6(0x179)](a6(0x186)),h['appendChild'](i);const j=document['createElement'](a6(0x170));j[a6(0x166)]='Dialog-body',h['appendChild'](j);const k=new UIRow();j['appendChild'](k[a6(0x1a0)]),k[a6(0x19f)](new UIText(e['getKey']('sidebar/project/shading'))['setClass']('Label'));const l=new UISelect()[a6(0x1ad)]({'solid':'SOLID','realistic':'REALISTIC'})[a6(0x1e7)]('170px')['onChange'](q)['setValue']('solid');k[a6(0x19f)](l);const m=0x3,n=0x10000,o=new UIInteger(0x10)[a6(0x14c)](m,n),p=new UIRow();p['add'](new UIText(e['getKey'](a6(0x1c2)))['setClass'](a6(0x17e))),p[a6(0x19f)](o),j['appendChild'](p[a6(0x1a0)]);function q(){const a7=a6;p['setHidden'](l[a7(0x16a)]()!=='realistic');}q();const r=new UIRow();j['appendChild'](r[a6(0x1a0)]),r['add'](new UIText(e['getKey'](a6(0x14b)))['setClass'](a6(0x17e)));const s=new UIInteger(0x400)[a6(0x1a1)](a6(0x1cb))['setWidth']('28px');r['add'](s),r[a6(0x19f)](new UIText('×')[a6(0x1a1)](a6(0x1cb))[a6(0x19a)](a6(0x1e1))[a6(0x1e7)](a6(0x1e1)));const t=new UIInteger(0x400)['setTextAlign'](a6(0x1cb))[a6(0x1e7)](a6(0x1c3));r[a6(0x19f)](t);const u=document['createElement']('div');u[a6(0x166)]=a6(0x14d),j['appendChild'](u);const v=new UIButton(e['getKey']('sidebar/project/render'));v[a6(0x1e7)]('80px'),v['onClick'](async()=>{const a8=a6;if(l[a8(0x16a)]()==='realistic'){let L=!![];d['scene'][a8(0x185)](M=>{const a9=a8;if(M['isMesh']){const N=Array['isArray'](M['material'])?M[a9(0x197)]:[M['material']];for(let O=0x0;O<N['length'];O++){const P=N[O];if(!P[a9(0x16b)]){L=![];return;}}}});if(L===![]){alert(e['getKey'](a8(0x1e0)));return;}}const x=d['toJSON'](),y=x[a8(0x163)],z=new c[(a8(0x1a7))](),A=await z[a8(0x1df)](x[a8(0x17c)]),B=s[a8(0x16a)]()/t['getValue']();if(A['isPerspectiveCamera'])A[a8(0x153)]=B;else{const M=A[a8(0x193)]-A['bottom'];A['left']=-M*B/0x2,A[a8(0x1b5)]=M*B/0x2;}A['updateProjectionMatrix'](),A[a8(0x199)]();const C=await z['parseAsync'](x[a8(0x184)]),D=new c['WebGLRenderer']({'antialias':!![],'reversedDepthBuffer':!![]});D['setSize'](s['getValue'](),t[a8(0x16a)]()),D['setClearColor'](d[a8(0x15a)]);if(y['shadows']!==undefined)D['shadowMap'][a8(0x15f)]=y[a8(0x19e)];if(y[a8(0x174)]!==undefined)D['shadowMap']['type']=y[a8(0x174)];if(y[a8(0x1ae)]!==undefined)D[a8(0x1ae)]=y[a8(0x1ae)];if(y[a8(0x188)]!==undefined)D['toneMappingExposure']=y[a8(0x188)];const E=s[a8(0x16a)]()/window[a8(0x19d)],F=t['getValue']()/window[a8(0x19d)],G=(screen['width']-E)/0x2,H=(screen[a8(0x158)]-F)/0x2,I=window['open']('','_blank','location=no,left='+G+a8(0x192)+H+a8(0x161)+E+a8(0x1d6)+F),J=document['createElement']('meta');J[a8(0x15c)]='viewport',J['content']=a8(0x1aa),I['document'][a8(0x190)][a8(0x1b7)](J),I['document']['body']['style'][a8(0x16e)]='#000',I['document']['body'][a8(0x1c0)][a8(0x1d0)]=a8(0x191),I['document']['body'][a8(0x1c0)][a8(0x182)]='hidden';const K=D['domElement'];K['style'][a8(0x1dd)]=E+'px',K['style']['height']=F+'px',I['document']['body'][a8(0x1b7)](K);switch(l['getValue']()){case a8(0x18a):D['render'](C,A),D['dispose']();break;case a8(0x1cf):const N=document[a8(0x1d9)]('div');N['style']['position']='absolute',N[a8(0x1c0)]['top']=a8(0x1bf),N[a8(0x1c0)][a8(0x17b)]=a8(0x1bf),N[a8(0x1c0)][a8(0x14a)]='white',N['style'][a8(0x1c7)]=a8(0x196),N['style']['fontSize']='12px',I['document']['body'][a8(0x1b7)](N);const O=new ViewportPathtracer(D);O[a8(0x1b2)](C,A),O[a8(0x177)](s[a8(0x16a)](),t['getValue']());const P=Math['max'](m,Math['min'](n,o['getValue']()));function Q(){const aa=a8;if(I[aa(0x171)]===!![])return;const R=Math[aa(0x19c)](O[aa(0x1d3)]())+0x1;R<P&&requestAnimationFrame(Q);O[aa(0x1b6)]();const S=Math[aa(0x19c)](R/P*0x64);N[aa(0x1cc)]=R+aa(0x15d)+P+aa(0x173)+S+'%\x20)',S===0x64&&(N[aa(0x1cc)]+='\x20✓');}Q();break;}this[a8(0x1dc)]();}),u[a6(0x1b7)](v['dom']);const w=new UIButton(e['getKey'](a6(0x14f)));w[a6(0x1e7)]('80px'),w['setMarginLeft']('8px'),w['onClick'](()=>this[a6(0x1dc)]()),u['appendChild'](w[a6(0x1a0)]);}[ab(0x1dc)](){const ac=ab;this[ac(0x1a0)]['remove']();}}function b(c,d){c=c-0x14a;const e=a();let f=e[c];return f;}class RenderVideoDialog{constructor(d,e){const ad=ab,f=document[ad(0x1d9)](ad(0x170));f['className']='Dialog',this[ad(0x1a0)]=f;const g=document[ad(0x1d9)](ad(0x170));g[ad(0x166)]='Dialog-background',g[ad(0x168)]('click',()=>this[ad(0x1dc)]()),f['appendChild'](g);const h=document[ad(0x1d9)](ad(0x170));h[ad(0x166)]=ad(0x16d),f[ad(0x1b7)](h);const i=document['createElement'](ad(0x170));i[ad(0x166)]=ad(0x1c6),i[ad(0x1cc)]=e[ad(0x179)]('menubar/render')+'\x20'+e[ad(0x179)]('menubar/render/video'),h['appendChild'](i);const j=document['createElement']('div');j[ad(0x166)]=ad(0x15b),h[ad(0x1b7)](j);function k(){const ae=ad;this[ae(0x189)](0x2*Math[ae(0x19c)](this[ae(0x16a)]()/0x2));}const l=new UIRow();j['appendChild'](l['dom']),l['add'](new UIText(e['getKey'](ad(0x14b)))['setClass']('Label'));const m=new UIInteger(0x400)[ad(0x1a1)]('center')['setWidth']('28px')[ad(0x1e8)](0x2)[ad(0x1ce)](k);l[ad(0x19f)](m),l[ad(0x19f)](new UIText('×')['setTextAlign'](ad(0x1cb))[ad(0x19a)](ad(0x1e1))[ad(0x1e7)](ad(0x1e1)));const n=new UIInteger(0x400)['setTextAlign']('center')['setWidth']('28px')['setStep'](0x2)['onChange'](k);l[ad(0x19f)](n);const o=new UIInteger(0x1e)['setTextAlign']('center')[ad(0x1e7)](ad(0x164));l['add'](o),l['add'](new UIText('fps')['setFontSize']('12px'));const p=new UIRow();p['add'](new UIText(e[ad(0x179)](ad(0x1e9)))['setClass']('Label')),j['appendChild'](p[ad(0x1a0)]);const q=new UIInteger(0xa);p['add'](q);const r=new UIRow();r[ad(0x19f)](new UIText(e[ad(0x179)](ad(0x17f)))['setClass']('Label')),j[ad(0x1b7)](r[ad(0x1a0)]);const s=new UISelect()[ad(0x1ad)]({'low':'Low','medium':ad(0x187),'high':ad(0x165),'ultra':'Ultra'})['setWidth'](ad(0x18f))[ad(0x189)]('high');r['add'](s);const t=document['createElement']('div');t['className']='Dialog-buttons',j['appendChild'](t);const u=new UIButton(e['getKey']('sidebar/project/render'));u['setWidth'](ad(0x195)),u['onClick'](async()=>{const af=ad,w=new APP['Player']();await w[af(0x1ba)](d['toJSON']()),w['setPixelRatio'](0x1),w[af(0x177)](m[af(0x16a)](),n['getValue']()),w[af(0x18c)](d['viewportColor']);const x=m[af(0x16a)]()/window['devicePixelRatio'],y=n[af(0x16a)]()/window['devicePixelRatio'],z=w[af(0x1eb)];z['style'][af(0x1dd)]=x+'px',z['style']['height']=y+'px';const A=(screen[af(0x1dd)]-x)/0x2,B=(screen[af(0x158)]-y)/0x2,C=window[af(0x1b1)]('',af(0x1b8),'location=no,left='+A+',top='+B+',width='+x+',height='+y),D=document[af(0x1d9)](af(0x1bc));D[af(0x15c)]='viewport',D['content']='width=device-width,\x20user-scalable=no,\x20minimum-scale=1.0,\x20maximum-scale=1.0',C[af(0x1b9)][af(0x190)]['appendChild'](D),C[af(0x1b9)][af(0x172)]['style']['background']=af(0x151),C['document']['body']['style'][af(0x1d0)]='0px',C['document']['body']['style']['overflow']=af(0x19b),C[af(0x1b9)]['body']['appendChild'](z);const E=document[af(0x1d9)](af(0x170));E['style'][af(0x1a9)]='absolute',E['style'][af(0x193)]='10px',E['style']['left']=af(0x1bf),E['style'][af(0x14a)]=af(0x180),E['style']['fontFamily']='system-ui',E['style']['fontSize']='12px',E[af(0x1c0)]['textShadow']=af(0x159),C['document'][af(0x172)]['appendChild'](E);const F=document[af(0x1d9)]('video');F[af(0x1dd)]=x,F[af(0x158)]=y,F['controls']=!![],F['loop']=!![],F['hidden']=!![],C['document'][af(0x172)]['appendChild'](F),C[af(0x168)](af(0x154),function(){const ag=af;F[ag(0x198)][ag(0x157)]('blob:')&&URL[ag(0x1a2)](F['src']);});const G=o['getValue'](),H=q[af(0x16a)](),I=H*G,J=[];let K=null;const L=new VideoEncoder({'output':(P,Q)=>{const ah=af;Q?.[ah(0x1da)]?.['description']&&(K=new Uint8Array(Q['decoderConfig']['description']));const R=new Uint8Array(P[ah(0x194)]);P[ah(0x1de)](R),J['push']({'data':R,'timestamp':P['timestamp'],'type':P[ah(0x1ec)]});},'error':P=>console['error'](af(0x162),P)}),M={'low':0x1e8480,'medium':0x4c4b40,'high':0x989680,'ultra':0x1312d00};L['configure']({'codec':af(0x1be),'width':m[af(0x16a)](),'height':n['getValue'](),'bitrate':M[s[af(0x16a)]()],'framerate':G,'avc':{'format':af(0x1e5)}});let N=0x0,O=![];for(let P=0x0;P<I;P++){if(C[af(0x171)]){O=!![];break;}w[af(0x17d)](N);const Q=await createImageBitmap(z),R=new VideoFrame(Q,{'timestamp':P*(0xf4240/G)});L[af(0x1ea)](R,{'keyFrame':P%G===0x0}),R[af(0x1dc)](),Q['close'](),N+=0x1/G;const S=Math['floor']((P+0x1)/I*0x64);E[af(0x1cc)]=P+0x1+'\x20/\x20'+I+'\x20(\x20'+S+af(0x14e);}if(!O){await L['flush'](),L['close'](),C[af(0x1b9)][af(0x172)]['removeChild'](z);const T=createMP4(J,K,m['getValue'](),n[af(0x16a)](),G);E[af(0x1cc)]=I+af(0x15d)+I+af(0x1db)+formatFileSize(T[af(0x194)])+'\x20✓',F[af(0x198)]=URL[af(0x1e3)](new Blob([T],{'type':'video/mp4'})),F[af(0x19b)]=![];}w['dispose'](),this[af(0x1dc)]();}),t[ad(0x1b7)](u['dom']);const v=new UIButton(e[ad(0x179)]('menubar/render/cancel'));v['setWidth'](ad(0x195)),v['setMarginLeft'](ad(0x1ab)),v[ad(0x156)](()=>this['close']()),t['appendChild'](v['dom']);}['close'](){const ai=ab;this[ai(0x1a0)][ai(0x1b3)]();}}function createMP4(d,e,f,g,h){const al=ab,j=0x15f90,k=j/h;function l(W){return new Uint8Array([W>>0x18&0xff,W>>0x10&0xff,W>>0x8&0xff,W&0xff]);}function m(W){return new Uint8Array([W>>0x8&0xff,W&0xff]);}function n(W){return new TextEncoder()['encode'](W);}function o(...W){const aj=b,X=W['reduce']((a0,a1)=>a0+a1[aj(0x176)],0x0),Y=new Uint8Array(X);let Z=0x0;for(const a0 of W){Y['set'](a0,Z),Z+=a0[aj(0x176)];}return Y;}function p(W,...X){const ak=b,Y=o(...X),Z=Y[ak(0x176)]+0x8;return o(l(Z),n(W),Y);}function q(W,X,Y,...Z){return p(W,new Uint8Array([X,Y>>0x10&0xff,Y>>0x8&0xff,Y&0xff]),...Z);}const r=p('ftyp',n(al(0x1d2)),l(0x200),n(al(0x1d2)),n('iso2'),n(al(0x1af)),n(al(0x1c1))),s=[],t=[];for(let W=0x0;W<d[al(0x176)];W++){s['push'](d[W]['data'][al(0x176)]);if(d[W]['type']===al(0x1a4))t[al(0x1cd)](W+0x1);}let u=0x8;for(const X of d)u+=X[al(0x1c4)][al(0x176)];const v=p(al(0x1af),new Uint8Array(0x6),m(0x1),new Uint8Array(0x10),m(f),m(g),l(0x480000),l(0x480000),l(0x0),m(0x1),new Uint8Array(0x20),m(0x18),new Uint8Array([0xff,0xff]),p('avcC',e)),w=q(al(0x150),0x0,0x0,l(0x1),v),x=q(al(0x1d5),0x0,0x0,l(0x1),l(d[al(0x176)]),l(k)),y=q('stsc',0x0,0x0,l(0x1),l(0x1),l(d[al(0x176)]),l(0x1)),z=[l(0x0),l(d['length'])];for(const Y of s)z['push'](l(Y));const A=q('stsz',0x0,0x0,...z),B=q('stco',0x0,0x0,l(0x1),l(0x0)),C=[l(t['length'])];for(const Z of t)C[al(0x1cd)](l(Z));const D=q(al(0x17a),0x0,0x0,...C),E=p('stbl',w,x,y,A,B,D),F=q(al(0x16c),0x0,0x0,l(0x1),q(al(0x178),0x0,0x1)),G=p(al(0x1a5),F),H=q('vmhd',0x0,0x1,new Uint8Array(0x8)),I=p('minf',H,G,E),J=q(al(0x167),0x0,0x0,l(0x0),n('vide'),new Uint8Array(0xc),n(al(0x155)),new Uint8Array(0x1)),K=d['length']*k,L=q(al(0x1bd),0x0,0x0,l(0x0),l(0x0),l(j),l(K),m(0x55c4),m(0x0)),M=p(al(0x1c9),L,J,I),N=q(al(0x1a6),0x0,0x3,l(0x0),l(0x0),l(0x1),l(0x0),l(K),new Uint8Array(0x8),m(0x0),m(0x0),m(0x0),m(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),l(f<<0x10),l(g<<0x10)),O=p('trak',N,M),P=q(al(0x16f),0x0,0x0,l(0x0),l(0x0),l(j),l(K),l(0x10000),m(0x100),new Uint8Array(0xa),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x10000),l(0x0),l(0x0),l(0x0),l(0x40000000),new Uint8Array(0x18),l(0x2)),Q=p('moov',P,O),R=r[al(0x176)]+Q['length'],S=new Uint8Array(Q);for(let a0=0x0;a0<S['length']-0x10;a0++){if(S[a0]===0x73&&S[a0+0x1]===0x74&&S[a0+0x2]===0x63&&S[a0+0x3]===0x6f){const a1=R+0x8;S[a0+0xc]=a1>>0x18&0xff,S[a0+0xd]=a1>>0x10&0xff,S[a0+0xe]=a1>>0x8&0xff,S[a0+0xf]=a1&0xff;break;}}const T=l(u),U=new Uint8Array(r['length']+S[al(0x176)]+u);let V=0x0;U['set'](r,V),V+=r[al(0x176)],U['set'](S,V),V+=S['length'],U['set'](T,V),U['set'](n('mdat'),V+0x4),V+=0x8;for(const a2 of d){U[al(0x181)](a2['data'],V),V+=a2['data'][al(0x176)];}return U;}function formatFileSize(d,e=0x400){const am=ab;if(d===0x0)return'0B';const f=[d,d/e,d/e/e][am(0x1bb)](),g=['B','KB','MB']['reverse'](),h=f[am(0x1d8)](i=>i>=0x1);return new Intl[(am(0x1c8))]('en-us',{'useGrouping':!![],'maximumFractionDigits':0x1})[am(0x18e)](f[h])+g[h];}export{MenubarRender};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){const j=b,f=d();while(!![]){try{const g=-parseInt(j(
|
|
1
|
+
(function(d,e){const j=b,f=d();while(!![]){try{const g=-parseInt(j(0x1dd))/0x1+-parseInt(j(0x1e5))/0x2+-parseInt(j(0x1d5))/0x3*(-parseInt(j(0x1d7))/0x4)+-parseInt(j(0x1dc))/0x5*(parseInt(j(0x1d6))/0x6)+parseInt(j(0x1e4))/0x7+-parseInt(j(0x1d3))/0x8+parseInt(j(0x1e3))/0x9*(parseInt(j(0x1e1))/0xa);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xddf2c));import*as c from'three';function a(){const o=['340sfIjTJ','autosave','setTextDecoration','add','none','20xQDqGh','486688PaNusB','text','signals','savingFinished','1195550NCbzHJ','title','18VdyOEv','10325308VJFEHa','636938DnNWGX','setClass','6914264ERYfoL','config','61734gvBniK','1327116msdbPR'];a=function(){return o;};return a();}import{UIPanel,UIText}from'./libs/ui.js';function b(c,d){c=c-0x1d2;const e=a();let f=e[c];return f;}import{UIBoolean}from'./libs/ui.three.js';function MenubarStatus(d){const k=b,e=d['strings'],f=new UIPanel();f['setClass']('menu\x20right');const g=new UIBoolean(d['config']['getKey'](k(0x1d8)),e['getKey']('menubar/status/autosave'));g[k(0x1de)]['setColor']('#888'),g['onChange'](function(){const l=k,i=this['getValue']();d[l(0x1d4)]['setKey']('autosave',i),i===!![]&&d['signals']['sceneGraphChanged']['dispatch']();}),f['add'](g),d[k(0x1df)]['savingStarted'][k(0x1da)](function(){const m=k;g[m(0x1de)]['setTextDecoration']('underline');}),d[k(0x1df)][k(0x1e0)][k(0x1da)](function(){const n=k;g['text'][n(0x1d9)](n(0x1db));});const h=new UIText('r'+c['REVISION']);return h[k(0x1d2)](k(0x1e2)),h['setOpacity'](0.5),f[k(0x1da)](h),f;}export{MenubarStatus};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const o=b,e=c();while(!![]){try{const f
|
|
1
|
+
(function(c,d){const o=b,e=c();while(!![]){try{const f=-parseInt(o(0x1aa))/0x1+parseInt(o(0x1bc))/0x2*(-parseInt(o(0x1c8))/0x3)+-parseInt(o(0x1b1))/0x4*(parseInt(o(0x1bf))/0x5)+parseInt(o(0x1b9))/0x6*(-parseInt(o(0x1b0))/0x7)+parseInt(o(0x1d0))/0x8*(-parseInt(o(0x1b3))/0x9)+parseInt(o(0x1c1))/0xa*(-parseInt(o(0x1c4))/0xb)+parseInt(o(0x1b8))/0xc;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xdf7b2));function b(c,d){c=c-0x1a4;const e=a();let f=e[c];return f;}import{UIHorizontalRule,UIPanel,UIRow}from'./libs/ui.js';function MenubarView(c){const p=b,d=c[p(0x1a9)],e=c[p(0x1be)],f=new UIPanel();f[p(0x1ca)](p(0x1c3));const g=new UIPanel();g['setClass']('title'),g['setTextContent'](e['getKey'](p(0x1b6))),f[p(0x1c6)](g);const h=new UIPanel();h['setClass'](p(0x1bd)),f['add'](h);const i={'gridHelper':!![],'cameraHelpers':!![],'lightHelpers':!![],'skeletonHelpers':!![]};let j=new UIRow()[p(0x1ac)](p(0x1cf))['addClass']('toggle')['setTextContent'](e[p(0x1cd)](p(0x1ce)))['onClick'](function(){const q=p;i[q(0x1c5)]=!i['gridHelper'],this['toggleClass']('toggle-on',i[q(0x1c5)]),d[q(0x1ae)]['dispatch'](i);})['toggleClass'](p(0x1cb),i[p(0x1c5)]);return h['add'](j),j=new UIRow()['addClass'](p(0x1cf))['addClass'](p(0x1bb))[p(0x1a5)](e['getKey']('menubar/view/cameraHelpers'))['onClick'](function(){const r=p;i['cameraHelpers']=!i[r(0x1ab)],this['toggleClass']('toggle-on',i[r(0x1ab)]),d['showHelpersChanged']['dispatch'](i);})['toggleClass'](p(0x1cb),i['cameraHelpers']),h['add'](j),j=new UIRow()[p(0x1ac)](p(0x1cf))['addClass']('toggle')[p(0x1a5)](e['getKey'](p(0x1a4)))[p(0x1b7)](function(){const s=p;i[s(0x1ba)]=!i['lightHelpers'],this['toggleClass']('toggle-on',i['lightHelpers']),d[s(0x1ae)][s(0x1a8)](i);})[p(0x1c7)]('toggle-on',i['lightHelpers']),h['add'](j),j=new UIRow()['addClass'](p(0x1cf))[p(0x1ac)]('toggle')['setTextContent'](e[p(0x1cd)]('menubar/view/skeletonHelpers'))[p(0x1b7)](function(){const t=p;i['skeletonHelpers']=!i[t(0x1c9)],this[t(0x1c7)]('toggle-on',i['skeletonHelpers']),d['showHelpersChanged']['dispatch'](i);})['toggleClass']('toggle-on',i['skeletonHelpers']),h['add'](j),d[p(0x1b4)]['add'](function(){const u=p;d['showHelpersChanged'][u(0x1a8)](i);}),h['add'](new UIHorizontalRule()),j=new UIRow(),j[p(0x1ca)](p(0x1cf)),j['setTextContent'](e[p(0x1cd)](p(0x1d1))),j[p(0x1b7)](function(){const v=p;if(document['fullscreenElement']===null)document[v(0x1af)]['requestFullscreen']();else document[v(0x1cc)]&&document[v(0x1cc)]();if(document['webkitFullscreenElement']===null)document['documentElement'][v(0x1a7)]();else document['webkitExitFullscreen']&&document['webkitExitFullscreen']();}),h[p(0x1c6)](j),'xr'in navigator&&(p(0x1c0)in navigator['xr']?d[p(0x1b2)][p(0x1a8)](p(0x1b5)):navigator['xr'][p(0x1c2)]('immersive-ar')['then'](function(k){const w=p;if(k){const l=new UIRow();l[w(0x1ca)]('option'),l['setTextContent']('AR'),l['onClick'](function(){const x=w;d['enterXR'][x(0x1a8)]('immersive-ar');}),h['add'](l);}else navigator['xr']['isSessionSupported'](w(0x1ad))[w(0x1a6)](function(m){const y=w;if(m){const n=new UIRow();n['setClass']('option'),n['setTextContent']('VR'),n[y(0x1b7)](function(){const z=y;d['enterXR']['dispatch'](z(0x1ad));}),h[y(0x1c6)](n);}});})),f;}export{MenubarView};function a(){const A=['4mrpQuV','options','strings','425105MGaCvK','offerSession','4710mQqirO','isSessionSupported','menu','12353adnYLK','gridHelper','add','toggleClass','1138926jNUAkG','skeletonHelpers','setClass','toggle-on','exitFullscreen','getKey','menubar/view/gridHelper','option','4096FahsfH','menubar/view/fullscreen','menubar/view/lightHelpers','setTextContent','then','webkitRequestFullscreen','dispatch','signals','973690GELtPp','cameraHelpers','addClass','immersive-vr','showHelpersChanged','documentElement','10721375NoRasq','8EmooQj','offerXR','22671wLrxbw','helperAdded','immersive-ar','menubar/view','onClick','74024160icQqIj','6aKHwLJ','lightHelpers','toggle'];a=function(){return A;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(c,d){const h=b,e=c();while(!![]){try{const f=-parseInt(h(0x173))/0x1*(parseInt(h(0x176))/0x2)+parseInt(h(0x16e))/0x3*(-parseInt(h(0x16a))/0x4)+-parseInt(h(0x175))/0x5+-parseInt(h(0x171))/0x6*(parseInt(h(0x16b))/0x7)+parseInt(h(0x16d))/0x8*(-parseInt(h(0x170))/0x9)+parseInt(h(0x174))/0xa*(parseInt(h(0x169))/0xb)+-parseInt(h(0x16c))/0xc*(-parseInt(h(0x177))/0xd);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x65a02));import{UIPanel}from'./libs/ui.js';import{MenubarAdd}from'./Menubar.Add.js';function b(c,d){c=c-0x169;const e=a();let f=e[c];return f;}import{MenubarEdit}from'./Menubar.Edit.js';import{MenubarFile}from'./Menubar.File.js';import{MenubarView}from'./Menubar.View.js';import{MenubarRender}from'./Menubar.Render.js';import{MenubarHelp}from'./Menubar.Help.js';import{MenubarStatus}from'./Menubar.Status.js';function a(){const j=['112DPvyPc','2292ohKrfe','648CbwBmH','117345gAUTdc','add','6219cNsQZi','60870iQQUjv','setId','410359mCPnro','488980eGpwet','1114740YSZVSK','2DrnYCb','133549zghKoX','11CEBUGb','76EACGfm'];a=function(){return j;};return a();}function Menubar(c){const i=b,d=new UIPanel();return d[i(0x172)]('menubar'),d['add'](new MenubarFile(c)),d['add'](new MenubarEdit(c)),d['add'](new MenubarAdd(c)),d['add'](new MenubarView(c)),d[i(0x16f)](new MenubarRender(c)),d['add'](new MenubarHelp(c)),d[i(0x16f)](new MenubarStatus(c)),d;}export{Menubar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const h=b,e=c();while(!![]){try{const f
|
|
1
|
+
function a(){const n=['dom','976380DDUREB','play','absolute','clientWidth','signals','resize','clientHeight','3756234rrCtRZ','add','12kBXfMJ','1447257mMnJHI','setDisplay','none','startPlayer','8PjaIcl','18101439fiUpgP','windowResize','toJSON','3166310qiVWPA','setSize','appendChild','907498qunsss','8700706Qyxjez','stop','setPosition'];a=function(){return n;};return a();}(function(c,d){const h=b,e=c();while(!![]){try{const f=parseInt(h(0x1df))/0x1+parseInt(h(0x1e4))/0x2+parseInt(h(0x1ee))/0x3*(parseInt(h(0x1ed))/0x4)+parseInt(h(0x1dc))/0x5+parseInt(h(0x1eb))/0x6+-parseInt(h(0x1e0))/0x7+-parseInt(h(0x1f2))/0x8*(parseInt(h(0x1f3))/0x9);if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0xcf091));import{UIPanel}from'./libs/ui.js';import{APP}from'./libs/app.js';function b(c,d){c=c-0x1da;const e=a();let f=e[c];return f;}function Player(c){const i=b,d=c[i(0x1e8)],e=new UIPanel();e['setId']('player'),e[i(0x1e2)](i(0x1e6)),e[i(0x1ef)]('none');const f=new APP['Player']();return e[i(0x1e3)][i(0x1de)](f[i(0x1e3)]),window['addEventListener'](i(0x1e9),function(){const j=i;f['setSize'](e[j(0x1e3)]['clientWidth'],e[j(0x1e3)]['clientHeight']);}),d[i(0x1da)][i(0x1ec)](function(){const k=i;f[k(0x1dd)](e['dom']['clientWidth'],e['dom']['clientHeight']);}),d[i(0x1f1)]['add'](async function(){const l=i;e['setDisplay'](''),await f['load'](c[l(0x1db)]()),f[l(0x1dd)](e['dom'][l(0x1e7)],e['dom'][l(0x1ea)]),f[l(0x1e5)]();}),d['stopPlayer']['add'](function(){const m=i;e[m(0x1ef)](m(0x1f0)),f[m(0x1e1)](),f['dispose']();}),e;}export{Player};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const p=b,e=c();while(!![]){try{const f
|
|
1
|
+
function b(c,d){c=c-0x1d6;const e=a();let f=e[c];return f;}(function(c,d){const p=b,e=c();while(!![]){try{const f=parseInt(p(0x1e0))/0x1*(-parseInt(p(0x1ef))/0x2)+-parseInt(p(0x1ec))/0x3+parseInt(p(0x1e3))/0x4+-parseInt(p(0x1e2))/0x5+parseInt(p(0x1e8))/0x6*(parseInt(p(0x1e1))/0x7)+parseInt(p(0x1de))/0x8*(parseInt(p(0x1db))/0x9)+parseInt(p(0x1d8))/0xa;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x1bff1));import{UIElement}from'./libs/ui.js';function Resizer(c){const q=b,d=c['signals'],e=document['createElement']('div');e['id']=q(0x1df);function f(i){const r=q;if(i[r(0x1ee)]===![])return;e['ownerDocument']['addEventListener']('pointermove',h),e['ownerDocument']['addEventListener'](r(0x1d7),g);}function g(i){const s=q;if(i[s(0x1ee)]===![])return;e['ownerDocument']['removeEventListener'](s(0x1e9),h),e[s(0x1e4)]['removeEventListener'](s(0x1d7),g);}function h(i){const t=q;if(i[t(0x1ee)]===![])return;const j=document['body']['offsetWidth'],k=i[t(0x1e5)],l=k<0x0?0x0:k>j?j:k,m=Math[t(0x1d6)](0x14f,j-l);e[t(0x1ed)][t(0x1e7)]=m+'px',document['getElementById']('sidebar')['style']['width']=m+'px',document['getElementById'](t(0x1ea))[t(0x1ed)]['right']=m+'px',document['getElementById'](t(0x1da))['style']['right']=m+'px',document['getElementById']('viewport')[t(0x1ed)]['right']=m+'px',document['getElementById'](t(0x1d9))[t(0x1ed)]['right']=m+'px',document[t(0x1dc)](t(0x1eb))[t(0x1ed)]['right']=m+'px';const n=document[t(0x1dc)]('toolbar'),o=j-m;n[t(0x1ed)]['left']=o/0x2+'px',d[t(0x1dd)][t(0x1e6)]();}return e['addEventListener']('pointerdown',f),new UIElement(e);}function a(){const u=['87927gUwtkY','562885lTelmb','589252crnoHC','ownerDocument','clientX','dispatch','right','18FFnnfE','pointermove','player','animation-resizer','550500ULraRG','style','isPrimary','6MmNQXZ','max','pointerup','2512910DkWwAv','animation','script','576apdiXz','getElementById','windowResize','11200WAcETG','resizer','38379SftDYd'];a=function(){return u;};return a();}export{Resizer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){const U=b,f=d();while(!![]){try{const g
|
|
1
|
+
(function(d,e){const U=b,f=d();while(!![]){try{const g=parseInt(U(0x1f4))/0x1+parseInt(U(0x1f6))/0x2+parseInt(U(0x1d0))/0x3+-parseInt(U(0x1f8))/0x4+-parseInt(U(0x1cd))/0x5*(parseInt(U(0x1d3))/0x6)+-parseInt(U(0x208))/0x7+-parseInt(U(0x1c7))/0x8*(-parseInt(U(0x1cf))/0x9);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x5cd46));import{UIElement,UIPanel,UIText}from'./libs/ui.js';import{SetScriptValueCommand}from'./commands/SetScriptValueCommand.js';import{SetMaterialValueCommand}from'./commands/SetMaterialValueCommand.js';import c from'./libs/tern-threejs/build-defs.js';function b(c,d){c=c-0x1b7;const e=a();let f=e[c];return f;}function a(){const ae=['height','change','baseURI','script/title/vertexShader','textContent','defs','setOption','source','server','showType','addLineClass','editScript:\x20Unknown\x20script','lineNumber','3px','attributes','background','glsl','createElementNS','absolute','880RCtvbO','stroke','rendererCreated','parse','includes','add','2102630qRKLOX','programs','37089VLUgwg','307461qXYpmz','log','selectName','6WJxOIi','theme','addLineWidget','cursorActivity','length','shift','name','setColor','warn','scriptChanged','updatable','addEventListener','setId','materialChanged','prefix','message','split','svg','errorLine','\x20/\x20','1px','programInfo','setPosition','material','editorCleared','rename','uniforms','http://www.w3.org/2000/svg','vertexShader','execute','pointer','max','reset','465714sMUFaN','none','144712tHmRKY','fragmentShader','71424yeqelo','script','path','setAttribute','setBackgroundColor','key','setRight','complete','push','setValue','stringify','mode','../build/three.core.js','exec','appendChild','diagnostics','1926785udgTCL','setDisplay','javascript','M\x2012,12\x20L\x2022,22\x20M\x2022,12\x2012,22','setTitle:\x20Unknown\x20script','objectChanged','div','defines','operation','script/title/fragmentShader','removeLineWidget','object','scriptRemoved'];a=function(){return ae;};return a();}function Script(d){const V=b,e=d['signals'],f=d['strings'],g=new UIPanel();g[V(0x1df)](V(0x1f9)),g['setPosition']('absolute'),g[V(0x1fc)]('#272822'),g['setDisplay'](V(0x1f5));if(typeof CodeMirror==='undefined')return e['editorCleared']['add'](function(){g['setDisplay']('none');}),g;const h=new UIPanel();h['setPadding']('10px'),g[V(0x1cc)](h);const i=new UIText()[V(0x1da)]('#fff');h[V(0x1cc)](i);const j=(function(){const W=V,z=document[W(0x1c5)]('http://www.w3.org/2000/svg',W(0x1e4));z[W(0x1fb)]('width',0x20),z['setAttribute'](W(0x215),0x20);const A=document[W(0x1c5)](W(0x1ee),W(0x1fa));return A[W(0x1fb)]('d',W(0x20b)),A[W(0x1fb)](W(0x1c8),'#fff'),z[W(0x206)](A),z;}()),k=new UIElement(j);k[V(0x1e9)](V(0x1c6)),k['setTop'](V(0x1c1)),k[V(0x1fe)](V(0x1e7)),k['setCursor'](V(0x1f1)),k['onClick'](function(){const X=V;g[X(0x209)]('none');}),h[V(0x1cc)](k);let l;e[V(0x1c9)][V(0x1cc)](function(z){l=z;});let m,n,o,p;const q=CodeMirror(g['dom'],{'value':'','lineNumbers':!![],'matchBrackets':!![],'indentWithTabs':!![],'tabSize':0x4,'indentUnit':0x4,'hintOptions':{'completeSingle':![]}});q[V(0x1ba)](V(0x1d4),'monokai'),q['on'](V(0x216),function(){if(q['state']['focused']===![])return;clearTimeout(m),m=setTimeout(function(){const Y=b,z=q['getValue']();if(!u(z))return;if(typeof o===Y(0x213)){z!==o[Y(0x1bb)]&&d['execute'](new SetScriptValueCommand(d,p,o,'source',z));return;}if(o!==Y(0x1e8))return;const A=JSON[Y(0x1ca)](z);if(JSON[Y(0x202)](p['material'][Y(0x20f)])!==JSON[Y(0x202)](A[Y(0x20f)])){const B=new SetMaterialValueCommand(d,p,'defines',A['defines']);B['updatable']=![],d['execute'](B);}if(JSON['stringify'](p['material'][Y(0x1ed)])!==JSON[Y(0x202)](A['uniforms'])){const C=new SetMaterialValueCommand(d,p,Y(0x1ed),A['uniforms']);C['updatable']=![],d[Y(0x1f0)](C);}if(JSON['stringify'](p['material']['attributes'])!==JSON['stringify'](A[Y(0x1c2)])){const D=new SetMaterialValueCommand(d,p,'attributes',A[Y(0x1c2)]);D[Y(0x1dd)]=![],d['execute'](D);}},0x12c);});const r=q['getWrapperElement']();r[V(0x1de)]('keydown',function(z){z['stopPropagation']();});const s=[],t=[],u=function(z){const Z=V;let A,B=[];return q[Z(0x210)](function(){const a0=Z;while(s[a0(0x1d7)]>0x0){q['removeLineClass'](s['shift'](),a0(0x1c3),a0(0x1e5));}while(t[a0(0x1d7)]>0x0){q[a0(0x212)](t[a0(0x1d8)]());}switch(n){case'javascript':try{const E=esprima['parse'](z,{'tolerant':!![]});B=E['errors'];}catch(F){B['push']({'lineNumber':F[a0(0x1c0)]-0x1,'message':F[a0(0x1e2)]});}for(let G=0x0;G<B[a0(0x1d7)];G++){const H=B[G];H[a0(0x1e2)]=H['message']['replace'](/Line [0-9]+: /,'');}break;case'json':B=[],jsonlint['parseError']=function(I,J){const a1=a0;I=I[a1(0x1e3)]('\x0a')[0x3],B['push']({'lineNumber':J['loc']['first_line']-0x1,'message':I});};try{jsonlint[a0(0x1ca)](z);}catch(I){}break;case a0(0x1c4):p[a0(0x1ea)][o]=z,p[a0(0x1ea)]['needsUpdate']=!![],e[a0(0x1e0)]['dispatch'](p,0x0);const C=l['info'][a0(0x1ce)];A=!![];const D=/^(?:ERROR|WARNING): \d+:(\d+): (.*)/g;for(let J=0x0,K=C['length'];J!==K;++J){const L=C[J][a0(0x207)];if(L===undefined||L[a0(0x1ea)]!==p['material'])continue;if(!L['runnable'])A=![];const M=L[o],N=M[a0(0x1e1)]['split'](/\r\n|\r|\n/)[a0(0x1d7)];while(!![]){const O=D['exec'](M[a0(0x1d1)]);if(O===null)break;B['push']({'lineNumber':O[0x1]-N,'message':O[0x2]});}break;}}for(let P=0x0;P<B['length'];P++){const Q=B[P],R=document['createElement'](a0(0x20e));R['className']='esprima-error',R[a0(0x1b8)]=Q['message'];const S=Math[a0(0x1f2)](Q['lineNumber'],0x0);s[a0(0x200)](S),q[a0(0x1be)](S,'background','errorLine');const T=q[a0(0x1d5)](S,R);t[a0(0x200)](T);}return A!==undefined?A:B['length']===0x0;});},v=new CodeMirror['TernServer']({'caseInsensitive':!![]});let w=![];async function x(){const a2=V;if(w)return;w=!![];try{const z=new URL(a2(0x204),document[a2(0x217)])['href'],A=await(await fetch(z))['text']();v['server'][a2(0x1b9)]['push'](c(A)),v[a2(0x1bc)][a2(0x1f3)]();}catch(B){console[a2(0x1db)]('Script:\x20Failed\x20to\x20build\x20three.js\x20autocomplete\x20defs.',B);}}q['setOption']('extraKeys',{'Ctrl-Space':function(z){const a3=V;v[a3(0x1ff)](z);},'Ctrl-I':function(z){const a4=V;v[a4(0x1bd)](z);},'Ctrl-O':function(z){v['showDocs'](z);},'Alt-.':function(z){v['jumpToDef'](z);},'Alt-,':function(z){v['jumpBack'](z);},'Ctrl-Q':function(z){const a5=V;v[a5(0x1ec)](z);},'Ctrl-.':function(z){const a6=V;v[a6(0x1d2)](z);}}),q['on'](V(0x1d6),function(z){const a7=V;if(n!==a7(0x20a))return;v['updateArgHints'](z);}),q['on']('keypress',function(z,A){const a8=V;if(n!==a8(0x20a))return;/[\w\.]/[a8(0x205)](A[a8(0x1fd)])&&v[a8(0x1ff)](z);}),e[V(0x1eb)]['add'](function(){const a9=V;g[a9(0x209)](a9(0x1f5));});function y(z,A){const aa=V;if(typeof A===aa(0x213))i[aa(0x201)](z['name']+aa(0x1e6)+A[aa(0x1d9)]);else switch(A){case aa(0x1ef):i[aa(0x201)](z[aa(0x1ea)]['name']+aa(0x1e6)+f['getKey'](aa(0x1b7)));break;case aa(0x1f7):i['setValue'](z['material'][aa(0x1d9)]+aa(0x1e6)+f['getKey'](aa(0x211)));break;case aa(0x1e8):i['setValue'](z['material']['name']+aa(0x1e6)+f['getKey']('script/title/programInfo'));break;default:throw new Error(aa(0x20c));}}return e['editScript']['add'](function(z,A){const ab=V;let B,C;if(typeof A==='object')B=ab(0x20a),C=A['source'];else switch(A){case'vertexShader':B='glsl',C=z['material']['vertexShader']||'';break;case ab(0x1f7):B='glsl',C=z['material'][ab(0x1f7)]||'';break;case'programInfo':B='json';const D={'defines':z['material']['defines'],'uniforms':z[ab(0x1ea)]['uniforms'],'attributes':z['material'][ab(0x1c2)]};C=JSON['stringify'](D,null,'\x09');break;default:throw new Error(ab(0x1bf));}y(z,A),n=B,o=A,p=z;if(B===ab(0x20a))x();g[ab(0x209)](''),q[ab(0x201)](C),q['clearHistory']();if(B==='json')B={'name':'javascript','json':!![]};q[ab(0x1ba)](ab(0x203),B);}),e[V(0x214)][V(0x1cc)](function(z){const ac=V;o===z&&g[ac(0x209)](ac(0x1f5));}),e[V(0x20d)][V(0x1cc)](function(z){const ad=V;if(z!==p)return;if(['programInfo','vertexShader','fragmentShader'][ad(0x1cb)](o))return;y(p,o);}),e[V(0x1dc)][V(0x1cc)](function(z){z===o&&y(p,o);}),e['materialChanged']['add'](function(z){if(z!==p)return;y(p,o);}),g;}export{Script};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const m=b;(function(d,e){const l=b,f=d();while(!![]){try{const g=parseInt(l(0x123))/0x1*(parseInt(l(0x119))/0x2)+parseInt(l(0x126))/0x3*(parseInt(l(0x112))/0x4)+-parseInt(l(0x129))/0x5+-parseInt(l(0x120))/0x6*(parseInt(l(0x125))/0x7)+parseInt(l(0x11c))/0x8+parseInt(l(0x118))/0x9+-parseInt(l(0x110))/0xa;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x75cb5));import*as c from'three';const mouse=new c[(m(0x12a))](),raycaster=new c['Raycaster']();function a(){const v=['length','1239DMRtzx','3777vKbYDo','selected','intersectObjects','442325iAQuYE','Vector2','getPointerIntersects','push','traverseVisible','8147980qbSfZK','dispatch','152DakUTR','indexOf','object','signals','setFromCamera','config','3431745yVmsSb','2vskhuI','set','select','5784448MVhfdh','name','userData','scene','8616bqnNwt','sceneHelpers','editor','487717GMbXkO'];a=function(){return v;};return a();}function b(c,d){c=c-0x10f;const e=a();let f=e[c];return f;}class Selector{constructor(d){const n=m,e=d['signals'];this[n(0x122)]=d,this[n(0x115)]=e,e['intersectionsDetected']['add'](f=>{const o=n;if(f['length']>0x0){const g=[];for(let j=0x0;j<f[o(0x124)];j++){let k=f[j][o(0x114)];k[o(0x11e)]['object']!==undefined&&(k=k['userData']['object']),g[o(0x113)](k)===-0x1&&g['push'](k);}const h=g[o(0x113)](d[o(0x127)]);h!==-0x1&&h<g['length']-0x1?this['select'](g[h+0x1]):this[o(0x11b)](g[0x0]);}else this[o(0x11b)](null);});}['getIntersects'](d){const p=m,e=[];return this['editor'][p(0x11f)][p(0x10f)](function(f){const q=p;e[q(0x12c)](f);}),this[p(0x122)][p(0x121)]['traverseVisible'](function(f){const r=p;if(f[r(0x11d)]==='picker')e['push'](f);}),d[p(0x128)](e,![]);}[m(0x12b)](d,e){const s=m;return mouse[s(0x11a)](d['x']*0x2-0x1,-(d['y']*0x2)+0x1),raycaster[s(0x116)](mouse,e),this['getIntersects'](raycaster);}['select'](d){const t=m;if(this[t(0x122)][t(0x127)]===d)return;let e=null;d!==null&&(e=d['uuid']),this['editor'][t(0x127)]=d,this['editor'][t(0x117)]['setKey']('selected',e),this['signals']['objectSelected'][t(0x111)](d);}['deselect'](){const u=m;this[u(0x11b)](null);}}export{Selector};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){const z=b,f=d();while(!![]){try{const g=parseInt(z(
|
|
1
|
+
(function(d,e){const z=b,f=d();while(!![]){try{const g=parseInt(z(0x1cd))/0x1*(parseInt(z(0x1c0))/0x2)+-parseInt(z(0x1d2))/0x3+-parseInt(z(0x1b9))/0x4*(-parseInt(z(0x1c1))/0x5)+parseInt(z(0x1b8))/0x6*(-parseInt(z(0x1c8))/0x7)+parseInt(z(0x1c7))/0x8+-parseInt(z(0x1ce))/0x9*(parseInt(z(0x1cf))/0xa)+parseInt(z(0x1d3))/0xb*(parseInt(z(0x1b6))/0xc);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xea9e4));import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';function b(c,d){c=c-0x1b6;const e=a();let f=e[c];return f;}import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const A=b,f=d['strings'],g=d[A(0x1c4)],h=new UIDiv(),i=e['geometry'],j=i['parameters'],k=new UIRow(),l=new UINumber()[A(0x1bd)](0x3)['setValue'](j['width'])[A(0x1c9)](x);k['add'](new UIText(f['getKey'](A(0x1cc)))['setClass'](A(0x1ba))),k[A(0x1b7)](l),h[A(0x1b7)](k);const m=new UIRow(),n=new UINumber()[A(0x1bd)](0x3)['setValue'](j[A(0x1d0)])['onChange'](x);m['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/height'))[A(0x1cb)](A(0x1ba))),m[A(0x1b7)](n),h['add'](m);const o=new UIRow(),p=new UINumber()['setPrecision'](0x3)[A(0x1c2)](j['depth'])[A(0x1c9)](x);o['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/depth'))['setClass']('Label')),o[A(0x1b7)](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j[A(0x1be)])[A(0x1c6)](0x1,Infinity)['onChange'](x);q['add'](new UIText(f[A(0x1c3)](A(0x1d4)))[A(0x1cb)]('Label')),q['add'](r),h[A(0x1b7)](q);const s=new UIRow(),t=new UIInteger(j[A(0x1bb)])[A(0x1c6)](0x1,Infinity)['onChange'](x);s['add'](new UIText(f['getKey']('sidebar/geometry/box_geometry/heightseg'))['setClass'](A(0x1ba))),s['add'](t),h[A(0x1b7)](s);const u=new UIRow(),v=new UIInteger(j['depthSegments'])[A(0x1c6)](0x1,Infinity)['onChange'](x);u[A(0x1b7)](new UIText(f['getKey'](A(0x1bc)))['setClass'](A(0x1ba))),u['add'](v),h['add'](u);function w(){const B=A,y=e['geometry']['parameters'];l['setValue'](y['width']),n['setValue'](y['height']),p[B(0x1c2)](y[B(0x1d1)]),r['setValue'](y['widthSegments']),t[B(0x1c2)](y[B(0x1bb)]),v['setValue'](y[B(0x1ca)]);}g[A(0x1c5)][A(0x1b7)](function(y){y===e&&w();});function x(){const C=A;d['execute'](new SetGeometryCommand(d,e,new c['BoxGeometry'](l['getValue'](),n[C(0x1bf)](),p[C(0x1bf)](),r['getValue'](),t[C(0x1bf)](),v[C(0x1bf)]())));}return h;}export{GeometryParametersPanel};function a(){const D=['20LVjewm','Label','heightSegments','sidebar/geometry/box_geometry/depthseg','setPrecision','widthSegments','getValue','4HOGZdB','1105755qMYIRn','setValue','getKey','signals','geometryChanged','setRange','7189560nrKOQf','91Rrhgxs','onChange','depthSegments','setClass','sidebar/geometry/box_geometry/width','521167oPeAYb','4792059TJXuac','10dNBflw','height','depth','1865307AaiKAN','11bmXodk','sidebar/geometry/box_geometry/widthseg','2848236kAFirI','add','539502XKIBXG'];a=function(){return D;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(c,d){const B=b,e=c();while(!![]){try{const f
|
|
1
|
+
(function(c,d){const B=b,e=c();while(!![]){try{const f=-parseInt(B(0xf3))/0x1*(-parseInt(B(0xee))/0x2)+parseInt(B(0x102))/0x3+-parseInt(B(0xec))/0x4+-parseInt(B(0xf8))/0x5+-parseInt(B(0x100))/0x6+parseInt(B(0x106))/0x7+parseInt(B(0xef))/0x8;if(f===d)break;else e['push'](e['shift']());}catch(g){e['push'](e['shift']());}}}(a,0x68cfd));import{UIRow,UIText,UISpan,UIBreak,UICheckbox}from'./libs/ui.js';function SidebarGeometryBufferGeometry(c){const C=b,d=c[C(0xfd)],e=c[C(0xf0)],f=new UIRow();function g(h){const D=C;if(h===null)return;if(h===undefined)return;const i=h[D(0x103)];if(i){f['clear'](),f['setDisplay']('block');const j=new UIRow(),k=new UIText(d['getKey']('sidebar/geometry/buffer_geometry/attributes'))[D(0xf2)]('Label');j['add'](k);const l=new UISpan()[D(0xea)](D(0xf5))[D(0xf6)](D(0xfa))[D(0xf4)](D(0xe7));j[D(0xf9)](l);const m=i['index'];m!==null&&(l[D(0xf9)](new UIText(d[D(0x10a)]('sidebar/geometry/buffer_geometry/index'))[D(0xf4)]('70px')),l['add'](new UIText(c['utils'][D(0xed)](m['count']))['setFontSize']('12px')),l['add'](new UIBreak()));const n=i['attributes'];for(const q in n){const r=n[q];l[D(0xf9)](new UIText(q)[D(0xf4)](D(0x104)));let s=c[D(0x101)][D(0xed)](r[D(0x108)])+'\x20('+r['itemSize']+')';r[D(0xfb)]&&(s+='\x20('+r[D(0x107)][D(0xf7)]+')'),l[D(0xf9)](new UIText(s)[D(0xfe)]('12px')),l['add'](new UIBreak());}f[D(0xf9)](j);const o=i[D(0xff)],p=Object[D(0xe9)](o)[D(0xf1)]>0x0;if(p===!![]){const t=new UIRow(),u=new UIText(d[D(0x10a)](D(0x105)))['setClass']('Label');t['add'](u);const v=new UISpan()['setDisplay'](D(0xf5))[D(0xf6)](D(0xfa))[D(0xf4)]('160px');t['add'](v);for(const z in o){const A=o[z];v[D(0xf9)](new UIText(z)[D(0xf4)]('70px')),v[D(0xf9)](new UIText(c['utils'][D(0xed)](A[D(0xf1)]))['setFontSize']('12px')),v['add'](new UIBreak());}f[D(0xf9)](t);const w=new UIRow(),x=new UIText(d[D(0x10a)](D(0xeb)))[D(0xf2)](D(0x109));w[D(0xf9)](x);const y=new UICheckbox()[D(0xe8)](i['morphTargetsRelative'])['setDisabled'](!![]);w[D(0xf9)](y),f[D(0xf9)](w);}}else f[D(0xea)](D(0xfc));}return e['objectSelected'][C(0xf9)](g),e['geometryChanged']['add'](g),f;}function b(c,d){c=c-0xe7;const e=a();let f=e[c];return f;}export{SidebarGeometryBufferGeometry};function a(){const E=['1249695iNXDSi','geometry','70px','sidebar/geometry/buffer_geometry/morphAttributes','1172437BrDhfx','data','count','Label','getKey','160px','setValue','keys','setDisplay','sidebar/geometry/buffer_geometry/morphRelative','1321804LMjIJb','formatNumber','479102HlzbaS','4549192npudtl','signals','length','setClass','1eowFSg','setWidth','inline-block','setVerticalAlign','stride','1447425iypsxk','add','middle','isInterleavedBufferAttribute','none','strings','setFontSize','morphAttributes','2058066rgYkrx','utils'];a=function(){return E;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){const x=b,f=d();while(!![]){try{const g
|
|
1
|
+
(function(d,e){const x=b,f=d();while(!![]){try{const g=parseInt(x(0xd9))/0x1*(-parseInt(x(0xd7))/0x2)+-parseInt(x(0xdb))/0x3+parseInt(x(0xdf))/0x4+parseInt(x(0xdc))/0x5*(parseInt(x(0xc0))/0x6)+parseInt(x(0xdd))/0x7*(-parseInt(x(0xc2))/0x8)+parseInt(x(0xce))/0x9+parseInt(x(0xde))/0xa*(-parseInt(x(0xc9))/0xb);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xee82b));import*as c from'three';import{UIDiv,UIRow,UIText,UINumber,UIInteger}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const y=b,f=d[y(0xc6)],g=d[y(0xcb)],h=new UIDiv(),i=e[y(0xd3)],j=i['parameters'],k=new UIRow(),l=new UINumber(j['radius'])['onChange'](v);k['add'](new UIText(f[y(0xd2)](y(0xc5)))[y(0xd8)](y(0xcf))),k['add'](l),h[y(0xca)](k);const m=new UIRow(),n=new UINumber(j[y(0xd0)])['onChange'](v);m[y(0xca)](new UIText(f['getKey']('sidebar/geometry/capsule_geometry/height'))[y(0xd8)](y(0xcf))),m[y(0xca)](n),h[y(0xca)](m);const o=new UIRow(),p=new UIInteger(j['capSegments'])['setRange'](0x1,Infinity)[y(0xc4)](v);o['add'](new UIText(f['getKey'](y(0xc1)))[y(0xd8)](y(0xcf))),o['add'](p),h[y(0xca)](o);const q=new UIRow(),r=new UIInteger(j[y(0xc3)])['setRange'](0x1,Infinity)['onChange'](v);q[y(0xca)](new UIText(f[y(0xd2)](y(0xd4)))[y(0xd8)](y(0xcf))),q[y(0xca)](r),h[y(0xca)](q);const s=new UIRow(),t=new UIInteger(j[y(0xc7)])[y(0xc8)](0x1,Infinity)[y(0xc4)](v);s['add'](new UIText(f[y(0xd2)](y(0xcc)))[y(0xd8)](y(0xcf))),s[y(0xca)](t),h[y(0xca)](s);function u(){const z=y,w=e[z(0xd3)][z(0xda)];l['setValue'](w['radius']),n[z(0xcd)](w[z(0xd0)]),p[z(0xcd)](w[z(0xd5)]),r[z(0xcd)](w[z(0xc3)]),t[z(0xcd)](w['heightSegments']);}g['geometryChanged'][y(0xca)](function(w){w===e&&u();});function v(){const A=y;d[A(0xe0)](new SetGeometryCommand(d,e,new c[(A(0xd6))](l[A(0xd1)](),n['getValue'](),p[A(0xd1)](),r['getValue'](),t['getValue']())));}return h;}function b(c,d){c=c-0xc0;const e=a();let f=e[c];return f;}function a(){const B=['add','signals','sidebar/geometry/capsule_geometry/heightseg','setValue','13995792blwsAh','Label','height','getValue','getKey','geometry','sidebar/geometry/capsule_geometry/radialseg','capSegments','CapsuleGeometry','12fghrQN','setClass','172147UrYJrb','parameters','318711nwiyEm','9697045WwgFPZ','5773250dqoaEO','1786240uQzWrH','643228ZUntvP','execute','6SRzgJp','sidebar/geometry/capsule_geometry/capseg','8FTaaCT','radialSegments','onChange','sidebar/geometry/capsule_geometry/radius','strings','heightSegments','setRange','44UDifde'];a=function(){return B;};return a();}export{GeometryParametersPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(d,e){const v=b,f=d();while(!![]){try{const g
|
|
1
|
+
(function(d,e){const v=b,f=d();while(!![]){try{const g=-parseInt(v(0x1a2))/0x1+parseInt(v(0x194))/0x2*(parseInt(v(0x19f))/0x3)+-parseInt(v(0x1ab))/0x4+-parseInt(v(0x19c))/0x5+parseInt(v(0x19b))/0x6*(parseInt(v(0x1ac))/0x7)+-parseInt(v(0x1a7))/0x8*(-parseInt(v(0x1ad))/0x9)+-parseInt(v(0x1a1))/0xa*(parseInt(v(0x197))/0xb);if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xd8733));function b(c,d){c=c-0x193;const e=a();let f=e[c];return f;}import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const w=b,f=d['strings'],g=d['signals'],h=new UIDiv(),i=e['geometry'],j=i[w(0x193)],k=new UIRow(),l=new UINumber(j['radius'])[w(0x19e)](t);k['add'](new UIText(f['getKey']('sidebar/geometry/circle_geometry/radius'))[w(0x198)](w(0x1b0))),k['add'](l),h['add'](k);const m=new UIRow(),n=new UIInteger(j[w(0x195)])[w(0x1af)](0x3,Infinity)[w(0x19e)](t);m[w(0x1ae)](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/segments'))[w(0x198)]('Label')),m[w(0x1ae)](n),h['add'](m);const o=new UIRow(),p=new UINumber(j[w(0x199)]*c['MathUtils'][w(0x1a3)])[w(0x1a0)]('°')[w(0x1a4)](0xa)[w(0x19e)](t);o[w(0x1ae)](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/thetastart'))['setClass']('Label')),o['add'](p),h['add'](o);const q=new UIRow(),r=new UINumber(j['thetaLength']*c['MathUtils']['RAD2DEG'])[w(0x1a0)]('°')['setStep'](0xa)['onChange'](t);q['add'](new UIText(f[w(0x19a)]('sidebar/geometry/circle_geometry/thetalength'))[w(0x198)](w(0x1b0))),q[w(0x1ae)](r),h[w(0x1ae)](q);function s(){const x=w,u=e['geometry']['parameters'];l['setValue'](u[x(0x196)]),n[x(0x19d)](u['segments']),p['setValue'](u[x(0x199)]*c[x(0x1a5)][x(0x1a3)]),r[x(0x19d)](u[x(0x1a8)]*c[x(0x1a5)][x(0x1a3)]);}g[w(0x1a9)]['add'](function(u){u===e&&s();});function t(){const y=w;d['execute'](new SetGeometryCommand(d,e,new c[(y(0x1aa))](l['getValue'](),n[y(0x1a6)](),p[y(0x1a6)]()*c['MathUtils']['DEG2RAD'],r[y(0x1a6)]()*c['MathUtils']['DEG2RAD'])));}return h;}export{GeometryParametersPanel};function a(){const z=['8931118txuGfm','27AAuQuh','add','setRange','Label','parameters','1715906bCXqla','segments','radius','539XWUFAq','setClass','thetaStart','getKey','6WaqFxW','6773950mghOdA','setValue','onChange','3jRZsbY','setUnit','85590iUOIJZ','344940xiwsyE','RAD2DEG','setStep','MathUtils','getValue','2797616TvFoOr','thetaLength','geometryChanged','CircleGeometry','708932aDDsnC'];a=function(){return z;};return a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(d,e){const z=b,f=d();while(!![]){try{const g=-parseInt(z(0xb3))/0x1+-parseInt(z(0xac))/0x2+-parseInt(z(0xc0))/0x3+parseInt(z(0xbe))/0x4*(parseInt(z(0xc7))/0x5)+-parseInt(z(0xbc))/0x6*(parseInt(z(0xb7))/0x7)+parseInt(z(0xab))/0x8+parseInt(z(0xbd))/0x9;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0xaca4f));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UICheckbox,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function a(){const D=['setRange','radiusBottom','setClass','sidebar/geometry/cylinder_geometry/heightsegments','getValue','62984jQtDXJ','sidebar/geometry/cylinder_geometry/height','radialSegments','openEnded','1029777pfVQMh','execute','add','getKey','setValue','6fnrddF','14332428GdvKhG','8rTVway','onChange','1677957WNptln','parameters','strings','Label','geometry','radiusTop','CylinderGeometry','1019655gqjuEB','heightSegments','5940560qCawOi','2532718VfSAnm','height'];a=function(){return D;};return a();}function GeometryParametersPanel(d,e){const A=b,f=d[A(0xc2)],g=d['signals'],h=new UIDiv(),i=e[A(0xc4)],j=i['parameters'],k=new UIRow(),l=new UINumber(j[A(0xc5)])[A(0xbf)](x);k[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/radiustop'))[A(0xb0)](A(0xc3))),k[A(0xb9)](l),h['add'](k);const m=new UIRow(),n=new UINumber(j['radiusBottom'])[A(0xbf)](x);m[A(0xb9)](new UIText(f['getKey']('sidebar/geometry/cylinder_geometry/radiusbottom'))[A(0xb0)]('Label')),m['add'](n),h[A(0xb9)](m);const o=new UIRow(),p=new UINumber(j[A(0xad)])['onChange'](x);o[A(0xb9)](new UIText(f['getKey'](A(0xb4)))['setClass']('Label')),o[A(0xb9)](p),h['add'](o);const q=new UIRow(),r=new UIInteger(j[A(0xb5)])[A(0xae)](0x1,Infinity)[A(0xbf)](x);q[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/radialsegments'))[A(0xb0)]('Label')),q[A(0xb9)](r),h[A(0xb9)](q);const s=new UIRow(),t=new UIInteger(j['heightSegments'])['setRange'](0x1,Infinity)['onChange'](x);s['add'](new UIText(f['getKey'](A(0xb1)))[A(0xb0)](A(0xc3))),s['add'](t),h['add'](s);const u=new UIRow(),v=new UICheckbox(j[A(0xb6)])['onChange'](x);u[A(0xb9)](new UIText(f[A(0xba)]('sidebar/geometry/cylinder_geometry/openended'))['setClass'](A(0xc3))),u['add'](v),h['add'](u);function w(){const B=A,y=e[B(0xc4)][B(0xc1)];l[B(0xbb)](y['radiusTop']),n['setValue'](y[B(0xaf)]),p['setValue'](y['height']),r[B(0xbb)](y[B(0xb5)]),t[B(0xbb)](y[B(0xc8)]),v['setValue'](y['openEnded']);}g['geometryChanged']['add'](function(y){y===e&&w();});function x(){const C=A;d[C(0xb8)](new SetGeometryCommand(d,e,new c[(C(0xc6))](l[C(0xb2)](),n['getValue'](),p['getValue'](),r['getValue'](),t['getValue'](),v[C(0xb2)]())));}return h;}function b(c,d){c=c-0xab;const e=a();let f=e[c];return f;}export{GeometryParametersPanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a(){const v=['
|
|
1
|
+
function a(){const v=['setClass','radius','sidebar/geometry/dodecahedron_geometry/radius','setValue','1338080Emvwpe','916568HlTgbj','getKey','add','DodecahedronGeometry','458030nIGOEe','138726JkOozZ','3iCzAoB','179440VkLvur','1072278coxSJs','onChange','geometry','161329fEUzZB','getValue','parameters'];a=function(){return v;};return a();}(function(d,e){const r=b,f=d();while(!![]){try{const g=-parseInt(r(0xf7))/0x1+parseInt(r(0x108))/0x2+parseInt(r(0x109))/0x3*(parseInt(r(0x103))/0x4)+parseInt(r(0x107))/0x5+-parseInt(r(0xf8))/0x6+-parseInt(r(0xfb))/0x7+parseInt(r(0x102))/0x8;if(g===e)break;else f['push'](f['shift']());}catch(h){f['push'](f['shift']());}}}(a,0x2b02b));import*as c from'three';import{UIDiv,UIRow,UIText,UIInteger,UINumber}from'./libs/ui.js';import{SetGeometryCommand}from'./commands/SetGeometryCommand.js';function GeometryParametersPanel(d,e){const s=b,f=d['strings'],g=d['signals'],h=new UIDiv(),i=e[s(0xfa)],j=i['parameters'],k=new UIRow(),l=new UINumber(j[s(0xff)])['onChange'](p);k['add'](new UIText(f[s(0x104)](s(0x100)))[s(0xfe)]('Label')),k[s(0x105)](l),h['add'](k);const m=new UIRow(),n=new UIInteger(j['detail'])['setRange'](0x0,Infinity)[s(0xf9)](p);m['add'](new UIText(f[s(0x104)]('sidebar/geometry/dodecahedron_geometry/detail'))['setClass']('Label')),m['add'](n),h['add'](m);function o(){const t=s,q=e['geometry'][t(0xfd)];l[t(0x101)](q[t(0xff)]),n[t(0x101)](q['detail']);}g['geometryChanged'][s(0x105)](function(q){q===e&&o();});function p(){const u=s;d['execute'](new SetGeometryCommand(d,e,new c[(u(0x106))](l['getValue'](),n[u(0xfc)]())));}return h;}function b(c,d){c=c-0xf7;const e=a();let f=e[c];return f;}export{GeometryParametersPanel};
|