SceneExporter.js 17.4 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
/**
 * @author alteredq / http://alteredqualia.com/
 */

THREE.SceneExporter = function () {};

THREE.SceneExporter.prototype = {

	constructor: THREE.SceneExporter,

11
	parse: function ( scene ) {
12 13 14 15 16 17 18 19 20 21 22 23

		var position = Vector3String( scene.position );
		var rotation = Vector3String( scene.rotation );
		var scale = Vector3String( scene.scale );

		var nobjects = 0;
		var ngeometries = 0;
		var nmaterials = 0;
		var ntextures = 0;

		var objectsArray = [];
		var geometriesArray = [];
24
		var materialsArray = [];
25
		var texturesArray = [];
A
alteredq 已提交
26
		var fogsArray = [];
27 28

		var geometriesMap = {};
29
		var materialsMap = {};
30
		var texturesMap = {};
31

A
alteredq 已提交
32 33
		// extract objects, geometries, materials, textures

34 35 36 37 38 39 40 41 42 43 44 45 46 47
		var checkTexture = function ( map ) {

			if ( ! map ) return;

			if ( ! ( map.id in texturesMap ) ) {

				texturesMap[ map.id ] = true;
				texturesArray.push( TextureString( map ) );
				ntextures += 1;

			}

		};

48
		var linesArray = [];
49

50
		function createObjectsList( object, pad ) {
51

52
			for ( var i = 0; i < object.children.length; i ++ ) {
53

54
				var node = object.children[ i ];
55

56
				if ( node instanceof THREE.Mesh ) {
57

58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
					linesArray.push( MeshString( node, pad ) );
					nobjects += 1;

					if ( ! ( node.geometry.id in geometriesMap ) ) {

						geometriesMap[ node.geometry.id ] = true;
						geometriesArray.push( GeometryString( node.geometry ) );
						ngeometries += 1;

					}

					if ( ! ( node.material.id in materialsMap ) ) {

						materialsMap[ node.material.id ] = true;
						materialsArray.push( MaterialString( node.material ) );
						nmaterials += 1;

						checkTexture( node.material.map );
						checkTexture( node.material.envMap );
						checkTexture( node.material.lightMap );
						checkTexture( node.material.specularMap );
						checkTexture( node.material.bumpMap );
						checkTexture( node.material.normalMap );
81

82
					}
83

84
				} else if ( node instanceof THREE.Light ) {
85

86 87 88 89 90 91 92 93 94 95 96 97
					linesArray.push( LightString( node, pad ) );
					nobjects += 1;

				} else if ( node instanceof THREE.Camera ) {

					linesArray.push( CameraString( node, pad ) );
					nobjects += 1;

				} else if ( node instanceof THREE.Object3D ) {

					linesArray.push( ObjectString( node, pad ) );
					nobjects += 1;
98

99 100
				}

101
				if ( node.children.length > 0 ) {
102

103
					linesArray.push( PaddingString( pad + 1 ) + '\t\t"children" : {' );
104

105 106 107
				}

				createObjectsList( node, pad + 2 );
108

109 110 111 112 113 114 115
				if ( node.children.length > 0 ) {

					linesArray.push( PaddingString( pad + 1 ) + "\t\t}" );

				}

				linesArray.push( PaddingString( pad ) + "\t\t}" + ( i < object.children.length - 1 ? ",\n" : "" ) );
116

117 118
			}

119 120 121 122 123
		}

		createObjectsList( scene, 0 );

		var objects = linesArray.join( "\n" );
124

A
alteredq 已提交
125 126 127 128 129 130 131 132 133 134
		// extract fog

		if ( scene.fog ) {

			fogsArray.push( FogString( scene.fog ) );

		}

		// generate sections

135 136
		var geometries = generateMultiLineString( geometriesArray, ",\n\n\t" );
		var materials = generateMultiLineString( materialsArray, ",\n\n\t" );
137
		var textures = generateMultiLineString( texturesArray, ",\n\n\t" );
A
alteredq 已提交
138 139 140
		var fogs = generateMultiLineString( fogsArray, ",\n\n\t" );

		// generate defaults
141

142 143 144 145
		var activeCamera = null;

		scene.traverse( function ( node ) {

146
			if ( node instanceof THREE.Camera && node.userData.active ) {
147 148 149 150 151 152 153 154

				activeCamera = node;

			}

		} );

		var defcamera = LabelString( activeCamera ? getObjectName( activeCamera ) : "" );
A
alteredq 已提交
155
		var deffog = LabelString( scene.fog ? getFogName( scene.fog ) : "" );
156

A
alteredq 已提交
157
		// templates
158

159 160 161 162 163 164
		function Vector2String( v ) {

			return "[" + v.x + "," + v.y + "]";

		}

165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182
		function Vector3String( v ) {

			return "[" + v.x + "," + v.y + "," + v.z + "]";

		}

		function ColorString( c ) {

			return "[" + c.r.toFixed( 3 ) + "," + c.g.toFixed( 3 ) + "," + c.b.toFixed( 3 ) + "]";

		}

		function LabelString( s ) {

			return '"' + s + '"';

		}

183 184
		function NumConstantString( c ) {

G
gero3 已提交
185
			var constants = [ "NearestFilter", "NearestMipMapNearestFilter", "NearestMipMapLinearFilter",
186 187 188 189 190 191
							  "LinearFilter", "LinearMipMapNearestFilter", "LinearMipMapLinearFilter" ];

			for ( var i = 0; i < constants.length; i ++ ) {

				if ( THREE[ constants[ i ] ] === c ) return LabelString( constants[ i ] );

B
brason 已提交
192
			}
193 194 195 196 197

			return "";

		}

198 199 200 201 202 203 204 205 206 207 208
		function PaddingString( n ) {

			var output = "";

			for ( var i = 0; i < n; i ++ ) output += "\t";

			return output;

		}


209 210
		//

211
		function LightString( o, n ) {
212

213
			if ( o instanceof THREE.AmbientLight ) {
214 215 216

				var output = [

217
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
218 219
				'	"type"  : "AmbientLight",',
				'	"color" : ' + o.color.getHex() + ( o.children.length ? ',' : '' )
220 221 222

				];

223
			} else if ( o instanceof THREE.DirectionalLight ) {
224 225 226

				var output = [

227
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
228 229 230
				'	"type"      : "DirectionalLight",',
				'	"color"     : ' + o.color.getHex() + ',',
				'	"intensity" : ' + o.intensity + ',',
231 232
				'	"direction" : ' + Vector3String( o.position ) + ',',
				'	"target"    : ' + LabelString( getObjectName( o.target ) ) + ( o.children.length ? ',' : '' )
233 234 235

				];

236
			} else if ( o instanceof THREE.PointLight ) {
237 238 239

				var output = [

240
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
241 242 243 244
				'	"type"           : "PointLight",',
				'	"color"          : ' + o.color.getHex() + ',',
				'	"intensity"      : ' + o.intensity + ',',
				'	"position"       : ' + Vector3String( o.position ) + ',',
M
Mr.doob 已提交
245
				'	"decay"          : ' + o.decay + ',',
246
				'	"distance"       : ' + o.distance + ( o.children.length ? ',' : '' )
247 248 249

				];

250
			} else if ( o instanceof THREE.SpotLight ) {
251 252 253

				var output = [

254
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
255 256 257 258 259 260 261
				'	"type"           : "SpotLight",',
				'	"color"          : ' + o.color.getHex() + ',',
				'	"intensity"      : ' + o.intensity + ',',
				'	"position"       : ' + Vector3String( o.position ) + ',',
				'	"distance"       : ' + o.distance + ',',
				'	"angle"          : ' + o.angle + ',',
				'	"exponent"       : ' + o.exponent + ',',
M
Mr.doob 已提交
262
				'	"decay"          : ' + o.decay + ',',
263
				'	"target"         : ' + LabelString( getObjectName( o.target ) ) + ( o.children.length ? ',' : '' )
264 265 266

				];

267
			} else if ( o instanceof THREE.HemisphereLight ) {
268 269 270

				var output = [

271
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
272 273 274 275 276
				'	"type"        : "HemisphereLight",',
				'	"skyColor"    : ' + o.color.getHex() + ',',
				'	"groundColor" : ' + o.groundColor.getHex() + ',',
				'	"intensity"   : ' + o.intensity + ',',
				'	"position"    : ' + Vector3String( o.position ) + ( o.children.length ? ',' : '' )
277 278 279 280 281 282 283 284 285

				];

			} else {

				var output = [];

			}

286
			return generateMultiLineString( output, '\n\t\t', n );
287 288 289

		}

290
		function CameraString( o, n ) {
291

292
			if ( o instanceof THREE.PerspectiveCamera ) {
293 294 295

				var output = [

296
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
297 298 299 300 301
				'	"type"     : "PerspectiveCamera",',
				'	"fov"      : ' + o.fov + ',',
				'	"aspect"   : ' + o.aspect + ',',
				'	"near"     : ' + o.near + ',',
				'	"far"      : ' + o.far + ',',
302
				'	"position" : ' + Vector3String( o.position ) + ( o.children.length ? ',' : '' )
303 304 305

				];

306
			} else if ( o instanceof THREE.OrthographicCamera ) {
307 308 309

				var output = [

310
				'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
311 312 313 314 315 316 317
				'	"type"     : "OrthographicCamera",',
				'	"left"     : ' + o.left + ',',
				'	"right"    : ' + o.right + ',',
				'	"top"      : ' + o.top + ',',
				'	"bottom"   : ' + o.bottom + ',',
				'	"near"     : ' + o.near + ',',
				'	"far"      : ' + o.far + ',',
318
				'	"position" : ' + Vector3String( o.position ) + ( o.children.length ? ',' : '' )
319 320 321 322 323 324 325 326 327

				];

			} else {

				var output = [];

			}

328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344
			return generateMultiLineString( output, '\n\t\t', n );

		}

		function ObjectString( o, n ) {

			var output = [

			'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
			'	"position" : ' + Vector3String( o.position ) + ',',
			'	"rotation" : ' + Vector3String( o.rotation ) + ',',
			'	"scale"	   : ' + Vector3String( o.scale ) + ',',
			'	"visible"  : ' + o.visible + ( o.children.length ? ',' : '' )

			];

			return generateMultiLineString( output, '\n\t\t', n );
345 346 347

		}

348
		function MeshString( o, n ) {
349 350 351

			var output = [

352
			'\t\t' + LabelString( getObjectName( o ) ) + ' : {',
353 354
			'	"geometry" : ' + LabelString( getGeometryName( o.geometry ) ) + ',',
			'	"material" : ' + LabelString( getMaterialName( o.material ) ) + ',',
355 356 357
			'	"position" : ' + Vector3String( o.position ) + ',',
			'	"rotation" : ' + Vector3String( o.rotation ) + ',',
			'	"scale"	   : ' + Vector3String( o.scale ) + ',',
358
			'	"visible"  : ' + o.visible + ( o.children.length ? ',' : '' )
359

360
			];
361

362
			return generateMultiLineString( output, '\n\t\t', n );
363 364 365

		}

366 367
		//

368 369 370 371 372 373
		function GeometryString( g ) {

			if ( g instanceof THREE.SphereGeometry ) {

				var output = [

374
				'\t' + LabelString( getGeometryName( g ) ) + ': {',
375
				'	"type"    : "sphere",',
376 377 378
				'	"radius"  : ' 		 + g.parameters.radius + ',',
				'	"widthSegments"  : ' + g.parameters.widthSegments + ',',
				'	"heightSegments" : ' + g.parameters.heightSegments,
379
				'}'
380

381
				];
382

M
Mr.doob 已提交
383
			} else if ( g instanceof THREE.BoxGeometry ) {
384 385 386

				var output = [

387
				'\t' + LabelString( getGeometryName( g ) ) + ': {',
388
				'	"type"    : "cube",',
389 390 391
				'	"width"  : '  + g.parameters.width  + ',',
				'	"height"  : ' + g.parameters.height + ',',
				'	"depth"  : '  + g.parameters.depth  + ',',
392 393
				'	"widthSegments"  : ' + g.widthSegments + ',',
				'	"heightSegments" : ' + g.heightSegments + ',',
394
				'	"depthSegments" : '  + g.depthSegments,
395
				'}'
396

397
				];
398 399 400 401 402

			} else if ( g instanceof THREE.PlaneGeometry ) {

				var output = [

403
				'\t' + LabelString( getGeometryName( g ) ) + ': {',
404
				'	"type"    : "plane",',
D
dubejf 已提交
405 406 407 408
				'	"width"  : '  + g.parameters.width  + ',',
				'	"height"  : ' + g.parameters.height + ',',
				'	"widthSegments"  : ' + g.parameters.widthSegments + ',',
				'	"heightSegments" : ' + g.parameters.heightSegments,
409
				'}'
410

411 412
				];

413 414 415 416 417 418 419 420 421
			} else if ( g instanceof THREE.Geometry ) {

				if ( g.sourceType === "ascii" || g.sourceType === "ctm" || g.sourceType === "stl" || g.sourceType === "vtk" ) {

					var output = [

					'\t' + LabelString( getGeometryName( g ) ) + ': {',
					'	"type" : ' + LabelString( g.sourceType ) + ',',
					'	"url"  : ' + LabelString( g.sourceFile ),
422
					'}'
423 424 425 426 427 428 429 430 431

					];

				} else {

					var output = [];

				}

432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463
			} else {

				var output = [];

			}

			return generateMultiLineString( output, '\n\t\t' );

		}

		function MaterialString( m ) {

			if ( m instanceof THREE.MeshBasicMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshBasicMaterial",',
				'	"parameters"  : {',
				'		"color"  : ' 	+ m.color.getHex() + ',',

				m.map ? 		'		"map" : ' + LabelString( getTextureName( m.map ) ) + ',' : '',
				m.envMap ? 		'		"envMap" : ' + LabelString( getTextureName( m.envMap ) ) + ',' : '',
				m.specularMap ? '		"specularMap" : ' + LabelString( getTextureName( m.specularMap ) ) + ',' : '',
				m.lightMap ? 	'		"lightMap" : ' + LabelString( getTextureName( m.lightMap ) ) + ',' : '',

				'		"reflectivity"  : ' + m.reflectivity + ',',
				'		"transparent" : ' + m.transparent + ',',
				'		"opacity" : ' 	+ m.opacity + ',',
				'		"wireframe" : ' + m.wireframe + ',',
				'		"wireframeLinewidth" : ' + m.wireframeLinewidth,
				'	}',
464
				'}'
465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489

				];


			} else if ( m instanceof THREE.MeshLambertMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshLambertMaterial",',
				'	"parameters"  : {',
				'		"color"  : ' 	+ m.color.getHex() + ',',
				'		"emissive"  : ' + m.emissive.getHex() + ',',

				m.map ? 		'		"map" : ' + LabelString( getTextureName( m.map ) ) + ',' : '',
				m.envMap ? 		'		"envMap" : ' + LabelString( getTextureName( m.envMap ) ) + ',' : '',
				m.specularMap ? '		"specularMap" : ' + LabelString( getTextureName( m.specularMap ) ) + ',' : '',
				m.lightMap ? 	'		"lightMap" : ' + LabelString( getTextureName( m.lightMap ) ) + ',' : '',

				'		"reflectivity"  : ' + m.reflectivity + ',',
				'		"transparent" : ' + m.transparent + ',',
				'		"opacity" : ' 	+ m.opacity + ',',
				'		"wireframe" : ' + m.wireframe + ',',
				'		"wireframeLinewidth" : ' + m.wireframeLinewidth,
				'	}',
490
				'}'
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519

				];

			} else if ( m instanceof THREE.MeshPhongMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshPhongMaterial",',
				'	"parameters"  : {',
				'		"color"  : ' 	+ m.color.getHex() + ',',
				'		"emissive"  : ' + m.emissive.getHex() + ',',
				'		"specular"  : ' + m.specular.getHex() + ',',
				'		"shininess" : ' + m.shininess + ',',

				m.map ? 		'		"map" : ' + LabelString( getTextureName( m.map ) ) + ',' : '',
				m.envMap ? 		'		"envMap" : ' + LabelString( getTextureName( m.envMap ) ) + ',' : '',
				m.specularMap ? '		"specularMap" : ' + LabelString( getTextureName( m.specularMap ) ) + ',' : '',
				m.lightMap ? 	'		"lightMap" : ' + LabelString( getTextureName( m.lightMap ) ) + ',' : '',
				m.normalMap ? 	'		"normalMap" : ' + LabelString( getTextureName( m.normalMap ) ) + ',' : '',
				m.bumpMap ? 	'		"bumpMap" : ' + LabelString( getTextureName( m.bumpMap ) ) + ',' : '',

				'		"bumpScale"  : ' + m.bumpScale + ',',
				'		"reflectivity"  : ' + m.reflectivity + ',',
				'		"transparent" : ' + m.transparent + ',',
				'		"opacity" : ' 	+ m.opacity + ',',
				'		"wireframe" : ' + m.wireframe + ',',
				'		"wireframeLinewidth" : ' + m.wireframeLinewidth,
				'	}',
520
				'}'
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535

				];

			} else if ( m instanceof THREE.MeshDepthMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshDepthMaterial",',
				'	"parameters"  : {',
				'		"transparent" : ' + m.transparent + ',',
				'		"opacity" : ' 	+ m.opacity + ',',
				'		"wireframe" : ' + m.wireframe + ',',
				'		"wireframeLinewidth" : ' + m.wireframeLinewidth,
				'	}',
536
				'}'
537 538 539 540 541 542 543 544 545 546 547 548 549 550 551

				];

			} else if ( m instanceof THREE.MeshNormalMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshNormalMaterial",',
				'	"parameters"  : {',
				'		"transparent" : ' + m.transparent + ',',
				'		"opacity" : ' 	+ m.opacity + ',',
				'		"wireframe" : ' + m.wireframe + ',',
				'		"wireframeLinewidth" : ' + m.wireframeLinewidth,
				'	}',
552
				'}'
553 554 555 556 557 558 559 560 561 562

				];

			} else if ( m instanceof THREE.MeshFaceMaterial ) {

				var output = [

				'\t' + LabelString( getMaterialName( m ) ) + ': {',
				'	"type"    : "MeshFaceMaterial",',
				'	"parameters"  : {}',
563
				'}'
564 565

				];
566 567 568

			}

569 570 571 572
			return generateMultiLineString( output, '\n\t\t' );

		}

573 574 575 576 577 578 579 580 581 582 583 584 585 586 587
		function TextureString( t ) {

			// here would be also an option to use data URI
			// with embedded image from "t.image.src"
			// (that's a side effect of using FileReader to load images)

			var output = [

			'\t' + LabelString( getTextureName( t ) ) + ': {',
			'	"url"    : "' + t.sourceFile + '",',
			'	"repeat" : ' + Vector2String( t.repeat ) + ',',
			'	"offset" : ' + Vector2String( t.offset ) + ',',
			'	"magFilter" : ' + NumConstantString( t.magFilter ) + ',',
			'	"minFilter" : ' + NumConstantString( t.minFilter ) + ',',
			'	"anisotropy" : ' + t.anisotropy,
588
			'}'
589 590 591 592 593 594 595 596 597

			];

			return generateMultiLineString( output, '\n\t\t' );

		}

		//

A
alteredq 已提交
598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636
		function FogString( f ) {

			if ( f instanceof THREE.Fog ) {

				var output = [

				'\t' + LabelString( getFogName( f ) ) + ': {',
				'	"type"  : "linear",',
				'	"color" : ' + ColorString( f.color ) + ',',
				'	"near"  : '  + f.near + ',',
				'	"far"   : '    + f.far,
				'}'

				];

			} else if ( f instanceof THREE.FogExp2 ) {

				var output = [

				'\t' + LabelString( getFogName( f ) ) + ': {',
				'	"type"    : "exp2",',
				'	"color"   : '  + ColorString( f.color ) + ',',
				'	"density" : ' + f.density,
				'}'

				];

			} else {

				var output = [];

			}

			return generateMultiLineString( output, '\n\t\t' );

		}

		//

637
		function generateMultiLineString( lines, separator, padding ) {
638 639 640 641 642

			var cleanLines = [];

			for ( var i = 0; i < lines.length; i ++ ) {

643 644 645 646 647 648 649 650
				var line = lines[ i ];

				if ( line ) {

					if ( padding ) line = PaddingString( padding ) + line;
					cleanLines.push(  line );

				}
651 652 653 654

			}

			return cleanLines.join( separator );
655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675

		}

		function getObjectName( o ) {

			return o.name ? o.name : "Object_" + o.id;

		}

		function getGeometryName( g ) {

			return g.name ? g.name : "Geometry_" + g.id;

		}

		function getMaterialName( m ) {

			return m.name ? m.name : "Material_" + m.id;

		}

676 677 678 679 680 681
		function getTextureName( t ) {

			return t.name ? t.name : "Texture_" + t.id;

		}

A
alteredq 已提交
682 683 684 685 686 687
		function getFogName( f ) {

			return f.name ? f.name : "Default fog";

		}

688 689 690 691 692
		//

		var output = [
			'{',
			'	"metadata": {',
693
			'		"formatVersion" : 3.2,',
694 695 696 697 698 699 700 701 702 703 704 705 706
			'		"type"		: "scene",',
			'		"generatedBy"	: "SceneExporter",',
			'		"objects"       : ' + nobjects + ',',
			'		"geometries"    : ' + ngeometries + ',',
			'		"materials"     : ' + nmaterials + ',',
			'		"textures"      : ' + ntextures,
			'	},',
			'',
			'	"urlBaseType": "relativeToScene",',
			'',

			'	"objects" :',
			'	{',
707
			objects,
708 709 710 711 712
			'	},',
			'',

			'	"geometries" :',
			'	{',
713
			'\t' + 	geometries,
714 715 716 717 718
			'	},',
			'',

			'	"materials" :',
			'	{',
719
			'\t' + 	materials,
720 721 722 723 724
			'	},',
			'',

			'	"textures" :',
			'	{',
725
			'\t' + 	textures,
726 727 728
			'	},',
			'',

A
alteredq 已提交
729 730 731 732 733 734
			'	"fogs" :',
			'	{',
			'\t' + 	fogs,
			'	},',
			'',

735 736 737 738
			'	"transform" :',
			'	{',
			'		"position"  : ' + position + ',',
			'		"rotation"  : ' + rotation + ',',
739
			'		"scale"     : ' + scale,
740 741 742 743
			'	},',
			'',
			'	"defaults" :',
			'	{',
A
alteredq 已提交
744 745
			'		"camera"  : ' + defcamera + ',',
			'		"fog"  	  : ' + deffog,
746 747 748 749
			'	}',
			'}'
		].join( '\n' );

750
		return JSON.parse( output );
751 752 753

	}

B
brason 已提交
754
};