Commit graph

63 commits

Author SHA1 Message Date
Kumi 8fdf7fa138
feat: support aframe 1.5.0 and update docs
This release brings the project up to date with aframe 1.5.0, ensuring
compatibility and leveraging the latest features of aframe. Alongside
this, the README.md has been updated to provide clearer usage
instructions, enhancing the user experience. Additionally, a significant
cleanup was done by removing numerous dev dependencies, which will
necessitate replacements for future development. These changes aim to
streamline the development process while maintaining the functionality
and usability of the aframe-click-drag-component.

- Support for aframe 1.5.0 ensures compatibility with the latest
version, bringing new features and improvements to users.
- Updated README.md with clearer instructions improves the ease of use
and approachability for new users.
- Removed dev dependencies to tidy up the project structure,
highlighting a shift towards a more streamlined and focused development
process.
2024-03-28 07:18:47 +01:00
Kumi 3b87e2178e
feat: update A-Frame version and drag component
Upgraded to A-Frame 1.5.0 for improved VR features and compatibility,
and switched to a maintained version of the aframe-click-drag-component
to ensure ongoing support and stability.

This update addresses potential compatibility issues with newer VR
environments and provides access to the latest features and fixes from
A-Frame. By moving to a maintained version of the click-drag component,
we ensure that our application stays robust against future changes in
the A-Frame ecosystem.
2024-03-28 07:05:24 +01:00
Kumi 643d249631
feat: update package for A-Frame 1.5.0
compatibility

Updated the README.md to reflect changes in usage and installation for
the updated A-Frame click-drag component, ensuring compatibility with
A-Frame version 1.5.0. The installation instructions now point to a new
package name, indicating a shift in the repository and maintenance.
Adjustments include a more structured HTML example for better
readability and an update in the import paths to align with the new
package name. The entry point in package.json was also shifted from
`src/index.js` to `lib/index.js`, potentially indicating a change in the
build or distribution process to enhance library usage. These changes
aim to provide a clear, updated path for users integrating the
click-drag functionality with the latest A-Frame version, ensuring
continued support and ease of use.
2024-03-27 19:47:37 +01:00
Kumi eccccfe620
refactor(repository): update repo URL to private instance
Switched the repository URL in package.json from a public GitHub link to
a private Git server. This change enhances project security by moving to
a controlled, private repository and ensures that only authorized
contributors have access to the project's source code.
2024-03-27 19:31:53 +01:00
Kumi 9db44c0126
feat: update package for major release and
ownership transfer

Bumped the version to 4.0.0 to signify a major update, reflecting
potentially breaking changes or significant feature additions.
Transitioned ownership details, including author, issue tracking URLs,
and project homepage to a new maintainer, Kumi. This shift indicates a
formal handover in project stewardship, ensuring continued support and
development under new management.
2024-03-27 18:59:45 +01:00
Kumi 9e139d0de4
feat: transition main module to src/index.js
Changed the 'main' field in package.json to point to 'src/index.js'
instead of 'lib/index.js'. This update aligns the entry point with the
source code to simplify the development process and ensure that the
latest features and fixes are readily accessible. The build script
remains in place for pre-publication compilation, maintaining
compatibility with environments expecting transpiled code.

This shift encourages direct use of the source module, facilitating
easier debugging and faster iteration during development.
2024-03-27 18:59:26 +01:00
Kumi 12db2ff24b
feat: fork and update aframe-click-drag-component
Forked the original aframe-click-drag-component to ensure compatibility
with A-Frame 1.5.0, addressing the lack of maintenance and updates. This
version removes the call for new maintainers and clarifies the project
is a continuation of the original work. The update allows users to
maintain interactivity in 3D A-Frame scenes with current versions.

This change ensures that developers using A-Frame for VR projects can
continue to implement click and drag functionality without being
hindered by outdated dependencies or unresolved issues.
2024-03-27 18:33:58 +01:00
Kumi e9eeef512a
refactor(index.js): improve syntax consistency and cleanup
Standardized single quotes to double quotes and removed unnecessary
commas for a more consistent code style across the file. Removed unused
imports and whitespace, contributing to a cleaner and more readable
codebase. Additionally, optimized the way Quaternion and Vector3 objects
are reused, reducing the need for creating new instances, thus
potentially improving memory usage and performance slightly.

No API changes or behavior modifications were introduced, ensuring
backward compatibility.
2024-03-27 18:30:26 +01:00
Kumi 887a55f37c
feat: update dependencies to newer versions
Updated several dependencies to their newer versions to leverage recent
fixes and improvements, enhance security, and ensure compatibility with
modern environments. This includes updates to core utilities, stream
management tools, glob matching libraries, and more. Significant changes
include updates to `lodash`, `minimatch`, `source-map`, and `three`.
Ensuring these updates also involved minor adjustments for compatibility
with updated API surfaces and behavior.

These changes may improve overall performance, offer better features,
and close potential security gaps in previous versions.
2024-03-27 17:15:32 +01:00
Jess Telford b463522e66
Merge pull request #23 from luke3butler/master
Fix ".applyProjection() has been removed."
2022-06-10 10:00:29 +10:00
Jess Telford c74d79e997
Merge pull request #22 from patrickocoffeyo/fix/canvas-coordinates
Incorporate canvas position in mouse position calculation
2022-06-10 09:59:55 +10:00
Jess Telford c87cd1a3df
Merge pull request #20 from patrickocoffeyo/feature/allow-disable-from-attribute
Allow click-drag to be disabled/enabled
2022-06-10 09:57:25 +10:00
Patrick Coffey d32593a06c fix: remove tmp index.js file 2018-07-27 17:03:45 -05:00
Jess Telford 12b475618a
Fix typo 2018-06-19 22:12:25 +10:00
Jess Telford fe04d7fea9
Looking for maintainers 2018-06-19 22:12:07 +10:00
Luke ecee3be650 Fix ".applyProjection() has been removed." 2018-03-07 12:34:49 -05:00
Patrick Coffey cf791d0404
fix(canvas): ensure positioning incorporates cavas position for embedded scenes 2018-03-03 13:48:06 -06:00
Patrick Coffey e9c82dfe6c
Document ability to toggle click-drag off 2017-08-15 16:48:27 -05:00
Patrick Coffey 95f875e8ba
Allow attribute-level disabling of click-drag functionality 2017-08-15 16:44:25 -05:00
Jess Telford 9e49826865 3.0.1 2016-12-18 17:10:35 +11:00
Jess Telford b0e0f6018d Merge pull request #12 from jesstelford/update-deps
Updated to latest deps
2016-12-18 17:09:08 +11:00
Jess Telford 3b770312cd Updated to latest deps 2016-12-18 17:08:35 +11:00
Jess Telford 67102f751c 3.0.0 2016-11-11 18:25:07 +11:00
Jess Telford 936734c736 Simpler, more accurate velocity calculations 2016-11-11 18:16:14 +11:00
Jess Telford 0801a5617a 2.0.0 2016-11-05 15:57:33 +11:00
Jess Telford 8f84fdc21d Fix linting error 2016-11-05 15:57:02 +11:00
Jess Telford 1a6cc25544 Merge pull request #9 from jesstelford/no-local-lock-option
Remove locktolocalrotation option
2016-11-05 15:56:19 +11:00
Jess Telford f0902cedd1 Remove locktolocalrotation option 2016-11-05 15:55:51 +11:00
Jess Telford e0e8c23bea Merge pull request #8 from jesstelford/children
Support dragging child entities
2016-11-05 15:55:40 +11:00
Jess Telford 877f0f12f1 Support dragging child entities 2016-11-05 15:52:46 +11:00
Jess Telford 73c1d75f00 1.3.3 2016-11-05 14:15:49 +11:00
Jess Telford bba81cfc6d Merge pull request #7 from jesstelford/only-emit-when-dragging
Only emit drag end after dragging, not clicks
2016-11-05 14:14:53 +11:00
Jess Telford fb87db0f3d Only emit drag end after dragging, not clicks 2016-11-05 14:14:25 +11:00
Jess Telford 2dbe80d4d9 1.3.2 2016-11-05 13:58:53 +11:00
Jess Telford 44e3665c99 Fix linting error 2016-11-05 13:54:34 +11:00
Jess Telford 7157f2c215 Merge pull request #6 from jesstelford/pause-support
Pause support
2016-11-05 13:45:17 +11:00
Jess Telford bf5b6c510a Add a changelog 2016-11-05 13:43:20 +11:00
Jess Telford 8a0597621b Remove drag listeners when paused / removed 2016-11-04 21:04:13 +11:00
Jess Telford 3ecd887527 Release v1.3.1. 2016-10-15 15:23:06 +11:00
Jess Telford e91a10fd82 Add fps keyboard controls 2016-10-15 15:22:53 +11:00
Jess Telford 585f4fd05e Update to latest keyboard-controls usage 2016-10-05 08:15:56 +11:00
Jess Telford 0d13873a75 v1.3.0 2016-10-05 07:45:44 +11:00
Jess Telford be6f895948 Merge pull request #4 from jesstelford/touch-support
Support touch events for dragging
2016-10-05 07:45:01 +11:00
Jess Telford 299698fe3e Support touch events for dragging 2016-10-05 07:40:57 +11:00
Jess Telford 3d47edafbb v1.2.0 2016-10-04 17:49:43 +11:00
Jess Telford 4b77d00f10 Merge pull request #3 from jesstelford/lock-to-camera
Lock to camera
2016-10-04 17:48:14 +11:00
Jess Telford 20f5f9b000 Enable screen locking for rotated camera views 2016-10-04 17:46:38 +11:00
Jess Telford a675ba84ba Correctly rotate object when locked to camera 2016-10-04 07:41:37 +11:00
Jess Telford 6b6ef887ea Setting up for locking to camera 2016-10-03 20:38:36 +11:00
Jess Telford 2589c0bcc1 Support a rotated camera 2016-10-03 20:37:56 +11:00