Plugin Directory

Changeset 3287655


Ignore:
Timestamp:
05/05/2025 09:57:31 AM (10 months ago)
Author:
visodywp
Message:

release 2.2.1

Location:
visody-3d-product-viewer
Files:
298 added
4 edited

Legend:

Unmodified
Added
Removed
  • visody-3d-product-viewer/trunk/README.txt

    r3282046 r3287655  
    55Requires at least: 5.1
    66Tested up to: 6.8
    7 Stable tag: 2.2.0
     7Stable tag: 2.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    152152== Changelog ==
    153153
     154= 2.2.1 (05-05-2025) =
     155* Fix min zoom property
     156* Add support for autoplay speed and delay properties
     157* Reset loader on variation change (pro)
     158
    154159= 2.2.0 (25-04-2025) =
    155160* Add support for iOS USDZ source
  • visody-3d-product-viewer/trunk/admin/class-visody-viewer-template.php

    r3282046 r3287655  
    193193                        ),
    194194                        array(
     195                            'id' => 'camera_autorotate_delay',
     196                            'label' => __( 'Rotation delay:', 'visody' ),
     197                            'type' => 'number',
     198                            'placeholder' => '0',
     199                            'description' => __( 'Start autorotating after X milliseconds.', 'visody' ),
     200                            'step' => 1,
     201                            'class' => 'regular-text',
     202                            'show_if' => array(
     203                                'id' => 'camera_autorotate',
     204                                'value' => 'yes',
     205                            ),
     206                        ),
     207                        array(
     208                            'id' => 'camera_autorotate_speed',
     209                            'label' => __( 'Rotation per second:', 'visody' ),
     210                            'type' => 'text',
     211                            'description' => __( 'Enter a number with unit (e.g., "30deg", "0.5rad" or "-100%").', 'visody' ),
     212                            'class' => 'regular-text',
     213                            'show_if' => array(
     214                                'id' => 'camera_autorotate',
     215                                'value' => 'yes',
     216                            ),
     217                        ),
     218                        array(
    195219                            'id' => 'camera_initial_x',
    196220                            'label' => __( 'Initial camera position X:', 'visody' ),
  • visody-3d-product-viewer/trunk/includes/visody-functions.php

    r3282046 r3287655  
    141141
    142142        $threed_viewer .= sprintf(
    143             '<model-viewer src="%1$s" data-base_model_url="%1$s" interaction-prompt="none" auto-rotate-delay="0" %2$s>',
     143            '<model-viewer src="%1$s" data-base_model_url="%1$s" interaction-prompt="none" %2$s>',
    144144            esc_url( $model_src ),
    145145            $viewer_attributes
     
    410410            $bottomup = get_post_meta($template_id, 'camera_z_limit_clockwise', true);
    411411
    412             $minzoom = 'auto';
    413             if (get_post_meta($template_id, 'set_camera_min_zoom', true)) {
    414                 $minzoom = get_post_meta($template_id, 'camera_min_zoom', true);
    415             }
    416 
    417412            if ( '' === $counter_clockwise) {
    418413                $counter_clockwise = 'auto';
     
    440435
    441436            $viewer_attributes .= sprintf(
    442                 ' min-camera-orbit="%s %s %s"',
     437                ' min-camera-orbit="%s %s auto"',
    443438                esc_attr( $clockwise ),
    444439                esc_attr( $topdown ),
    445                 esc_attr( $minzoom )
    446440            );
    447441
     
    451445                esc_attr( $bottomup )
    452446            );
    453         } else if (get_post_meta($template_id, 'set_camera_min_zoom', true)) {
    454             $minzoom = 'auto';
    455             if (get_post_meta( $template_id, 'set_camera_min_zoom', true ) ) {
    456                 $minzoom = get_post_meta($template_id, 'camera_min_zoom', true);
    457             }
    458 
    459             $viewer_attributes .= sprintf(
    460                 ' min-camera-orbit="auto auto %s"',
     447        }
     448       
     449        if (get_post_meta($template_id, 'set_camera_min_zoom', true)) {
     450            $minzoom = get_post_meta($template_id, 'camera_min_zoom', true);
     451
     452            $viewer_attributes .= sprintf(
     453                ' min-field-of-view="%s"',
    461454                esc_attr( $minzoom )
    462455            );
     
    465458        if (get_post_meta($template_id, 'camera_autorotate', true)) {
    466459            $viewer_attributes .= ' auto-rotate';
     460
     461            if ($speed = get_post_meta($template_id, 'camera_autorotate_speed', true)) {
     462                $viewer_attributes .= ' rotation-per-second="' . esc_attr( $speed ) . '"';
     463            }
     464
     465            if ($delay = get_post_meta($template_id, 'camera_autorotate_delay', true)) {
     466                $viewer_attributes .= ' auto-rotate-delay="' . esc_attr( $delay ) . '"';
     467            } else {
     468                $viewer_attributes .= ' auto-rotate-delay="0"';
     469            }
    467470        }
    468471
  • visody-3d-product-viewer/trunk/visody.php

    r3282046 r3287655  
    1616 * Plugin Name:       3D viewer by Visody
    1717 * Description:       Easily add beautiful, fully-customizable 3D viewers to your WooCommerce product galleries and WordPress pages! AR capabilies included.
    18  * Version:           2.2.0
     18 * Version:           2.2.1
    1919 * Author:            Visody
    2020 * Author URI:        https://visody.com/
     
    7373     * Rename this for your plugin and update it as you release new versions.
    7474     */
    75     define( 'VISODY_VERSION', '2.2.0' );
     75    define( 'VISODY_VERSION', '2.2.1' );
    7676    define( 'VISODY_BASE', plugin_dir_path( __FILE__ ) );
    7777    define( 'VISODY_BASE_URL', plugin_dir_url( __FILE__ ) );
Note: See TracChangeset for help on using the changeset viewer.