3D-Renderer-omeka-module/Module.php

42 lines
693 B
PHP
Raw Permalink Normal View History

2021-04-04 17:47:14 +02:00
<?php
namespace Render3D;
use Omeka\Module\AbstractModule;
use Laminas\EventManager\SharedEventManagerInterface;
use Laminas\Mvc\MvcEvent;
class Module extends AbstractModule
{
const NAMESPACE = __NAMESPACE__;
const MODEL_TYPES = [
2021-10-13 13:12:29 +02:00
'gltf' => 'gLTF / GLB',
2021-10-06 12:43:24 +02:00
/*
2021-04-04 17:47:14 +02:00
'obj' => 'OBJ',
'obj+mtl' => 'OBJ + MTL',
'json' => 'JSON',
2021-04-09 10:05:52 +02:00
'fbx' => 'FBX',
'stl' => 'STL',
'dae' => 'Collada .dae',
'ply' => 'PLY',
2021-10-06 12:43:24 +02:00
*/
2021-04-04 17:47:14 +02:00
];
2021-10-06 13:04:26 +02:00
const MODEL_WIDTH = [
'50' => '50 %',
'75' => '75 %',
'100' => '100 %',
];
2021-10-06 13:13:35 +02:00
const RATIO = [
'2' => '2:1',
'1.333' => '4:3',
'1.777' => '16:9'
];
2021-10-06 13:04:26 +02:00
2021-04-04 17:47:14 +02:00
public function getConfig()
{
return include __DIR__ . '/config/module.config.php';
}
}