Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EquirectangularTilesAdapter update5.8.3 Cannot switch as a whole #1394

Closed
html580 opened this issue Jul 26, 2024 · 6 comments
Closed

EquirectangularTilesAdapter update5.8.3 Cannot switch as a whole #1394

html580 opened this issue Jul 26, 2024 · 6 comments
Labels
awaiting answer Additional information is required. Will be closed after 14 days. question
Milestone

Comments

@html580
Copy link

html580 commented Jul 26, 2024

Describe your problem

EquirectangularTilesAdapter update5.8.3 Cannot switch as a whole。
my project user 5.5.0 is prefect。
const loader = new THREE.ImageLoader();

return new Promise((resolve, reject) => loader.load(pano.base, resolve, undefined, reject))
	.then((image) => {
		const canvas = document.createElement('canvas');
		canvas.width = image.width;
		canvas.height = image.height;
		const ctx = canvas.getContext('2d');
		ctx.drawImage(image, 0, 0);
		ctx.fillStyle = 'rgba(255, 255, 255, 0.01)';
		ctx.fillRect(0, 0, canvas.width, canvas.height);
		return canvas.toDataURL('image/jpg');
	})
	.then((baseUrl) => {
		return psv.value
			.setPanorama(
				{
					...pano.config,
					baseUrl: baseUrl,
				},
				{
					zoom: data.defaultZoomLvl,
					defaultYaw: data.yaw,
					defaultPitch: data.pitch,
					position: { yaw: pano.position.yaw, pitch: pano.position.pitch },
					touchmoveTwoFingers: true,
					mousewheelCtrlKey: true,
				}
			)
			.then(
				function (data) {
					initSceneMarker();
					psv.value.plugins.autorotate.config.startFromClosest = false;
					if (!props.isEdit && !state.isautoinit) {
						psv.value.plugins.autorotate.stop();
						psv.value.plugins.autorotate.start();
						psv.value.plugins.autorotate.setOptions({
							autostartDelay: 2000,
							autostartOnIdle: true,
						});
					}
				},
				function (data) {
					debugger;
				}
			);
	})
	.then(() => {
		psv.value.navbar.setCaption(pano.title);
		psv.value.setOption('minFov', pano.minFov || 30);
	});

Online demo URL

No response

Photo Sphere Viewer version

5.8.3

Plugins loaded

No response

Additional context

No response

@html580
Copy link
Author

html580 commented Jul 26, 2024

examples: https://www.kuqixiu.com/index/view/id/24 is now use 5.5.0
other question:when i change other pano. it turns start point . how to config to fade to jump.

@mistic100
Copy link
Owner

mistic100 commented Jul 26, 2024

I don't understand your questions. What "Cannot switch as a whole" means ?

If you provide an example, please use minimal reproduction (jsfiddle, codesandbox, etc) with a version which has the problem. It is near impossible to debug when the code is mixed with your own application.

@mistic100 mistic100 added the awaiting answer Additional information is required. Will be closed after 14 days. label Jul 26, 2024
@html580
Copy link
Author

html580 commented Jul 26, 2024

change other Pano wait to long time to show。but 5.5.0 show fast。

@Rusachok
Copy link

change other Pano wait to long time to show。but 5.5.0 show fast。

Do you have the same problem?
#1395 (comment)

@mistic100 mistic100 added this to the 5.8.4 milestone Jul 30, 2024
@mistic100
Copy link
Owner

See #1395 (comment)

Copy link

This feature/bug fix has been released in version 5.9.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting answer Additional information is required. Will be closed after 14 days. question
Projects
None yet
Development

No branches or pull requests

3 participants